From f6f48efd325031e3bad61585a60788cf9011c7b3 Mon Sep 17 00:00:00 2001 From: k-yle Date: Mon, 4 Nov 2024 11:17:48 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20osm-nz/p?= =?UTF-8?q?lace-name-conflation@8e696213ca9578f5129d02f480309fcaa21c643f?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-l5WmSnF7.js => index-Dvw5l-9A.js} | 62 +++++++++---------- index.html | 2 +- 2 files changed, 32 insertions(+), 32 deletions(-) rename assets/{index-l5WmSnF7.js => index-Dvw5l-9A.js} (94%) diff --git a/assets/index-l5WmSnF7.js b/assets/index-Dvw5l-9A.js similarity index 94% rename from assets/index-l5WmSnF7.js rename to assets/index-Dvw5l-9A.js index d571957..c66cf93 100644 --- a/assets/index-l5WmSnF7.js +++ b/assets/index-Dvw5l-9A.js @@ -6,7 +6,7 @@ function ZI(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tm=Object.prototype.hasOwnProperty,dE=/^[: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]*$/,d0={},f0={};function fE(e){return Tm.call(f0,e)?!0:Tm.call(d0,e)?!1:dE.test(e)?f0[e]=!0:(d0[e]=!0,!1)}function pE(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 hE(e,t,n,r){if(t===null||typeof t>"u"||pE(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 Wn(e,t,n,r,o,i,l){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=l}var Mn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mn[e]=new Wn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mn[t]=new Wn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mn[e]=new Wn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mn[e]=new Wn(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){Mn[e]=new Wn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mn[e]=new Wn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mn[e]=new Wn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mn[e]=new Wn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mn[e]=new Wn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lv=/[\-:]([a-z])/g;function av(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(lv,av);Mn[t]=new Wn(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(lv,av);Mn[t]=new Wn(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(lv,av);Mn[t]=new Wn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mn[e]=new Wn(e,1,!1,e.toLowerCase(),null,!1,!1)});Mn.xlinkHref=new Wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mn[e]=new Wn(e,1,!1,e.toLowerCase(),null,!0,!0)});function uv(e,t,n,r){var o=Mn.hasOwnProperty(t)?Mn[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tm=Object.prototype.hasOwnProperty,dE=/^[: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]*$/,d0={},f0={};function fE(e){return Tm.call(f0,e)?!0:Tm.call(d0,e)?!1:dE.test(e)?f0[e]=!0:(d0[e]=!0,!1)}function pE(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 hE(e,t,n,r){if(t===null||typeof t>"u"||pE(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 Wn(e,t,n,r,o,i,l){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=l}var Mn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mn[e]=new Wn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mn[t]=new Wn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mn[e]=new Wn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mn[e]=new Wn(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){Mn[e]=new Wn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mn[e]=new Wn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mn[e]=new Wn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mn[e]=new Wn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mn[e]=new Wn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lv=/[\-:]([a-z])/g;function av(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(lv,av);Mn[t]=new Wn(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(lv,av);Mn[t]=new Wn(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(lv,av);Mn[t]=new Wn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mn[e]=new Wn(e,1,!1,e.toLowerCase(),null,!1,!1)});Mn.xlinkHref=new Wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mn[e]=new Wn(e,1,!1,e.toLowerCase(),null,!0,!0)});function uv(e,t,n,r){var o=Mn.hasOwnProperty(t)?Mn[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var c=` -`+o[l].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=l&&0<=a);break}}}finally{Rh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ka(e):""}function mE(e){switch(e.tag){case 5:return Ka(e.type);case 16:return Ka("Lazy");case 13:return Ka("Suspense");case 19:return Ka("SuspenseList");case 0:case 2:case 15:return e=Fh(e.type,!1),e;case 11:return e=Fh(e.type.render,!1),e;case 1:return e=Fh(e.type,!0),e;default:return""}}function $m(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 pl:return"Fragment";case fl:return"Portal";case Om:return"Profiler";case cv:return"StrictMode";case Rm:return"Suspense";case Fm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dw:return(e.displayName||"Context")+".Consumer";case cw:return(e._context.displayName||"Context")+".Provider";case dv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fv:return t=e.displayName||null,t!==null?t:$m(e.type)||"Memo";case vi:t=e._payload,e=e._init;try{return $m(e(t))}catch{}}return null}function gE(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 $m(t);case 8:return t===cv?"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 Ni(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vE(e){var t=pw(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(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gc(e){e._valueTracker||(e._valueTracker=vE(e))}function hw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wd(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 zm(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function h0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ni(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 mw(e,t){t=t.checked,t!=null&&uv(e,"checked",t,!1)}function Am(e,t){mw(e,t);var n=Ni(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")?Dm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dm(e,t.type,Ni(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function m0(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 Dm(e,t,n){(t!=="number"||Wd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qa=Array.isArray;function Il(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Vc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ru={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},yE=["Webkit","ms","Moz","O"];Object.keys(ru).forEach(function(e){yE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ru[t]=ru[e]})});function bw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ru.hasOwnProperty(e)&&ru[e]?(""+t).trim():t+"px"}function _w(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bE=Ut({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 Hm(e,t){if(t){if(bE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_e(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_e(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_e(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_e(62))}}function jm(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 Gm=null;function pv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vm=null,El=null,Ll=null;function y0(e){if(e=nc(e)){if(typeof Vm!="function")throw Error(_e(280));var t=e.stateNode;t&&(t=Vf(t),Vm(e.stateNode,e.type,t))}}function Cw(e){El?Ll?Ll.push(e):Ll=[e]:El=e}function xw(){if(El){var e=El,t=Ll;if(Ll=El=null,y0(e),t)for(e=0;e>>=0,e===0?32:31-(LE(e)/TE|0)|0}var Wc=64,Uc=4194304;function Xa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Xa(a):(i&=l,i!==0&&(r=Xa(i)))}else l=n&~o,l!==0?r=Xa(l):i!==0&&(r=Xa(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 ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-oo(t),e[t]=n}function $E(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=iu),M0=" ",I0=!1;function jw(e,t){switch(e){case"keyup":return uL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hl=!1;function dL(e,t){switch(e){case"compositionend":return Gw(t);case"keypress":return t.which!==32?null:(I0=!0,M0);case"textInput":return e=t.data,e===M0&&I0?null:e;default:return null}}function fL(e,t){if(hl)return e==="compositionend"||!Cv&&jw(e,t)?(e=Bw(),Cd=yv=wi=null,hl=!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=O0(n)}}function Zw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kw(){for(var e=window,t=Wd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wd(e.document)}return t}function xv(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 CL(e){var t=Kw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zw(n.ownerDocument.documentElement,n)){if(r!==null&&xv(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=R0(n,i);var l=R0(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,ml=null,Xm=null,lu=null,Ym=!1;function F0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ym||ml==null||ml!==Wd(r)||(r=ml,"selectionStart"in r&&xv(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}),lu&&Pu(lu,r)||(lu=r,r=Qd(Xm,"onSelect"),0yl||(e.current=rg[yl],rg[yl]=null,yl--)}function $t(e,t){yl++,rg[yl]=e.current,e.current=t}var Bi={},$n=Gi(Bi),Jn=Gi(!1),ys=Bi;function Gl(e,t){var n=e.type.contextTypes;if(!n)return Bi;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 er(e){return e=e.childContextTypes,e!=null}function ef(){Dt(Jn),Dt($n)}function H0(e,t,n){if($n.current!==Bi)throw Error(_e(168));$t($n,t),$t(Jn,n)}function r1(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(_e(108,gE(e)||"Unknown",o));return Ut({},n,r)}function tf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bi,ys=$n.current,$t($n,e),$t(Jn,Jn.current),!0}function j0(e,t,n){var r=e.stateNode;if(!r)throw Error(_e(169));n?(e=r1(e,t,ys),r.__reactInternalMemoizedMergedChildContext=e,Dt(Jn),Dt($n),$t($n,e)):Dt(Jn),$t(Jn,n)}var Vo=null,Wf=!1,Kh=!1;function o1(e){Vo===null?Vo=[e]:Vo.push(e)}function RL(e){Wf=!0,o1(e)}function Vi(){if(!Kh&&Vo!==null){Kh=!0;var e=0,t=St;try{var n=Vo;for(St=1;e>=l,o-=l,Uo=1<<32-oo(t)+o|n<F?(B=T,T=null):B=T.sibling;var H=g(b,T,P[F],M);if(H===null){T===null&&(T=B);break}e&&T&&H.alternate===null&&t(b,T),w=i(H,w,F),$===null?E=H:$.sibling=H,$=H,T=B}if(F===P.length)return n(b,T),Ht&&is(b,F),E;if(T===null){for(;FF?(B=T,T=null):B=T.sibling;var W=g(b,T,H.value,M);if(W===null){T===null&&(T=B);break}e&&T&&W.alternate===null&&t(b,T),w=i(W,w,F),$===null?E=W:$.sibling=W,$=W,T=B}if(H.done)return n(b,T),Ht&&is(b,F),E;if(T===null){for(;!H.done;F++,H=P.next())H=p(b,H.value,M),H!==null&&(w=i(H,w,F),$===null?E=H:$.sibling=H,$=H);return Ht&&is(b,F),E}for(T=r(b,T);!H.done;F++,H=P.next())H=v(T,b,F,H.value,M),H!==null&&(e&&H.alternate!==null&&T.delete(H.key===null?F:H.key),w=i(H,w,F),$===null?E=H:$.sibling=H,$=H);return e&&T.forEach(function(j){return t(b,j)}),Ht&&is(b,F),E}function k(b,w,P,M){if(typeof P=="object"&&P!==null&&P.type===pl&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case jc:e:{for(var E=P.key,$=w;$!==null;){if($.key===E){if(E=P.type,E===pl){if($.tag===7){n(b,$.sibling),w=o($,P.props.children),w.return=b,b=w;break e}}else if($.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vi&&W0(E)===$.type){n(b,$.sibling),w=o($,P.props),w.ref=za(b,$,P),w.return=b,b=w;break e}n(b,$);break}else t(b,$);$=$.sibling}P.type===pl?(w=ms(P.props.children,b.mode,M,P.key),w.return=b,b=w):(M=Ed(P.type,P.key,P.props,null,b.mode,M),M.ref=za(b,w,P),M.return=b,b=M)}return l(b);case fl:e:{for($=P.key;w!==null;){if(w.key===$)if(w.tag===4&&w.stateNode.containerInfo===P.containerInfo&&w.stateNode.implementation===P.implementation){n(b,w.sibling),w=o(w,P.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=nm(P,b.mode,M),w.return=b,b=w}return l(b);case vi:return $=P._init,k(b,w,$(P._payload),M)}if(qa(P))return x(b,w,P,M);if(Ta(P))return _(b,w,P,M);Jc(b,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,w!==null&&w.tag===6?(n(b,w.sibling),w=o(w,P),w.return=b,b=w):(n(b,w),w=tm(P,b.mode,M),w.return=b,b=w),l(b)):n(b,w)}return k}var Wl=a1(!0),u1=a1(!1),of=Gi(null),sf=null,Cl=null,kv=null;function Mv(){kv=Cl=sf=null}function Iv(e){var t=of.current;Dt(of),e._currentValue=t}function sg(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 Ol(e,t){sf=e,kv=Cl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qn=!0),e.firstContext=null)}function jr(e){var t=e._currentValue;if(kv!==e)if(e={context:e,memoizedValue:t,next:null},Cl===null){if(sf===null)throw Error(_e(308));Cl=e,sf.dependencies={lanes:0,firstContext:e}}else Cl=Cl.next=e;return t}var cs=null;function Ev(e){cs===null?cs=[e]:cs.push(e)}function c1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ev(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qo(e,r)}function Qo(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 yi=!1;function Lv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d1(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 Ko(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,gt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qo(e,n)}return o=r.interleaved,o===null?(t.next=t,Ev(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qo(e,n)}function wd(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,mv(e,n)}}function U0(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 l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,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 lf(e,t,n,r){var o=e.updateQueue;yi=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,l===null?i=d:l.next=d,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=d:a.next=d,f.lastBaseUpdate=c))}if(i!==null){var p=o.baseState;l=0,f=d=c=null,a=i;do{var g=a.lane,v=a.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,_=a;switch(g=t,v=n,_.tag){case 1:if(x=_.payload,typeof x=="function"){p=x.call(v,p,g);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=_.payload,g=typeof x=="function"?x.call(v,p,g):x,g==null)break e;p=Ut({},p,g);break e;case 2:yi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else v={eventTime:v,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(d=f=v,c=p):f=f.next=v,l|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(c=p),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Cs|=l,e.lanes=l,e.memoizedState=p}}function Z0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xh.transition;Xh.transition={};try{e(!1),t()}finally{St=n,Xh.transition=r}}function I1(){return Gr().memoizedState}function AL(e,t,n){var r=Fi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},E1(e))L1(t,n);else if(n=c1(e,t,n,r),n!==null){var o=jn();io(n,e,r,o),T1(n,t,r)}}function DL(e,t,n){var r=Fi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(E1(e))L1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,ao(a,l)){var c=t.interleaved;c===null?(o.next=o,Ev(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=c1(e,t,o,r),n!==null&&(o=jn(),io(n,e,r,o),T1(n,t,r))}}function E1(e){var t=e.alternate;return e===Wt||t!==null&&t===Wt}function L1(e,t){au=uf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function T1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mv(e,n)}}var cf={readContext:jr,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},NL={readContext:jr,useCallback:function(e,t){return yo().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:q0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pd(4194308,4,w1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pd(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pd(4,2,e,t)},useMemo:function(e,t){var n=yo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yo();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=AL.bind(null,Wt,e),[r.memoizedState,e]},useRef:function(e){var t=yo();return e={current:e},t.memoizedState=e},useState:K0,useDebugValue:Dv,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=K0(!1),t=e[0];return e=zL.bind(null,e[1]),yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wt,o=yo();if(Ht){if(n===void 0)throw Error(_e(407));n=n()}else{if(n=t(),_n===null)throw Error(_e(349));_s&30||m1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,q0(v1.bind(null,r,i,e),[e]),r.flags|=2048,Ru(9,g1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=yo(),t=_n.identifierPrefix;if(Ht){var n=Zo,r=Uo;n=(r&~(1<<32-oo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tu++,0")&&(c=c.replace("",e.displayName)),c}while(1<=l&&0<=a);break}}}finally{Rh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ka(e):""}function mE(e){switch(e.tag){case 5:return Ka(e.type);case 16:return Ka("Lazy");case 13:return Ka("Suspense");case 19:return Ka("SuspenseList");case 0:case 2:case 15:return e=Fh(e.type,!1),e;case 11:return e=Fh(e.type.render,!1),e;case 1:return e=Fh(e.type,!0),e;default:return""}}function $m(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 pl:return"Fragment";case fl:return"Portal";case Om:return"Profiler";case cv:return"StrictMode";case Rm:return"Suspense";case Fm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dw:return(e.displayName||"Context")+".Consumer";case cw:return(e._context.displayName||"Context")+".Provider";case dv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fv:return t=e.displayName||null,t!==null?t:$m(e.type)||"Memo";case vi:t=e._payload,e=e._init;try{return $m(e(t))}catch{}}return null}function gE(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 $m(t);case 8:return t===cv?"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 Ni(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vE(e){var t=pw(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(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vc(e){e._valueTracker||(e._valueTracker=vE(e))}function hw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ud(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 zm(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function h0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ni(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 mw(e,t){t=t.checked,t!=null&&uv(e,"checked",t,!1)}function Am(e,t){mw(e,t);var n=Ni(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")?Dm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dm(e,t.type,Ni(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function m0(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 Dm(e,t,n){(t!=="number"||Ud(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qa=Array.isArray;function Il(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Wc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _u(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ru={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},yE=["Webkit","ms","Moz","O"];Object.keys(ru).forEach(function(e){yE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ru[t]=ru[e]})});function bw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ru.hasOwnProperty(e)&&ru[e]?(""+t).trim():t+"px"}function _w(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bE=Ut({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 Hm(e,t){if(t){if(bE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_e(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_e(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_e(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_e(62))}}function jm(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 Gm=null;function pv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vm=null,El=null,Ll=null;function y0(e){if(e=rc(e)){if(typeof Vm!="function")throw Error(_e(280));var t=e.stateNode;t&&(t=Vf(t),Vm(e.stateNode,e.type,t))}}function Cw(e){El?Ll?Ll.push(e):Ll=[e]:El=e}function xw(){if(El){var e=El,t=Ll;if(Ll=El=null,y0(e),t)for(e=0;e>>=0,e===0?32:31-(LE(e)/TE|0)|0}var Uc=64,Zc=4194304;function Xa(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Xa(a):(i&=l,i!==0&&(r=Xa(i)))}else l=n&~o,l!==0?r=Xa(l):i!==0&&(r=Xa(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 tc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-oo(t),e[t]=n}function $E(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=iu),M0=" ",I0=!1;function jw(e,t){switch(e){case"keyup":return uL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hl=!1;function dL(e,t){switch(e){case"compositionend":return Gw(t);case"keypress":return t.which!==32?null:(I0=!0,M0);case"textInput":return e=t.data,e===M0&&I0?null:e;default:return null}}function fL(e,t){if(hl)return e==="compositionend"||!Cv&&jw(e,t)?(e=Bw(),xd=yv=wi=null,hl=!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=O0(n)}}function Zw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kw(){for(var e=window,t=Ud();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ud(e.document)}return t}function xv(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 CL(e){var t=Kw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zw(n.ownerDocument.documentElement,n)){if(r!==null&&xv(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=R0(n,i);var l=R0(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,ml=null,Xm=null,lu=null,Ym=!1;function F0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ym||ml==null||ml!==Ud(r)||(r=ml,"selectionStart"in r&&xv(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}),lu&&ku(lu,r)||(lu=r,r=Jd(Xm,"onSelect"),0yl||(e.current=rg[yl],rg[yl]=null,yl--)}function $t(e,t){yl++,rg[yl]=e.current,e.current=t}var Bi={},$n=Gi(Bi),Jn=Gi(!1),ys=Bi;function Gl(e,t){var n=e.type.contextTypes;if(!n)return Bi;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 er(e){return e=e.childContextTypes,e!=null}function tf(){Dt(Jn),Dt($n)}function H0(e,t,n){if($n.current!==Bi)throw Error(_e(168));$t($n,t),$t(Jn,n)}function r1(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(_e(108,gE(e)||"Unknown",o));return Ut({},n,r)}function nf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bi,ys=$n.current,$t($n,e),$t(Jn,Jn.current),!0}function j0(e,t,n){var r=e.stateNode;if(!r)throw Error(_e(169));n?(e=r1(e,t,ys),r.__reactInternalMemoizedMergedChildContext=e,Dt(Jn),Dt($n),$t($n,e)):Dt(Jn),$t(Jn,n)}var Vo=null,Wf=!1,Kh=!1;function o1(e){Vo===null?Vo=[e]:Vo.push(e)}function RL(e){Wf=!0,o1(e)}function Vi(){if(!Kh&&Vo!==null){Kh=!0;var e=0,t=St;try{var n=Vo;for(St=1;e>=l,o-=l,Uo=1<<32-oo(t)+o|n<F?(B=T,T=null):B=T.sibling;var H=g(b,T,P[F],M);if(H===null){T===null&&(T=B);break}e&&T&&H.alternate===null&&t(b,T),w=i(H,w,F),$===null?E=H:$.sibling=H,$=H,T=B}if(F===P.length)return n(b,T),Ht&&is(b,F),E;if(T===null){for(;FF?(B=T,T=null):B=T.sibling;var W=g(b,T,H.value,M);if(W===null){T===null&&(T=B);break}e&&T&&W.alternate===null&&t(b,T),w=i(W,w,F),$===null?E=W:$.sibling=W,$=W,T=B}if(H.done)return n(b,T),Ht&&is(b,F),E;if(T===null){for(;!H.done;F++,H=P.next())H=p(b,H.value,M),H!==null&&(w=i(H,w,F),$===null?E=H:$.sibling=H,$=H);return Ht&&is(b,F),E}for(T=r(b,T);!H.done;F++,H=P.next())H=v(T,b,F,H.value,M),H!==null&&(e&&H.alternate!==null&&T.delete(H.key===null?F:H.key),w=i(H,w,F),$===null?E=H:$.sibling=H,$=H);return e&&T.forEach(function(j){return t(b,j)}),Ht&&is(b,F),E}function k(b,w,P,M){if(typeof P=="object"&&P!==null&&P.type===pl&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Gc:e:{for(var E=P.key,$=w;$!==null;){if($.key===E){if(E=P.type,E===pl){if($.tag===7){n(b,$.sibling),w=o($,P.props.children),w.return=b,b=w;break e}}else if($.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===vi&&W0(E)===$.type){n(b,$.sibling),w=o($,P.props),w.ref=za(b,$,P),w.return=b,b=w;break e}n(b,$);break}else t(b,$);$=$.sibling}P.type===pl?(w=ms(P.props.children,b.mode,M,P.key),w.return=b,b=w):(M=Ld(P.type,P.key,P.props,null,b.mode,M),M.ref=za(b,w,P),M.return=b,b=M)}return l(b);case fl:e:{for($=P.key;w!==null;){if(w.key===$)if(w.tag===4&&w.stateNode.containerInfo===P.containerInfo&&w.stateNode.implementation===P.implementation){n(b,w.sibling),w=o(w,P.children||[]),w.return=b,b=w;break e}else{n(b,w);break}else t(b,w);w=w.sibling}w=nm(P,b.mode,M),w.return=b,b=w}return l(b);case vi:return $=P._init,k(b,w,$(P._payload),M)}if(qa(P))return x(b,w,P,M);if(Ta(P))return _(b,w,P,M);ed(b,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,w!==null&&w.tag===6?(n(b,w.sibling),w=o(w,P),w.return=b,b=w):(n(b,w),w=tm(P,b.mode,M),w.return=b,b=w),l(b)):n(b,w)}return k}var Wl=a1(!0),u1=a1(!1),sf=Gi(null),lf=null,Cl=null,kv=null;function Mv(){kv=Cl=lf=null}function Iv(e){var t=sf.current;Dt(sf),e._currentValue=t}function sg(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 Ol(e,t){lf=e,kv=Cl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qn=!0),e.firstContext=null)}function jr(e){var t=e._currentValue;if(kv!==e)if(e={context:e,memoizedValue:t,next:null},Cl===null){if(lf===null)throw Error(_e(308));Cl=e,lf.dependencies={lanes:0,firstContext:e}}else Cl=Cl.next=e;return t}var cs=null;function Ev(e){cs===null?cs=[e]:cs.push(e)}function c1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ev(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qo(e,r)}function Qo(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 yi=!1;function Lv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d1(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 Ko(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,gt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qo(e,n)}return o=r.interleaved,o===null?(t.next=t,Ev(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qo(e,n)}function Sd(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,mv(e,n)}}function U0(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 l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,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 af(e,t,n,r){var o=e.updateQueue;yi=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,l===null?i=d:l.next=d,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=d:a.next=d,f.lastBaseUpdate=c))}if(i!==null){var p=o.baseState;l=0,f=d=c=null,a=i;do{var g=a.lane,v=a.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,_=a;switch(g=t,v=n,_.tag){case 1:if(x=_.payload,typeof x=="function"){p=x.call(v,p,g);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=_.payload,g=typeof x=="function"?x.call(v,p,g):x,g==null)break e;p=Ut({},p,g);break e;case 2:yi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else v={eventTime:v,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(d=f=v,c=p):f=f.next=v,l|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(c=p),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Cs|=l,e.lanes=l,e.memoizedState=p}}function Z0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xh.transition;Xh.transition={};try{e(!1),t()}finally{St=n,Xh.transition=r}}function I1(){return Gr().memoizedState}function AL(e,t,n){var r=Fi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},E1(e))L1(t,n);else if(n=c1(e,t,n,r),n!==null){var o=jn();io(n,e,r,o),T1(n,t,r)}}function DL(e,t,n){var r=Fi(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(E1(e))L1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,ao(a,l)){var c=t.interleaved;c===null?(o.next=o,Ev(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=c1(e,t,o,r),n!==null&&(o=jn(),io(n,e,r,o),T1(n,t,r))}}function E1(e){var t=e.alternate;return e===Wt||t!==null&&t===Wt}function L1(e,t){au=cf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function T1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mv(e,n)}}var df={readContext:jr,useCallback:En,useContext:En,useEffect:En,useImperativeHandle:En,useInsertionEffect:En,useLayoutEffect:En,useMemo:En,useReducer:En,useRef:En,useState:En,useDebugValue:En,useDeferredValue:En,useTransition:En,useMutableSource:En,useSyncExternalStore:En,useId:En,unstable_isNewReconciler:!1},NL={readContext:jr,useCallback:function(e,t){return yo().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:q0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,kd(4194308,4,w1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kd(4194308,4,e,t)},useInsertionEffect:function(e,t){return kd(4,2,e,t)},useMemo:function(e,t){var n=yo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yo();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=AL.bind(null,Wt,e),[r.memoizedState,e]},useRef:function(e){var t=yo();return e={current:e},t.memoizedState=e},useState:K0,useDebugValue:Dv,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=K0(!1),t=e[0];return e=zL.bind(null,e[1]),yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wt,o=yo();if(Ht){if(n===void 0)throw Error(_e(407));n=n()}else{if(n=t(),_n===null)throw Error(_e(349));_s&30||m1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,q0(v1.bind(null,r,i,e),[e]),r.flags|=2048,Fu(9,g1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=yo(),t=_n.identifierPrefix;if(Ht){var n=Zo,r=Uo;n=(r&~(1<<32-oo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ou++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[wo]=t,e[Iu]=r,H1(e,t,!1,!1),t.stateNode=e;e:{switch(l=jm(n,r),n){case"dialog":At("cancel",e),At("close",e),o=r;break;case"iframe":case"object":case"embed":At("load",e),o=r;break;case"video":case"audio":for(o=0;oKl&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304)}else{if(!r)if(e=af(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Aa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Ht)return Ln(t),null}else 2*en()-i.renderingStartTime>Kl&&n!==1073741824&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=en(),t.sibling=null,n=Vt.current,$t(Vt,r?n&1|2:n&1),t):(Ln(t),null);case 22:case 23:return Vv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ur&1073741824&&(Ln(t),t.subtreeFlags&6&&(t.flags|=8192)):Ln(t),null;case 24:return null;case 25:return null}throw Error(_e(156,t.tag))}function ZL(e,t){switch(Sv(t),t.tag){case 1:return er(t.type)&&ef(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),Dt(Jn),Dt($n),Rv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ov(t),null;case 13:if(Dt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_e(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(Vt),null;case 4:return Ul(),null;case 10:return Iv(t.type._context),null;case 22:case 23:return Vv(),null;case 24:return null;default:return null}}var td=!1,Fn=!1,KL=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function xl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qt(e,t,r)}else n.current=null}function mg(e,t,n){try{n()}catch(r){qt(e,t,r)}}var s_=!1;function qL(e,t){if(Qm=Xd,e=Kw(),xv(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 l=0,a=-1,c=-1,d=0,f=0,p=e,g=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(a=l+o),p!==i||r!==0&&p.nodeType!==3||(c=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++d===o&&(a=l),g===i&&++f===r&&(c=l),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jm={focusedElem:e,selectionRange:n},Xd=!1,Ae=t;Ae!==null;)if(t=Ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ae=e;else for(;Ae!==null;){t=Ae;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,k=x.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?_:eo(t.type,_),k);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_e(163))}}catch(M){qt(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,Ae=e;break}Ae=t.return}return x=s_,s_=!1,x}function uu(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&&mg(t,n,i)}o=o.next}while(o!==r)}}function Kf(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 gg(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 V1(e){var t=e.alternate;t!==null&&(e.alternate=null,V1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wo],delete t[Iu],delete t[ng],delete t[TL],delete t[OL])),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 W1(e){return e.tag===5||e.tag===3||e.tag===4}function l_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W1(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 vg(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=Jd));else if(r!==4&&(e=e.child,e!==null))for(vg(e,t,n),e=e.sibling;e!==null;)vg(e,t,n),e=e.sibling}function yg(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(yg(e,t,n),e=e.sibling;e!==null;)yg(e,t,n),e=e.sibling}var Sn=null,no=!1;function fi(e,t,n){for(n=n.child;n!==null;)U1(e,t,n),n=n.sibling}function U1(e,t,n){if(ko&&typeof ko.onCommitFiberUnmount=="function")try{ko.onCommitFiberUnmount(Bf,n)}catch{}switch(n.tag){case 5:Fn||xl(n,t);case 6:var r=Sn,o=no;Sn=null,fi(e,t,n),Sn=r,no=o,Sn!==null&&(no?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(no?(e=Sn,n=n.stateNode,e.nodeType===8?Zh(e.parentNode,n):e.nodeType===1&&Zh(e,n),wu(e)):Zh(Sn,n.stateNode));break;case 4:r=Sn,o=no,Sn=n.stateNode.containerInfo,no=!0,fi(e,t,n),Sn=r,no=o;break;case 0:case 11:case 14:case 15:if(!Fn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&mg(n,t,l),o=o.next}while(o!==r)}fi(e,t,n);break;case 1:if(!Fn&&(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){qt(n,t,a)}fi(e,t,n);break;case 21:fi(e,t,n);break;case 22:n.mode&1?(Fn=(r=Fn)||n.memoizedState!==null,fi(e,t,n),Fn=r):fi(e,t,n);break;default:fi(e,t,n)}}function a_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KL),t.forEach(function(r){var o=oT.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YL(r/1960))-r,10e?16:e,Si===null)var r=!1;else{if(e=Si,Si=null,pf=0,gt&6)throw Error(_e(331));var o=gt;for(gt|=4,Ae=e.current;Ae!==null;){var i=Ae,l=i.child;if(Ae.flags&16){var a=i.deletions;if(a!==null){for(var c=0;cen()-jv?hs(e,0):Hv|=n),tr(e,t)}function eS(e,t){t===0&&(e.mode&1?(t=Uc,Uc<<=1,!(Uc&130023424)&&(Uc=4194304)):t=1);var n=jn();e=Qo(e,t),e!==null&&(ec(e,t,n),tr(e,n))}function rT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eS(e,n)}function oT(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(_e(314))}r!==null&&r.delete(t),eS(e,n)}var tS;tS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jn.current)Qn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qn=!1,WL(e,t,n);Qn=!!(e.flags&131072)}else Qn=!1,Ht&&t.flags&1048576&&i1(t,rf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;kd(e,t),e=t.pendingProps;var o=Gl(t,$n.current);Ol(t,n),o=$v(null,t,r,e,o,n);var i=zv();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,er(r)?(i=!0,tf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lv(t),o.updater=Zf,t.stateNode=o,o._reactInternals=t,ag(t,r,e,n),t=dg(null,t,r,!0,i,n)):(t.tag=0,Ht&&i&&wv(t),Dn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(kd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sT(r),e=eo(r,e),o){case 0:t=cg(null,t,r,e,n);break e;case 1:t=r_(null,t,r,e,n);break e;case 11:t=t_(null,t,r,e,n);break e;case 14:t=n_(null,t,r,eo(r.type,e),n);break e}throw Error(_e(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),cg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),r_(e,t,r,o,n);case 3:e:{if(D1(t),e===null)throw Error(_e(387));r=t.pendingProps,i=t.memoizedState,o=i.element,d1(e,t),lf(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Zl(Error(_e(423)),t),t=o_(e,t,r,n,o);break e}else if(r!==o){o=Zl(Error(_e(424)),t),t=o_(e,t,r,n,o);break e}else for(hr=Ti(t.stateNode.containerInfo.firstChild),mr=t,Ht=!0,ro=null,n=u1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vl(),r===o){t=Jo(e,t,n);break e}Dn(e,t,r,n)}t=t.child}return t;case 5:return f1(t),e===null&&ig(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,eg(r,o)?l=null:i!==null&&eg(r,i)&&(t.flags|=32),A1(e,t),Dn(e,t,l,n),t.child;case 6:return e===null&&ig(t),null;case 13:return N1(e,t,n);case 4:return Tv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wl(t,null,r,n):Dn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),t_(e,t,r,o,n);case 7:return Dn(e,t,t.pendingProps,n),t.child;case 8:return Dn(e,t,t.pendingProps.children,n),t.child;case 12:return Dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,$t(of,r._currentValue),r._currentValue=l,i!==null)if(ao(i.value,l)){if(i.children===o.children&&!Jn.current){t=Jo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Ko(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),sg(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(_e(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),sg(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Dn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ol(t,n),o=jr(o),r=r(o),t.flags|=1,Dn(e,t,r,n),t.child;case 14:return r=t.type,o=eo(r,t.pendingProps),o=eo(r.type,o),n_(e,t,r,o,n);case 15:return $1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),kd(e,t),t.tag=1,er(r)?(e=!0,tf(t)):e=!1,Ol(t,n),O1(t,r,o),ag(t,r,o,n),dg(null,t,r,!0,e,n);case 19:return B1(e,t,n);case 22:return z1(e,t,n)}throw Error(_e(156,t.tag))};function nS(e,t){return Ew(e,t)}function iT(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 Ar(e,t,n,r){return new iT(e,t,n,r)}function Uv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sT(e){if(typeof e=="function")return Uv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dv)return 11;if(e===fv)return 14}return 2}function $i(e,t){var n=e.alternate;return n===null?(n=Ar(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 Ed(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Uv(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pl:return ms(n.children,o,i,t);case cv:l=8,o|=8;break;case Om:return e=Ar(12,n,t,o|2),e.elementType=Om,e.lanes=i,e;case Rm:return e=Ar(13,n,t,o),e.elementType=Rm,e.lanes=i,e;case Fm:return e=Ar(19,n,t,o),e.elementType=Fm,e.lanes=i,e;case fw:return Xf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cw:l=10;break e;case dw:l=9;break e;case dv:l=11;break e;case fv:l=14;break e;case vi:l=16,r=null;break e}throw Error(_e(130,e==null?e:typeof e,""))}return t=Ar(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ms(e,t,n,r){return e=Ar(7,e,r,t),e.lanes=n,e}function Xf(e,t,n,r){return e=Ar(22,e,r,t),e.elementType=fw,e.lanes=n,e.stateNode={isHidden:!1},e}function tm(e,t,n){return e=Ar(6,e,null,t),e.lanes=n,e}function nm(e,t,n){return t=Ar(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lT(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=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zv(e,t,n,r,o,i,l,a,c){return e=new lT(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ar(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lv(i),e}function aT(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sS)}catch(e){console.error(e)}}sS(),sw.exports=_r;var oc=sw.exports;const od=nv(oc);var lS,g_=oc;lS=g_.createRoot,g_.hydrateRoot;var aS={exports:{}},tp={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Jh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ug(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jL=typeof WeakMap=="function"?WeakMap:Map;function R1(e,t,n){n=Ko(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pf||(pf=!0,bg=r),ug(e,t)},n}function F1(e,t,n){n=Ko(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ug(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ug(e,t),typeof r!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Q0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jL;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=nT.bind(null,e,t,n),t.then(e,e))}function J0(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function e_(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ko(-1,1),t.tag=2,Oi(n,t,1))),n.lanes|=1),e)}var GL=ii.ReactCurrentOwner,Qn=!1;function Dn(e,t,n,r){t.child=e===null?u1(t,null,n,r):Wl(t,e.child,n,r)}function t_(e,t,n,r,o){n=n.render;var i=t.ref;return Ol(t,o),r=$v(e,t,n,r,i,o),n=zv(),e!==null&&!Qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jo(e,t,o)):(Ht&&n&&wv(t),t.flags|=1,Dn(e,t,r,o),t.child)}function n_(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Uv(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,$1(e,t,i,r,o)):(e=Ld(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ku,n(l,r)&&e.ref===t.ref)return Jo(e,t,o)}return t.flags|=1,e=$i(i,r),e.ref=t.ref,e.return=t,t.child=e}function $1(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ku(i,r)&&e.ref===t.ref)if(Qn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Qn=!0);else return t.lanes=e.lanes,Jo(e,t,o)}return cg(e,t,n,r,o)}function z1(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$t(wl,ur),ur|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$t(wl,ur),ur|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,$t(wl,ur),ur|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,$t(wl,ur),ur|=r;return Dn(e,t,o,n),t.child}function A1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cg(e,t,n,r,o){var i=er(n)?ys:$n.current;return i=Gl(t,i),Ol(t,o),n=$v(e,t,n,r,i,o),r=zv(),e!==null&&!Qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jo(e,t,o)):(Ht&&r&&wv(t),t.flags|=1,Dn(e,t,n,o),t.child)}function r_(e,t,n,r,o){if(er(n)){var i=!0;nf(t)}else i=!1;if(Ol(t,o),t.stateNode===null)Md(e,t),O1(t,n,r),ag(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var c=l.context,d=n.contextType;typeof d=="object"&&d!==null?d=jr(d):(d=er(n)?ys:$n.current,d=Gl(t,d));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||c!==d)&&Y0(t,l,r,d),yi=!1;var g=t.memoizedState;l.state=g,af(t,r,l,o),c=t.memoizedState,a!==r||g!==c||Jn.current||yi?(typeof f=="function"&&(lg(t,n,f,r),c=t.memoizedState),(a=yi||X0(t,n,a,r,g,c,d))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),l.props=r,l.state=c,l.context=d,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,d1(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:eo(t.type,a),l.props=d,p=t.pendingProps,g=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=jr(c):(c=er(n)?ys:$n.current,c=Gl(t,c));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==p||g!==c)&&Y0(t,l,r,c),yi=!1,g=t.memoizedState,l.state=g,af(t,r,l,o);var x=t.memoizedState;a!==p||g!==x||Jn.current||yi?(typeof v=="function"&&(lg(t,n,v,r),x=t.memoizedState),(d=yi||X0(t,n,d,r,g,x,c)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=c,r=d):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return dg(e,t,n,r,i,o)}function dg(e,t,n,r,o,i){A1(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&j0(t,n,!1),Jo(e,t,i);r=t.stateNode,GL.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Wl(t,e.child,null,i),t.child=Wl(t,null,a,i)):Dn(e,t,a,i),t.memoizedState=r.state,o&&j0(t,n,!0),t.child}function D1(e){var t=e.stateNode;t.pendingContext?H0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&H0(e,t.context,!1),Tv(e,t.containerInfo)}function o_(e,t,n,r,o){return Vl(),Pv(o),t.flags|=256,Dn(e,t,n,r),t.child}var fg={dehydrated:null,treeContext:null,retryLane:0};function pg(e){return{baseLanes:e,cachePool:null,transitions:null}}function N1(e,t,n){var r=t.pendingProps,o=Vt.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),$t(Vt,o&1),e===null)return ig(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Xf(l,r,0,null),e=ms(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=pg(n),t.memoizedState=fg,e):Nv(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return VL(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=$i(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=$i(a,i):(i=ms(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?pg(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=fg,r}return i=e.child,e=i.sibling,r=$i(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Nv(e,t){return t=Xf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function td(e,t,n,r){return r!==null&&Pv(r),Wl(t,e.child,null,n),e=Nv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VL(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Jh(Error(_e(422))),td(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Xf({mode:"visible",children:r.children},o,0,null),i=ms(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Wl(t,e.child,null,l),t.child.memoizedState=pg(l),t.memoizedState=fg,i);if(!(t.mode&1))return td(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(_e(419)),r=Jh(i,r,void 0),td(e,t,l,r)}if(a=(l&e.childLanes)!==0,Qn||a){if(r=_n,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Qo(e,o),io(r,e,o,-1))}return Wv(),r=Jh(Error(_e(421))),td(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=rT.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,hr=Ti(o.nextSibling),mr=t,Ht=!0,ro=null,e!==null&&(Rr[Fr++]=Uo,Rr[Fr++]=Zo,Rr[Fr++]=bs,Uo=e.id,Zo=e.overflow,bs=t),t=Nv(t,r.children),t.flags|=4096,t)}function i_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sg(e.return,t,n)}function em(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function B1(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Dn(e,t,r.children,n),r=Vt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&i_(e,n,t);else if(e.tag===19)i_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($t(Vt,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&uf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),em(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&uf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}em(t,!0,n,null,i);break;case"together":em(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Md(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_e(153));if(t.child!==null){for(e=t.child,n=$i(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$i(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function WL(e,t,n){switch(t.tag){case 3:D1(t),Vl();break;case 5:f1(t);break;case 1:er(t.type)&&nf(t);break;case 4:Tv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$t(sf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?($t(Vt,Vt.current&1),t.flags|=128,null):n&t.child.childLanes?N1(e,t,n):($t(Vt,Vt.current&1),e=Jo(e,t,n),e!==null?e.sibling:null);$t(Vt,Vt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return B1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$t(Vt,Vt.current),r)break;return null;case 22:case 23:return t.lanes=0,z1(e,t,n)}return Jo(e,t,n)}var H1,hg,j1,G1;H1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};hg=function(){};j1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ds(Mo.current);var i=null;switch(n){case"input":o=zm(e,o),r=zm(e,r),i=[];break;case"select":o=Ut({},o,{value:void 0}),r=Ut({},r,{value:void 0}),i=[];break;case"textarea":o=Nm(e,o),r=Nm(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ef)}Hm(n,r);var l;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(bu.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="style")if(a){for(l in a)!a.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&a[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(bu.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&At("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};G1=function(e,t,n,r){n!==r&&(t.flags|=4)};function Aa(e,t){if(!Ht)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ln(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function UL(e,t,n){var r=t.pendingProps;switch(Sv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(t),null;case 1:return er(t.type)&&tf(),Ln(t),null;case 3:return r=t.stateNode,Ul(),Dt(Jn),Dt($n),Rv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Jc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ro!==null&&(xg(ro),ro=null))),hg(e,t),Ln(t),null;case 5:Ov(t);var o=ds(Tu.current);if(n=t.type,e!==null&&t.stateNode!=null)j1(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_e(166));return Ln(t),null}if(e=ds(Mo.current),Jc(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[wo]=t,r[Eu]=i,e=(t.mode&1)!==0,n){case"dialog":At("cancel",r),At("close",r);break;case"iframe":case"object":case"embed":At("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[wo]=t,e[Eu]=r,H1(e,t,!1,!1),t.stateNode=e;e:{switch(l=jm(n,r),n){case"dialog":At("cancel",e),At("close",e),o=r;break;case"iframe":case"object":case"embed":At("load",e),o=r;break;case"video":case"audio":for(o=0;oKl&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304)}else{if(!r)if(e=uf(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Aa(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Ht)return Ln(t),null}else 2*en()-i.renderingStartTime>Kl&&n!==1073741824&&(t.flags|=128,r=!0,Aa(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=en(),t.sibling=null,n=Vt.current,$t(Vt,r?n&1|2:n&1),t):(Ln(t),null);case 22:case 23:return Vv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ur&1073741824&&(Ln(t),t.subtreeFlags&6&&(t.flags|=8192)):Ln(t),null;case 24:return null;case 25:return null}throw Error(_e(156,t.tag))}function ZL(e,t){switch(Sv(t),t.tag){case 1:return er(t.type)&&tf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),Dt(Jn),Dt($n),Rv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ov(t),null;case 13:if(Dt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_e(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Dt(Vt),null;case 4:return Ul(),null;case 10:return Iv(t.type._context),null;case 22:case 23:return Vv(),null;case 24:return null;default:return null}}var nd=!1,Fn=!1,KL=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function xl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){qt(e,t,r)}else n.current=null}function mg(e,t,n){try{n()}catch(r){qt(e,t,r)}}var s_=!1;function qL(e,t){if(Qm=Yd,e=Kw(),xv(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 l=0,a=-1,c=-1,d=0,f=0,p=e,g=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(a=l+o),p!==i||r!==0&&p.nodeType!==3||(c=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++d===o&&(a=l),g===i&&++f===r&&(c=l),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jm={focusedElem:e,selectionRange:n},Yd=!1,Ae=t;Ae!==null;)if(t=Ae,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ae=e;else for(;Ae!==null;){t=Ae;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var _=x.memoizedProps,k=x.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?_:eo(t.type,_),k);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_e(163))}}catch(M){qt(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,Ae=e;break}Ae=t.return}return x=s_,s_=!1,x}function uu(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&&mg(t,n,i)}o=o.next}while(o!==r)}}function Kf(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 gg(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 V1(e){var t=e.alternate;t!==null&&(e.alternate=null,V1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wo],delete t[Eu],delete t[ng],delete t[TL],delete t[OL])),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 W1(e){return e.tag===5||e.tag===3||e.tag===4}function l_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W1(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 vg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ef));else if(r!==4&&(e=e.child,e!==null))for(vg(e,t,n),e=e.sibling;e!==null;)vg(e,t,n),e=e.sibling}function yg(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(yg(e,t,n),e=e.sibling;e!==null;)yg(e,t,n),e=e.sibling}var Sn=null,no=!1;function fi(e,t,n){for(n=n.child;n!==null;)U1(e,t,n),n=n.sibling}function U1(e,t,n){if(ko&&typeof ko.onCommitFiberUnmount=="function")try{ko.onCommitFiberUnmount(Bf,n)}catch{}switch(n.tag){case 5:Fn||xl(n,t);case 6:var r=Sn,o=no;Sn=null,fi(e,t,n),Sn=r,no=o,Sn!==null&&(no?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(no?(e=Sn,n=n.stateNode,e.nodeType===8?Zh(e.parentNode,n):e.nodeType===1&&Zh(e,n),Su(e)):Zh(Sn,n.stateNode));break;case 4:r=Sn,o=no,Sn=n.stateNode.containerInfo,no=!0,fi(e,t,n),Sn=r,no=o;break;case 0:case 11:case 14:case 15:if(!Fn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&mg(n,t,l),o=o.next}while(o!==r)}fi(e,t,n);break;case 1:if(!Fn&&(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){qt(n,t,a)}fi(e,t,n);break;case 21:fi(e,t,n);break;case 22:n.mode&1?(Fn=(r=Fn)||n.memoizedState!==null,fi(e,t,n),Fn=r):fi(e,t,n);break;default:fi(e,t,n)}}function a_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KL),t.forEach(function(r){var o=oT.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YL(r/1960))-r,10e?16:e,Si===null)var r=!1;else{if(e=Si,Si=null,hf=0,gt&6)throw Error(_e(331));var o=gt;for(gt|=4,Ae=e.current;Ae!==null;){var i=Ae,l=i.child;if(Ae.flags&16){var a=i.deletions;if(a!==null){for(var c=0;cen()-jv?hs(e,0):Hv|=n),tr(e,t)}function eS(e,t){t===0&&(e.mode&1?(t=Zc,Zc<<=1,!(Zc&130023424)&&(Zc=4194304)):t=1);var n=jn();e=Qo(e,t),e!==null&&(tc(e,t,n),tr(e,n))}function rT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eS(e,n)}function oT(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(_e(314))}r!==null&&r.delete(t),eS(e,n)}var tS;tS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jn.current)Qn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qn=!1,WL(e,t,n);Qn=!!(e.flags&131072)}else Qn=!1,Ht&&t.flags&1048576&&i1(t,of,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Md(e,t),e=t.pendingProps;var o=Gl(t,$n.current);Ol(t,n),o=$v(null,t,r,e,o,n);var i=zv();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,er(r)?(i=!0,nf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lv(t),o.updater=Zf,t.stateNode=o,o._reactInternals=t,ag(t,r,e,n),t=dg(null,t,r,!0,i,n)):(t.tag=0,Ht&&i&&wv(t),Dn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Md(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sT(r),e=eo(r,e),o){case 0:t=cg(null,t,r,e,n);break e;case 1:t=r_(null,t,r,e,n);break e;case 11:t=t_(null,t,r,e,n);break e;case 14:t=n_(null,t,r,eo(r.type,e),n);break e}throw Error(_e(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),cg(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),r_(e,t,r,o,n);case 3:e:{if(D1(t),e===null)throw Error(_e(387));r=t.pendingProps,i=t.memoizedState,o=i.element,d1(e,t),af(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Zl(Error(_e(423)),t),t=o_(e,t,r,n,o);break e}else if(r!==o){o=Zl(Error(_e(424)),t),t=o_(e,t,r,n,o);break e}else for(hr=Ti(t.stateNode.containerInfo.firstChild),mr=t,Ht=!0,ro=null,n=u1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vl(),r===o){t=Jo(e,t,n);break e}Dn(e,t,r,n)}t=t.child}return t;case 5:return f1(t),e===null&&ig(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,eg(r,o)?l=null:i!==null&&eg(r,i)&&(t.flags|=32),A1(e,t),Dn(e,t,l,n),t.child;case 6:return e===null&&ig(t),null;case 13:return N1(e,t,n);case 4:return Tv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wl(t,null,r,n):Dn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),t_(e,t,r,o,n);case 7:return Dn(e,t,t.pendingProps,n),t.child;case 8:return Dn(e,t,t.pendingProps.children,n),t.child;case 12:return Dn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,$t(sf,r._currentValue),r._currentValue=l,i!==null)if(ao(i.value,l)){if(i.children===o.children&&!Jn.current){t=Jo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Ko(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),sg(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(_e(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),sg(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Dn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ol(t,n),o=jr(o),r=r(o),t.flags|=1,Dn(e,t,r,n),t.child;case 14:return r=t.type,o=eo(r,t.pendingProps),o=eo(r.type,o),n_(e,t,r,o,n);case 15:return $1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:eo(r,o),Md(e,t),t.tag=1,er(r)?(e=!0,nf(t)):e=!1,Ol(t,n),O1(t,r,o),ag(t,r,o,n),dg(null,t,r,!0,e,n);case 19:return B1(e,t,n);case 22:return z1(e,t,n)}throw Error(_e(156,t.tag))};function nS(e,t){return Ew(e,t)}function iT(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 Ar(e,t,n,r){return new iT(e,t,n,r)}function Uv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sT(e){if(typeof e=="function")return Uv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dv)return 11;if(e===fv)return 14}return 2}function $i(e,t){var n=e.alternate;return n===null?(n=Ar(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 Ld(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Uv(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pl:return ms(n.children,o,i,t);case cv:l=8,o|=8;break;case Om:return e=Ar(12,n,t,o|2),e.elementType=Om,e.lanes=i,e;case Rm:return e=Ar(13,n,t,o),e.elementType=Rm,e.lanes=i,e;case Fm:return e=Ar(19,n,t,o),e.elementType=Fm,e.lanes=i,e;case fw:return Xf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cw:l=10;break e;case dw:l=9;break e;case dv:l=11;break e;case fv:l=14;break e;case vi:l=16,r=null;break e}throw Error(_e(130,e==null?e:typeof e,""))}return t=Ar(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ms(e,t,n,r){return e=Ar(7,e,r,t),e.lanes=n,e}function Xf(e,t,n,r){return e=Ar(22,e,r,t),e.elementType=fw,e.lanes=n,e.stateNode={isHidden:!1},e}function tm(e,t,n){return e=Ar(6,e,null,t),e.lanes=n,e}function nm(e,t,n){return t=Ar(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lT(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=zh(0),this.expirationTimes=zh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zv(e,t,n,r,o,i,l,a,c){return e=new lT(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ar(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lv(i),e}function aT(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sS)}catch(e){console.error(e)}}sS(),sw.exports=_r;var ic=sw.exports;const id=nv(ic);var lS,g_=ic;lS=g_.createRoot,g_.hydrateRoot;var aS={exports:{}},tp={};/** * @license React * react-jsx-runtime.production.min.js * @@ -37,14 +37,14 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pT=m,hT=Symbol.for("react.element"),mT=Symbol.for("react.fragment"),gT=Object.prototype.hasOwnProperty,vT=pT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yT={key:!0,ref:!0,__self:!0,__source:!0};function uS(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)gT.call(t,r)&&!yT.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:hT,type:e,key:i,ref:l,props:o,_owner:vT.current}}tp.Fragment=mT;tp.jsx=uS;tp.jsxs=uS;aS.exports=tp;var S=aS.exports;const $u={black:"#000",white:"#fff"},Ys={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qs={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Js={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},el={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},tl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Na={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},bT={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ei(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}return n}function cS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var CT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xT=cS(function(e){return CT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function wT(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pn(ua,--or):0,ql--,un===10&&(ql=1,rp--),un}function gr(){return un=or2||Au(un)>3?"":" "}function zT(e,t){for(;--t&&gr()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return sc(e,Ld()+(t<6&&Io()==32&&gr()==32))}function Sg(e){for(;gr();)switch(un){case e:return or;case 34:case 39:e!==34&&e!==39&&Sg(un);break;case 40:e===41&&Sg(e);break;case 92:gr();break}return or}function AT(e,t){for(;gr()&&e+un!==57;)if(e+un===84&&Io()===47)break;return"/*"+sc(t,or-1)+"*"+np(e===47?e:gr())}function DT(e){for(;!Au(Io());)gr();return sc(e,or)}function NT(e){return gS(Od("",null,null,null,[""],e=mS(e),0,[0],e))}function Od(e,t,n,r,o,i,l,a,c){for(var d=0,f=0,p=l,g=0,v=0,x=0,_=1,k=1,b=1,w=0,P="",M=o,E=i,$=r,T=P;k;)switch(x=w,w=gr()){case 40:if(x!=108&&Pn(T,p-1)==58){wg(T+=_t(Td(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Td(w);break;case 9:case 10:case 13:case 32:T+=$T(x);break;case 92:T+=zT(Ld()-1,7);continue;case 47:switch(Io()){case 42:case 47:id(BT(AT(gr(),Ld()),t,n),c);break;default:T+="/"}break;case 123*_:a[d++]=_o(T)*b;case 125*_:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+f:b==-1&&(T=_t(T,/\f/g,"")),v>0&&_o(T)-p&&id(v>32?y_(T+";",r,n,p-1):y_(_t(T," ","")+";",r,n,p-2),c);break;case 59:T+=";";default:if(id($=v_(T,t,n,d,f,o,a,P,M=[],E=[],p),i),w===123)if(f===0)Od(T,t,$,$,M,i,p,a,E);else switch(g===99&&Pn(T,3)===110?100:g){case 100:case 108:case 109:case 115:Od(e,$,$,r&&id(v_(e,$,$,0,0,o,a,P,o,M=[],p),E),o,E,p,a,r?M:E);break;default:Od(T,$,$,$,[""],E,0,a,E)}}d=f=v=0,_=b=1,P=T="",p=l;break;case 58:p=1+_o(T),v=x;default:if(_<1){if(w==123)--_;else if(w==125&&_++==0&&FT()==125)continue}switch(T+=np(w),w*_){case 38:b=f>0?1:(T+="\f",-1);break;case 44:a[d++]=(_o(T)-1)*b,b=1;break;case 64:Io()===45&&(T+=Td(gr())),g=Io(),f=p=_o(P=T+=DT(Ld())),w++;break;case 45:x===45&&_o(T)==2&&(_=0)}}return i}function v_(e,t,n,r,o,i,l,a,c,d,f){for(var p=o-1,g=o===0?i:[""],v=Jv(g),x=0,_=0,k=0;x0?g[b]+" "+w:_t(w,/&\f/g,g[b])))&&(c[k++]=P);return op(e,t,n,o===0?Yv:a,c,d,f)}function BT(e,t,n){return op(e,t,n,dS,np(RT()),zu(e,2,-2),0)}function y_(e,t,n,r){return op(e,t,n,Qv,zu(e,0,r),zu(e,r+1,-1),r)}function Fl(e,t){for(var n="",r=Jv(e),o=0;o6)switch(Pn(e,t+1)){case 109:if(Pn(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+bt+"$2-$3$1"+gf+(Pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wg(e,"stretch")?vS(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pn(e,t+1)!==115)break;case 6444:switch(Pn(e,_o(e)-3-(~wg(e,"!important")&&10))){case 107:return _t(e,":",":"+bt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bt+(Pn(e,14)===45?"inline-":"")+"box$3$1"+bt+"$2$3$1"+On+"$2box$3")+e}break;case 5936:switch(Pn(e,t+11)){case 114:return bt+e+On+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bt+e+On+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bt+e+On+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bt+e+On+e+e}return e}var qT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=vS(t.value,t.length);break;case fS:return Fl([Ba(t,{value:_t(t.value,"@","@"+bt)})],o);case Yv:if(t.length)return OT(t.props,function(i){switch(TT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fl([Ba(t,{props:[_t(i,/:(read-\w+)/,":"+gf+"$1")]})],o);case"::placeholder":return Fl([Ba(t,{props:[_t(i,/:(plac\w+)/,":"+bt+"input-$1")]}),Ba(t,{props:[_t(i,/:(plac\w+)/,":"+gf+"$1")]}),Ba(t,{props:[_t(i,/:(plac\w+)/,On+"input-$1")]})],o)}return""})}},XT=[qT],yS=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(_){var k=_.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||XT,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var k=_.getAttribute("data-emotion").split(" "),b=1;b=0)continue;n[r]=e[r]}return n}function cS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var CT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xT=cS(function(e){return CT.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function wT(e){if(e.sheet)return e.sheet;for(var t=0;t0?Pn(ua,--or):0,ql--,un===10&&(ql=1,rp--),un}function gr(){return un=or2||Du(un)>3?"":" "}function zT(e,t){for(;--t&&gr()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return lc(e,Td()+(t<6&&Io()==32&&gr()==32))}function Sg(e){for(;gr();)switch(un){case e:return or;case 34:case 39:e!==34&&e!==39&&Sg(un);break;case 40:e===41&&Sg(e);break;case 92:gr();break}return or}function AT(e,t){for(;gr()&&e+un!==57;)if(e+un===84&&Io()===47)break;return"/*"+lc(t,or-1)+"*"+np(e===47?e:gr())}function DT(e){for(;!Du(Io());)gr();return lc(e,or)}function NT(e){return gS(Rd("",null,null,null,[""],e=mS(e),0,[0],e))}function Rd(e,t,n,r,o,i,l,a,c){for(var d=0,f=0,p=l,g=0,v=0,x=0,_=1,k=1,b=1,w=0,P="",M=o,E=i,$=r,T=P;k;)switch(x=w,w=gr()){case 40:if(x!=108&&Pn(T,p-1)==58){wg(T+=_t(Od(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Od(w);break;case 9:case 10:case 13:case 32:T+=$T(x);break;case 92:T+=zT(Td()-1,7);continue;case 47:switch(Io()){case 42:case 47:sd(BT(AT(gr(),Td()),t,n),c);break;default:T+="/"}break;case 123*_:a[d++]=_o(T)*b;case 125*_:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+f:b==-1&&(T=_t(T,/\f/g,"")),v>0&&_o(T)-p&&sd(v>32?y_(T+";",r,n,p-1):y_(_t(T," ","")+";",r,n,p-2),c);break;case 59:T+=";";default:if(sd($=v_(T,t,n,d,f,o,a,P,M=[],E=[],p),i),w===123)if(f===0)Rd(T,t,$,$,M,i,p,a,E);else switch(g===99&&Pn(T,3)===110?100:g){case 100:case 108:case 109:case 115:Rd(e,$,$,r&&sd(v_(e,$,$,0,0,o,a,P,o,M=[],p),E),o,E,p,a,r?M:E);break;default:Rd(T,$,$,$,[""],E,0,a,E)}}d=f=v=0,_=b=1,P=T="",p=l;break;case 58:p=1+_o(T),v=x;default:if(_<1){if(w==123)--_;else if(w==125&&_++==0&&FT()==125)continue}switch(T+=np(w),w*_){case 38:b=f>0?1:(T+="\f",-1);break;case 44:a[d++]=(_o(T)-1)*b,b=1;break;case 64:Io()===45&&(T+=Od(gr())),g=Io(),f=p=_o(P=T+=DT(Td())),w++;break;case 45:x===45&&_o(T)==2&&(_=0)}}return i}function v_(e,t,n,r,o,i,l,a,c,d,f){for(var p=o-1,g=o===0?i:[""],v=Jv(g),x=0,_=0,k=0;x0?g[b]+" "+w:_t(w,/&\f/g,g[b])))&&(c[k++]=P);return op(e,t,n,o===0?Yv:a,c,d,f)}function BT(e,t,n){return op(e,t,n,dS,np(RT()),Au(e,2,-2),0)}function y_(e,t,n,r){return op(e,t,n,Qv,Au(e,0,r),Au(e,r+1,-1),r)}function Fl(e,t){for(var n="",r=Jv(e),o=0;o6)switch(Pn(e,t+1)){case 109:if(Pn(e,t+4)!==45)break;case 102:return _t(e,/(.+:)(.+)-([^]+)/,"$1"+bt+"$2-$3$1"+vf+(Pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wg(e,"stretch")?vS(_t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pn(e,t+1)!==115)break;case 6444:switch(Pn(e,_o(e)-3-(~wg(e,"!important")&&10))){case 107:return _t(e,":",":"+bt)+e;case 101:return _t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bt+(Pn(e,14)===45?"inline-":"")+"box$3$1"+bt+"$2$3$1"+On+"$2box$3")+e}break;case 5936:switch(Pn(e,t+11)){case 114:return bt+e+On+_t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bt+e+On+_t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bt+e+On+_t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bt+e+On+e+e}return e}var qT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=vS(t.value,t.length);break;case fS:return Fl([Ba(t,{value:_t(t.value,"@","@"+bt)})],o);case Yv:if(t.length)return OT(t.props,function(i){switch(TT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fl([Ba(t,{props:[_t(i,/:(read-\w+)/,":"+vf+"$1")]})],o);case"::placeholder":return Fl([Ba(t,{props:[_t(i,/:(plac\w+)/,":"+bt+"input-$1")]}),Ba(t,{props:[_t(i,/:(plac\w+)/,":"+vf+"$1")]}),Ba(t,{props:[_t(i,/:(plac\w+)/,On+"input-$1")]})],o)}return""})}},XT=[qT],yS=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(_){var k=_.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||XT,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var k=_.getAttribute("data-emotion").split(" "),b=1;b=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 aO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uO=/[A-Z]|^ms/g,cO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PS=function(t){return t.charCodeAt(1)===45},__=function(t){return t!=null&&typeof t!="boolean"},rm=cS(function(e){return PS(e)?e:e.replace(uO,"-$&").toLowerCase()}),C_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cO,function(r,o,i){return Co={name:o,styles:i,next:Co},o})}return aO[t]!==1&&!PS(t)&&typeof n=="number"&&n!==0?n+"px":n};function Du(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Co={name:n.name,styles:n.styles,next:Co},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Co={name:r.name,styles:r.styles,next:Co},r=r.next;var o=n.styles+";";return o}return dO(e,t,n)}case"function":{if(e!==void 0){var i=Co,l=n(e);return Co=i,Du(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function dO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?gO:vO},k_=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},yO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return wS(n,r,o),pO(function(){return SS(n,r,o)}),null},bO=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=k_(t,n,r),c=a||P_(o),d=!c("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var g=f.length,v=1;vt(MO(o)?n:o):t;return S.jsx(mO,{styles:r})}function oy(e,t){return Pg(e,t)}const FS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},IO=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:RS,StyledEngineProvider:kO,ThemeContext:mp,css:Xl,default:oy,internal_processStyles:FS,keyframes:Wi},Symbol.toStringTag,{value:"Module"}));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 $S(e){if(!Wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$S(e[n])}),t}function Gn(e,t,n={clone:!0}){const r=n.clone?y({},e):e;return Wo(e)&&Wo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Wo(t[o])&&o in e&&Wo(e[o])?r[o]=Gn(e[o],t[o],n):n.clone?r[o]=Wo(t[o])?$S(t[o]):t[o]:r[o]=t[o])}),r}const EO=Object.freeze(Object.defineProperty({__proto__:null,default:Gn,isPlainObject:Wo},Symbol.toStringTag,{value:"Module"})),LO=["values","unit","step"],TO=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)=>y({},n,{[r.key]:r.val}),{})};function zS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,LO),i=TO(t),l=Object.keys(i);function a(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,v){const x=l.indexOf(v);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:v)-r/100}${n})`}function f(g){return l.indexOf(g)+1`@media (min-width:${iy[e]}px)`};function uo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||M_;return t.reduce((l,a,c)=>(l[i.up(i.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const i=r.breakpoints||M_;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||iy).indexOf(a)!==-1){const c=i.up(a);l[c]=n(t[a],a)}else{const c=a;l[c]=t[c]}return l},{})}return n(t)}function AS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function DS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function RO(e,...t){const n=AS(e),r=[n,...t].reduce((o,i)=>Gn(o,i),{});return DS(Object.keys(n),r)}function FO(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 im({values:e,breakpoints:t,base:n}){const r=n||FO(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,a,c)=>(Array.isArray(e)?(l[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(l[a]=e[a]!=null?e[a]:e[i],i=a):l[a]=e,l),{})}function ce(e){if(typeof e!="string")throw new Error(ei(7));return e.charAt(0).toUpperCase()+e.slice(1)}const $O=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));function Yl(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 vf(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Yl(e,n)||r,t&&(o=t(o,r,e)),o}function tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],c=l.theme,d=Yl(c,r)||{};return uo(l,a,p=>{let g=vf(d,o,p);return p===g&&typeof p=="string"&&(g=vf(d,o,`${t}${p==="default"?"":ce(p)}`,p)),n===!1?g:{[n]:g}})};return i.propTypes={},i.filterProps=[t],i}function zO(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const AO={m:"margin",p:"padding"},DO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},I_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NO=zO(e=>{if(e.length>2)if(I_[e])e=I_[e];else return[e];const[t,n]=e.split(""),r=AO[t],o=DO[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),sy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ly=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...sy,...ly];function lc(e,t,n,r){var o;const i=(o=Yl(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function ay(e){return lc(e,"spacing",8)}function ws(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function BO(e,t){return n=>e.reduce((r,o)=>(r[o]=ws(t,n),r),{})}function HO(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=NO(n),i=BO(o,r),l=e[n];return uo(e,l,i)}function NS(e,t){const n=ay(e.theme);return Object.keys(e).map(r=>HO(e,t,r,n)).reduce(fu,{})}function Zt(e){return NS(e,sy)}Zt.propTypes={};Zt.filterProps=sy;function Kt(e){return NS(e,ly)}Kt.propTypes={};Kt.filterProps=ly;function jO(e=8){if(e.mui)return e;const t=ay({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function gp(...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]?fu(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function $r(e){return typeof e!="number"?e:`${e}px solid`}function Zr(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const GO=Zr("border",$r),VO=Zr("borderTop",$r),WO=Zr("borderRight",$r),UO=Zr("borderBottom",$r),ZO=Zr("borderLeft",$r),KO=Zr("borderColor"),qO=Zr("borderTopColor"),XO=Zr("borderRightColor"),YO=Zr("borderBottomColor"),QO=Zr("borderLeftColor"),JO=Zr("outline",$r),eR=Zr("outlineColor"),vp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ws(t,r)});return uo(e,e.borderRadius,n)}return null};vp.propTypes={};vp.filterProps=["borderRadius"];gp(GO,VO,WO,UO,ZO,KO,qO,XO,YO,QO,vp,JO,eR);const yp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lc(e.theme,"spacing",8),n=r=>({gap:ws(t,r)});return uo(e,e.gap,n)}return null};yp.propTypes={};yp.filterProps=["gap"];const bp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({columnGap:ws(t,r)});return uo(e,e.columnGap,n)}return null};bp.propTypes={};bp.filterProps=["columnGap"];const _p=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({rowGap:ws(t,r)});return uo(e,e.rowGap,n)}return null};_p.propTypes={};_p.filterProps=["rowGap"];const tR=tn({prop:"gridColumn"}),nR=tn({prop:"gridRow"}),rR=tn({prop:"gridAutoFlow"}),oR=tn({prop:"gridAutoColumns"}),iR=tn({prop:"gridAutoRows"}),sR=tn({prop:"gridTemplateColumns"}),lR=tn({prop:"gridTemplateRows"}),aR=tn({prop:"gridTemplateAreas"}),uR=tn({prop:"gridArea"});gp(yp,bp,_p,tR,nR,rR,oR,iR,sR,lR,aR,uR);function $l(e,t){return t==="grey"?t:e}const cR=tn({prop:"color",themeKey:"palette",transform:$l}),dR=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$l}),fR=tn({prop:"backgroundColor",themeKey:"palette",transform:$l});gp(cR,dR,fR);function fr(e){return e<=1&&e!==0?`${e*100}%`:e}const pR=tn({prop:"width",transform:fr}),uy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||iy[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:fr(n)}};return uo(e,e.maxWidth,t)}return null};uy.filterProps=["maxWidth"];const hR=tn({prop:"minWidth",transform:fr}),mR=tn({prop:"height",transform:fr}),gR=tn({prop:"maxHeight",transform:fr}),vR=tn({prop:"minHeight",transform:fr});tn({prop:"size",cssProperty:"width",transform:fr});tn({prop:"size",cssProperty:"height",transform:fr});const yR=tn({prop:"boxSizing"});gp(pR,uy,hR,mR,gR,vR,yR);const ac={border:{themeKey:"borders",transform:$r},borderTop:{themeKey:"borders",transform:$r},borderRight:{themeKey:"borders",transform:$r},borderBottom:{themeKey:"borders",transform:$r},borderLeft:{themeKey:"borders",transform:$r},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$r},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vp},color:{themeKey:"palette",transform:$l},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$l},backgroundColor:{themeKey:"palette",transform:$l},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},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:yp},rowGap:{style:_p},columnGap:{style:bp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fr},maxWidth:{style:uy},minWidth:{transform:fr},height:{transform:fr},maxHeight:{transform:fr},minHeight:{transform:fr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function bR(...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 _R(e,t){return typeof e=="function"?e(t):e}function BS(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:f,style:p}=a;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=Yl(o,d)||{};return p?p(l):uo(l,r,x=>{let _=vf(g,f,x);return x===_&&typeof x=="string"&&(_=vf(g,f,`${n}${x==="default"?"":ce(x)}`,x)),c===!1?_:{[c]:_}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:ac;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const f=AS(i.breakpoints),p=Object.keys(f);let g=f;return Object.keys(d).forEach(v=>{const x=_R(d[v],i);if(x!=null)if(typeof x=="object")if(l[v])g=fu(g,e(v,x,i,l));else{const _=uo({theme:i},x,k=>({[v]:k}));bR(_,x)?g[v]=t({sx:x,theme:i}):g=fu(g,_)}else g=fu(g,e(v,x,i,l))}),DS(p,g)}return Array.isArray(o)?o.map(a):a(o)}return t}const ca=BS();ca.filterProps=["sx"];function HS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const CR=["breakpoints","palette","spacing","shape"];function da(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=se(e,CR),a=zS(n),c=jO(o);let d=Gn({breakpoints:a,direction:"ltr",components:{},palette:y({mode:"light"},r),spacing:c,shape:y({},OO,i)},l);return d.applyStyles=HS,d=t.reduce((f,p)=>Gn(f,p),d),d.unstable_sxConfig=y({},ac,l==null?void 0:l.unstable_sxConfig),d.unstable_sx=function(p){return ca({sx:p,theme:this})},d}const xR=Object.freeze(Object.defineProperty({__proto__:null,default:da,private_createBreakpoints:zS,unstable_applyStyles:HS},Symbol.toStringTag,{value:"Module"}));function wR(e){return Object.keys(e).length===0}function SR(e=null){const t=m.useContext(mp);return!t||wR(t)?e:t}const PR=da();function Cp(e=PR){return SR(e)}function kR({styles:e,themeId:t,defaultTheme:n={}}){const r=Cp(n),o=typeof e=="function"?e(t&&r[t]||r):e;return S.jsx(RS,{styles:o})}const MR=["sx"],IR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ac;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function xp(e){const{sx:t}=e,n=se(e,MR),{systemProps:r,otherProps:o}=IR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Wo(a)?y({},r,a):r}:i=y({},r,t),y({},o,{sx:i})}const ER=Object.freeze(Object.defineProperty({__proto__:null,default:ca,extendSxProp:xp,unstable_createStyleFunctionSx:BS,unstable_defaultSxConfig:ac},Symbol.toStringTag,{value:"Module"})),E_=e=>e,LR=()=>{let e=E_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=E_}}},cy=LR();function jS(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(ca);return m.forwardRef(function(c,d){const f=Cp(n),p=xp(c),{className:g,component:v="div"}=p,x=se(p,TR);return S.jsx(i,y({as:v,ref:d,className:pe(g,o?o(r):r),theme:t&&f[t]||f},x))})}const GS={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 We(e,t,n="Mui"){const r=GS[t];return r?`${n}-${r}`:`${cy.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=We(e,o,n)}),r}var VS={exports:{}},kt={};/** + */var Cn=typeof Symbol=="function"&&Symbol.for,ey=Cn?Symbol.for("react.element"):60103,ty=Cn?Symbol.for("react.portal"):60106,ip=Cn?Symbol.for("react.fragment"):60107,sp=Cn?Symbol.for("react.strict_mode"):60108,lp=Cn?Symbol.for("react.profiler"):60114,ap=Cn?Symbol.for("react.provider"):60109,up=Cn?Symbol.for("react.context"):60110,ny=Cn?Symbol.for("react.async_mode"):60111,cp=Cn?Symbol.for("react.concurrent_mode"):60111,dp=Cn?Symbol.for("react.forward_ref"):60112,fp=Cn?Symbol.for("react.suspense"):60113,YT=Cn?Symbol.for("react.suspense_list"):60120,pp=Cn?Symbol.for("react.memo"):60115,hp=Cn?Symbol.for("react.lazy"):60116,QT=Cn?Symbol.for("react.block"):60121,JT=Cn?Symbol.for("react.fundamental"):60117,eO=Cn?Symbol.for("react.responder"):60118,tO=Cn?Symbol.for("react.scope"):60119;function xr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ey:switch(e=e.type,e){case ny:case cp:case ip:case lp:case sp:case fp:return e;default:switch(e=e&&e.$$typeof,e){case up:case dp:case hp:case pp:case ap:return e;default:return t}}case ty:return t}}}function _S(e){return xr(e)===cp}Pt.AsyncMode=ny;Pt.ConcurrentMode=cp;Pt.ContextConsumer=up;Pt.ContextProvider=ap;Pt.Element=ey;Pt.ForwardRef=dp;Pt.Fragment=ip;Pt.Lazy=hp;Pt.Memo=pp;Pt.Portal=ty;Pt.Profiler=lp;Pt.StrictMode=sp;Pt.Suspense=fp;Pt.isAsyncMode=function(e){return _S(e)||xr(e)===ny};Pt.isConcurrentMode=_S;Pt.isContextConsumer=function(e){return xr(e)===up};Pt.isContextProvider=function(e){return xr(e)===ap};Pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ey};Pt.isForwardRef=function(e){return xr(e)===dp};Pt.isFragment=function(e){return xr(e)===ip};Pt.isLazy=function(e){return xr(e)===hp};Pt.isMemo=function(e){return xr(e)===pp};Pt.isPortal=function(e){return xr(e)===ty};Pt.isProfiler=function(e){return xr(e)===lp};Pt.isStrictMode=function(e){return xr(e)===sp};Pt.isSuspense=function(e){return xr(e)===fp};Pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ip||e===cp||e===lp||e===sp||e===fp||e===YT||typeof e=="object"&&e!==null&&(e.$$typeof===hp||e.$$typeof===pp||e.$$typeof===ap||e.$$typeof===up||e.$$typeof===dp||e.$$typeof===JT||e.$$typeof===eO||e.$$typeof===tO||e.$$typeof===QT)};Pt.typeOf=xr;bS.exports=Pt;var nO=bS.exports,CS=nO,rO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xS={};xS[CS.ForwardRef]=rO;xS[CS.Memo]=oO;var iO=!0;function sO(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var wS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||iO===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},SS=function(t,n,r){wS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function lO(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uO=/[A-Z]|^ms/g,cO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PS=function(t){return t.charCodeAt(1)===45},__=function(t){return t!=null&&typeof t!="boolean"},rm=cS(function(e){return PS(e)?e:e.replace(uO,"-$&").toLowerCase()}),C_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cO,function(r,o,i){return Co={name:o,styles:i,next:Co},o})}return aO[t]!==1&&!PS(t)&&typeof n=="number"&&n!==0?n+"px":n};function Nu(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Co={name:n.name,styles:n.styles,next:Co},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Co={name:r.name,styles:r.styles,next:Co},r=r.next;var o=n.styles+";";return o}return dO(e,t,n)}case"function":{if(e!==void 0){var i=Co,l=n(e);return Co=i,Nu(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function dO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?gO:vO},k_=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},yO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return wS(n,r,o),pO(function(){return SS(n,r,o)}),null},bO=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=k_(t,n,r),c=a||P_(o),d=!c("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var g=f.length,v=1;vt(MO(o)?n:o):t;return S.jsx(mO,{styles:r})}function oy(e,t){return Pg(e,t)}const FS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},IO=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:RS,StyledEngineProvider:kO,ThemeContext:mp,css:Xl,default:oy,internal_processStyles:FS,keyframes:Wi},Symbol.toStringTag,{value:"Module"}));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 $S(e){if(!Wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$S(e[n])}),t}function Gn(e,t,n={clone:!0}){const r=n.clone?y({},e):e;return Wo(e)&&Wo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Wo(t[o])&&o in e&&Wo(e[o])?r[o]=Gn(e[o],t[o],n):n.clone?r[o]=Wo(t[o])?$S(t[o]):t[o]:r[o]=t[o])}),r}const EO=Object.freeze(Object.defineProperty({__proto__:null,default:Gn,isPlainObject:Wo},Symbol.toStringTag,{value:"Module"})),LO=["values","unit","step"],TO=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)=>y({},n,{[r.key]:r.val}),{})};function zS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,LO),i=TO(t),l=Object.keys(i);function a(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,v){const x=l.indexOf(v);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:v)-r/100}${n})`}function f(g){return l.indexOf(g)+1`@media (min-width:${iy[e]}px)`};function uo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||M_;return t.reduce((l,a,c)=>(l[i.up(i.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const i=r.breakpoints||M_;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||iy).indexOf(a)!==-1){const c=i.up(a);l[c]=n(t[a],a)}else{const c=a;l[c]=t[c]}return l},{})}return n(t)}function AS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function DS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function RO(e,...t){const n=AS(e),r=[n,...t].reduce((o,i)=>Gn(o,i),{});return DS(Object.keys(n),r)}function FO(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 im({values:e,breakpoints:t,base:n}){const r=n||FO(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,a,c)=>(Array.isArray(e)?(l[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(l[a]=e[a]!=null?e[a]:e[i],i=a):l[a]=e,l),{})}function ce(e){if(typeof e!="string")throw new Error(ei(7));return e.charAt(0).toUpperCase()+e.slice(1)}const $O=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"}));function Yl(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 yf(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Yl(e,n)||r,t&&(o=t(o,r,e)),o}function tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],c=l.theme,d=Yl(c,r)||{};return uo(l,a,p=>{let g=yf(d,o,p);return p===g&&typeof p=="string"&&(g=yf(d,o,`${t}${p==="default"?"":ce(p)}`,p)),n===!1?g:{[n]:g}})};return i.propTypes={},i.filterProps=[t],i}function zO(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const AO={m:"margin",p:"padding"},DO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},I_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NO=zO(e=>{if(e.length>2)if(I_[e])e=I_[e];else return[e];const[t,n]=e.split(""),r=AO[t],o=DO[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),sy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ly=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...sy,...ly];function ac(e,t,n,r){var o;const i=(o=Yl(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function ay(e){return ac(e,"spacing",8)}function ws(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function BO(e,t){return n=>e.reduce((r,o)=>(r[o]=ws(t,n),r),{})}function HO(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=NO(n),i=BO(o,r),l=e[n];return uo(e,l,i)}function NS(e,t){const n=ay(e.theme);return Object.keys(e).map(r=>HO(e,t,r,n)).reduce(fu,{})}function Zt(e){return NS(e,sy)}Zt.propTypes={};Zt.filterProps=sy;function Kt(e){return NS(e,ly)}Kt.propTypes={};Kt.filterProps=ly;function jO(e=8){if(e.mui)return e;const t=ay({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function gp(...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]?fu(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function $r(e){return typeof e!="number"?e:`${e}px solid`}function Zr(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const GO=Zr("border",$r),VO=Zr("borderTop",$r),WO=Zr("borderRight",$r),UO=Zr("borderBottom",$r),ZO=Zr("borderLeft",$r),KO=Zr("borderColor"),qO=Zr("borderTopColor"),XO=Zr("borderRightColor"),YO=Zr("borderBottomColor"),QO=Zr("borderLeftColor"),JO=Zr("outline",$r),eR=Zr("outlineColor"),vp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ac(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ws(t,r)});return uo(e,e.borderRadius,n)}return null};vp.propTypes={};vp.filterProps=["borderRadius"];gp(GO,VO,WO,UO,ZO,KO,qO,XO,YO,QO,vp,JO,eR);const yp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ac(e.theme,"spacing",8),n=r=>({gap:ws(t,r)});return uo(e,e.gap,n)}return null};yp.propTypes={};yp.filterProps=["gap"];const bp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ac(e.theme,"spacing",8),n=r=>({columnGap:ws(t,r)});return uo(e,e.columnGap,n)}return null};bp.propTypes={};bp.filterProps=["columnGap"];const _p=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ac(e.theme,"spacing",8),n=r=>({rowGap:ws(t,r)});return uo(e,e.rowGap,n)}return null};_p.propTypes={};_p.filterProps=["rowGap"];const tR=tn({prop:"gridColumn"}),nR=tn({prop:"gridRow"}),rR=tn({prop:"gridAutoFlow"}),oR=tn({prop:"gridAutoColumns"}),iR=tn({prop:"gridAutoRows"}),sR=tn({prop:"gridTemplateColumns"}),lR=tn({prop:"gridTemplateRows"}),aR=tn({prop:"gridTemplateAreas"}),uR=tn({prop:"gridArea"});gp(yp,bp,_p,tR,nR,rR,oR,iR,sR,lR,aR,uR);function $l(e,t){return t==="grey"?t:e}const cR=tn({prop:"color",themeKey:"palette",transform:$l}),dR=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$l}),fR=tn({prop:"backgroundColor",themeKey:"palette",transform:$l});gp(cR,dR,fR);function fr(e){return e<=1&&e!==0?`${e*100}%`:e}const pR=tn({prop:"width",transform:fr}),uy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||iy[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:fr(n)}};return uo(e,e.maxWidth,t)}return null};uy.filterProps=["maxWidth"];const hR=tn({prop:"minWidth",transform:fr}),mR=tn({prop:"height",transform:fr}),gR=tn({prop:"maxHeight",transform:fr}),vR=tn({prop:"minHeight",transform:fr});tn({prop:"size",cssProperty:"width",transform:fr});tn({prop:"size",cssProperty:"height",transform:fr});const yR=tn({prop:"boxSizing"});gp(pR,uy,hR,mR,gR,vR,yR);const uc={border:{themeKey:"borders",transform:$r},borderTop:{themeKey:"borders",transform:$r},borderRight:{themeKey:"borders",transform:$r},borderBottom:{themeKey:"borders",transform:$r},borderLeft:{themeKey:"borders",transform:$r},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$r},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vp},color:{themeKey:"palette",transform:$l},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$l},backgroundColor:{themeKey:"palette",transform:$l},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},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:yp},rowGap:{style:_p},columnGap:{style:bp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fr},maxWidth:{style:uy},minWidth:{transform:fr},height:{transform:fr},maxHeight:{transform:fr},minHeight:{transform:fr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function bR(...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 _R(e,t){return typeof e=="function"?e(t):e}function BS(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:f,style:p}=a;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=Yl(o,d)||{};return p?p(l):uo(l,r,x=>{let _=yf(g,f,x);return x===_&&typeof x=="string"&&(_=yf(g,f,`${n}${x==="default"?"":ce(x)}`,x)),c===!1?_:{[c]:_}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:uc;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const f=AS(i.breakpoints),p=Object.keys(f);let g=f;return Object.keys(d).forEach(v=>{const x=_R(d[v],i);if(x!=null)if(typeof x=="object")if(l[v])g=fu(g,e(v,x,i,l));else{const _=uo({theme:i},x,k=>({[v]:k}));bR(_,x)?g[v]=t({sx:x,theme:i}):g=fu(g,_)}else g=fu(g,e(v,x,i,l))}),DS(p,g)}return Array.isArray(o)?o.map(a):a(o)}return t}const ca=BS();ca.filterProps=["sx"];function HS(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const CR=["breakpoints","palette","spacing","shape"];function da(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=se(e,CR),a=zS(n),c=jO(o);let d=Gn({breakpoints:a,direction:"ltr",components:{},palette:y({mode:"light"},r),spacing:c,shape:y({},OO,i)},l);return d.applyStyles=HS,d=t.reduce((f,p)=>Gn(f,p),d),d.unstable_sxConfig=y({},uc,l==null?void 0:l.unstable_sxConfig),d.unstable_sx=function(p){return ca({sx:p,theme:this})},d}const xR=Object.freeze(Object.defineProperty({__proto__:null,default:da,private_createBreakpoints:zS,unstable_applyStyles:HS},Symbol.toStringTag,{value:"Module"}));function wR(e){return Object.keys(e).length===0}function SR(e=null){const t=m.useContext(mp);return!t||wR(t)?e:t}const PR=da();function Cp(e=PR){return SR(e)}function kR({styles:e,themeId:t,defaultTheme:n={}}){const r=Cp(n),o=typeof e=="function"?e(t&&r[t]||r):e;return S.jsx(RS,{styles:o})}const MR=["sx"],IR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:uc;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function xp(e){const{sx:t}=e,n=se(e,MR),{systemProps:r,otherProps:o}=IR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Wo(a)?y({},r,a):r}:i=y({},r,t),y({},o,{sx:i})}const ER=Object.freeze(Object.defineProperty({__proto__:null,default:ca,extendSxProp:xp,unstable_createStyleFunctionSx:BS,unstable_defaultSxConfig:uc},Symbol.toStringTag,{value:"Module"})),E_=e=>e,LR=()=>{let e=E_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=E_}}},cy=LR();function jS(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(ca);return m.forwardRef(function(c,d){const f=Cp(n),p=xp(c),{className:g,component:v="div"}=p,x=se(p,TR);return S.jsx(i,y({as:v,ref:d,className:pe(g,o?o(r):r),theme:t&&f[t]||f},x))})}const GS={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 We(e,t,n="Mui"){const r=GS[t];return r?`${n}-${r}`:`${cy.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=We(e,o,n)}),r}var VS={exports:{}},kt={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dy=Symbol.for("react.element"),fy=Symbol.for("react.portal"),wp=Symbol.for("react.fragment"),Sp=Symbol.for("react.strict_mode"),Pp=Symbol.for("react.profiler"),kp=Symbol.for("react.provider"),Mp=Symbol.for("react.context"),RR=Symbol.for("react.server_context"),Ip=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),Lp=Symbol.for("react.suspense_list"),Tp=Symbol.for("react.memo"),Op=Symbol.for("react.lazy"),FR=Symbol.for("react.offscreen"),WS;WS=Symbol.for("react.module.reference");function Kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dy:switch(e=e.type,e){case wp:case Pp:case Sp:case Ep:case Lp:return e;default:switch(e=e&&e.$$typeof,e){case RR:case Mp:case Ip:case Op:case Tp:case kp:return e;default:return t}}case fy:return t}}}kt.ContextConsumer=Mp;kt.ContextProvider=kp;kt.Element=dy;kt.ForwardRef=Ip;kt.Fragment=wp;kt.Lazy=Op;kt.Memo=Tp;kt.Portal=fy;kt.Profiler=Pp;kt.StrictMode=Sp;kt.Suspense=Ep;kt.SuspenseList=Lp;kt.isAsyncMode=function(){return!1};kt.isConcurrentMode=function(){return!1};kt.isContextConsumer=function(e){return Kr(e)===Mp};kt.isContextProvider=function(e){return Kr(e)===kp};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dy};kt.isForwardRef=function(e){return Kr(e)===Ip};kt.isFragment=function(e){return Kr(e)===wp};kt.isLazy=function(e){return Kr(e)===Op};kt.isMemo=function(e){return Kr(e)===Tp};kt.isPortal=function(e){return Kr(e)===fy};kt.isProfiler=function(e){return Kr(e)===Pp};kt.isStrictMode=function(e){return Kr(e)===Sp};kt.isSuspense=function(e){return Kr(e)===Ep};kt.isSuspenseList=function(e){return Kr(e)===Lp};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wp||e===Pp||e===Sp||e===Ep||e===Lp||e===FR||typeof e=="object"&&e!==null&&(e.$$typeof===Op||e.$$typeof===Tp||e.$$typeof===kp||e.$$typeof===Mp||e.$$typeof===Ip||e.$$typeof===WS||e.getModuleId!==void 0)};kt.typeOf=Kr;VS.exports=kt;var L_=VS.exports;const $R=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function US(e){const t=`${e}`.match($R);return t&&t[1]||""}function ZS(e,t=""){return e.displayName||e.name||US(e)||t}function T_(e,t,n){const r=ZS(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function zR(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ZS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case L_.ForwardRef:return T_(e,e.render,"ForwardRef");case L_.Memo:return T_(e,e.type,"memo");default:return}}}const AR=Object.freeze(Object.defineProperty({__proto__:null,default:zR,getFunctionName:US},Symbol.toStringTag,{value:"Module"})),DR=["ownerState"],NR=["variants"],BR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function HR(e){return Object.keys(e).length===0}function jR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GR=da(),VR=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function sd({defaultTheme:e,theme:t,themeId:n}){return HR(t)?e:t[n]||t}function WR(e){return e?(t,n)=>n[e]:null}function Rd(e,t){let{ownerState:n}=t,r=se(t,DR);const o=typeof e=="function"?e(y({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Rd(i,y({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=se(o,NR);return i.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props(y({ownerState:n},r,n)):Object.keys(c.props).forEach(f=>{(n==null?void 0:n[f])!==c.props[f]&&r[f]!==c.props[f]&&(d=!1)}),d&&(Array.isArray(a)||(a=[a]),a.push(typeof c.style=="function"?c.style(y({ownerState:n},r,n)):c.style))}),a}return o}function UR(e={}){const{themeId:t,defaultTheme:n=GR,rootShouldForwardProp:r=sm,slotShouldForwardProp:o=sm}=e,i=l=>ca(y({},l,{theme:sd(y({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{FS(l,E=>E.filter($=>!($!=null&&$.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:g=WR(VR(d))}=a,v=se(a,BR),x=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,_=p||!1;let k,b=sm;d==="Root"||d==="root"?b=r:d?b=o:jR(l)&&(b=void 0);const w=oy(l,y({shouldForwardProp:b,label:k},v)),P=E=>typeof E=="function"&&E.__emotion_real!==E||Wo(E)?$=>Rd(E,y({},$,{theme:sd({theme:$.theme,defaultTheme:n,themeId:t})})):E,M=(E,...$)=>{let T=P(E);const F=$?$.map(P):[];c&&g&&F.push(W=>{const j=sd(y({},W,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[c]||!j.components[c].styleOverrides)return null;const D=j.components[c].styleOverrides,R={};return Object.entries(D).forEach(([z,O])=>{R[z]=Rd(O,y({},W,{theme:j}))}),g(W,R)}),c&&!x&&F.push(W=>{var j;const D=sd(y({},W,{defaultTheme:n,themeId:t})),R=D==null||(j=D.components)==null||(j=j[c])==null?void 0:j.variants;return Rd({variants:R},y({},W,{theme:D}))}),_||F.push(i);const B=F.length-$.length;if(Array.isArray(E)&&B>0){const W=new Array(B).fill("");T=[...E,...W],T.raw=[...E.raw,...W]}const H=w(T,...F);return l.muiName&&(H.muiName=l.muiName),H};return w.withConfig&&(M.withConfig=w.withConfig),M}}const xt=UR();function py(e,t){const n=y({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=y({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=y({},i),Object.keys(o).forEach(l=>{n[r][l]=py(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ZR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:py(t.components[n].defaultProps,r)}function hy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Cp(n);return r&&(o=o[r]||o),ZR({theme:o,name:t,props:e})}const Mt=typeof window<"u"?m.useLayoutEffect:m.useEffect;function KS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const KR=Object.freeze(Object.defineProperty({__proto__:null,default:KS},Symbol.toStringTag,{value:"Module"}));function my(e,t=0,n=1){return KS(e,t,n)}function qR(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 Ql(e){if(e.type)return e;if(e.charAt(0)==="#")return Ql(qR(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ei(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ei(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Rp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fs(e,t){return e=Ql(e),t=my(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rp(e)}function XR(e,t){if(e=Ql(e),t=my(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Rp(e)}function YR(e,t){if(e=Ql(e),t=my(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Rp(e)}function Mg(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Fp(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 QR(e,t){return()=>null}function Fd(e,t){var n,r;return m.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zt(e){return e&&e.ownerDocument||document}function ti(e){return zt(e).defaultView||window}function JR(e,t){return()=>null}function Nu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let O_=0;function e2(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(O_+=1,n(`mui-${O_}`))},[t]),r}const R_=Vd.useId;function Ot(e){if(R_!==void 0){const t=R_();return e??t}return e2(e)}function t2(e,t,n,r,o){return null}function zi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,l]=m.useState(t),a=o?e:i,c=m.useCallback(d=>{o||l(d)},[]);return[a,c]}function at(e){const t=m.useRef(e);return Mt(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function Ct(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Nu(n,t)})},e)}const F_={};function Ls(e,t){const n=m.useRef(F_);return n.current===F_&&(n.current=e(t)),n}const n2=[];function $p(e){m.useEffect(e,n2)}class uc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new uc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Dr(){const e=Ls(uc.create).current;return $p(e.disposeEffect),e}let zp=!0,Ig=!1;const r2=new uc,o2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i2(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&o2[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function s2(e){e.metaKey||e.altKey||e.ctrlKey||(zp=!0)}function lm(){zp=!1}function l2(){this.visibilityState==="hidden"&&Ig&&(zp=!0)}function a2(e){e.addEventListener("keydown",s2,!0),e.addEventListener("mousedown",lm,!0),e.addEventListener("pointerdown",lm,!0),e.addEventListener("touchstart",lm,!0),e.addEventListener("visibilitychange",l2,!0)}function u2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return zp||i2(t)}function Ap(){const e=m.useCallback(o=>{o!=null&&a2(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(Ig=!0,r2.start(100,()=>{Ig=!1}),t.current=!1,!0):!1}function r(o){return u2(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function qS(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const gy=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current};function xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const c2=m.createContext(),vy=()=>{const e=m.useContext(c2);return e??!1};function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function d2(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Hu(e){var t=d2(e,"string");return Bu(t)=="symbol"?t:t+""}const f2=["className","component","disableGutters","fixed","maxWidth","classes"],p2=da(),h2=xt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),m2=e=>hy({props:e,name:"MuiContainer",defaultTheme:p2}),g2=(e,t)=>{const n=c=>We(t,c),{classes:r,fixed:o,disableGutters:i,maxWidth:l}=e,a={root:["root",l&&`maxWidth${ce(String(l))}`,o&&"fixed",i&&"disableGutters"]};return xe(a,n,r)};function v2(e={}){const{createStyledComponent:t=h2,useThemeProps:n=m2,componentName:r="MuiContainer"}=e,o=t(({theme:l,ownerState:a})=>y({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}),({theme:l,ownerState:a})=>a.fixed&&Object.keys(l.breakpoints.values).reduce((c,d)=>{const f=d,p=l.breakpoints.values[f];return p!==0&&(c[l.breakpoints.up(f)]={maxWidth:`${p}${l.breakpoints.unit}`}),c},{}),({theme:l,ownerState:a})=>y({},a.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[l.breakpoints.up(a.maxWidth)]:{maxWidth:`${l.breakpoints.values[a.maxWidth]}${l.breakpoints.unit}`}}));return m.forwardRef(function(a,c){const d=n(a),{className:f,component:p="div",disableGutters:g=!1,fixed:v=!1,maxWidth:x="lg"}=d,_=se(d,f2),k=y({},d,{component:p,disableGutters:g,fixed:v,maxWidth:x}),b=g2(k,r);return S.jsx(o,y({as:p,ownerState:k,className:pe(b.root,f),ref:c},_))})}const y2=["component","direction","spacing","divider","children","className","useFlexGap"],b2=da(),_2=xt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function C2(e){return hy({props:e,name:"MuiStack",defaultTheme:b2})}function x2(e,t){const n=m.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],S2=({ownerState:e,theme:t})=>{let n=y({display:"flex",flexDirection:"column"},uo({theme:t},im({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ay(t),o=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),i=im({values:e.direction,base:o}),l=im({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,d,f)=>{if(!i[c]){const g=d>0?i[f[d-1]]:"column";i[c]=g}}),n=Gn(n,uo({theme:t},l,(c,d)=>e.useFlexGap?{gap:ws(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${w2(d?i[d]:e.direction)}`]:ws(r,c)}}))}return n=RO(t.breakpoints,n),n};function P2(e={}){const{createStyledComponent:t=_2,useThemeProps:n=C2,componentName:r="MuiStack"}=e,o=()=>xe({root:["root"]},c=>We(r,c),{}),i=t(S2);return m.forwardRef(function(c,d){const f=n(c),p=xp(f),{component:g="div",direction:v="column",spacing:x=0,divider:_,children:k,className:b,useFlexGap:w=!1}=p,P=se(p,y2),M={direction:v,spacing:x,useFlexGap:w},E=o();return S.jsx(i,y({as:g,ownerState:M,ref:d,className:pe(E.root,b)},P,{children:_?x2(k,_):k}))})}function k2(e,t){return y({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var nn={},XS={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})(XS);var Dp=XS.exports;const M2=br(_T),I2=br(KR);var YS=Dp;Object.defineProperty(nn,"__esModule",{value:!0});var mt=nn.alpha=tP;nn.blend=N2;nn.colorChannel=void 0;var yf=nn.darken=by;nn.decomposeColor=Vr;nn.emphasize=nP;var E2=nn.getContrastRatio=F2;nn.getLuminance=_f;nn.hexToRgb=QS;nn.hslToRgb=eP;var bf=nn.lighten=_y;nn.private_safeAlpha=$2;nn.private_safeColorChannel=void 0;nn.private_safeDarken=z2;nn.private_safeEmphasize=D2;nn.private_safeLighten=A2;nn.recomposeColor=fa;nn.rgbToHex=R2;var $_=YS(M2),L2=YS(I2);function yy(e,t=0,n=1){return(0,L2.default)(e,t,n)}function QS(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 T2(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Vr(e){if(e.type)return e;if(e.charAt(0)==="#")return Vr(QS(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,$_.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,$_.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const JS=e=>{const t=Vr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};nn.colorChannel=JS;const O2=(e,t)=>{try{return JS(e)}catch{return e}};nn.private_safeColorChannel=O2;function fa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function R2(e){if(e.indexOf("#")===0)return e;const{values:t}=Vr(e);return`#${t.map((n,r)=>T2(r===3?Math.round(255*n):n)).join("")}`}function eP(e){e=Vr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),fa({type:a,values:c})}function _f(e){e=Vr(e);let t=e.type==="hsl"||e.type==="hsla"?Vr(eP(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 F2(e,t){const n=_f(e),r=_f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function tP(e,t){return e=Vr(e),t=yy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fa(e)}function $2(e,t,n){try{return tP(e,t)}catch{return e}}function by(e,t){if(e=Vr(e),t=yy(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return fa(e)}function z2(e,t,n){try{return by(e,t)}catch{return e}}function _y(e,t){if(e=Vr(e),t=yy(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return fa(e)}function A2(e,t,n){try{return _y(e,t)}catch{return e}}function nP(e,t=.15){return _f(e)>.5?by(e,t):_y(e,t)}function D2(e,t,n){try{return nP(e,t)}catch{return e}}function N2(e,t,n,r=1){const o=(c,d)=>Math.round((c**(1/r)*(1-n)+d**(1/r)*n)**r),i=Vr(e),l=Vr(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return fa({type:"rgb",values:a})}const B2=["mode","contrastThreshold","tonalOffset"],z_={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:$u.white,default:$u.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}},am={text:{primary:$u.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:$u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A_(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=bf(e.main,o):t==="dark"&&(e.dark=yf(e.main,i)))}function H2(e="light"){return e==="dark"?{main:Js[200],light:Js[50],dark:Js[400]}:{main:Js[700],light:Js[400],dark:Js[800]}}function j2(e="light"){return e==="dark"?{main:Qs[200],light:Qs[50],dark:Qs[400]}:{main:Qs[500],light:Qs[300],dark:Qs[700]}}function G2(e="light"){return e==="dark"?{main:Ys[500],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[400],dark:Ys[800]}}function V2(e="light"){return e==="dark"?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}function W2(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}function U2(e="light"){return e==="dark"?{main:Na[400],light:Na[300],dark:Na[700]}:{main:"#ed6c02",light:Na[500],dark:Na[900]}}function Z2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,B2),i=e.primary||H2(t),l=e.secondary||j2(t),a=e.error||G2(t),c=e.info||V2(t),d=e.success||W2(t),f=e.warning||U2(t);function p(_){return E2(_,am.text.primary)>=n?am.text.primary:z_.text.primary}const g=({color:_,name:k,mainShade:b=500,lightShade:w=300,darkShade:P=700})=>{if(_=y({},_),!_.main&&_[b]&&(_.main=_[b]),!_.hasOwnProperty("main"))throw new Error(ei(11,k?` (${k})`:"",b));if(typeof _.main!="string")throw new Error(ei(12,k?` (${k})`:"",JSON.stringify(_.main)));return A_(_,"light",w,r),A_(_,"dark",P,r),_.contrastText||(_.contrastText=p(_.main)),_},v={dark:am,light:z_};return Gn(y({common:y({},$u),mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:a,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:d,name:"success"}),grey:bT,contrastThreshold:n,getContrastText:p,augmentColor:g,tonalOffset:r},v[t]),o)}const K2=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function q2(e){return Math.round(e*1e5)/1e5}const D_={textTransform:"uppercase"},N_='"Roboto", "Helvetica", "Arial", sans-serif';function X2(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=N_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=n,g=se(n,K2),v=o/14,x=p||(b=>`${b/d*v}rem`),_=(b,w,P,M,E)=>y({fontFamily:r,fontWeight:b,fontSize:x(w),lineHeight:P},r===N_?{letterSpacing:`${q2(M/w)}em`}:{},E,f),k={h1:_(i,96,1.167,-1.5),h2:_(i,60,1.2,-.5),h3:_(l,48,1.167,0),h4:_(l,34,1.235,.25),h5:_(l,24,1.334,0),h6:_(a,20,1.6,.15),subtitle1:_(l,16,1.75,.15),subtitle2:_(a,14,1.57,.1),body1:_(l,16,1.5,.15),body2:_(l,14,1.43,.15),button:_(a,14,1.75,.4,D_),caption:_(l,12,1.66,.4),overline:_(l,12,2.66,1,D_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gn(y({htmlFontSize:d,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:c},k),g,{clone:!1})}const Y2=.2,Q2=.14,J2=.12;function Bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Y2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Q2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${J2})`].join(",")}const eF=["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)],tF=["duration","easing","delay"],nF={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)"},rF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function B_(e){return`${Math.round(e)}ms`}function oF(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function iF(e){const t=y({},nF,e.easing),n=y({},rF,e.duration);return y({getAutoHeightDuration:oF,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return se(i,tF),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof l=="string"?l:B_(l)} ${a} ${typeof c=="string"?c:B_(c)}`).join(",")}},e,{easing:t,duration:n})}const sF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lF=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=se(e,lF);if(e.vars)throw new Error(ei(18));const a=Z2(r),c=da(e);let d=Gn(c,{mixins:k2(c.breakpoints,n),palette:a,shadows:eF.slice(),typography:X2(a,i),transitions:iF(o),zIndex:y({},sF)});return d=Gn(d,l),d=t.reduce((f,p)=>Gn(f,p),d),d.unstable_sxConfig=y({},ac,l==null?void 0:l.unstable_sxConfig),d.unstable_sx=function(p){return ca({sx:p,theme:this})},d}function aF(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function uF(e){return parseFloat(e)}const Np=rP();function $o(){const e=Cp(Np);return e[ic]||e}function Xe({props:e,name:t}){return hy({props:e,name:t,defaultTheme:Np,themeId:ic})}var cc={},um={exports:{}},H_;function cF(){return H_||(H_=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(um)),um.exports}const oP=br(IO),dF=br(EO),fF=br($O),pF=br(AR),hF=br(xR),mF=br(ER);var pa=Dp;Object.defineProperty(cc,"__esModule",{value:!0});var gF=cc.default=EF;cc.shouldForwardProp=$d;cc.systemDefaultTheme=void 0;var Ir=pa(ES()),Eg=pa(cF()),j_=wF(oP),vF=dF;pa(fF);pa(pF);var yF=pa(hF),bF=pa(mF);const _F=["ownerState"],CF=["variants"],xF=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iP=function(r){return r?n:t})(e)}function wF(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function SF(e){return Object.keys(e).length===0}function PF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $d(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kF=cc.systemDefaultTheme=(0,yF.default)(),MF=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ld({defaultTheme:e,theme:t,themeId:n}){return SF(t)?e:t[n]||t}function IF(e){return e?(t,n)=>n[e]:null}function zd(e,t){let{ownerState:n}=t,r=(0,Eg.default)(t,_F);const o=typeof e=="function"?e((0,Ir.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>zd(i,(0,Ir.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Eg.default)(o,CF);return i.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props((0,Ir.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(f=>{(n==null?void 0:n[f])!==c.props[f]&&r[f]!==c.props[f]&&(d=!1)}),d&&(Array.isArray(a)||(a=[a]),a.push(typeof c.style=="function"?c.style((0,Ir.default)({ownerState:n},r,n)):c.style))}),a}return o}function EF(e={}){const{themeId:t,defaultTheme:n=kF,rootShouldForwardProp:r=$d,slotShouldForwardProp:o=$d}=e,i=l=>(0,bF.default)((0,Ir.default)({},l,{theme:ld((0,Ir.default)({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{(0,j_.internal_processStyles)(l,E=>E.filter($=>!($!=null&&$.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:g=IF(MF(d))}=a,v=(0,Eg.default)(a,xF),x=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,_=p||!1;let k,b=$d;d==="Root"||d==="root"?b=r:d?b=o:PF(l)&&(b=void 0);const w=(0,j_.default)(l,(0,Ir.default)({shouldForwardProp:b,label:k},v)),P=E=>typeof E=="function"&&E.__emotion_real!==E||(0,vF.isPlainObject)(E)?$=>zd(E,(0,Ir.default)({},$,{theme:ld({theme:$.theme,defaultTheme:n,themeId:t})})):E,M=(E,...$)=>{let T=P(E);const F=$?$.map(P):[];c&&g&&F.push(W=>{const j=ld((0,Ir.default)({},W,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[c]||!j.components[c].styleOverrides)return null;const D=j.components[c].styleOverrides,R={};return Object.entries(D).forEach(([z,O])=>{R[z]=zd(O,(0,Ir.default)({},W,{theme:j}))}),g(W,R)}),c&&!x&&F.push(W=>{var j;const D=ld((0,Ir.default)({},W,{defaultTheme:n,themeId:t})),R=D==null||(j=D.components)==null||(j=j[c])==null?void 0:j.variants;return zd({variants:R},(0,Ir.default)({},W,{theme:D}))}),_||F.push(i);const B=F.length-$.length;if(Array.isArray(E)&&B>0){const W=new Array(B).fill("");T=[...E,...W],T.raw=[...E.raw,...W]}const H=w(T,...F);return l.muiName&&(H.muiName=l.muiName),H};return w.withConfig&&(M.withConfig=w.withConfig),M}}function sP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ir=e=>sP(e)&&e!=="classes",de=gF({themeId:ic,defaultTheme:Np,rootShouldForwardProp:ir}),G_=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function LF(e){return We("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],OF=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return xe(o,LF,r)},RF=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,l,a,c,d,f,p,g,v,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(l=i.pxToRem)==null?void 0:l.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),Lg=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24"}=r,v=se(r,TF),x=m.isValidElement(o)&&o.type==="svg",_=y({},r,{color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:x}),k={};f||(k.viewBox=g);const b=OF(_);return S.jsxs(RF,y({as:a,className:pe(b.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},k,v,x&&o.props,{ownerState:_,children:[x?o.props.children:o,p?S.jsx("title",{children:p}):null]}))});Lg.muiName="SvgIcon";function nt(e,t){function n(r,o){return S.jsx(Lg,y({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Lg.muiName,m.memo(m.forwardRef(n))}const FF={configure:e=>{cy.configure(e)}},$F=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:Mg,createSvgIcon:nt,debounce:Fp,deprecatedPropType:QR,isMuiElement:Fd,ownerDocument:zt,ownerWindow:ti,requirePropFactory:JR,setRef:Nu,unstable_ClassNameGenerator:FF,unstable_useEnhancedEffect:Mt,unstable_useId:Ot,unsupportedProp:t2,useControlled:zi,useEventCallback:at,useForkRef:Ct,useIsFocusVisible:Ap},Symbol.toStringTag,{value:"Module"}));function Cy(e){return Xe}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Tg(e,t)}function lP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tg(e,t)}const V_={disabled:!1},Cf=pr.createContext(null);var zF=function(t){return t.scrollTop},Qa="unmounted",ls="exited",as="entering",ll="entered",Og="exiting",zo=function(e){lP(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,a=l&&!l.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=ls,i.appearStatus=as):c=ll:r.unmountOnExit||r.mountOnEnter?c=Qa:c=ls,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===Qa?{status:ls}: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 l=this.state.status;this.props.in?l!==as&&l!==ll&&(i=as):(l===as||l===ll)&&(i=Og)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,a;return i=l=a=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,a=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===as){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:od.findDOMNode(this);l&&zF(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ls&&this.setState({status:Qa})},n.performEnter=function(o){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[od.findDOMNode(this),a],d=c[0],f=c[1],p=this.getTimeouts(),g=a?p.appear:p.enter;if(!o&&!l||V_.disabled){this.safeSetState({status:ll},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:as},function(){i.props.onEntering(d,f),i.onTransitionEnd(g,function(){i.safeSetState({status:ll},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:od.findDOMNode(this);if(!i||V_.disabled){this.safeSetState({status:ls},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Og},function(){o.props.onExiting(a),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:ls},function(){o.props.onExited(a)})})})},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,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:od.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qa)return null;var i=this.props,l=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 a=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(Cf.Provider,{value:null},typeof l=="function"?l(o,a):pr.cloneElement(pr.Children.only(l),a))},t}(pr.Component);zo.contextType=Cf;zo.propTypes={};function nl(){}zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nl,onEntering:nl,onEntered:nl,onExit:nl,onExiting:nl,onExited:nl};zo.UNMOUNTED=Qa;zo.EXITED=ls;zo.ENTERING=as;zo.ENTERED=ll;zo.EXITING=Og;function AF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xy(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function DF(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var c in t){if(r[c])for(l=0;le.scrollTop;function xf(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:l.transitionDelay}}function GF(e){return We("MuiPaper",e)}Ue("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 VF=["className","component","elevation","square","variant"],WF=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return xe(i,GF,o)},UF=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return y({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&y({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",G_(t.elevation))}, ${mt("#fff",G_(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ui=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:l=1,square:a=!1,variant:c="elevation"}=r,d=se(r,VF),f=y({},r,{component:i,elevation:l,square:a,variant:c}),p=WF(f);return S.jsx(UF,y({as:i,ownerState:f,className:pe(p.root,o),ref:n},d))});function ju(e){return typeof e=="string"}function Sl(e,t,n){return e===void 0||ju(e)?t:y({},t,{ownerState:y({},t.ownerState,n)})}const ZF={disableDefaultClasses:!1},KF=m.createContext(ZF);function qF(e){const{disableDefaultClasses:t}=m.useContext(KF);return n=>t?"":e(n)}function uP(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 cP(e,t,n){return typeof e=="function"?e(t,n):e}function W_(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 dP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),x=y({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),_=y({},n,o,r);return v.length>0&&(_.className=v),Object.keys(x).length>0&&(_.style=x),{props:_,internalRef:void 0}}const l=uP(y({},o,r)),a=W_(r),c=W_(o),d=t(l),f=pe(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=y({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=y({},d,n,c,a);return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:d.ref}}const XF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ni(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,l=se(e,XF),a=i?{}:cP(r,o),{props:c,internalRef:d}=dP(y({},l,{externalSlotProps:a})),f=Ct(d,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Sl(n,y({},c,{ref:f}),o)}const YF=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],QF=["component","slots","slotProps"],JF=["component"];function U_(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:l,internalForwardedProps:a}=t,c=se(t,YF),{component:d,slots:f={[e]:void 0},slotProps:p={[e]:void 0}}=i,g=se(i,QF),v=f[e]||r,x=cP(p[e],o),_=dP(y({className:n},c,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:x})),{props:{component:k},internalRef:b}=_,w=se(_.props,JF),P=Ct(b,x==null?void 0:x.ref,t.ref),M=l?l(w):{},E=y({},o,M),$=e==="root"?k||d:k,T=Sl(v,y({},e==="root"&&!d&&!f[e]&&a,e!=="root"&&!f[e]&&a,w,$&&{as:$},{ref:P}),E);return Object.keys(M).forEach(F=>{delete T[F]}),[v,T]}function e$(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:c,timeout:d}=e,[f,p]=m.useState(!1),g=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},x=pe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&p(!0),m.useEffect(()=>{if(!a&&c!=null){const _=setTimeout(c,d);return()=>{clearTimeout(_)}}},[c,a,d]),S.jsx("span",{className:g,style:v,children:S.jsx("span",{className:x})})}const Or=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),t$=["center","classes","className"];let Bp=e=>e,Z_,K_,q_,X_;const Rg=550,n$=80,r$=Wi(Z_||(Z_=Bp` + */var dy=Symbol.for("react.element"),fy=Symbol.for("react.portal"),wp=Symbol.for("react.fragment"),Sp=Symbol.for("react.strict_mode"),Pp=Symbol.for("react.profiler"),kp=Symbol.for("react.provider"),Mp=Symbol.for("react.context"),RR=Symbol.for("react.server_context"),Ip=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),Lp=Symbol.for("react.suspense_list"),Tp=Symbol.for("react.memo"),Op=Symbol.for("react.lazy"),FR=Symbol.for("react.offscreen"),WS;WS=Symbol.for("react.module.reference");function Kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dy:switch(e=e.type,e){case wp:case Pp:case Sp:case Ep:case Lp:return e;default:switch(e=e&&e.$$typeof,e){case RR:case Mp:case Ip:case Op:case Tp:case kp:return e;default:return t}}case fy:return t}}}kt.ContextConsumer=Mp;kt.ContextProvider=kp;kt.Element=dy;kt.ForwardRef=Ip;kt.Fragment=wp;kt.Lazy=Op;kt.Memo=Tp;kt.Portal=fy;kt.Profiler=Pp;kt.StrictMode=Sp;kt.Suspense=Ep;kt.SuspenseList=Lp;kt.isAsyncMode=function(){return!1};kt.isConcurrentMode=function(){return!1};kt.isContextConsumer=function(e){return Kr(e)===Mp};kt.isContextProvider=function(e){return Kr(e)===kp};kt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dy};kt.isForwardRef=function(e){return Kr(e)===Ip};kt.isFragment=function(e){return Kr(e)===wp};kt.isLazy=function(e){return Kr(e)===Op};kt.isMemo=function(e){return Kr(e)===Tp};kt.isPortal=function(e){return Kr(e)===fy};kt.isProfiler=function(e){return Kr(e)===Pp};kt.isStrictMode=function(e){return Kr(e)===Sp};kt.isSuspense=function(e){return Kr(e)===Ep};kt.isSuspenseList=function(e){return Kr(e)===Lp};kt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wp||e===Pp||e===Sp||e===Ep||e===Lp||e===FR||typeof e=="object"&&e!==null&&(e.$$typeof===Op||e.$$typeof===Tp||e.$$typeof===kp||e.$$typeof===Mp||e.$$typeof===Ip||e.$$typeof===WS||e.getModuleId!==void 0)};kt.typeOf=Kr;VS.exports=kt;var L_=VS.exports;const $R=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function US(e){const t=`${e}`.match($R);return t&&t[1]||""}function ZS(e,t=""){return e.displayName||e.name||US(e)||t}function T_(e,t,n){const r=ZS(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function zR(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ZS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case L_.ForwardRef:return T_(e,e.render,"ForwardRef");case L_.Memo:return T_(e,e.type,"memo");default:return}}}const AR=Object.freeze(Object.defineProperty({__proto__:null,default:zR,getFunctionName:US},Symbol.toStringTag,{value:"Module"})),DR=["ownerState"],NR=["variants"],BR=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function HR(e){return Object.keys(e).length===0}function jR(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GR=da(),VR=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ld({defaultTheme:e,theme:t,themeId:n}){return HR(t)?e:t[n]||t}function WR(e){return e?(t,n)=>n[e]:null}function Fd(e,t){let{ownerState:n}=t,r=se(t,DR);const o=typeof e=="function"?e(y({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Fd(i,y({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=se(o,NR);return i.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props(y({ownerState:n},r,n)):Object.keys(c.props).forEach(f=>{(n==null?void 0:n[f])!==c.props[f]&&r[f]!==c.props[f]&&(d=!1)}),d&&(Array.isArray(a)||(a=[a]),a.push(typeof c.style=="function"?c.style(y({ownerState:n},r,n)):c.style))}),a}return o}function UR(e={}){const{themeId:t,defaultTheme:n=GR,rootShouldForwardProp:r=sm,slotShouldForwardProp:o=sm}=e,i=l=>ca(y({},l,{theme:ld(y({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{FS(l,E=>E.filter($=>!($!=null&&$.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:g=WR(VR(d))}=a,v=se(a,BR),x=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,_=p||!1;let k,b=sm;d==="Root"||d==="root"?b=r:d?b=o:jR(l)&&(b=void 0);const w=oy(l,y({shouldForwardProp:b,label:k},v)),P=E=>typeof E=="function"&&E.__emotion_real!==E||Wo(E)?$=>Fd(E,y({},$,{theme:ld({theme:$.theme,defaultTheme:n,themeId:t})})):E,M=(E,...$)=>{let T=P(E);const F=$?$.map(P):[];c&&g&&F.push(W=>{const j=ld(y({},W,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[c]||!j.components[c].styleOverrides)return null;const D=j.components[c].styleOverrides,R={};return Object.entries(D).forEach(([z,O])=>{R[z]=Fd(O,y({},W,{theme:j}))}),g(W,R)}),c&&!x&&F.push(W=>{var j;const D=ld(y({},W,{defaultTheme:n,themeId:t})),R=D==null||(j=D.components)==null||(j=j[c])==null?void 0:j.variants;return Fd({variants:R},y({},W,{theme:D}))}),_||F.push(i);const B=F.length-$.length;if(Array.isArray(E)&&B>0){const W=new Array(B).fill("");T=[...E,...W],T.raw=[...E.raw,...W]}const H=w(T,...F);return l.muiName&&(H.muiName=l.muiName),H};return w.withConfig&&(M.withConfig=w.withConfig),M}}const xt=UR();function py(e,t){const n=y({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=y({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=y({},i),Object.keys(o).forEach(l=>{n[r][l]=py(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ZR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:py(t.components[n].defaultProps,r)}function hy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Cp(n);return r&&(o=o[r]||o),ZR({theme:o,name:t,props:e})}const Mt=typeof window<"u"?m.useLayoutEffect:m.useEffect;function KS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const KR=Object.freeze(Object.defineProperty({__proto__:null,default:KS},Symbol.toStringTag,{value:"Module"}));function my(e,t=0,n=1){return KS(e,t,n)}function qR(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 Ql(e){if(e.type)return e;if(e.charAt(0)==="#")return Ql(qR(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ei(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ei(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Rp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fs(e,t){return e=Ql(e),t=my(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rp(e)}function XR(e,t){if(e=Ql(e),t=my(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Rp(e)}function YR(e,t){if(e=Ql(e),t=my(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Rp(e)}function Mg(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Fp(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 QR(e,t){return()=>null}function $d(e,t){var n,r;return m.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function zt(e){return e&&e.ownerDocument||document}function ti(e){return zt(e).defaultView||window}function JR(e,t){return()=>null}function Bu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let O_=0;function e2(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(O_+=1,n(`mui-${O_}`))},[t]),r}const R_=Wd.useId;function Ot(e){if(R_!==void 0){const t=R_();return e??t}return e2(e)}function t2(e,t,n,r,o){return null}function zi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,l]=m.useState(t),a=o?e:i,c=m.useCallback(d=>{o||l(d)},[]);return[a,c]}function at(e){const t=m.useRef(e);return Mt(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function Ct(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Bu(n,t)})},e)}const F_={};function Ls(e,t){const n=m.useRef(F_);return n.current===F_&&(n.current=e(t)),n}const n2=[];function $p(e){m.useEffect(e,n2)}class cc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new cc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Dr(){const e=Ls(cc.create).current;return $p(e.disposeEffect),e}let zp=!0,Ig=!1;const r2=new cc,o2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i2(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&o2[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function s2(e){e.metaKey||e.altKey||e.ctrlKey||(zp=!0)}function lm(){zp=!1}function l2(){this.visibilityState==="hidden"&&Ig&&(zp=!0)}function a2(e){e.addEventListener("keydown",s2,!0),e.addEventListener("mousedown",lm,!0),e.addEventListener("pointerdown",lm,!0),e.addEventListener("touchstart",lm,!0),e.addEventListener("visibilitychange",l2,!0)}function u2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return zp||i2(t)}function Ap(){const e=m.useCallback(o=>{o!=null&&a2(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(Ig=!0,r2.start(100,()=>{Ig=!1}),t.current=!1,!0):!1}function r(o){return u2(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function qS(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const gy=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current};function xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const c2=m.createContext(),vy=()=>{const e=m.useContext(c2);return e??!1};function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function d2(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ju(e){var t=d2(e,"string");return Hu(t)=="symbol"?t:t+""}const f2=["className","component","disableGutters","fixed","maxWidth","classes"],p2=da(),h2=xt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),m2=e=>hy({props:e,name:"MuiContainer",defaultTheme:p2}),g2=(e,t)=>{const n=c=>We(t,c),{classes:r,fixed:o,disableGutters:i,maxWidth:l}=e,a={root:["root",l&&`maxWidth${ce(String(l))}`,o&&"fixed",i&&"disableGutters"]};return xe(a,n,r)};function v2(e={}){const{createStyledComponent:t=h2,useThemeProps:n=m2,componentName:r="MuiContainer"}=e,o=t(({theme:l,ownerState:a})=>y({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}),({theme:l,ownerState:a})=>a.fixed&&Object.keys(l.breakpoints.values).reduce((c,d)=>{const f=d,p=l.breakpoints.values[f];return p!==0&&(c[l.breakpoints.up(f)]={maxWidth:`${p}${l.breakpoints.unit}`}),c},{}),({theme:l,ownerState:a})=>y({},a.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[l.breakpoints.up(a.maxWidth)]:{maxWidth:`${l.breakpoints.values[a.maxWidth]}${l.breakpoints.unit}`}}));return m.forwardRef(function(a,c){const d=n(a),{className:f,component:p="div",disableGutters:g=!1,fixed:v=!1,maxWidth:x="lg"}=d,_=se(d,f2),k=y({},d,{component:p,disableGutters:g,fixed:v,maxWidth:x}),b=g2(k,r);return S.jsx(o,y({as:p,ownerState:k,className:pe(b.root,f),ref:c},_))})}const y2=["component","direction","spacing","divider","children","className","useFlexGap"],b2=da(),_2=xt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function C2(e){return hy({props:e,name:"MuiStack",defaultTheme:b2})}function x2(e,t){const n=m.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],S2=({ownerState:e,theme:t})=>{let n=y({display:"flex",flexDirection:"column"},uo({theme:t},im({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=ay(t),o=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),i=im({values:e.direction,base:o}),l=im({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,d,f)=>{if(!i[c]){const g=d>0?i[f[d-1]]:"column";i[c]=g}}),n=Gn(n,uo({theme:t},l,(c,d)=>e.useFlexGap?{gap:ws(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${w2(d?i[d]:e.direction)}`]:ws(r,c)}}))}return n=RO(t.breakpoints,n),n};function P2(e={}){const{createStyledComponent:t=_2,useThemeProps:n=C2,componentName:r="MuiStack"}=e,o=()=>xe({root:["root"]},c=>We(r,c),{}),i=t(S2);return m.forwardRef(function(c,d){const f=n(c),p=xp(f),{component:g="div",direction:v="column",spacing:x=0,divider:_,children:k,className:b,useFlexGap:w=!1}=p,P=se(p,y2),M={direction:v,spacing:x,useFlexGap:w},E=o();return S.jsx(i,y({as:g,ownerState:M,ref:d,className:pe(E.root,b)},P,{children:_?x2(k,_):k}))})}function k2(e,t){return y({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var nn={},XS={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})(XS);var Dp=XS.exports;const M2=br(_T),I2=br(KR);var YS=Dp;Object.defineProperty(nn,"__esModule",{value:!0});var mt=nn.alpha=tP;nn.blend=N2;nn.colorChannel=void 0;var bf=nn.darken=by;nn.decomposeColor=Vr;nn.emphasize=nP;var E2=nn.getContrastRatio=F2;nn.getLuminance=Cf;nn.hexToRgb=QS;nn.hslToRgb=eP;var _f=nn.lighten=_y;nn.private_safeAlpha=$2;nn.private_safeColorChannel=void 0;nn.private_safeDarken=z2;nn.private_safeEmphasize=D2;nn.private_safeLighten=A2;nn.recomposeColor=fa;nn.rgbToHex=R2;var $_=YS(M2),L2=YS(I2);function yy(e,t=0,n=1){return(0,L2.default)(e,t,n)}function QS(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 T2(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Vr(e){if(e.type)return e;if(e.charAt(0)==="#")return Vr(QS(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,$_.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,$_.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const JS=e=>{const t=Vr(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};nn.colorChannel=JS;const O2=(e,t)=>{try{return JS(e)}catch{return e}};nn.private_safeColorChannel=O2;function fa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function R2(e){if(e.indexOf("#")===0)return e;const{values:t}=Vr(e);return`#${t.map((n,r)=>T2(r===3?Math.round(255*n):n)).join("")}`}function eP(e){e=Vr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),fa({type:a,values:c})}function Cf(e){e=Vr(e);let t=e.type==="hsl"||e.type==="hsla"?Vr(eP(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 F2(e,t){const n=Cf(e),r=Cf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function tP(e,t){return e=Vr(e),t=yy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fa(e)}function $2(e,t,n){try{return tP(e,t)}catch{return e}}function by(e,t){if(e=Vr(e),t=yy(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return fa(e)}function z2(e,t,n){try{return by(e,t)}catch{return e}}function _y(e,t){if(e=Vr(e),t=yy(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return fa(e)}function A2(e,t,n){try{return _y(e,t)}catch{return e}}function nP(e,t=.15){return Cf(e)>.5?by(e,t):_y(e,t)}function D2(e,t,n){try{return nP(e,t)}catch{return e}}function N2(e,t,n,r=1){const o=(c,d)=>Math.round((c**(1/r)*(1-n)+d**(1/r)*n)**r),i=Vr(e),l=Vr(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return fa({type:"rgb",values:a})}const B2=["mode","contrastThreshold","tonalOffset"],z_={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:zu.white,default:zu.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}},am={text:{primary:zu.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:zu.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A_(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=_f(e.main,o):t==="dark"&&(e.dark=bf(e.main,i)))}function H2(e="light"){return e==="dark"?{main:Js[200],light:Js[50],dark:Js[400]}:{main:Js[700],light:Js[400],dark:Js[800]}}function j2(e="light"){return e==="dark"?{main:Qs[200],light:Qs[50],dark:Qs[400]}:{main:Qs[500],light:Qs[300],dark:Qs[700]}}function G2(e="light"){return e==="dark"?{main:Ys[500],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[400],dark:Ys[800]}}function V2(e="light"){return e==="dark"?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}function W2(e="light"){return e==="dark"?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}function U2(e="light"){return e==="dark"?{main:Na[400],light:Na[300],dark:Na[700]}:{main:"#ed6c02",light:Na[500],dark:Na[900]}}function Z2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,B2),i=e.primary||H2(t),l=e.secondary||j2(t),a=e.error||G2(t),c=e.info||V2(t),d=e.success||W2(t),f=e.warning||U2(t);function p(_){return E2(_,am.text.primary)>=n?am.text.primary:z_.text.primary}const g=({color:_,name:k,mainShade:b=500,lightShade:w=300,darkShade:P=700})=>{if(_=y({},_),!_.main&&_[b]&&(_.main=_[b]),!_.hasOwnProperty("main"))throw new Error(ei(11,k?` (${k})`:"",b));if(typeof _.main!="string")throw new Error(ei(12,k?` (${k})`:"",JSON.stringify(_.main)));return A_(_,"light",w,r),A_(_,"dark",P,r),_.contrastText||(_.contrastText=p(_.main)),_},v={dark:am,light:z_};return Gn(y({common:y({},zu),mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:a,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:d,name:"success"}),grey:bT,contrastThreshold:n,getContrastText:p,augmentColor:g,tonalOffset:r},v[t]),o)}const K2=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function q2(e){return Math.round(e*1e5)/1e5}const D_={textTransform:"uppercase"},N_='"Roboto", "Helvetica", "Arial", sans-serif';function X2(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=N_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=n,g=se(n,K2),v=o/14,x=p||(b=>`${b/d*v}rem`),_=(b,w,P,M,E)=>y({fontFamily:r,fontWeight:b,fontSize:x(w),lineHeight:P},r===N_?{letterSpacing:`${q2(M/w)}em`}:{},E,f),k={h1:_(i,96,1.167,-1.5),h2:_(i,60,1.2,-.5),h3:_(l,48,1.167,0),h4:_(l,34,1.235,.25),h5:_(l,24,1.334,0),h6:_(a,20,1.6,.15),subtitle1:_(l,16,1.75,.15),subtitle2:_(a,14,1.57,.1),body1:_(l,16,1.5,.15),body2:_(l,14,1.43,.15),button:_(a,14,1.75,.4,D_),caption:_(l,12,1.66,.4),overline:_(l,12,2.66,1,D_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gn(y({htmlFontSize:d,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:c},k),g,{clone:!1})}const Y2=.2,Q2=.14,J2=.12;function Bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Y2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Q2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${J2})`].join(",")}const eF=["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)],tF=["duration","easing","delay"],nF={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)"},rF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function B_(e){return`${Math.round(e)}ms`}function oF(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function iF(e){const t=y({},nF,e.easing),n=y({},rF,e.duration);return y({getAutoHeightDuration:oF,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return se(i,tF),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof l=="string"?l:B_(l)} ${a} ${typeof c=="string"?c:B_(c)}`).join(",")}},e,{easing:t,duration:n})}const sF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lF=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=se(e,lF);if(e.vars)throw new Error(ei(18));const a=Z2(r),c=da(e);let d=Gn(c,{mixins:k2(c.breakpoints,n),palette:a,shadows:eF.slice(),typography:X2(a,i),transitions:iF(o),zIndex:y({},sF)});return d=Gn(d,l),d=t.reduce((f,p)=>Gn(f,p),d),d.unstable_sxConfig=y({},uc,l==null?void 0:l.unstable_sxConfig),d.unstable_sx=function(p){return ca({sx:p,theme:this})},d}function aF(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function uF(e){return parseFloat(e)}const Np=rP();function $o(){const e=Cp(Np);return e[sc]||e}function Xe({props:e,name:t}){return hy({props:e,name:t,defaultTheme:Np,themeId:sc})}var dc={},um={exports:{}},H_;function cF(){return H_||(H_=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(um)),um.exports}const oP=br(IO),dF=br(EO),fF=br($O),pF=br(AR),hF=br(xR),mF=br(ER);var pa=Dp;Object.defineProperty(dc,"__esModule",{value:!0});var gF=dc.default=EF;dc.shouldForwardProp=zd;dc.systemDefaultTheme=void 0;var Ir=pa(ES()),Eg=pa(cF()),j_=wF(oP),vF=dF;pa(fF);pa(pF);var yF=pa(hF),bF=pa(mF);const _F=["ownerState"],CF=["variants"],xF=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iP=function(r){return r?n:t})(e)}function wF(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function SF(e){return Object.keys(e).length===0}function PF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kF=dc.systemDefaultTheme=(0,yF.default)(),MF=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ad({defaultTheme:e,theme:t,themeId:n}){return SF(t)?e:t[n]||t}function IF(e){return e?(t,n)=>n[e]:null}function Ad(e,t){let{ownerState:n}=t,r=(0,Eg.default)(t,_F);const o=typeof e=="function"?e((0,Ir.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ad(i,(0,Ir.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Eg.default)(o,CF);return i.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props((0,Ir.default)({ownerState:n},r,n)):Object.keys(c.props).forEach(f=>{(n==null?void 0:n[f])!==c.props[f]&&r[f]!==c.props[f]&&(d=!1)}),d&&(Array.isArray(a)||(a=[a]),a.push(typeof c.style=="function"?c.style((0,Ir.default)({ownerState:n},r,n)):c.style))}),a}return o}function EF(e={}){const{themeId:t,defaultTheme:n=kF,rootShouldForwardProp:r=zd,slotShouldForwardProp:o=zd}=e,i=l=>(0,bF.default)((0,Ir.default)({},l,{theme:ad((0,Ir.default)({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{(0,j_.internal_processStyles)(l,E=>E.filter($=>!($!=null&&$.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:g=IF(MF(d))}=a,v=(0,Eg.default)(a,xF),x=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,_=p||!1;let k,b=zd;d==="Root"||d==="root"?b=r:d?b=o:PF(l)&&(b=void 0);const w=(0,j_.default)(l,(0,Ir.default)({shouldForwardProp:b,label:k},v)),P=E=>typeof E=="function"&&E.__emotion_real!==E||(0,vF.isPlainObject)(E)?$=>Ad(E,(0,Ir.default)({},$,{theme:ad({theme:$.theme,defaultTheme:n,themeId:t})})):E,M=(E,...$)=>{let T=P(E);const F=$?$.map(P):[];c&&g&&F.push(W=>{const j=ad((0,Ir.default)({},W,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[c]||!j.components[c].styleOverrides)return null;const D=j.components[c].styleOverrides,R={};return Object.entries(D).forEach(([z,O])=>{R[z]=Ad(O,(0,Ir.default)({},W,{theme:j}))}),g(W,R)}),c&&!x&&F.push(W=>{var j;const D=ad((0,Ir.default)({},W,{defaultTheme:n,themeId:t})),R=D==null||(j=D.components)==null||(j=j[c])==null?void 0:j.variants;return Ad({variants:R},(0,Ir.default)({},W,{theme:D}))}),_||F.push(i);const B=F.length-$.length;if(Array.isArray(E)&&B>0){const W=new Array(B).fill("");T=[...E,...W],T.raw=[...E.raw,...W]}const H=w(T,...F);return l.muiName&&(H.muiName=l.muiName),H};return w.withConfig&&(M.withConfig=w.withConfig),M}}function sP(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ir=e=>sP(e)&&e!=="classes",de=gF({themeId:sc,defaultTheme:Np,rootShouldForwardProp:ir}),G_=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function LF(e){return We("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],OF=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return xe(o,LF,r)},RF=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,l,a,c,d,f,p,g,v,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(l=i.pxToRem)==null?void 0:l.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),Lg=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:g="0 0 24 24"}=r,v=se(r,TF),x=m.isValidElement(o)&&o.type==="svg",_=y({},r,{color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:x}),k={};f||(k.viewBox=g);const b=OF(_);return S.jsxs(RF,y({as:a,className:pe(b.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},k,v,x&&o.props,{ownerState:_,children:[x?o.props.children:o,p?S.jsx("title",{children:p}):null]}))});Lg.muiName="SvgIcon";function nt(e,t){function n(r,o){return S.jsx(Lg,y({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Lg.muiName,m.memo(m.forwardRef(n))}const FF={configure:e=>{cy.configure(e)}},$F=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:Mg,createSvgIcon:nt,debounce:Fp,deprecatedPropType:QR,isMuiElement:$d,ownerDocument:zt,ownerWindow:ti,requirePropFactory:JR,setRef:Bu,unstable_ClassNameGenerator:FF,unstable_useEnhancedEffect:Mt,unstable_useId:Ot,unsupportedProp:t2,useControlled:zi,useEventCallback:at,useForkRef:Ct,useIsFocusVisible:Ap},Symbol.toStringTag,{value:"Module"}));function Cy(e){return Xe}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Tg(e,t)}function lP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tg(e,t)}const V_={disabled:!1},xf=pr.createContext(null);var zF=function(t){return t.scrollTop},Qa="unmounted",ls="exited",as="entering",ll="entered",Og="exiting",zo=function(e){lP(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,a=l&&!l.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=ls,i.appearStatus=as):c=ll:r.unmountOnExit||r.mountOnEnter?c=Qa:c=ls,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===Qa?{status:ls}: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 l=this.state.status;this.props.in?l!==as&&l!==ll&&(i=as):(l===as||l===ll)&&(i=Og)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,a;return i=l=a=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,a=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===as){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:id.findDOMNode(this);l&&zF(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ls&&this.setState({status:Qa})},n.performEnter=function(o){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[id.findDOMNode(this),a],d=c[0],f=c[1],p=this.getTimeouts(),g=a?p.appear:p.enter;if(!o&&!l||V_.disabled){this.safeSetState({status:ll},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:as},function(){i.props.onEntering(d,f),i.onTransitionEnd(g,function(){i.safeSetState({status:ll},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:id.findDOMNode(this);if(!i||V_.disabled){this.safeSetState({status:ls},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Og},function(){o.props.onExiting(a),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:ls},function(){o.props.onExited(a)})})})},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,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:id.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qa)return null;var i=this.props,l=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 a=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pr.createElement(xf.Provider,{value:null},typeof l=="function"?l(o,a):pr.cloneElement(pr.Children.only(l),a))},t}(pr.Component);zo.contextType=xf;zo.propTypes={};function nl(){}zo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nl,onEntering:nl,onEntered:nl,onExit:nl,onExiting:nl,onExited:nl};zo.UNMOUNTED=Qa;zo.EXITED=ls;zo.ENTERING=as;zo.ENTERED=ll;zo.EXITING=Og;function AF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xy(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function DF(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var c in t){if(r[c])for(l=0;le.scrollTop;function wf(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:l.transitionDelay}}function GF(e){return We("MuiPaper",e)}Ue("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 VF=["className","component","elevation","square","variant"],WF=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return xe(i,GF,o)},UF=de("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return y({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&y({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",G_(t.elevation))}, ${mt("#fff",G_(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ui=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:l=1,square:a=!1,variant:c="elevation"}=r,d=se(r,VF),f=y({},r,{component:i,elevation:l,square:a,variant:c}),p=WF(f);return S.jsx(UF,y({as:i,ownerState:f,className:pe(p.root,o),ref:n},d))});function Gu(e){return typeof e=="string"}function Sl(e,t,n){return e===void 0||Gu(e)?t:y({},t,{ownerState:y({},t.ownerState,n)})}const ZF={disableDefaultClasses:!1},KF=m.createContext(ZF);function qF(e){const{disableDefaultClasses:t}=m.useContext(KF);return n=>t?"":e(n)}function uP(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 cP(e,t,n){return typeof e=="function"?e(t,n):e}function W_(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 dP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),x=y({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),_=y({},n,o,r);return v.length>0&&(_.className=v),Object.keys(x).length>0&&(_.style=x),{props:_,internalRef:void 0}}const l=uP(y({},o,r)),a=W_(r),c=W_(o),d=t(l),f=pe(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=y({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=y({},d,n,c,a);return f.length>0&&(g.className=f),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:d.ref}}const XF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ni(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,l=se(e,XF),a=i?{}:cP(r,o),{props:c,internalRef:d}=dP(y({},l,{externalSlotProps:a})),f=Ct(d,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Sl(n,y({},c,{ref:f}),o)}const YF=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],QF=["component","slots","slotProps"],JF=["component"];function U_(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:l,internalForwardedProps:a}=t,c=se(t,YF),{component:d,slots:f={[e]:void 0},slotProps:p={[e]:void 0}}=i,g=se(i,QF),v=f[e]||r,x=cP(p[e],o),_=dP(y({className:n},c,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:x})),{props:{component:k},internalRef:b}=_,w=se(_.props,JF),P=Ct(b,x==null?void 0:x.ref,t.ref),M=l?l(w):{},E=y({},o,M),$=e==="root"?k||d:k,T=Sl(v,y({},e==="root"&&!d&&!f[e]&&a,e!=="root"&&!f[e]&&a,w,$&&{as:$},{ref:P}),E);return Object.keys(M).forEach(F=>{delete T[F]}),[v,T]}function e$(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:c,timeout:d}=e,[f,p]=m.useState(!1),g=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},x=pe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&p(!0),m.useEffect(()=>{if(!a&&c!=null){const _=setTimeout(c,d);return()=>{clearTimeout(_)}}},[c,a,d]),S.jsx("span",{className:g,style:v,children:S.jsx("span",{className:x})})}const Or=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),t$=["center","classes","className"];let Bp=e=>e,Z_,K_,q_,X_;const Rg=550,n$=80,r$=Wi(Z_||(Z_=Bp` 0% { transform: scale(0); opacity: 0.1; @@ -125,8 +125,8 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Or.rippleVisible,r$,Rg,({theme:e})=>e.transitions.easing.easeInOut,Or.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Or.child,Or.childLeaving,o$,Rg,({theme:e})=>e.transitions.easing.easeInOut,Or.childPulsate,i$,({theme:e})=>e.transitions.easing.easeInOut),a$=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=se(r,t$),[c,d]=m.useState([]),f=m.useRef(0),p=m.useRef(null);m.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const g=m.useRef(!1),v=Dr(),x=m.useRef(null),_=m.useRef(null),k=m.useCallback(M=>{const{pulsate:E,rippleX:$,rippleY:T,rippleSize:F,cb:B}=M;d(H=>[...H,S.jsx(l$,{classes:{ripple:pe(i.ripple,Or.ripple),rippleVisible:pe(i.rippleVisible,Or.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Or.ripplePulsate),child:pe(i.child,Or.child),childLeaving:pe(i.childLeaving,Or.childLeaving),childPulsate:pe(i.childPulsate,Or.childPulsate)},timeout:Rg,pulsate:E,rippleX:$,rippleY:T,rippleSize:F},f.current)]),f.current+=1,p.current=B},[i]),b=m.useCallback((M={},E={},$=()=>{})=>{const{pulsate:T=!1,center:F=o||E.pulsate,fakeElement:B=!1}=E;if((M==null?void 0:M.type)==="mousedown"&&g.current){g.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(g.current=!0);const H=B?null:_.current,W=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,D,R;if(F||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)j=Math.round(W.width/2),D=Math.round(W.height/2);else{const{clientX:z,clientY:O}=M.touches&&M.touches.length>0?M.touches[0]:M;j=Math.round(z-W.left),D=Math.round(O-W.top)}if(F)R=Math.sqrt((2*W.width**2+W.height**2)/3),R%2===0&&(R+=1);else{const z=Math.max(Math.abs((H?H.clientWidth:0)-j),j)*2+2,O=Math.max(Math.abs((H?H.clientHeight:0)-D),D)*2+2;R=Math.sqrt(z**2+O**2)}M!=null&&M.touches?x.current===null&&(x.current=()=>{k({pulsate:T,rippleX:j,rippleY:D,rippleSize:R,cb:$})},v.start(n$,()=>{x.current&&(x.current(),x.current=null)})):k({pulsate:T,rippleX:j,rippleY:D,rippleSize:R,cb:$})},[o,k,v]),w=m.useCallback(()=>{b({},{pulsate:!0})},[b]),P=m.useCallback((M,E)=>{if(v.clear(),(M==null?void 0:M.type)==="touchend"&&x.current){x.current(),x.current=null,v.start(0,()=>{P(M,E)});return}x.current=null,d($=>$.length>0?$.slice(1):$),p.current=E},[v]);return m.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:P}),[w,b,P]),S.jsx(s$,y({className:pe(Or.root,i.root,l),ref:_},a,{children:S.jsx(wy,{component:null,exit:!0,children:c})}))});function u$(e){return We("MuiButtonBase",e)}const c$=Ue("MuiButtonBase",["root","disabled","focusVisible"]),d$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],f$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=xe({root:["root",t&&"disabled",n&&"focusVisible"]},u$,o);return n&&r&&(l.root+=` ${r}`),l},p$=de("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"},[`&.${c$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jl=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:v="a",onBlur:x,onClick:_,onContextMenu:k,onDragLeave:b,onFocus:w,onFocusVisible:P,onKeyDown:M,onKeyUp:E,onMouseDown:$,onMouseLeave:T,onMouseUp:F,onTouchEnd:B,onTouchMove:H,onTouchStart:W,tabIndex:j=0,TouchRippleProps:D,touchRippleRef:R,type:z}=r,O=se(r,d$),A=m.useRef(null),N=m.useRef(null),G=Ct(N,R),{isFocusVisibleRef:U,onFocus:Z,onBlur:Y,ref:ee}=Ap(),[Q,X]=m.useState(!1);d&&Q&&X(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),A.current.focus()}}),[]);const[te,me]=m.useState(!1);m.useEffect(()=>{me(!0)},[]);const re=te&&!f&&!d;m.useEffect(()=>{Q&&g&&!f&&te&&N.current.pulsate()},[f,g,Q,te]);function oe(ae,Pe,st=p){return at(ct=>(Pe&&Pe(ct),!st&&N.current&&N.current[ae](ct),!0))}const ge=oe("start",$),ve=oe("stop",k),ye=oe("stop",b),Ee=oe("stop",F),$e=oe("stop",ae=>{Q&&ae.preventDefault(),T&&T(ae)}),we=oe("start",W),Ce=oe("stop",B),Je=oe("stop",H),Ie=oe("stop",ae=>{Y(ae),U.current===!1&&X(!1),x&&x(ae)},!1),Ye=at(ae=>{A.current||(A.current=ae.currentTarget),Z(ae),U.current===!0&&(X(!0),P&&P(ae)),w&&w(ae)}),Ve=()=>{const ae=A.current;return c&&c!=="button"&&!(ae.tagName==="A"&&ae.href)},He=m.useRef(!1),je=at(ae=>{g&&!He.current&&Q&&N.current&&ae.key===" "&&(He.current=!0,N.current.stop(ae,()=>{N.current.start(ae)})),ae.target===ae.currentTarget&&Ve()&&ae.key===" "&&ae.preventDefault(),M&&M(ae),ae.target===ae.currentTarget&&Ve()&&ae.key==="Enter"&&!d&&(ae.preventDefault(),_&&_(ae))}),ze=at(ae=>{g&&ae.key===" "&&N.current&&Q&&!ae.defaultPrevented&&(He.current=!1,N.current.stop(ae,()=>{N.current.pulsate(ae)})),E&&E(ae),_&&ae.target===ae.currentTarget&&Ve()&&ae.key===" "&&!ae.defaultPrevented&&_(ae)});let ke=c;ke==="button"&&(O.href||O.to)&&(ke=v);const Ze={};ke==="button"?(Ze.type=z===void 0?"button":z,Ze.disabled=d):(!O.href&&!O.to&&(Ze.role="button"),d&&(Ze["aria-disabled"]=d));const Ne=Ct(n,ee,A),Le=y({},r,{centerRipple:i,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:j,focusVisible:Q}),fe=f$(Le);return S.jsxs(p$,y({as:ke,className:pe(fe.root,a),ownerState:Le,onBlur:Ie,onClick:_,onContextMenu:ve,onFocus:Ye,onKeyDown:je,onKeyUp:ze,onMouseDown:ge,onMouseLeave:$e,onMouseUp:Ee,onDragLeave:ye,onTouchEnd:Ce,onTouchMove:Je,onTouchStart:we,ref:Ne,tabIndex:d?-1:j,type:z},Ze,O,{children:[l,re?S.jsx(a$,y({ref:G,center:i},D)):null]}))});function h$(e){return We("MuiAlert",e)}const Y_=Ue("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 m$(e){return We("MuiIconButton",e)}const g$=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),v$=["edge","children","className","color","disabled","disableFocusRipple","size"],y$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return xe(l,m$,t)},b$=de(Jl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(({theme:e,ownerState:t})=>y({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return y({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&y({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":y({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${g$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),So=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:f="medium"}=r,p=se(r,v$),g=y({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:f}),v=y$(g);return S.jsx(b$,y({className:pe(v.root,l),centerRipple:!0,focusRipple:!d,disabled:c,ref:n},p,{ownerState:g,children:i}))}),_$=nt(S.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"),C$=nt(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),x$=nt(S.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"),w$=nt(S.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"),fP=nt(S.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"),S$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],P$=Cy(),k$=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ce(n||r)}`,`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return xe(i,h$,o)},M$=de(Ui,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?yf:bf,n=e.palette.mode==="light"?bf:yf;return y({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.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),[`& .${Y_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.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}`,[`& .${Y_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:y({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)})}))]})}),I$=de("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E$=de("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Q_=de("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),J_={success:S.jsx(_$,{fontSize:"inherit"}),warning:S.jsx(C$,{fontSize:"inherit"}),error:S.jsx(x$,{fontSize:"inherit"}),info:S.jsx(w$,{fontSize:"inherit"})},pP=m.forwardRef(function(t,n){const r=P$({props:t,name:"MuiAlert"}),{action:o,children:i,className:l,closeText:a="Close",color:c,components:d={},componentsProps:f={},icon:p,iconMapping:g=J_,onClose:v,role:x="alert",severity:_="success",slotProps:k={},slots:b={},variant:w="standard"}=r,P=se(r,S$),M=y({},r,{color:c,severity:_,variant:w,colorSeverity:c||_}),E=k$(M),$={slots:y({closeButton:d.CloseButton,closeIcon:d.CloseIcon},b),slotProps:y({},f,k)},[T,F]=U_("closeButton",{elementType:So,externalForwardedProps:$,ownerState:M}),[B,H]=U_("closeIcon",{elementType:fP,externalForwardedProps:$,ownerState:M});return S.jsxs(M$,y({role:x,elevation:0,ownerState:M,className:pe(E.root,l),ref:n},P,{children:[p!==!1?S.jsx(I$,{ownerState:M,className:E.icon,children:p||g[_]||J_[_]}):null,S.jsx(E$,{ownerState:M,className:E.message,children:i}),o!=null?S.jsx(Q_,{ownerState:M,className:E.action,children:o}):null,o==null&&v?S.jsx(Q_,{ownerState:M,className:E.action,children:S.jsx(T,y({size:"small","aria-label":a,title:a,color:"inherit",onClick:v},F,{children:S.jsx(B,y({fontSize:"small"},H))}))}):null]}))});function L$(e){return We("MuiTypography",e)}Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T$=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],O$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return xe(a,L$,l)},R$=de("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>y({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),eC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},F$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$$=e=>F$[e]||e,Po=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTypography"}),o=$$(r.color),i=xp(y({},r,{color:o})),{align:l="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:v=eC}=i,x=se(i,T$),_=y({},i,{align:l,color:o,className:a,component:c,gutterBottom:d,noWrap:f,paragraph:p,variant:g,variantMapping:v}),k=c||(p?"p":v[g]||eC[g])||"span",b=O$(_);return S.jsx(R$,y({as:k,ref:n,ownerState:_,className:pe(b.root,a)},x))});function z$(e){return We("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const A$=["className","color","enableColorOnDark","position"],D$=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return xe(o,z$,r)},ad=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,N$=de(Ui,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return y({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&y({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&y({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&y({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ad(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ad(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ad(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ad(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),B$=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:a="fixed"}=r,c=se(r,A$),d=y({},r,{color:i,position:a,enableColorOnDark:l}),f=D$(d);return S.jsx(N$,y({square:!0,component:"header",ownerState:d,elevation:4,className:pe(f.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))});function H$(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gy({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:a,max:c=r}=l?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:l,max:c,displayValue:d}}const hP="base";function j$(e){return`${hP}--${e}`}function G$(e,t){return`${hP}-${e}-${t}`}function mP(e,t){const n=GS[t];return n?j$(n):G$(e,t)}function V$(e,t){const n={};return t.forEach(r=>{n[r]=mP(e,r)}),n}function tC(e){return e.substring(2).toLowerCase()}function W$(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Ct(t.ref,a),p=at(x=>{const _=d.current;d.current=!1;const k=zt(a.current);if(!c.current||!a.current||"clientX"in x&&W$(x,k))return;if(l.current){l.current=!1;return}let b;x.composedPath?b=x.composedPath().indexOf(a.current)>-1:b=!k.documentElement.contains(x.target)||a.current.contains(x.target),!b&&(n||!_)&&o(x)}),g=x=>_=>{d.current=!0;const k=t.props[x];k&&k(_)},v={ref:f};return i!==!1&&(v[i]=g(i)),m.useEffect(()=>{if(i!==!1){const x=tC(i),_=zt(a.current),k=()=>{l.current=!0};return _.addEventListener(x,p),_.addEventListener("touchmove",k),()=>{_.removeEventListener(x,p),_.removeEventListener("touchmove",k)}}},[p,i]),r!==!1&&(v[r]=g(r)),m.useEffect(()=>{if(r!==!1){const x=tC(r),_=zt(a.current);return _.addEventListener(x,p),()=>{_.removeEventListener(x,p)}}},[p,r]),S.jsx(m.Fragment,{children:m.cloneElement(t,v)})}const U$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z$(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 K$(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 q$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||K$(e))}function X$(e){const t=[],n=[];return Array.from(e.querySelectorAll(U$)).forEach((r,o)=>{const i=Z$(r);i===-1||!q$(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 Y$(){return!0}function vP(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=X$,isEnabled:l=Y$,open:a}=e,c=m.useRef(!1),d=m.useRef(null),f=m.useRef(null),p=m.useRef(null),g=m.useRef(null),v=m.useRef(!1),x=m.useRef(null),_=Ct(t.ref,x),k=m.useRef(null);m.useEffect(()=>{!a||!x.current||(v.current=!n)},[n,a]),m.useEffect(()=>{if(!a||!x.current)return;const P=zt(x.current);return x.current.contains(P.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),v.current&&x.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[a]),m.useEffect(()=>{if(!a||!x.current)return;const P=zt(x.current),M=T=>{k.current=T,!(r||!l()||T.key!=="Tab")&&P.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},E=()=>{const T=x.current;if(T===null)return;if(!P.hasFocus()||!l()||c.current){c.current=!1;return}if(T.contains(P.activeElement)||r&&P.activeElement!==d.current&&P.activeElement!==f.current)return;if(P.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!v.current)return;let F=[];if((P.activeElement===d.current||P.activeElement===f.current)&&(F=i(x.current)),F.length>0){var B,H;const W=!!((B=k.current)!=null&&B.shiftKey&&((H=k.current)==null?void 0:H.key)==="Tab"),j=F[0],D=F[F.length-1];typeof j!="string"&&typeof D!="string"&&(W?D.focus():j.focus())}else T.focus()};P.addEventListener("focusin",E),P.addEventListener("keydown",M,!0);const $=setInterval(()=>{P.activeElement&&P.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval($),P.removeEventListener("focusin",E),P.removeEventListener("keydown",M,!0)}},[n,r,o,l,a,i]);const b=P=>{p.current===null&&(p.current=P.relatedTarget),v.current=!0,g.current=P.target;const M=t.props.onFocus;M&&M(P)},w=P=>{p.current===null&&(p.current=P.relatedTarget),v.current=!0};return S.jsxs(m.Fragment,{children:[S.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:d,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:_,onFocus:b}),S.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}function Q$(e){return typeof e=="function"?e():e}const yP=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,a]=m.useState(null),c=Ct(m.isValidElement(r)?r.ref:null,n);if(Mt(()=>{i||a(Q$(o)||document.body)},[o,i]),Mt(()=>{if(l&&!i)return Nu(n,l),()=>{Nu(n,null)}},[n,l,i]),i){if(m.isValidElement(r)){const d={ref:c};return m.cloneElement(r,d)}return S.jsx(m.Fragment,{children:r})}return S.jsx(m.Fragment,{children:l&&oc.createPortal(r,l)})});function J$(e){const t=zt(e);return t.body===e?ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nC(e){return parseInt(ti(e).getComputedStyle(e).paddingRight,10)||0}function ez(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function rC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const a=i.indexOf(l)===-1,c=!ez(l);a&&c&&pu(l,o)})}function cm(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(J$(r)){const l=qS(zt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nC(r)+l}px`;const a=zt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${nC(c)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=zt(r).body;else{const l=r.parentElement,a=ti(r);i=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l: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:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function nz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&pu(t.modalRef,!1);const o=nz(n);rC(n,t.mount,t.modalRef,o,!0);const i=cm(this.containers,l=>l.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=cm(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=tz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=cm(this.containers,l=>l.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&pu(t.modalRef,n),rC(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&pu(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function oz(e){return typeof e=="function"?e():e}function iz(e){return e?e.props.hasOwnProperty("in"):!1}const sz=new rz;function lz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=sz,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:a,children:c,onClose:d,open:f,rootRef:p}=e,g=m.useRef({}),v=m.useRef(null),x=m.useRef(null),_=Ct(x,p),[k,b]=m.useState(!f),w=iz(c);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const M=()=>zt(v.current),E=()=>(g.current.modalRef=x.current,g.current.mount=v.current,g.current),$=()=>{o.mount(E(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},T=at(()=>{const O=oz(t)||M().body;o.add(E(),O),x.current&&$()}),F=m.useCallback(()=>o.isTopModal(E()),[o]),B=at(O=>{v.current=O,O&&(f&&F()?$():x.current&&pu(x.current,P))}),H=m.useCallback(()=>{o.remove(E(),P)},[P,o]);m.useEffect(()=>()=>{H()},[H]),m.useEffect(()=>{f?T():(!w||!i)&&H()},[f,H,w,i,T]);const W=O=>A=>{var N;(N=O.onKeyDown)==null||N.call(O,A),!(A.key!=="Escape"||A.which===229||!F())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},j=O=>A=>{var N;(N=O.onClick)==null||N.call(O,A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(O={})=>{const A=uP(e);delete A.onTransitionEnter,delete A.onTransitionExited;const N=y({},A,O);return y({role:"presentation"},N,{onKeyDown:W(N),ref:_})},getBackdropProps:(O={})=>{const A=O;return y({"aria-hidden":!0},A,{onClick:j(A),open:f})},getTransitionProps:()=>{const O=()=>{b(!1),l&&l()},A=()=>{b(!0),a&&a(),i&&H()};return{onEnter:Mg(O,c==null?void 0:c.props.onEnter),onExited:Mg(A,c==null?void 0:c.props.onExited)}},rootRef:_,portalRef:B,isTopModal:F,exited:k,hasTransition:w}}var nr="top",Wr="bottom",Ur="right",rr="left",Sy="auto",dc=[nr,Wr,Ur,rr],ea="start",Gu="end",az="clippingParents",bP="viewport",Ha="popper",uz="reference",oC=dc.reduce(function(e,t){return e.concat([t+"-"+ea,t+"-"+Gu])},[]),_P=[].concat(dc,[Sy]).reduce(function(e,t){return e.concat([t,t+"-"+ea,t+"-"+Gu])},[]),cz="beforeRead",dz="read",fz="afterRead",pz="beforeMain",hz="main",mz="afterMain",gz="beforeWrite",vz="write",yz="afterWrite",bz=[cz,dz,fz,pz,hz,mz,gz,vz,yz];function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function yr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){var t=yr(e).Element;return e instanceof t||e instanceof Element}function Hr(e){var t=yr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=yr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _z(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];!Hr(i)||!Ro(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cz(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]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Hr(o)||!Ro(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const xz={name:"applyStyles",enabled:!0,phase:"write",fn:_z,effect:Cz,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var gs=Math.max,wf=Math.min,ta=Math.round;function Fg(){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 CP(){return!/^((?!chrome|android).)*safari/i.test(Fg())}function na(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Hr(e)&&(o=e.offsetWidth>0&&ta(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ta(r.height)/e.offsetHeight||1);var l=Ss(e)?yr(e):window,a=l.visualViewport,c=!CP()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/o,f=(r.top+(c&&a?a.offsetTop:0))/i,p=r.width/o,g=r.height/i;return{width:p,height:g,top:f,right:d+p,bottom:f+g,left:d,x:d,y:f}}function ky(e){var t=na(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 xP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ri(e){return yr(e).getComputedStyle(e)}function wz(e){return["table","td","th"].indexOf(Ro(e))>=0}function Zi(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hp(e){return Ro(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||Zi(e)}function iC(e){return!Hr(e)||ri(e).position==="fixed"?null:e.offsetParent}function Sz(e){var t=/firefox/i.test(Fg()),n=/Trident/i.test(Fg());if(n&&Hr(e)){var r=ri(e);if(r.position==="fixed")return null}var o=Hp(e);for(Py(o)&&(o=o.host);Hr(o)&&["html","body"].indexOf(Ro(o))<0;){var i=ri(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 fc(e){for(var t=yr(e),n=iC(e);n&&wz(n)&&ri(n).position==="static";)n=iC(n);return n&&(Ro(n)==="html"||Ro(n)==="body"&&ri(n).position==="static")?t:n||Sz(e)||t}function My(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hu(e,t,n){return gs(e,wf(t,n))}function Pz(e,t,n){var r=hu(e,t,n);return r>n?n:r}function wP(){return{top:0,right:0,bottom:0,left:0}}function SP(e){return Object.assign({},wP(),e)}function PP(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var kz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,SP(typeof t!="number"?t:PP(t,dc))};function Mz(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Eo(n.placement),c=My(a),d=[rr,Ur].indexOf(a)>=0,f=d?"height":"width";if(!(!i||!l)){var p=kz(o.padding,n),g=ky(i),v=c==="y"?nr:rr,x=c==="y"?Wr:Ur,_=n.rects.reference[f]+n.rects.reference[c]-l[c]-n.rects.popper[f],k=l[c]-n.rects.reference[c],b=fc(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,P=_/2-k/2,M=p[v],E=w-g[f]-p[x],$=w/2-g[f]/2+P,T=hu(M,$,E),F=c;n.modifiersData[r]=(t={},t[F]=T,t.centerOffset=T-$,t)}}function Iz(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)||xP(t.elements.popper,o)&&(t.elements.arrow=o))}const Ez={name:"arrow",enabled:!0,phase:"main",fn:Mz,effect:Iz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ra(e){return e.split("-")[1]}var Lz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tz(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ta(n*o)/o||0,y:ta(r*o)/o||0}}function sC(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,g=l.x,v=g===void 0?0:g,x=l.y,_=x===void 0?0:x,k=typeof f=="function"?f({x:v,y:_}):{x:v,y:_};v=k.x,_=k.y;var b=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),P=rr,M=nr,E=window;if(d){var $=fc(n),T="clientHeight",F="clientWidth";if($===yr(n)&&($=Zi(n),ri($).position!=="static"&&a==="absolute"&&(T="scrollHeight",F="scrollWidth")),$=$,o===nr||(o===rr||o===Ur)&&i===Gu){M=Wr;var B=p&&$===E&&E.visualViewport?E.visualViewport.height:$[T];_-=B-r.height,_*=c?1:-1}if(o===rr||(o===nr||o===Wr)&&i===Gu){P=Ur;var H=p&&$===E&&E.visualViewport?E.visualViewport.width:$[F];v-=H-r.width,v*=c?1:-1}}var W=Object.assign({position:a},d&&Lz),j=f===!0?Tz({x:v,y:_},yr(n)):{x:v,y:_};if(v=j.x,_=j.y,c){var D;return Object.assign({},W,(D={},D[M]=w?"0":"",D[P]=b?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",D))}return Object.assign({},W,(t={},t[M]=w?_+"px":"",t[P]=b?v+"px":"",t.transform="",t))}function Oz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Eo(t.placement),variation:ra(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,sC(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,sC(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Oz,data:{}};var ud={passive:!0};function Fz(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=yr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,ud)}),a&&c.addEventListener("resize",n.update,ud),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,ud)}),a&&c.removeEventListener("resize",n.update,ud)}}const $z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fz,data:{}};var zz={left:"right",right:"left",bottom:"top",top:"bottom"};function Ad(e){return e.replace(/left|right|bottom|top/g,function(t){return zz[t]})}var Az={start:"end",end:"start"};function lC(e){return e.replace(/start|end/g,function(t){return Az[t]})}function Iy(e){var t=yr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ey(e){return na(Zi(e)).left+Iy(e).scrollLeft}function Dz(e,t){var n=yr(e),r=Zi(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(o){i=o.width,l=o.height;var d=CP();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:a+Ey(e),y:c}}function Nz(e){var t,n=Zi(e),r=Iy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=gs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=gs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ey(e),c=-r.scrollTop;return ri(o||n).direction==="rtl"&&(a+=gs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Ly(e){var t=ri(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function kP(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:Hr(e)&&Ly(e)?e:kP(Hp(e))}function mu(e,t){var n;t===void 0&&(t=[]);var r=kP(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yr(r),l=o?[i].concat(i.visualViewport||[],Ly(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(mu(Hp(l)))}function $g(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bz(e,t){var n=na(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 aC(e,t,n){return t===bP?$g(Dz(e,n)):Ss(t)?Bz(t,n):$g(Nz(Zi(e)))}function Hz(e){var t=mu(Hp(e)),n=["absolute","fixed"].indexOf(ri(e).position)>=0,r=n&&Hr(e)?fc(e):e;return Ss(r)?t.filter(function(o){return Ss(o)&&xP(o,r)&&Ro(o)!=="body"}):[]}function jz(e,t,n,r){var o=t==="clippingParents"?Hz(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce(function(c,d){var f=aC(e,d,r);return c.top=gs(f.top,c.top),c.right=wf(f.right,c.right),c.bottom=wf(f.bottom,c.bottom),c.left=gs(f.left,c.left),c},aC(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function MP(e){var t=e.reference,n=e.element,r=e.placement,o=r?Eo(r):null,i=r?ra(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case nr:c={x:l,y:t.y-n.height};break;case Wr:c={x:l,y:t.y+t.height};break;case Ur:c={x:t.x+t.width,y:a};break;case rr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?My(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case ea:c[d]=c[d]-(t[f]/2-n[f]/2);break;case Gu:c[d]=c[d]+(t[f]/2-n[f]/2);break}}return c}function Vu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?az:a,d=n.rootBoundary,f=d===void 0?bP:d,p=n.elementContext,g=p===void 0?Ha:p,v=n.altBoundary,x=v===void 0?!1:v,_=n.padding,k=_===void 0?0:_,b=SP(typeof k!="number"?k:PP(k,dc)),w=g===Ha?uz:Ha,P=e.rects.popper,M=e.elements[x?w:g],E=jz(Ss(M)?M:M.contextElement||Zi(e.elements.popper),c,f,l),$=na(e.elements.reference),T=MP({reference:$,element:P,strategy:"absolute",placement:o}),F=$g(Object.assign({},P,T)),B=g===Ha?F:$,H={top:E.top-B.top+b.top,bottom:B.bottom-E.bottom+b.bottom,left:E.left-B.left+b.left,right:B.right-E.right+b.right},W=e.modifiersData.offset;if(g===Ha&&W){var j=W[o];Object.keys(H).forEach(function(D){var R=[Ur,Wr].indexOf(D)>=0?1:-1,z=[nr,Wr].indexOf(D)>=0?"y":"x";H[D]+=j[z]*R})}return H}function Gz(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?_P:c,f=ra(r),p=f?a?oC:oC.filter(function(x){return ra(x)===f}):dc,g=p.filter(function(x){return d.indexOf(x)>=0});g.length===0&&(g=p);var v=g.reduce(function(x,_){return x[_]=Vu(e,{placement:_,boundary:o,rootBoundary:i,padding:l})[Eo(_)],x},{});return Object.keys(v).sort(function(x,_){return v[x]-v[_]})}function Vz(e){if(Eo(e)===Sy)return[];var t=Ad(e);return[lC(e),t,lC(t)]}function Wz(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,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,f=n.boundary,p=n.rootBoundary,g=n.altBoundary,v=n.flipVariations,x=v===void 0?!0:v,_=n.allowedAutoPlacements,k=t.options.placement,b=Eo(k),w=b===k,P=c||(w||!x?[Ad(k)]:Vz(k)),M=[k].concat(P).reduce(function(Q,X){return Q.concat(Eo(X)===Sy?Gz(t,{placement:X,boundary:f,rootBoundary:p,padding:d,flipVariations:x,allowedAutoPlacements:_}):X)},[]),E=t.rects.reference,$=t.rects.popper,T=new Map,F=!0,B=M[0],H=0;H=0,z=R?"width":"height",O=Vu(t,{placement:W,boundary:f,rootBoundary:p,altBoundary:g,padding:d}),A=R?D?Ur:rr:D?Wr:nr;E[z]>$[z]&&(A=Ad(A));var N=Ad(A),G=[];if(i&&G.push(O[j]<=0),a&&G.push(O[A]<=0,O[N]<=0),G.every(function(Q){return Q})){B=W,F=!1;break}T.set(W,G)}if(F)for(var U=x?3:1,Z=function(X){var te=M.find(function(me){var re=T.get(me);if(re)return re.slice(0,X).every(function(oe){return oe})});if(te)return B=te,"break"},Y=U;Y>0;Y--){var ee=Z(Y);if(ee==="break")break}t.placement!==B&&(t.modifiersData[r]._skip=!0,t.placement=B,t.reset=!0)}}const Uz={name:"flip",enabled:!0,phase:"main",fn:Wz,requiresIfExists:["offset"],data:{_skip:!1}};function uC(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 cC(e){return[nr,Ur,Wr,rr].some(function(t){return e[t]>=0})}function Zz(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=Vu(t,{elementContext:"reference"}),a=Vu(t,{altBoundary:!0}),c=uC(l,r),d=uC(a,o,i),f=cC(c),p=cC(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const Kz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zz};function qz(e,t,n){var r=Eo(e),o=[rr,nr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[rr,Ur].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Xz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=_P.reduce(function(f,p){return f[p]=qz(p,t.rects,i),f},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const Yz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xz};function Qz(e){var t=e.state,n=e.name;t.modifiersData[n]=MP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Jz={name:"popperOffsets",enabled:!0,phase:"read",fn:Qz,data:{}};function eA(e){return e==="x"?"y":"x"}function tA(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,g=n.tether,v=g===void 0?!0:g,x=n.tetherOffset,_=x===void 0?0:x,k=Vu(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:f}),b=Eo(t.placement),w=ra(t.placement),P=!w,M=My(b),E=eA(M),$=t.modifiersData.popperOffsets,T=t.rects.reference,F=t.rects.popper,B=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if($){if(i){var D,R=M==="y"?nr:rr,z=M==="y"?Wr:Ur,O=M==="y"?"height":"width",A=$[M],N=A+k[R],G=A-k[z],U=v?-F[O]/2:0,Z=w===ea?T[O]:F[O],Y=w===ea?-F[O]:-T[O],ee=t.elements.arrow,Q=v&&ee?ky(ee):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wP(),te=X[R],me=X[z],re=hu(0,T[O],Q[O]),oe=P?T[O]/2-U-re-te-H.mainAxis:Z-re-te-H.mainAxis,ge=P?-T[O]/2+U+re+me+H.mainAxis:Y+re+me+H.mainAxis,ve=t.elements.arrow&&fc(t.elements.arrow),ye=ve?M==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ee=(D=W==null?void 0:W[M])!=null?D:0,$e=A+oe-Ee-ye,we=A+ge-Ee,Ce=hu(v?wf(N,$e):N,A,v?gs(G,we):G);$[M]=Ce,j[M]=Ce-A}if(a){var Je,Ie=M==="x"?nr:rr,Ye=M==="x"?Wr:Ur,Ve=$[E],He=E==="y"?"height":"width",je=Ve+k[Ie],ze=Ve-k[Ye],ke=[nr,rr].indexOf(b)!==-1,Ze=(Je=W==null?void 0:W[E])!=null?Je:0,Ne=ke?je:Ve-T[He]-F[He]-Ze+H.altAxis,Le=ke?Ve+T[He]+F[He]-Ze-H.altAxis:ze,fe=v&&ke?Pz(Ne,Ve,Le):hu(v?Ne:je,Ve,v?Le:ze);$[E]=fe,j[E]=fe-Ve}t.modifiersData[r]=j}}const nA={name:"preventOverflow",enabled:!0,phase:"main",fn:tA,requiresIfExists:["offset"]};function rA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oA(e){return e===yr(e)||!Hr(e)?Iy(e):rA(e)}function iA(e){var t=e.getBoundingClientRect(),n=ta(t.width)/e.offsetWidth||1,r=ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sA(e,t,n){n===void 0&&(n=!1);var r=Hr(t),o=Hr(t)&&iA(t),i=Zi(t),l=na(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ro(t)!=="body"||Ly(i))&&(a=oA(t)),Hr(t)?(c=na(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Ey(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function lA(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 l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function aA(e){var t=lA(e);return bz.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function uA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cA(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 dC={placement:"bottom",modifiers:[],strategy:"absolute"};function fC(){for(var e=arguments.length,t=new Array(e),n=0;nxe({root:["root"]},qF(hA)),_A={},CA=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:l,disablePortal:a,modifiers:c,open:d,placement:f,popperOptions:p,popperRef:g,slotProps:v={},slots:x={},TransitionProps:_}=t,k=se(t,mA),b=m.useRef(null),w=Ct(b,n),P=m.useRef(null),M=Ct(P,g),E=m.useRef(M);Mt(()=>{E.current=M},[M]),m.useImperativeHandle(g,()=>P.current,[]);const $=vA(f,l),[T,F]=m.useState($),[B,H]=m.useState(zg(o));m.useEffect(()=>{P.current&&P.current.forceUpdate()}),m.useEffect(()=>{o&&H(zg(o))},[o]),Mt(()=>{if(!B||!d)return;const z=N=>{F(N.placement)};let O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{z(N)}}];c!=null&&(O=O.concat(c)),p&&p.modifiers!=null&&(O=O.concat(p.modifiers));const A=pA(B,b.current,y({placement:$},p,{modifiers:O}));return E.current(A),()=>{A.destroy(),E.current(null)}},[B,a,c,d,p,$]);const W={placement:T};_!==null&&(W.TransitionProps=_);const j=bA(),D=(r=x.root)!=null?r:"div",R=ni({elementType:D,externalSlotProps:v.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:j.root});return S.jsx(D,y({},R,{children:typeof i=="function"?i(W):i}))}),xA=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:g=_A,popperRef:v,style:x,transition:_=!1,slotProps:k={},slots:b={}}=t,w=se(t,gA),[P,M]=m.useState(!0),E=()=>{M(!1)},$=()=>{M(!0)};if(!c&&!f&&(!_||P))return null;let T;if(i)T=i;else if(r){const H=zg(r);T=H&&yA(H)?zt(H).body:zt(null).body}const F=!f&&c&&(!_||P)?"none":void 0,B=_?{in:f,onEnter:E,onExited:$}:void 0;return S.jsx(yP,{disablePortal:a,container:T,children:S.jsx(CA,y({anchorEl:r,direction:l,disablePortal:a,modifiers:d,ref:n,open:_?!P:f,placement:p,popperOptions:g,popperRef:v,slotProps:k,slots:b},w,{style:y({position:"fixed",top:0,left:0,display:F},x),TransitionProps:B,children:o}))})}),wA=["onChange","maxRows","minRows","style","value"];function cd(e){return parseInt(e,10)||0}const SA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function PA(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const kA=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:l,value:a}=t,c=se(t,wA),{current:d}=m.useRef(a!=null),f=m.useRef(null),p=Ct(n,f),g=m.useRef(null),v=m.useCallback(()=>{const k=f.current,w=ti(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=g.current;P.style.width=w.width,P.value=k.value||t.placeholder||"x",P.value.slice(-1)===` -`&&(P.value+=" ");const M=w.boxSizing,E=cd(w.paddingBottom)+cd(w.paddingTop),$=cd(w.borderBottomWidth)+cd(w.borderTopWidth),T=P.scrollHeight;P.value="x";const F=P.scrollHeight;let B=T;i&&(B=Math.max(Number(i)*F,B)),o&&(B=Math.min(Number(o)*F,B)),B=Math.max(B,F);const H=B+(M==="border-box"?E+$:0),W=Math.abs(B-T)<=1;return{outerHeightStyle:H,overflowing:W}},[o,i,t.placeholder]),x=m.useCallback(()=>{const k=v();if(PA(k))return;const b=f.current;b.style.height=`${k.outerHeightStyle}px`,b.style.overflow=k.overflowing?"hidden":""},[v]);Mt(()=>{const k=()=>{x()};let b;const w=Fp(k),P=f.current,M=ti(P);M.addEventListener("resize",w);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(k),E.observe(P)),()=>{w.clear(),cancelAnimationFrame(b),M.removeEventListener("resize",w),E&&E.disconnect()}},[v,x]),Mt(()=>{x()});const _=k=>{d||x(),r&&r(k)};return S.jsxs(m.Fragment,{children:[S.jsx("textarea",y({value:a,onChange:_,ref:p,rows:i,style:l},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:y({},SA.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function pC(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function EP(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:l=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let f=l?c.trim():c;n&&(f=f.toLowerCase()),t&&(f=pC(f));const p=f?a.filter(g=>{let v=(i||d)(g);return n&&(v=v.toLowerCase()),t&&(v=pC(v)),o==="start"?v.indexOf(f)===0:v.indexOf(f)>-1}):a;return typeof r=="number"?p.slice(0,r):p}}function dd(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function EA(e){const{unstable_isActiveElementInListbox:t=IA,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:v,disabledItemsFocusable:x=!1,disableListWrap:_=!1,filterOptions:k=MA,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:P,getOptionKey:M,getOptionLabel:E=ue=>{var le;return(le=ue.label)!=null?le:ue},groupBy:$,handleHomeEndKeys:T=!e.freeSolo,id:F,includeInputInList:B=!1,inputValue:H,isOptionEqualToValue:W=(ue,le)=>ue===le,multiple:j=!1,onChange:D,onClose:R,onHighlightChange:z,onInputChange:O,onOpen:A,open:N,openOnFocus:G=!1,options:U,readOnly:Z=!1,selectOnFocus:Y=!e.freeSolo,value:ee}=e,Q=Ot(F);let X=E;X=ue=>{const le=E(ue);return typeof le!="string"?String(le):le};const te=m.useRef(!1),me=m.useRef(!0),re=m.useRef(null),oe=m.useRef(null),[ge,ve]=m.useState(null),[ye,Ee]=m.useState(-1),$e=o?0:-1,we=m.useRef($e),[Ce,Je]=zi({controlled:ee,default:f,name:d}),[Ie,Ye]=zi({controlled:H,default:"",name:d,state:"inputValue"}),[Ve,He]=m.useState(!1),je=m.useCallback((ue,le)=>{if(!(j?Ce.length!(b&&(j?Ce:[Ce]).some(le=>le!==null&&W(ue,le)))),{inputValue:Le&&Ze?"":Ie,getOptionLabel:X}):[],Pe=gy({filteredOptions:ae,value:Ce,inputValue:Ie});m.useEffect(()=>{const ue=Ce!==Pe.value;Ve&&!ue||w&&!ue||je(null,Ce)},[Ce,je,Ve,Pe.value,w]);const st=ze&&ae.length>0&&!Z,ct=at(ue=>{ue===-1?re.current.focus():ge.querySelector(`[data-tag-index="${ue}"]`).focus()});m.useEffect(()=>{j&&ye>Ce.length-1&&(Ee(-1),ct(-1))},[Ce,j,ye,ct]);function Me(ue,le){if(!oe.current||ue<0||ue>=ae.length)return-1;let Te=ue;for(;;){const Se=oe.current.querySelector(`[data-option-index="${Te}"]`),Ke=x?!1:!Se||Se.disabled||Se.getAttribute("aria-disabled")==="true";if(Se&&Se.hasAttribute("tabindex")&&!Ke)return Te;if(le==="next"?Te=(Te+1)%ae.length:Te=(Te-1+ae.length)%ae.length,Te===ue)return-1}}const Ge=at(({event:ue,index:le,reason:Te="auto"})=>{if(we.current=le,le===-1?re.current.removeAttribute("aria-activedescendant"):re.current.setAttribute("aria-activedescendant",`${Q}-option-${le}`),z&&z(ue,le===-1?null:ae[le],Te),!oe.current)return;const Se=oe.current.querySelector(`[role="option"].${n}-focused`);Se&&(Se.classList.remove(`${n}-focused`),Se.classList.remove(`${n}-focusVisible`));let Ke=oe.current;if(oe.current.getAttribute("role")!=="listbox"&&(Ke=oe.current.parentElement.querySelector('[role="listbox"]')),!Ke)return;if(le===-1){Ke.scrollTop=0;return}const Fe=oe.current.querySelector(`[data-option-index="${le}"]`);if(Fe&&(Fe.classList.add(`${n}-focused`),Te==="keyboard"&&Fe.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&Te!=="mouse"&&Te!=="touch")){const rt=Fe,zn=Ke.clientHeight+Ke.scrollTop,Hs=rt.offsetTop+rt.offsetHeight;Hs>zn?Ke.scrollTop=Hs-Ke.clientHeight:rt.offsetTop-rt.offsetHeight*($?1.3:0){if(!fe)return;const Fe=Me((()=>{const rt=ae.length-1;if(le==="reset")return $e;if(le==="start")return 0;if(le==="end")return rt;const zn=we.current+le;return zn<0?zn===-1&&B?-1:_&&we.current!==-1||Math.abs(le)>1?0:rt:zn>rt?zn===rt+1&&B?-1:_||Math.abs(le)>1?rt:0:zn})(),Te);if(Ge({index:Fe,reason:Se,event:ue}),r&&le!=="reset")if(Fe===-1)re.current.value=Ie;else{const rt=X(ae[Fe]);re.current.value=rt,rt.toLowerCase().indexOf(Ie.toLowerCase())===0&&Ie.length>0&&re.current.setSelectionRange(Ie.length,rt.length)}}),Et=()=>{const ue=(le,Te)=>{const Se=le?X(le):"",Ke=Te?X(Te):"";return Se===Ke};if(we.current!==-1&&Pe.filteredOptions&&Pe.filteredOptions.length!==ae.length&&Pe.inputValue===Ie&&(j?Ce.length===Pe.value.length&&Pe.value.every((le,Te)=>X(Ce[Te])===X(le)):ue(Pe.value,Ce))){const le=Pe.filteredOptions[we.current];if(le)return dd(ae,Te=>X(Te)===X(le))}return-1},jt=m.useCallback(()=>{if(!fe)return;const ue=Et();if(ue!==-1){we.current=ue;return}const le=j?Ce[0]:Ce;if(ae.length===0||le==null){et({diff:"reset"});return}if(oe.current){if(le!=null){const Te=ae[we.current];if(j&&Te&&dd(Ce,Ke=>W(Te,Ke))!==-1)return;const Se=dd(ae,Ke=>W(Ke,le));Se===-1?et({diff:"reset"}):Ge({index:Se});return}if(we.current>=ae.length-1){Ge({index:ae.length-1});return}Ge({index:we.current})}},[ae.length,j?!1:Ce,b,et,Ge,fe,Ie,j]),sr=at(ue=>{Nu(oe,ue),ue&&jt()});m.useEffect(()=>{jt()},[jt]);const Xt=ue=>{ze||(ke(!0),Ne(!0),A&&A(ue))},Yt=(ue,le)=>{ze&&(ke(!1),R&&R(ue,le))},rn=(ue,le,Te,Se)=>{if(j){if(Ce.length===le.length&&Ce.every((Ke,Fe)=>Ke===le[Fe]))return}else if(Ce===le)return;D&&D(ue,le,Te,Se),Je(le)},Un=m.useRef(!1),Zn=(ue,le,Te="selectOption",Se="options")=>{let Ke=Te,Fe=le;if(j){Fe=Array.isArray(Ce)?Ce.slice():[];const rt=dd(Fe,zn=>W(le,zn));rt===-1?Fe.push(le):Se!=="freeSolo"&&(Fe.splice(rt,1),Ke="removeOption")}je(ue,Fe),rn(ue,Fe,Ke,{option:le}),!g&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&Yt(ue,Ke),(l===!0||l==="touch"&&Un.current||l==="mouse"&&!Un.current)&&re.current.blur()};function wr(ue,le){if(ue===-1)return-1;let Te=ue;for(;;){if(le==="next"&&Te===Ce.length||le==="previous"&&Te===-1)return-1;const Se=ge.querySelector(`[data-tag-index="${Te}"]`);if(!Se||!Se.hasAttribute("tabindex")||Se.disabled||Se.getAttribute("aria-disabled")==="true")Te+=le==="next"?1:-1;else return Te}}const Ao=(ue,le)=>{if(!j)return;Ie===""&&Yt(ue,"toggleInput");let Te=ye;ye===-1?Ie===""&&le==="previous"&&(Te=Ce.length-1):(Te+=le==="next"?1:-1,Te<0&&(Te=0),Te===Ce.length&&(Te=-1)),Te=wr(Te,le),Ee(Te),ct(Te)},ui=ue=>{te.current=!0,Ye(""),O&&O(ue,"","clear"),rn(ue,j?[]:null,"clear")},Ji=ue=>le=>{if(ue.onKeyDown&&ue.onKeyDown(le),!le.defaultMuiPrevented&&(ye!==-1&&["ArrowLeft","ArrowRight"].indexOf(le.key)===-1&&(Ee(-1),ct(-1)),le.which!==229))switch(le.key){case"Home":fe&&T&&(le.preventDefault(),et({diff:"start",direction:"next",reason:"keyboard",event:le}));break;case"End":fe&&T&&(le.preventDefault(),et({diff:"end",direction:"previous",reason:"keyboard",event:le}));break;case"PageUp":le.preventDefault(),et({diff:-hC,direction:"previous",reason:"keyboard",event:le}),Xt(le);break;case"PageDown":le.preventDefault(),et({diff:hC,direction:"next",reason:"keyboard",event:le}),Xt(le);break;case"ArrowDown":le.preventDefault(),et({diff:1,direction:"next",reason:"keyboard",event:le}),Xt(le);break;case"ArrowUp":le.preventDefault(),et({diff:-1,direction:"previous",reason:"keyboard",event:le}),Xt(le);break;case"ArrowLeft":Ao(le,"previous");break;case"ArrowRight":Ao(le,"next");break;case"Enter":if(we.current!==-1&&fe){const Te=ae[we.current],Se=P?P(Te):!1;if(le.preventDefault(),Se)return;Zn(le,Te,"selectOption"),r&&re.current.setSelectionRange(re.current.value.length,re.current.value.length)}else w&&Ie!==""&&Le===!1&&(j&&le.preventDefault(),Zn(le,Ie,"createOption","freeSolo"));break;case"Escape":fe?(le.preventDefault(),le.stopPropagation(),Yt(le,"escape")):c&&(Ie!==""||j&&Ce.length>0)&&(le.preventDefault(),le.stopPropagation(),ui(le));break;case"Backspace":if(j&&!Z&&Ie===""&&Ce.length>0){const Te=ye===-1?Ce.length-1:ye,Se=Ce.slice();Se.splice(Te,1),rn(le,Se,"removeOption",{option:Ce[Te]})}break;case"Delete":if(j&&!Z&&Ie===""&&Ce.length>0&&ye!==-1){const Te=ye,Se=Ce.slice();Se.splice(Te,1),rn(le,Se,"removeOption",{option:Ce[Te]})}break}},Bs=ue=>{He(!0),G&&!te.current&&Xt(ue)},Kn=ue=>{if(t(oe)){re.current.focus();return}He(!1),me.current=!0,te.current=!1,i&&we.current!==-1&&fe?Zn(ue,ae[we.current],"blur"):i&&w&&Ie!==""?Zn(ue,Ie,"blur","freeSolo"):a&&je(ue,Ce),Yt(ue,"blur")},on=ue=>{const le=ue.target.value;Ie!==le&&(Ye(le),Ne(!1),O&&O(ue,le,"input")),le===""?!p&&!j&&rn(ue,null,"clear"):Xt(ue)},Rt=ue=>{const le=Number(ue.currentTarget.getAttribute("data-option-index"));we.current!==le&&Ge({event:ue,index:le,reason:"mouse"})},xn=ue=>{Ge({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Un.current=!0},In=ue=>{const le=Number(ue.currentTarget.getAttribute("data-option-index"));Zn(ue,ae[le],"selectOption"),Un.current=!1},sn=ue=>le=>{const Te=Ce.slice();Te.splice(ue,1),rn(le,Te,"removeOption",{option:Ce[ue]})},Be=ue=>{ze?Yt(ue,"toggleInput"):Xt(ue)},Sr=ue=>{ue.currentTarget.contains(ue.target)&&ue.target.getAttribute("id")!==Q&&ue.preventDefault()},qr=ue=>{ue.currentTarget.contains(ue.target)&&(re.current.focus(),Y&&me.current&&re.current.selectionEnd-re.current.selectionStart===0&&re.current.select(),me.current=!1)},Xr=ue=>{!v&&(Ie===""||!ze)&&Be(ue)};let lr=w&&Ie.length>0;lr=lr||(j?Ce.length>0:Ce!==null);let ar=ae;return $&&(ar=ae.reduce((ue,le,Te)=>{const Se=$(le);return ue.length>0&&ue[ue.length-1].group===Se?ue[ue.length-1].options.push(le):ue.push({key:Te,index:Te,group:Se,options:[le]}),ue},[])),v&&Ve&&Kn(),{getRootProps:(ue={})=>y({"aria-owns":st?`${Q}-listbox`:null},ue,{onKeyDown:Ji(ue),onMouseDown:Sr,onClick:qr}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:Ie,onBlur:Kn,onFocus:Bs,onChange:on,onMouseDown:Xr,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":st?`${Q}-listbox`:void 0,"aria-expanded":st,autoComplete:"off",ref:re,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ui}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Be}),getTagProps:({index:ue})=>y({key:ue,"data-tag-index":ue,tabIndex:-1},!Z&&{onDelete:sn(ue)}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:sr,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:le})=>{var Te;const Se=(j?Ce:[Ce]).some(Fe=>Fe!=null&&W(le,Fe)),Ke=P?P(le):!1;return{key:(Te=M==null?void 0:M(le))!=null?Te:X(le),tabIndex:-1,role:"option",id:`${Q}-option-${ue}`,onMouseMove:Rt,onClick:In,onTouchStart:xn,"data-option-index":ue,"aria-disabled":Ke,"aria-selected":Se}},id:Q,inputValue:Ie,value:Ce,dirty:lr,expanded:fe&&ge,popupOpen:fe,focused:Ve||ye!==-1,anchorEl:ge,setAnchorEl:ve,focusedTag:ye,groupedOptions:ar}}var Ty={};Object.defineProperty(Ty,"__esModule",{value:!0});var LP=Ty.default=void 0,LA=OA(m),TA=oP;function TP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(TP=function(r){return r?n:t})(e)}function OA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=TP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function RA(e){return Object.keys(e).length===0}function FA(e=null){const t=LA.useContext(TA.ThemeContext);return!t||RA(t)?e:t}LP=Ty.default=FA;const $A=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],zA=de(xA,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ts=m.forwardRef(function(t,n){var r;const o=LP(),i=Xe({props:t,name:"MuiPopper"}),{anchorEl:l,component:a,components:c,componentsProps:d,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:x,placement:_,popperOptions:k,popperRef:b,transition:w,slots:P,slotProps:M}=i,E=se(i,$A),$=(r=P==null?void 0:P.root)!=null?r:c==null?void 0:c.Root,T=y({anchorEl:l,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:x,placement:_,popperOptions:k,popperRef:b,transition:w},E);return S.jsx(zA,y({as:a,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:M??d},T,{ref:n}))});function AA(e){return We("MuiListSubheader",e)}Ue("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const DA=["className","color","component","disableGutters","disableSticky","inset"],NA=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,l={root:["root",n!=="default"&&`color${ce(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return xe(l,AA,t)},BA=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>y({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),OP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,f=se(r,DA),p=y({},r,{color:i,component:l,disableGutters:a,disableSticky:c,inset:d}),g=NA(p);return S.jsx(BA,y({as:l,className:pe(g.root,o),ref:n,ownerState:p},f))});OP.muiSkipListHighlight=!0;const HA=nt(S.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 jA(e){return We("MuiChip",e)}const yt=Ue("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),GA=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],VA=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:l,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,a&&"clickable",a&&`clickableColor${ce(o)}`,l&&"deletable",l&&`deletableColor${ce(o)}`,`${c}${ce(o)}`],label:["label",`label${ce(r)}`],avatar:["avatar",`avatar${ce(r)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(r)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(r)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(c)}Color${ce(o)}`]};return xe(d,jA,t)},WA=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:l,size:a,variant:c}=n;return[{[`& .${yt.avatar}`]:t.avatar},{[`& .${yt.avatar}`]:t[`avatar${ce(a)}`]},{[`& .${yt.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${yt.icon}`]:t.icon},{[`& .${yt.icon}`]:t[`icon${ce(a)}`]},{[`& .${yt.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${yt.deleteIcon}`]:t.deleteIcon},{[`& .${yt.deleteIcon}`]:t[`deleteIcon${ce(a)}`]},{[`& .${yt.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${yt.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(r)}`]},t.root,t[`size${ce(a)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${ce(r)}`],t[c],t[`${c}${ce(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return y({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",[`&.${yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${yt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${yt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${yt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${yt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${yt.icon}`]:y({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&y({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${yt.deleteIcon}`]:y({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(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)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>y({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>y({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${yt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${yt.avatar}`]:{marginLeft:4},[`& .${yt.avatarSmall}`]:{marginLeft:2},[`& .${yt.icon}`]:{marginLeft:4},[`& .${yt.iconSmall}`]:{marginLeft:2},[`& .${yt.deleteIcon}`]:{marginRight:5},[`& .${yt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),UA=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(r)}`]]}})(({ownerState:e})=>y({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function mC(e){return e.key==="Backspace"||e.key==="Delete"}const RP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:l,color:a="default",component:c,deleteIcon:d,disabled:f=!1,icon:p,label:g,onClick:v,onDelete:x,onKeyDown:_,onKeyUp:k,size:b="medium",variant:w="filled",tabIndex:P,skipFocusWhenDisabled:M=!1}=r,E=se(r,GA),$=m.useRef(null),T=Ct($,n),F=G=>{G.stopPropagation(),x&&x(G)},B=G=>{G.currentTarget===G.target&&mC(G)&&G.preventDefault(),_&&_(G)},H=G=>{G.currentTarget===G.target&&(x&&mC(G)?x(G):G.key==="Escape"&&$.current&&$.current.blur()),k&&k(G)},W=l!==!1&&v?!0:l,j=W||x?Jl:c||"div",D=y({},r,{component:j,disabled:f,size:b,color:a,iconColor:m.isValidElement(p)&&p.props.color||a,onDelete:!!x,clickable:W,variant:w}),R=VA(D),z=j===Jl?y({component:c||"div",focusVisibleClassName:R.focusVisible},x&&{disableRipple:!0}):{};let O=null;x&&(O=d&&m.isValidElement(d)?m.cloneElement(d,{className:pe(d.props.className,R.deleteIcon),onClick:F}):S.jsx(HA,{className:pe(R.deleteIcon),onClick:F}));let A=null;o&&m.isValidElement(o)&&(A=m.cloneElement(o,{className:pe(R.avatar,o.props.className)}));let N=null;return p&&m.isValidElement(p)&&(N=m.cloneElement(p,{className:pe(R.icon,p.props.className)})),S.jsxs(WA,y({as:j,className:pe(R.root,i),disabled:W&&f?!0:void 0,onClick:v,onKeyDown:B,onKeyUp:H,ref:T,tabIndex:M&&f?-1:P,ownerState:D},z,E,{children:[A||N,S.jsx(UA,{className:pe(R.label),ownerState:D,children:g}),O]}))});function Os({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 jp=m.createContext(void 0);function si(){return m.useContext(jp)}function FP(e){return S.jsx(kR,y({},e,{defaultTheme:Np,themeId:ic}))}function gC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Sf(e,t=!1){return e&&(gC(e.value)&&e.value!==""||t&&gC(e.defaultValue)&&e.defaultValue!=="")}function ZA(e){return e.startAdornment}function KA(e){return We("MuiInputBase",e)}const cr=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qA=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Gp=(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${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vp=(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]},XA=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:c,hiddenLabel:d,multiline:f,readOnly:p,size:g,startAdornment:v,type:x}=e,_={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",g&&g!=="medium"&&`size${ce(g)}`,f&&"multiline",v&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return xe(_,KA,t)},Wp=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gp})(({theme:e,ownerState:t})=>y({},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",[`&.${cr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&y({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Up=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=y({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return y({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${cr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${cr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),YA=S.jsx(FP,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ha=m.forwardRef(function(t,n){var r;const o=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:a,className:c,components:d={},componentsProps:f={},defaultValue:p,disabled:g,disableInjectingGlobalStyles:v,endAdornment:x,fullWidth:_=!1,id:k,inputComponent:b="input",inputProps:w={},inputRef:P,maxRows:M,minRows:E,multiline:$=!1,name:T,onBlur:F,onChange:B,onClick:H,onFocus:W,onKeyDown:j,onKeyUp:D,placeholder:R,readOnly:z,renderSuffix:O,rows:A,slotProps:N={},slots:G={},startAdornment:U,type:Z="text",value:Y}=o,ee=se(o,qA),Q=w.value!=null?w.value:Y,{current:X}=m.useRef(Q!=null),te=m.useRef(),me=m.useCallback(fe=>{},[]),re=Ct(te,P,w.ref,me),[oe,ge]=m.useState(!1),ve=si(),ye=Os({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:oe,m.useEffect(()=>{!ve&&g&&oe&&(ge(!1),F&&F())},[ve,g,oe,F]);const Ee=ve&&ve.onFilled,$e=ve&&ve.onEmpty,we=m.useCallback(fe=>{Sf(fe)?Ee&&Ee():$e&&$e()},[Ee,$e]);Mt(()=>{X&&we({value:Q})},[Q,we,X]);const Ce=fe=>{if(ye.disabled){fe.stopPropagation();return}W&&W(fe),w.onFocus&&w.onFocus(fe),ve&&ve.onFocus?ve.onFocus(fe):ge(!0)},Je=fe=>{F&&F(fe),w.onBlur&&w.onBlur(fe),ve&&ve.onBlur?ve.onBlur(fe):ge(!1)},Ie=(fe,...ae)=>{if(!X){const Pe=fe.target||te.current;if(Pe==null)throw new Error(ei(1));we({value:Pe.value})}w.onChange&&w.onChange(fe,...ae),B&&B(fe,...ae)};m.useEffect(()=>{we(te.current)},[]);const Ye=fe=>{te.current&&fe.currentTarget===fe.target&&te.current.focus(),H&&H(fe)};let Ve=b,He=w;$&&Ve==="input"&&(A?He=y({type:void 0,minRows:A,maxRows:A},He):He=y({type:void 0,maxRows:M,minRows:E},He),Ve=kA);const je=fe=>{we(fe.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};m.useEffect(()=>{ve&&ve.setAdornedStart(!!U)},[ve,U]);const ze=y({},o,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:x,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:_,hiddenLabel:ye.hiddenLabel,multiline:$,size:ye.size,startAdornment:U,type:Z}),ke=XA(ze),Ze=G.root||d.Root||Wp,Ne=N.root||f.root||{},Le=G.input||d.Input||Up;return He=y({},He,(r=N.input)!=null?r:f.input),S.jsxs(m.Fragment,{children:[!v&&YA,S.jsxs(Ze,y({},Ne,!ju(Ze)&&{ownerState:y({},ze,Ne.ownerState)},{ref:n,onClick:Ye},ee,{className:pe(ke.root,Ne.className,c,z&&"MuiInputBase-readOnly"),children:[U,S.jsx(jp.Provider,{value:null,children:S.jsx(Le,y({ownerState:ze,"aria-invalid":ye.error,"aria-describedby":i,autoComplete:l,autoFocus:a,defaultValue:p,disabled:ye.disabled,id:k,onAnimationStart:je,name:T,placeholder:R,readOnly:z,required:ye.required,rows:A,value:Q,onKeyDown:j,onKeyUp:D,type:Z},He,!ju(Le)&&{as:Ve,ownerState:y({},ze,He.ownerState)},{ref:re,className:pe(ke.input,He.className,z&&"MuiInputBase-readOnly"),onBlur:Je,onChange:Ie,onFocus:Ce}))}),x,O?O(y({},ye,{startAdornment:U})):null]}))]})});function QA(e){return We("MuiInput",e)}const xi=y({},cr,Ue("MuiInput",["root","underline","input"]));function JA(e){return We("MuiOutlinedInput",e)}const bo=y({},cr,Ue("MuiOutlinedInput",["root","notchedOutline","input"]));function eD(e){return We("MuiFilledInput",e)}const dr=y({},cr,Ue("MuiFilledInput",["root","underline","input"])),$P=nt(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function tD(e){return We("MuiAutocomplete",e)}const it=Ue("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 vC,yC;const nD=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],rD=["ref"],oD=["key"],iD=["key"],sD=Cy(),lD=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:f}=e,p={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ce(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return xe(p,tD,t)},aD=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:l,size:a}=n;return[{[`& .${it.tag}`]:t.tag},{[`& .${it.tag}`]:t[`tagSize${ce(a)}`]},{[`& .${it.inputRoot}`]:t.inputRoot},{[`& .${it.input}`]:t.input},{[`& .${it.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`& .${it.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${it.inputRoot}`]:{[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:30},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:56},[`& .${it.input}`]:{width:0,minWidth:30}},[`&.${it.focused}`]:{[`& .${it.clearIndicator}`]:{visibility:"visible"},[`& .${it.input}`]:{minWidth:0}},"@media (pointer: fine)":{[`&:hover .${it.clearIndicator}`]:{visibility:"visible"},[`&:hover .${it.input}`]:{minWidth:0}},[`& .${xi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${xi.root}.${cr.sizeSmall}`]:{[`& .${xi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${bo.root}`]:{padding:9,[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:39},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:65},[`& .${it.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${it.endAdornment}`]:{right:9}},[`& .${bo.root}.${cr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${it.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${dr.root}`]:{paddingTop:19,paddingLeft:8,[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:39},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:65},[`& .${dr.input}`]:{padding:"7px 4px"},[`& .${it.endAdornment}`]:{right:9}},[`& .${dr.root}.${cr.sizeSmall}`]:{paddingBottom:1,[`& .${dr.input}`]:{padding:"2.5px 4px"}},[`& .${cr.hiddenLabel}`]:{paddingTop:8},[`& .${dr.root}.${cr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${it.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${dr.root}.${cr.hiddenLabel}.${cr.sizeSmall}`]:{[`& .${it.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${it.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${it.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${it.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${it.inputRoot}`]:{flexWrap:"wrap"}}}]}),uD=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),cD=de(So,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dD=de(So,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>y({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),fD=de(Ts,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${it.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),pD=de(Ui,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>y({},e.typography.body1,{overflow:"auto"})),hD=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),mD=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),gD=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${it.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"},[`&.${it.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"},[`&.${it.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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${it.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${it.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),vD=de(OP,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yD=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${it.option}`]:{paddingLeft:24}}),zP=m.forwardRef(function(t,n){var r,o,i,l;const a=sD({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:g,className:v,clearIcon:x=vC||(vC=S.jsx(fP,{fontSize:"small"})),clearOnBlur:_=!a.freeSolo,clearOnEscape:k=!1,clearText:b="Clear",closeText:w="Close",componentsProps:P={},defaultValue:M=a.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:$=!1,disabled:T=!1,disabledItemsFocusable:F=!1,disableListWrap:B=!1,disablePortal:H=!1,filterSelectedOptions:W=!1,forcePopupIcon:j="auto",freeSolo:D=!1,fullWidth:R=!1,getLimitTagsText:z=Se=>`+${Se}`,getOptionLabel:O,groupBy:A,handleHomeEndKeys:N=!a.freeSolo,includeInputInList:G=!1,limitTags:U=-1,ListboxComponent:Z="ul",ListboxProps:Y,loading:ee=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:te="No options",openOnFocus:me=!1,openText:re="Open",PaperComponent:oe=Ui,PopperComponent:ge=Ts,popupIcon:ve=yC||(yC=S.jsx($P,{})),readOnly:ye=!1,renderGroup:Ee,renderInput:$e,renderOption:we,renderTags:Ce,selectOnFocus:Je=!a.freeSolo,size:Ie="medium",slotProps:Ye={}}=a,Ve=se(a,nD),{getRootProps:He,getInputProps:je,getInputLabelProps:ze,getPopupIndicatorProps:ke,getClearProps:Ze,getTagProps:Ne,getListboxProps:Le,getOptionProps:fe,value:ae,dirty:Pe,expanded:st,id:ct,popupOpen:Me,focused:Ge,focusedTag:et,anchorEl:Et,setAnchorEl:jt,inputValue:sr,groupedOptions:Xt}=EA(y({},a,{componentName:"Autocomplete"})),Yt=!E&&!T&&Pe&&!ye,rn=(!D||j===!0)&&j!==!1,{onMouseDown:Un}=je(),{ref:Zn}=Y??{},wr=Le(),{ref:Ao}=wr,ui=se(wr,rD),Ji=Ct(Ao,Zn),Kn=O||(Se=>{var Ke;return(Ke=Se.label)!=null?Ke:Se}),on=y({},a,{disablePortal:H,expanded:st,focused:Ge,fullWidth:R,getOptionLabel:Kn,hasClearIcon:Yt,hasPopupIcon:rn,inputFocused:et===-1,popupOpen:Me,size:Ie}),Rt=lD(on);let xn;if(X&&ae.length>0){const Se=Ke=>y({className:Rt.tag,disabled:T},Ne(Ke));Ce?xn=Ce(ae,Se,on):xn=ae.map((Ke,Fe)=>{const rt=Se({index:Fe}),{key:zn}=rt,Hs=se(rt,oD);return S.jsx(RP,y({label:Kn(Ke),size:Ie},Hs,g),zn)})}if(U>-1&&Array.isArray(xn)){const Se=xn.length-U;!Ge&&Se>0&&(xn=xn.splice(0,U),xn.push(S.jsx("span",{className:Rt.tag,children:z(Se)},xn.length)))}const sn=Ee||(Se=>S.jsxs("li",{children:[S.jsx(vD,{className:Rt.groupLabel,ownerState:on,component:"div",children:Se.group}),S.jsx(yD,{className:Rt.groupUl,ownerState:on,children:Se.children})]},Se.key)),Sr=we||((Se,Ke)=>{const{key:Fe}=Se,rt=se(Se,iD);return S.jsx("li",y({},rt,{children:Kn(Ke)}),Fe)}),qr=(Se,Ke)=>{const Fe=fe({option:Se,index:Ke});return Sr(y({},Fe,{className:Rt.option}),Se,{selected:Fe["aria-selected"],index:Ke,inputValue:sr},on)},Xr=(r=Ye.clearIndicator)!=null?r:P.clearIndicator,lr=(o=Ye.paper)!=null?o:P.paper,ar=(i=Ye.popper)!=null?i:P.popper,ue=(l=Ye.popupIndicator)!=null?l:P.popupIndicator,le=Se=>S.jsx(fD,y({as:ge,disablePortal:H,style:{width:Et?Et.clientWidth:null},ownerState:on,role:"presentation",anchorEl:Et,open:Me},ar,{className:pe(Rt.popper,ar==null?void 0:ar.className),children:S.jsx(pD,y({ownerState:on,as:oe},lr,{className:pe(Rt.paper,lr==null?void 0:lr.className),children:Se}))}));let Te=null;return Xt.length>0?Te=le(S.jsx(gD,y({as:Z,className:Rt.listbox,ownerState:on},ui,Y,{ref:Ji,children:Xt.map((Se,Ke)=>A?sn({key:Se.key,group:Se.group,children:Se.options.map((Fe,rt)=>qr(Fe,Se.index+rt))}):qr(Se,Ke))}))):ee&&Xt.length===0?Te=le(S.jsx(hD,{className:Rt.loading,ownerState:on,children:Q})):Xt.length===0&&!D&&!ee&&(Te=le(S.jsx(mD,{className:Rt.noOptions,ownerState:on,role:"presentation",onMouseDown:Se=>{Se.preventDefault()},children:te}))),S.jsxs(m.Fragment,{children:[S.jsx(aD,y({ref:n,className:pe(Rt.root,v),ownerState:on},He(Ve),{children:$e({id:ct,disabled:T,fullWidth:!0,size:Ie==="small"?"small":void 0,InputLabelProps:ze(),InputProps:y({ref:jt,className:Rt.inputRoot,startAdornment:xn,onClick:Se=>{Se.target===Se.currentTarget&&Un(Se)}},(Yt||rn)&&{endAdornment:S.jsxs(uD,{className:Rt.endAdornment,ownerState:on,children:[Yt?S.jsx(cD,y({},Ze(),{"aria-label":b,title:b,ownerState:on},Xr,{className:pe(Rt.clearIndicator,Xr==null?void 0:Xr.className),children:x})):null,rn?S.jsx(dD,y({},ke(),{disabled:T,"aria-label":Me?w:re,title:Me?w:re,ownerState:on},ue,{className:pe(Rt.popupIndicator,ue==null?void 0:ue.className),children:ve})):null]})}),inputProps:y({className:Rt.input,disabled:T,readOnly:ye},je())})})),Et?Te:null]})}),bD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_D={entering:{opacity:1},entered:{opacity:1}},CD=m.forwardRef(function(t,n){const r=$o(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:c,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:v,onExited:x,onExiting:_,style:k,timeout:b=o,TransitionComponent:w=zo}=t,P=se(t,bD),M=m.useRef(null),E=Ct(M,a.ref,n),$=R=>z=>{if(R){const O=M.current;z===void 0?R(O):R(O,z)}},T=$(g),F=$((R,z)=>{aP(R);const O=xf({style:k,timeout:b,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",O),R.style.transition=r.transitions.create("opacity",O),f&&f(R,z)}),B=$(p),H=$(_),W=$(R=>{const z=xf({style:k,timeout:b,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",z),R.style.transition=r.transitions.create("opacity",z),v&&v(R)}),j=$(x),D=R=>{i&&i(M.current,R)};return S.jsx(w,y({appear:l,in:d,nodeRef:M,onEnter:F,onEntered:B,onEntering:T,onExit:W,onExited:j,onExiting:H,addEndListener:D,timeout:b},P,{children:(R,z)=>m.cloneElement(a,y({style:y({opacity:0,visibility:R==="exited"&&!d?"hidden":void 0},_D[R],k,a.props.style),ref:E},z))}))});function xD(e){return We("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const wD=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],SD=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},xD,t)},PD=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>y({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),kD=m.forwardRef(function(t,n){var r,o,i;const l=Xe({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:f={},componentsProps:p={},invisible:g=!1,open:v,slotProps:x={},slots:_={},TransitionComponent:k=CD,transitionDuration:b}=l,w=se(l,wD),P=y({},l,{component:d,invisible:g}),M=SD(P),E=(r=x.root)!=null?r:p.root;return S.jsx(k,y({in:v,timeout:b},w,{children:S.jsx(PD,y({"aria-hidden":!0},E,{as:(o=(i=_.root)!=null?i:f.Root)!=null?o:d,className:pe(M.root,c,E==null?void 0:E.className),ownerState:y({},P,E==null?void 0:E.ownerState),classes:M,ref:n,children:a}))}))});function MD(e){return We("MuiBadge",e)}const pi=Ue("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ID=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],dm=10,fm=4,ED=Cy(),LD=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:l={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`,`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}${ce(o)}`,`overlap${ce(o)}`,t!=="default"&&`color${ce(t)}`]};return xe(a,MD,l)},TD=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),OD=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}${ce(n.overlap)}`],n.color!=="default"&&t[`color${ce(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:dm*2,lineHeight:1,padding:"0 6px",height:dm*2,borderRadius:dm,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:fm,height:fm*2,minWidth:fm*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),AP=m.forwardRef(function(t,n){var r,o,i,l,a,c;const d=ED({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:g,components:v={},componentsProps:x={},children:_,overlap:k="rectangular",color:b="default",invisible:w=!1,max:P=99,badgeContent:M,slots:E,slotProps:$,showZero:T=!1,variant:F="standard"}=d,B=se(d,ID),{badgeContent:H,invisible:W,max:j,displayValue:D}=H$({max:P,invisible:w,badgeContent:M,showZero:T}),R=gy({anchorOrigin:f,color:b,overlap:k,variant:F,badgeContent:M}),z=W||H==null&&F!=="dot",{color:O=b,overlap:A=k,anchorOrigin:N=f,variant:G=F}=z?R:d,U=G!=="dot"?D:void 0,Z=y({},d,{badgeContent:H,invisible:z,max:j,displayValue:U,showZero:T,anchorOrigin:N,color:O,overlap:A,variant:G}),Y=LD(Z),ee=(r=(o=E==null?void 0:E.root)!=null?o:v.Root)!=null?r:TD,Q=(i=(l=E==null?void 0:E.badge)!=null?l:v.Badge)!=null?i:OD,X=(a=$==null?void 0:$.root)!=null?a:x.root,te=(c=$==null?void 0:$.badge)!=null?c:x.badge,me=ni({elementType:ee,externalSlotProps:X,externalForwardedProps:B,additionalProps:{ref:n,as:g},ownerState:Z,className:pe(X==null?void 0:X.className,Y.root,p)}),re=ni({elementType:Q,externalSlotProps:te,ownerState:Z,className:pe(Y.badge,te==null?void 0:te.className)});return S.jsxs(ee,y({},me,{children:[_,S.jsx(Q,y({},re,{children:U}))]}))}),RD=Ue("MuiBox",["root"]),FD=rP(),bC=OR({themeId:ic,defaultTheme:FD,defaultClassName:RD.root,generateClassName:cy.generate});function $D(e){return We("MuiButton",e)}const fd=Ue("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"]),zD=m.createContext({}),AD=m.createContext(void 0),DD=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ND=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},c=xe(a,$D,l);return y({},l,c)},DP=e=>y({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),BD=de(Jl,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return y({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":y({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":y({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fd.focusVisible}`]:y({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fd.disabled}`]:y({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fd.disabled}`]:{boxShadow:"none"}}),HD=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>y({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DP(e))),jD=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>y({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DP(e))),Zp=m.forwardRef(function(t,n){const r=m.useContext(zD),o=m.useContext(AD),i=py(r,t),l=Xe({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:d="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:v=!1,endIcon:x,focusVisibleClassName:_,fullWidth:k=!1,size:b="medium",startIcon:w,type:P,variant:M="text"}=l,E=se(l,DD),$=y({},l,{color:c,component:d,disabled:p,disableElevation:g,disableFocusRipple:v,fullWidth:k,size:b,type:P,variant:M}),T=ND($),F=w&&S.jsx(HD,{className:T.startIcon,ownerState:$,children:w}),B=x&&S.jsx(jD,{className:T.endIcon,ownerState:$,children:x}),H=o||"";return S.jsxs(BD,y({ownerState:$,className:pe(r.className,T.root,f,H),component:d,disabled:p,focusRipple:!v,focusVisibleClassName:pe(T.focusVisible,_),ref:n,type:P},E,{classes:T,children:[F,a,B]}))});function GD(e){return We("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const VD=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],WD=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ce(o)}`],input:["input"]};return xe(i,GD,t)},UD=de(Jl)(({ownerState:e})=>y({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ZD=de("input",{shouldForwardProp:ir})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),KD=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:l,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:p,id:g,inputProps:v,inputRef:x,name:_,onBlur:k,onChange:b,onFocus:w,readOnly:P,required:M=!1,tabIndex:E,type:$,value:T}=t,F=se(t,VD),[B,H]=zi({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),W=si(),j=G=>{w&&w(G),W&&W.onFocus&&W.onFocus(G)},D=G=>{k&&k(G),W&&W.onBlur&&W.onBlur(G)},R=G=>{if(G.nativeEvent.defaultPrevented)return;const U=G.target.checked;H(U),b&&b(G,U)};let z=c;W&&typeof z>"u"&&(z=W.disabled);const O=$==="checkbox"||$==="radio",A=y({},t,{checked:B,disabled:z,disableFocusRipple:d,edge:f}),N=WD(A);return S.jsxs(UD,y({component:"span",className:pe(N.root,l),centerRipple:!0,focusRipple:!d,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:D,ownerState:A,ref:n},F,{children:[S.jsx(ZD,y({autoFocus:r,checked:o,defaultChecked:a,className:N.input,disabled:z,id:O?g:void 0,name:_,onChange:R,readOnly:P,ref:x,required:M,ownerState:A,tabIndex:E,type:$},$==="checkbox"&&T===void 0?{}:{value:T},v)),B?i:p]}))}),qD=nt(S.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"),XD=nt(S.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"),YD=nt(S.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 QD(e){return We("MuiCheckbox",e)}const pm=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),JD=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],eN=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ce(r)}`,`size${ce(o)}`]},l=xe(i,QD,t);return y({},t,l)},tN=de(KD,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ce(n.size)}`],n.color!=="default"&&t[`color${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${pm.checked}, &.${pm.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nN=S.jsx(XD,{}),rN=S.jsx(qD,{}),oN=S.jsx(YD,{}),iN=m.forwardRef(function(t,n){var r,o;const i=Xe({props:t,name:"MuiCheckbox"}),{checkedIcon:l=nN,color:a="primary",icon:c=rN,indeterminate:d=!1,indeterminateIcon:f=oN,inputProps:p,size:g="medium",className:v}=i,x=se(i,JD),_=d?f:c,k=d?f:l,b=y({},i,{color:a,indeterminate:d,size:g}),w=eN(b);return S.jsx(tN,y({type:"checkbox",inputProps:y({"data-indeterminate":d},p),icon:m.cloneElement(_,{fontSize:(r=_.props.fontSize)!=null?r:g}),checkedIcon:m.cloneElement(k,{fontSize:(o=k.props.fontSize)!=null?o:g}),ownerState:b,ref:n,className:pe(w.root,v)},x,{classes:w}))});function sN(e){return We("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lN=["className","color","disableShrink","size","style","thickness","value","variant"];let Kp=e=>e,_C,CC,xC,wC;const hi=44,aN=Wi(_C||(_C=Kp` +`),Or.rippleVisible,r$,Rg,({theme:e})=>e.transitions.easing.easeInOut,Or.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Or.child,Or.childLeaving,o$,Rg,({theme:e})=>e.transitions.easing.easeInOut,Or.childPulsate,i$,({theme:e})=>e.transitions.easing.easeInOut),a$=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=se(r,t$),[c,d]=m.useState([]),f=m.useRef(0),p=m.useRef(null);m.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const g=m.useRef(!1),v=Dr(),x=m.useRef(null),_=m.useRef(null),k=m.useCallback(M=>{const{pulsate:E,rippleX:$,rippleY:T,rippleSize:F,cb:B}=M;d(H=>[...H,S.jsx(l$,{classes:{ripple:pe(i.ripple,Or.ripple),rippleVisible:pe(i.rippleVisible,Or.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Or.ripplePulsate),child:pe(i.child,Or.child),childLeaving:pe(i.childLeaving,Or.childLeaving),childPulsate:pe(i.childPulsate,Or.childPulsate)},timeout:Rg,pulsate:E,rippleX:$,rippleY:T,rippleSize:F},f.current)]),f.current+=1,p.current=B},[i]),b=m.useCallback((M={},E={},$=()=>{})=>{const{pulsate:T=!1,center:F=o||E.pulsate,fakeElement:B=!1}=E;if((M==null?void 0:M.type)==="mousedown"&&g.current){g.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(g.current=!0);const H=B?null:_.current,W=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,D,R;if(F||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)j=Math.round(W.width/2),D=Math.round(W.height/2);else{const{clientX:z,clientY:O}=M.touches&&M.touches.length>0?M.touches[0]:M;j=Math.round(z-W.left),D=Math.round(O-W.top)}if(F)R=Math.sqrt((2*W.width**2+W.height**2)/3),R%2===0&&(R+=1);else{const z=Math.max(Math.abs((H?H.clientWidth:0)-j),j)*2+2,O=Math.max(Math.abs((H?H.clientHeight:0)-D),D)*2+2;R=Math.sqrt(z**2+O**2)}M!=null&&M.touches?x.current===null&&(x.current=()=>{k({pulsate:T,rippleX:j,rippleY:D,rippleSize:R,cb:$})},v.start(n$,()=>{x.current&&(x.current(),x.current=null)})):k({pulsate:T,rippleX:j,rippleY:D,rippleSize:R,cb:$})},[o,k,v]),w=m.useCallback(()=>{b({},{pulsate:!0})},[b]),P=m.useCallback((M,E)=>{if(v.clear(),(M==null?void 0:M.type)==="touchend"&&x.current){x.current(),x.current=null,v.start(0,()=>{P(M,E)});return}x.current=null,d($=>$.length>0?$.slice(1):$),p.current=E},[v]);return m.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:P}),[w,b,P]),S.jsx(s$,y({className:pe(Or.root,i.root,l),ref:_},a,{children:S.jsx(wy,{component:null,exit:!0,children:c})}))});function u$(e){return We("MuiButtonBase",e)}const c$=Ue("MuiButtonBase",["root","disabled","focusVisible"]),d$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],f$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=xe({root:["root",t&&"disabled",n&&"focusVisible"]},u$,o);return n&&r&&(l.root+=` ${r}`),l},p$=de("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"},[`&.${c$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jl=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:v="a",onBlur:x,onClick:_,onContextMenu:k,onDragLeave:b,onFocus:w,onFocusVisible:P,onKeyDown:M,onKeyUp:E,onMouseDown:$,onMouseLeave:T,onMouseUp:F,onTouchEnd:B,onTouchMove:H,onTouchStart:W,tabIndex:j=0,TouchRippleProps:D,touchRippleRef:R,type:z}=r,O=se(r,d$),A=m.useRef(null),N=m.useRef(null),G=Ct(N,R),{isFocusVisibleRef:U,onFocus:Z,onBlur:Y,ref:ee}=Ap(),[Q,X]=m.useState(!1);d&&Q&&X(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),A.current.focus()}}),[]);const[te,me]=m.useState(!1);m.useEffect(()=>{me(!0)},[]);const re=te&&!f&&!d;m.useEffect(()=>{Q&&g&&!f&&te&&N.current.pulsate()},[f,g,Q,te]);function oe(ae,Pe,st=p){return at(ct=>(Pe&&Pe(ct),!st&&N.current&&N.current[ae](ct),!0))}const ge=oe("start",$),ve=oe("stop",k),ye=oe("stop",b),Ee=oe("stop",F),$e=oe("stop",ae=>{Q&&ae.preventDefault(),T&&T(ae)}),we=oe("start",W),Ce=oe("stop",B),Je=oe("stop",H),Ie=oe("stop",ae=>{Y(ae),U.current===!1&&X(!1),x&&x(ae)},!1),Ye=at(ae=>{A.current||(A.current=ae.currentTarget),Z(ae),U.current===!0&&(X(!0),P&&P(ae)),w&&w(ae)}),Ve=()=>{const ae=A.current;return c&&c!=="button"&&!(ae.tagName==="A"&&ae.href)},He=m.useRef(!1),je=at(ae=>{g&&!He.current&&Q&&N.current&&ae.key===" "&&(He.current=!0,N.current.stop(ae,()=>{N.current.start(ae)})),ae.target===ae.currentTarget&&Ve()&&ae.key===" "&&ae.preventDefault(),M&&M(ae),ae.target===ae.currentTarget&&Ve()&&ae.key==="Enter"&&!d&&(ae.preventDefault(),_&&_(ae))}),ze=at(ae=>{g&&ae.key===" "&&N.current&&Q&&!ae.defaultPrevented&&(He.current=!1,N.current.stop(ae,()=>{N.current.pulsate(ae)})),E&&E(ae),_&&ae.target===ae.currentTarget&&Ve()&&ae.key===" "&&!ae.defaultPrevented&&_(ae)});let ke=c;ke==="button"&&(O.href||O.to)&&(ke=v);const Ze={};ke==="button"?(Ze.type=z===void 0?"button":z,Ze.disabled=d):(!O.href&&!O.to&&(Ze.role="button"),d&&(Ze["aria-disabled"]=d));const Ne=Ct(n,ee,A),Le=y({},r,{centerRipple:i,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:j,focusVisible:Q}),fe=f$(Le);return S.jsxs(p$,y({as:ke,className:pe(fe.root,a),ownerState:Le,onBlur:Ie,onClick:_,onContextMenu:ve,onFocus:Ye,onKeyDown:je,onKeyUp:ze,onMouseDown:ge,onMouseLeave:$e,onMouseUp:Ee,onDragLeave:ye,onTouchEnd:Ce,onTouchMove:Je,onTouchStart:we,ref:Ne,tabIndex:d?-1:j,type:z},Ze,O,{children:[l,re?S.jsx(a$,y({ref:G,center:i},D)):null]}))});function h$(e){return We("MuiAlert",e)}const Y_=Ue("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 m$(e){return We("MuiIconButton",e)}const g$=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),v$=["edge","children","className","color","disabled","disableFocusRipple","size"],y$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return xe(l,m$,t)},b$=de(Jl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(({theme:e,ownerState:t})=>y({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return y({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&y({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":y({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${g$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),So=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:f="medium"}=r,p=se(r,v$),g=y({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:f}),v=y$(g);return S.jsx(b$,y({className:pe(v.root,l),centerRipple:!0,focusRipple:!d,disabled:c,ref:n},p,{ownerState:g,children:i}))}),_$=nt(S.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"),C$=nt(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),x$=nt(S.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"),w$=nt(S.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"),fP=nt(S.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"),S$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],P$=Cy(),k$=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ce(n||r)}`,`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return xe(i,h$,o)},M$=de(Ui,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?bf:_f,n=e.palette.mode==="light"?_f:bf;return y({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.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),[`& .${Y_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.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}`,[`& .${Y_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:y({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)})}))]})}),I$=de("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),E$=de("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Q_=de("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),J_={success:S.jsx(_$,{fontSize:"inherit"}),warning:S.jsx(C$,{fontSize:"inherit"}),error:S.jsx(x$,{fontSize:"inherit"}),info:S.jsx(w$,{fontSize:"inherit"})},pP=m.forwardRef(function(t,n){const r=P$({props:t,name:"MuiAlert"}),{action:o,children:i,className:l,closeText:a="Close",color:c,components:d={},componentsProps:f={},icon:p,iconMapping:g=J_,onClose:v,role:x="alert",severity:_="success",slotProps:k={},slots:b={},variant:w="standard"}=r,P=se(r,S$),M=y({},r,{color:c,severity:_,variant:w,colorSeverity:c||_}),E=k$(M),$={slots:y({closeButton:d.CloseButton,closeIcon:d.CloseIcon},b),slotProps:y({},f,k)},[T,F]=U_("closeButton",{elementType:So,externalForwardedProps:$,ownerState:M}),[B,H]=U_("closeIcon",{elementType:fP,externalForwardedProps:$,ownerState:M});return S.jsxs(M$,y({role:x,elevation:0,ownerState:M,className:pe(E.root,l),ref:n},P,{children:[p!==!1?S.jsx(I$,{ownerState:M,className:E.icon,children:p||g[_]||J_[_]}):null,S.jsx(E$,{ownerState:M,className:E.message,children:i}),o!=null?S.jsx(Q_,{ownerState:M,className:E.action,children:o}):null,o==null&&v?S.jsx(Q_,{ownerState:M,className:E.action,children:S.jsx(T,y({size:"small","aria-label":a,title:a,color:"inherit",onClick:v},F,{children:S.jsx(B,y({fontSize:"small"},H))}))}):null]}))});function L$(e){return We("MuiTypography",e)}Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T$=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],O$=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return xe(a,L$,l)},R$=de("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>y({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),eC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},F$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$$=e=>F$[e]||e,Po=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTypography"}),o=$$(r.color),i=xp(y({},r,{color:o})),{align:l="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:v=eC}=i,x=se(i,T$),_=y({},i,{align:l,color:o,className:a,component:c,gutterBottom:d,noWrap:f,paragraph:p,variant:g,variantMapping:v}),k=c||(p?"p":v[g]||eC[g])||"span",b=O$(_);return S.jsx(R$,y({as:k,ref:n,ownerState:_,className:pe(b.root,a)},x))});function z$(e){return We("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const A$=["className","color","enableColorOnDark","position"],D$=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return xe(o,z$,r)},ud=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,N$=de(Ui,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return y({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&y({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&y({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&y({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ud(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ud(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:ud(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ud(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),B$=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:a="fixed"}=r,c=se(r,A$),d=y({},r,{color:i,position:a,enableColorOnDark:l}),f=D$(d);return S.jsx(N$,y({square:!0,component:"header",ownerState:d,elevation:4,className:pe(f.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))});function H$(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gy({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:a,max:c=r}=l?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:l,max:c,displayValue:d}}const hP="base";function j$(e){return`${hP}--${e}`}function G$(e,t){return`${hP}-${e}-${t}`}function mP(e,t){const n=GS[t];return n?j$(n):G$(e,t)}function V$(e,t){const n={};return t.forEach(r=>{n[r]=mP(e,r)}),n}function tC(e){return e.substring(2).toLowerCase()}function W$(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Ct(t.ref,a),p=at(x=>{const _=d.current;d.current=!1;const k=zt(a.current);if(!c.current||!a.current||"clientX"in x&&W$(x,k))return;if(l.current){l.current=!1;return}let b;x.composedPath?b=x.composedPath().indexOf(a.current)>-1:b=!k.documentElement.contains(x.target)||a.current.contains(x.target),!b&&(n||!_)&&o(x)}),g=x=>_=>{d.current=!0;const k=t.props[x];k&&k(_)},v={ref:f};return i!==!1&&(v[i]=g(i)),m.useEffect(()=>{if(i!==!1){const x=tC(i),_=zt(a.current),k=()=>{l.current=!0};return _.addEventListener(x,p),_.addEventListener("touchmove",k),()=>{_.removeEventListener(x,p),_.removeEventListener("touchmove",k)}}},[p,i]),r!==!1&&(v[r]=g(r)),m.useEffect(()=>{if(r!==!1){const x=tC(r),_=zt(a.current);return _.addEventListener(x,p),()=>{_.removeEventListener(x,p)}}},[p,r]),S.jsx(m.Fragment,{children:m.cloneElement(t,v)})}const U$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z$(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 K$(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 q$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||K$(e))}function X$(e){const t=[],n=[];return Array.from(e.querySelectorAll(U$)).forEach((r,o)=>{const i=Z$(r);i===-1||!q$(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 Y$(){return!0}function vP(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=X$,isEnabled:l=Y$,open:a}=e,c=m.useRef(!1),d=m.useRef(null),f=m.useRef(null),p=m.useRef(null),g=m.useRef(null),v=m.useRef(!1),x=m.useRef(null),_=Ct(t.ref,x),k=m.useRef(null);m.useEffect(()=>{!a||!x.current||(v.current=!n)},[n,a]),m.useEffect(()=>{if(!a||!x.current)return;const P=zt(x.current);return x.current.contains(P.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),v.current&&x.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[a]),m.useEffect(()=>{if(!a||!x.current)return;const P=zt(x.current),M=T=>{k.current=T,!(r||!l()||T.key!=="Tab")&&P.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},E=()=>{const T=x.current;if(T===null)return;if(!P.hasFocus()||!l()||c.current){c.current=!1;return}if(T.contains(P.activeElement)||r&&P.activeElement!==d.current&&P.activeElement!==f.current)return;if(P.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!v.current)return;let F=[];if((P.activeElement===d.current||P.activeElement===f.current)&&(F=i(x.current)),F.length>0){var B,H;const W=!!((B=k.current)!=null&&B.shiftKey&&((H=k.current)==null?void 0:H.key)==="Tab"),j=F[0],D=F[F.length-1];typeof j!="string"&&typeof D!="string"&&(W?D.focus():j.focus())}else T.focus()};P.addEventListener("focusin",E),P.addEventListener("keydown",M,!0);const $=setInterval(()=>{P.activeElement&&P.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval($),P.removeEventListener("focusin",E),P.removeEventListener("keydown",M,!0)}},[n,r,o,l,a,i]);const b=P=>{p.current===null&&(p.current=P.relatedTarget),v.current=!0,g.current=P.target;const M=t.props.onFocus;M&&M(P)},w=P=>{p.current===null&&(p.current=P.relatedTarget),v.current=!0};return S.jsxs(m.Fragment,{children:[S.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:d,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:_,onFocus:b}),S.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}function Q$(e){return typeof e=="function"?e():e}const yP=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,a]=m.useState(null),c=Ct(m.isValidElement(r)?r.ref:null,n);if(Mt(()=>{i||a(Q$(o)||document.body)},[o,i]),Mt(()=>{if(l&&!i)return Bu(n,l),()=>{Bu(n,null)}},[n,l,i]),i){if(m.isValidElement(r)){const d={ref:c};return m.cloneElement(r,d)}return S.jsx(m.Fragment,{children:r})}return S.jsx(m.Fragment,{children:l&&ic.createPortal(r,l)})});function J$(e){const t=zt(e);return t.body===e?ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nC(e){return parseInt(ti(e).getComputedStyle(e).paddingRight,10)||0}function ez(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function rC(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const a=i.indexOf(l)===-1,c=!ez(l);a&&c&&pu(l,o)})}function cm(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(J$(r)){const l=qS(zt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nC(r)+l}px`;const a=zt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${nC(c)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=zt(r).body;else{const l=r.parentElement,a=ti(r);i=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l: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:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function nz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rz{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&pu(t.modalRef,!1);const o=nz(n);rC(n,t.mount,t.modalRef,o,!0);const i=cm(this.containers,l=>l.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=cm(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=tz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=cm(this.containers,l=>l.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&pu(t.modalRef,n),rC(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&pu(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function oz(e){return typeof e=="function"?e():e}function iz(e){return e?e.props.hasOwnProperty("in"):!1}const sz=new rz;function lz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=sz,closeAfterTransition:i=!1,onTransitionEnter:l,onTransitionExited:a,children:c,onClose:d,open:f,rootRef:p}=e,g=m.useRef({}),v=m.useRef(null),x=m.useRef(null),_=Ct(x,p),[k,b]=m.useState(!f),w=iz(c);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const M=()=>zt(v.current),E=()=>(g.current.modalRef=x.current,g.current.mount=v.current,g.current),$=()=>{o.mount(E(),{disableScrollLock:r}),x.current&&(x.current.scrollTop=0)},T=at(()=>{const O=oz(t)||M().body;o.add(E(),O),x.current&&$()}),F=m.useCallback(()=>o.isTopModal(E()),[o]),B=at(O=>{v.current=O,O&&(f&&F()?$():x.current&&pu(x.current,P))}),H=m.useCallback(()=>{o.remove(E(),P)},[P,o]);m.useEffect(()=>()=>{H()},[H]),m.useEffect(()=>{f?T():(!w||!i)&&H()},[f,H,w,i,T]);const W=O=>A=>{var N;(N=O.onKeyDown)==null||N.call(O,A),!(A.key!=="Escape"||A.which===229||!F())&&(n||(A.stopPropagation(),d&&d(A,"escapeKeyDown")))},j=O=>A=>{var N;(N=O.onClick)==null||N.call(O,A),A.target===A.currentTarget&&d&&d(A,"backdropClick")};return{getRootProps:(O={})=>{const A=uP(e);delete A.onTransitionEnter,delete A.onTransitionExited;const N=y({},A,O);return y({role:"presentation"},N,{onKeyDown:W(N),ref:_})},getBackdropProps:(O={})=>{const A=O;return y({"aria-hidden":!0},A,{onClick:j(A),open:f})},getTransitionProps:()=>{const O=()=>{b(!1),l&&l()},A=()=>{b(!0),a&&a(),i&&H()};return{onEnter:Mg(O,c==null?void 0:c.props.onEnter),onExited:Mg(A,c==null?void 0:c.props.onExited)}},rootRef:_,portalRef:B,isTopModal:F,exited:k,hasTransition:w}}var nr="top",Wr="bottom",Ur="right",rr="left",Sy="auto",fc=[nr,Wr,Ur,rr],ea="start",Vu="end",az="clippingParents",bP="viewport",Ha="popper",uz="reference",oC=fc.reduce(function(e,t){return e.concat([t+"-"+ea,t+"-"+Vu])},[]),_P=[].concat(fc,[Sy]).reduce(function(e,t){return e.concat([t,t+"-"+ea,t+"-"+Vu])},[]),cz="beforeRead",dz="read",fz="afterRead",pz="beforeMain",hz="main",mz="afterMain",gz="beforeWrite",vz="write",yz="afterWrite",bz=[cz,dz,fz,pz,hz,mz,gz,vz,yz];function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function yr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){var t=yr(e).Element;return e instanceof t||e instanceof Element}function Hr(e){var t=yr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=yr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _z(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];!Hr(i)||!Ro(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function Cz(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]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,d){return c[d]="",c},{});!Hr(o)||!Ro(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const xz={name:"applyStyles",enabled:!0,phase:"write",fn:_z,effect:Cz,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var gs=Math.max,Sf=Math.min,ta=Math.round;function Fg(){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 CP(){return!/^((?!chrome|android).)*safari/i.test(Fg())}function na(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Hr(e)&&(o=e.offsetWidth>0&&ta(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ta(r.height)/e.offsetHeight||1);var l=Ss(e)?yr(e):window,a=l.visualViewport,c=!CP()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/o,f=(r.top+(c&&a?a.offsetTop:0))/i,p=r.width/o,g=r.height/i;return{width:p,height:g,top:f,right:d+p,bottom:f+g,left:d,x:d,y:f}}function ky(e){var t=na(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 xP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ri(e){return yr(e).getComputedStyle(e)}function wz(e){return["table","td","th"].indexOf(Ro(e))>=0}function Zi(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hp(e){return Ro(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||Zi(e)}function iC(e){return!Hr(e)||ri(e).position==="fixed"?null:e.offsetParent}function Sz(e){var t=/firefox/i.test(Fg()),n=/Trident/i.test(Fg());if(n&&Hr(e)){var r=ri(e);if(r.position==="fixed")return null}var o=Hp(e);for(Py(o)&&(o=o.host);Hr(o)&&["html","body"].indexOf(Ro(o))<0;){var i=ri(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=yr(e),n=iC(e);n&&wz(n)&&ri(n).position==="static";)n=iC(n);return n&&(Ro(n)==="html"||Ro(n)==="body"&&ri(n).position==="static")?t:n||Sz(e)||t}function My(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hu(e,t,n){return gs(e,Sf(t,n))}function Pz(e,t,n){var r=hu(e,t,n);return r>n?n:r}function wP(){return{top:0,right:0,bottom:0,left:0}}function SP(e){return Object.assign({},wP(),e)}function PP(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var kz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,SP(typeof t!="number"?t:PP(t,fc))};function Mz(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=Eo(n.placement),c=My(a),d=[rr,Ur].indexOf(a)>=0,f=d?"height":"width";if(!(!i||!l)){var p=kz(o.padding,n),g=ky(i),v=c==="y"?nr:rr,x=c==="y"?Wr:Ur,_=n.rects.reference[f]+n.rects.reference[c]-l[c]-n.rects.popper[f],k=l[c]-n.rects.reference[c],b=pc(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,P=_/2-k/2,M=p[v],E=w-g[f]-p[x],$=w/2-g[f]/2+P,T=hu(M,$,E),F=c;n.modifiersData[r]=(t={},t[F]=T,t.centerOffset=T-$,t)}}function Iz(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)||xP(t.elements.popper,o)&&(t.elements.arrow=o))}const Ez={name:"arrow",enabled:!0,phase:"main",fn:Mz,effect:Iz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ra(e){return e.split("-")[1]}var Lz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tz(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ta(n*o)/o||0,y:ta(r*o)/o||0}}function sC(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,g=l.x,v=g===void 0?0:g,x=l.y,_=x===void 0?0:x,k=typeof f=="function"?f({x:v,y:_}):{x:v,y:_};v=k.x,_=k.y;var b=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),P=rr,M=nr,E=window;if(d){var $=pc(n),T="clientHeight",F="clientWidth";if($===yr(n)&&($=Zi(n),ri($).position!=="static"&&a==="absolute"&&(T="scrollHeight",F="scrollWidth")),$=$,o===nr||(o===rr||o===Ur)&&i===Vu){M=Wr;var B=p&&$===E&&E.visualViewport?E.visualViewport.height:$[T];_-=B-r.height,_*=c?1:-1}if(o===rr||(o===nr||o===Wr)&&i===Vu){P=Ur;var H=p&&$===E&&E.visualViewport?E.visualViewport.width:$[F];v-=H-r.width,v*=c?1:-1}}var W=Object.assign({position:a},d&&Lz),j=f===!0?Tz({x:v,y:_},yr(n)):{x:v,y:_};if(v=j.x,_=j.y,c){var D;return Object.assign({},W,(D={},D[M]=w?"0":"",D[P]=b?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+_+"px)":"translate3d("+v+"px, "+_+"px, 0)",D))}return Object.assign({},W,(t={},t[M]=w?_+"px":"",t[P]=b?v+"px":"",t.transform="",t))}function Oz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:Eo(t.placement),variation:ra(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,sC(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,sC(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Oz,data:{}};var cd={passive:!0};function Fz(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=yr(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,cd)}),a&&c.addEventListener("resize",n.update,cd),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,cd)}),a&&c.removeEventListener("resize",n.update,cd)}}const $z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fz,data:{}};var zz={left:"right",right:"left",bottom:"top",top:"bottom"};function Dd(e){return e.replace(/left|right|bottom|top/g,function(t){return zz[t]})}var Az={start:"end",end:"start"};function lC(e){return e.replace(/start|end/g,function(t){return Az[t]})}function Iy(e){var t=yr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ey(e){return na(Zi(e)).left+Iy(e).scrollLeft}function Dz(e,t){var n=yr(e),r=Zi(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(o){i=o.width,l=o.height;var d=CP();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:a+Ey(e),y:c}}function Nz(e){var t,n=Zi(e),r=Iy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=gs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=gs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ey(e),c=-r.scrollTop;return ri(o||n).direction==="rtl"&&(a+=gs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function Ly(e){var t=ri(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function kP(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:Hr(e)&&Ly(e)?e:kP(Hp(e))}function mu(e,t){var n;t===void 0&&(t=[]);var r=kP(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yr(r),l=o?[i].concat(i.visualViewport||[],Ly(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(mu(Hp(l)))}function $g(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bz(e,t){var n=na(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 aC(e,t,n){return t===bP?$g(Dz(e,n)):Ss(t)?Bz(t,n):$g(Nz(Zi(e)))}function Hz(e){var t=mu(Hp(e)),n=["absolute","fixed"].indexOf(ri(e).position)>=0,r=n&&Hr(e)?pc(e):e;return Ss(r)?t.filter(function(o){return Ss(o)&&xP(o,r)&&Ro(o)!=="body"}):[]}function jz(e,t,n,r){var o=t==="clippingParents"?Hz(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce(function(c,d){var f=aC(e,d,r);return c.top=gs(f.top,c.top),c.right=Sf(f.right,c.right),c.bottom=Sf(f.bottom,c.bottom),c.left=gs(f.left,c.left),c},aC(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function MP(e){var t=e.reference,n=e.element,r=e.placement,o=r?Eo(r):null,i=r?ra(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case nr:c={x:l,y:t.y-n.height};break;case Wr:c={x:l,y:t.y+t.height};break;case Ur:c={x:t.x+t.width,y:a};break;case rr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?My(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case ea:c[d]=c[d]-(t[f]/2-n[f]/2);break;case Vu:c[d]=c[d]+(t[f]/2-n[f]/2);break}}return c}function Wu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?az:a,d=n.rootBoundary,f=d===void 0?bP:d,p=n.elementContext,g=p===void 0?Ha:p,v=n.altBoundary,x=v===void 0?!1:v,_=n.padding,k=_===void 0?0:_,b=SP(typeof k!="number"?k:PP(k,fc)),w=g===Ha?uz:Ha,P=e.rects.popper,M=e.elements[x?w:g],E=jz(Ss(M)?M:M.contextElement||Zi(e.elements.popper),c,f,l),$=na(e.elements.reference),T=MP({reference:$,element:P,strategy:"absolute",placement:o}),F=$g(Object.assign({},P,T)),B=g===Ha?F:$,H={top:E.top-B.top+b.top,bottom:B.bottom-E.bottom+b.bottom,left:E.left-B.left+b.left,right:B.right-E.right+b.right},W=e.modifiersData.offset;if(g===Ha&&W){var j=W[o];Object.keys(H).forEach(function(D){var R=[Ur,Wr].indexOf(D)>=0?1:-1,z=[nr,Wr].indexOf(D)>=0?"y":"x";H[D]+=j[z]*R})}return H}function Gz(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?_P:c,f=ra(r),p=f?a?oC:oC.filter(function(x){return ra(x)===f}):fc,g=p.filter(function(x){return d.indexOf(x)>=0});g.length===0&&(g=p);var v=g.reduce(function(x,_){return x[_]=Wu(e,{placement:_,boundary:o,rootBoundary:i,padding:l})[Eo(_)],x},{});return Object.keys(v).sort(function(x,_){return v[x]-v[_]})}function Vz(e){if(Eo(e)===Sy)return[];var t=Dd(e);return[lC(e),t,lC(t)]}function Wz(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,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,d=n.padding,f=n.boundary,p=n.rootBoundary,g=n.altBoundary,v=n.flipVariations,x=v===void 0?!0:v,_=n.allowedAutoPlacements,k=t.options.placement,b=Eo(k),w=b===k,P=c||(w||!x?[Dd(k)]:Vz(k)),M=[k].concat(P).reduce(function(Q,X){return Q.concat(Eo(X)===Sy?Gz(t,{placement:X,boundary:f,rootBoundary:p,padding:d,flipVariations:x,allowedAutoPlacements:_}):X)},[]),E=t.rects.reference,$=t.rects.popper,T=new Map,F=!0,B=M[0],H=0;H=0,z=R?"width":"height",O=Wu(t,{placement:W,boundary:f,rootBoundary:p,altBoundary:g,padding:d}),A=R?D?Ur:rr:D?Wr:nr;E[z]>$[z]&&(A=Dd(A));var N=Dd(A),G=[];if(i&&G.push(O[j]<=0),a&&G.push(O[A]<=0,O[N]<=0),G.every(function(Q){return Q})){B=W,F=!1;break}T.set(W,G)}if(F)for(var U=x?3:1,Z=function(X){var te=M.find(function(me){var re=T.get(me);if(re)return re.slice(0,X).every(function(oe){return oe})});if(te)return B=te,"break"},Y=U;Y>0;Y--){var ee=Z(Y);if(ee==="break")break}t.placement!==B&&(t.modifiersData[r]._skip=!0,t.placement=B,t.reset=!0)}}const Uz={name:"flip",enabled:!0,phase:"main",fn:Wz,requiresIfExists:["offset"],data:{_skip:!1}};function uC(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 cC(e){return[nr,Ur,Wr,rr].some(function(t){return e[t]>=0})}function Zz(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=Wu(t,{elementContext:"reference"}),a=Wu(t,{altBoundary:!0}),c=uC(l,r),d=uC(a,o,i),f=cC(c),p=cC(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const Kz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zz};function qz(e,t,n){var r=Eo(e),o=[rr,nr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[rr,Ur].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function Xz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=_P.reduce(function(f,p){return f[p]=qz(p,t.rects,i),f},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const Yz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xz};function Qz(e){var t=e.state,n=e.name;t.modifiersData[n]=MP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Jz={name:"popperOffsets",enabled:!0,phase:"read",fn:Qz,data:{}};function eA(e){return e==="x"?"y":"x"}function tA(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,g=n.tether,v=g===void 0?!0:g,x=n.tetherOffset,_=x===void 0?0:x,k=Wu(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:f}),b=Eo(t.placement),w=ra(t.placement),P=!w,M=My(b),E=eA(M),$=t.modifiersData.popperOffsets,T=t.rects.reference,F=t.rects.popper,B=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if($){if(i){var D,R=M==="y"?nr:rr,z=M==="y"?Wr:Ur,O=M==="y"?"height":"width",A=$[M],N=A+k[R],G=A-k[z],U=v?-F[O]/2:0,Z=w===ea?T[O]:F[O],Y=w===ea?-F[O]:-T[O],ee=t.elements.arrow,Q=v&&ee?ky(ee):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wP(),te=X[R],me=X[z],re=hu(0,T[O],Q[O]),oe=P?T[O]/2-U-re-te-H.mainAxis:Z-re-te-H.mainAxis,ge=P?-T[O]/2+U+re+me+H.mainAxis:Y+re+me+H.mainAxis,ve=t.elements.arrow&&pc(t.elements.arrow),ye=ve?M==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ee=(D=W==null?void 0:W[M])!=null?D:0,$e=A+oe-Ee-ye,we=A+ge-Ee,Ce=hu(v?Sf(N,$e):N,A,v?gs(G,we):G);$[M]=Ce,j[M]=Ce-A}if(a){var Je,Ie=M==="x"?nr:rr,Ye=M==="x"?Wr:Ur,Ve=$[E],He=E==="y"?"height":"width",je=Ve+k[Ie],ze=Ve-k[Ye],ke=[nr,rr].indexOf(b)!==-1,Ze=(Je=W==null?void 0:W[E])!=null?Je:0,Ne=ke?je:Ve-T[He]-F[He]-Ze+H.altAxis,Le=ke?Ve+T[He]+F[He]-Ze-H.altAxis:ze,fe=v&&ke?Pz(Ne,Ve,Le):hu(v?Ne:je,Ve,v?Le:ze);$[E]=fe,j[E]=fe-Ve}t.modifiersData[r]=j}}const nA={name:"preventOverflow",enabled:!0,phase:"main",fn:tA,requiresIfExists:["offset"]};function rA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oA(e){return e===yr(e)||!Hr(e)?Iy(e):rA(e)}function iA(e){var t=e.getBoundingClientRect(),n=ta(t.width)/e.offsetWidth||1,r=ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sA(e,t,n){n===void 0&&(n=!1);var r=Hr(t),o=Hr(t)&&iA(t),i=Zi(t),l=na(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ro(t)!=="body"||Ly(i))&&(a=oA(t)),Hr(t)?(c=na(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Ey(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function lA(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 l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function aA(e){var t=lA(e);return bz.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function uA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cA(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 dC={placement:"bottom",modifiers:[],strategy:"absolute"};function fC(){for(var e=arguments.length,t=new Array(e),n=0;nxe({root:["root"]},qF(hA)),_A={},CA=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:l,disablePortal:a,modifiers:c,open:d,placement:f,popperOptions:p,popperRef:g,slotProps:v={},slots:x={},TransitionProps:_}=t,k=se(t,mA),b=m.useRef(null),w=Ct(b,n),P=m.useRef(null),M=Ct(P,g),E=m.useRef(M);Mt(()=>{E.current=M},[M]),m.useImperativeHandle(g,()=>P.current,[]);const $=vA(f,l),[T,F]=m.useState($),[B,H]=m.useState(zg(o));m.useEffect(()=>{P.current&&P.current.forceUpdate()}),m.useEffect(()=>{o&&H(zg(o))},[o]),Mt(()=>{if(!B||!d)return;const z=N=>{F(N.placement)};let O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{z(N)}}];c!=null&&(O=O.concat(c)),p&&p.modifiers!=null&&(O=O.concat(p.modifiers));const A=pA(B,b.current,y({placement:$},p,{modifiers:O}));return E.current(A),()=>{A.destroy(),E.current(null)}},[B,a,c,d,p,$]);const W={placement:T};_!==null&&(W.TransitionProps=_);const j=bA(),D=(r=x.root)!=null?r:"div",R=ni({elementType:D,externalSlotProps:v.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:j.root});return S.jsx(D,y({},R,{children:typeof i=="function"?i(W):i}))}),xA=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:g=_A,popperRef:v,style:x,transition:_=!1,slotProps:k={},slots:b={}}=t,w=se(t,gA),[P,M]=m.useState(!0),E=()=>{M(!1)},$=()=>{M(!0)};if(!c&&!f&&(!_||P))return null;let T;if(i)T=i;else if(r){const H=zg(r);T=H&&yA(H)?zt(H).body:zt(null).body}const F=!f&&c&&(!_||P)?"none":void 0,B=_?{in:f,onEnter:E,onExited:$}:void 0;return S.jsx(yP,{disablePortal:a,container:T,children:S.jsx(CA,y({anchorEl:r,direction:l,disablePortal:a,modifiers:d,ref:n,open:_?!P:f,placement:p,popperOptions:g,popperRef:v,slotProps:k,slots:b},w,{style:y({position:"fixed",top:0,left:0,display:F},x),TransitionProps:B,children:o}))})}),wA=["onChange","maxRows","minRows","style","value"];function dd(e){return parseInt(e,10)||0}const SA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function PA(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const kA=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:l,value:a}=t,c=se(t,wA),{current:d}=m.useRef(a!=null),f=m.useRef(null),p=Ct(n,f),g=m.useRef(null),v=m.useCallback(()=>{const k=f.current,w=ti(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=g.current;P.style.width=w.width,P.value=k.value||t.placeholder||"x",P.value.slice(-1)===` +`&&(P.value+=" ");const M=w.boxSizing,E=dd(w.paddingBottom)+dd(w.paddingTop),$=dd(w.borderBottomWidth)+dd(w.borderTopWidth),T=P.scrollHeight;P.value="x";const F=P.scrollHeight;let B=T;i&&(B=Math.max(Number(i)*F,B)),o&&(B=Math.min(Number(o)*F,B)),B=Math.max(B,F);const H=B+(M==="border-box"?E+$:0),W=Math.abs(B-T)<=1;return{outerHeightStyle:H,overflowing:W}},[o,i,t.placeholder]),x=m.useCallback(()=>{const k=v();if(PA(k))return;const b=f.current;b.style.height=`${k.outerHeightStyle}px`,b.style.overflow=k.overflowing?"hidden":""},[v]);Mt(()=>{const k=()=>{x()};let b;const w=Fp(k),P=f.current,M=ti(P);M.addEventListener("resize",w);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(k),E.observe(P)),()=>{w.clear(),cancelAnimationFrame(b),M.removeEventListener("resize",w),E&&E.disconnect()}},[v,x]),Mt(()=>{x()});const _=k=>{d||x(),r&&r(k)};return S.jsxs(m.Fragment,{children:[S.jsx("textarea",y({value:a,onChange:_,ref:p,rows:i,style:l},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:y({},SA.shadow,l,{paddingTop:0,paddingBottom:0})})]})});function pC(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function EP(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:l=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let f=l?c.trim():c;n&&(f=f.toLowerCase()),t&&(f=pC(f));const p=f?a.filter(g=>{let v=(i||d)(g);return n&&(v=v.toLowerCase()),t&&(v=pC(v)),o==="start"?v.indexOf(f)===0:v.indexOf(f)>-1}):a;return typeof r=="number"?p.slice(0,r):p}}function fd(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function EA(e){const{unstable_isActiveElementInListbox:t=IA,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:v,disabledItemsFocusable:x=!1,disableListWrap:_=!1,filterOptions:k=MA,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:P,getOptionKey:M,getOptionLabel:E=ue=>{var le;return(le=ue.label)!=null?le:ue},groupBy:$,handleHomeEndKeys:T=!e.freeSolo,id:F,includeInputInList:B=!1,inputValue:H,isOptionEqualToValue:W=(ue,le)=>ue===le,multiple:j=!1,onChange:D,onClose:R,onHighlightChange:z,onInputChange:O,onOpen:A,open:N,openOnFocus:G=!1,options:U,readOnly:Z=!1,selectOnFocus:Y=!e.freeSolo,value:ee}=e,Q=Ot(F);let X=E;X=ue=>{const le=E(ue);return typeof le!="string"?String(le):le};const te=m.useRef(!1),me=m.useRef(!0),re=m.useRef(null),oe=m.useRef(null),[ge,ve]=m.useState(null),[ye,Ee]=m.useState(-1),$e=o?0:-1,we=m.useRef($e),[Ce,Je]=zi({controlled:ee,default:f,name:d}),[Ie,Ye]=zi({controlled:H,default:"",name:d,state:"inputValue"}),[Ve,He]=m.useState(!1),je=m.useCallback((ue,le)=>{if(!(j?Ce.length!(b&&(j?Ce:[Ce]).some(le=>le!==null&&W(ue,le)))),{inputValue:Le&&Ze?"":Ie,getOptionLabel:X}):[],Pe=gy({filteredOptions:ae,value:Ce,inputValue:Ie});m.useEffect(()=>{const ue=Ce!==Pe.value;Ve&&!ue||w&&!ue||je(null,Ce)},[Ce,je,Ve,Pe.value,w]);const st=ze&&ae.length>0&&!Z,ct=at(ue=>{ue===-1?re.current.focus():ge.querySelector(`[data-tag-index="${ue}"]`).focus()});m.useEffect(()=>{j&&ye>Ce.length-1&&(Ee(-1),ct(-1))},[Ce,j,ye,ct]);function Me(ue,le){if(!oe.current||ue<0||ue>=ae.length)return-1;let Te=ue;for(;;){const Se=oe.current.querySelector(`[data-option-index="${Te}"]`),Ke=x?!1:!Se||Se.disabled||Se.getAttribute("aria-disabled")==="true";if(Se&&Se.hasAttribute("tabindex")&&!Ke)return Te;if(le==="next"?Te=(Te+1)%ae.length:Te=(Te-1+ae.length)%ae.length,Te===ue)return-1}}const Ge=at(({event:ue,index:le,reason:Te="auto"})=>{if(we.current=le,le===-1?re.current.removeAttribute("aria-activedescendant"):re.current.setAttribute("aria-activedescendant",`${Q}-option-${le}`),z&&z(ue,le===-1?null:ae[le],Te),!oe.current)return;const Se=oe.current.querySelector(`[role="option"].${n}-focused`);Se&&(Se.classList.remove(`${n}-focused`),Se.classList.remove(`${n}-focusVisible`));let Ke=oe.current;if(oe.current.getAttribute("role")!=="listbox"&&(Ke=oe.current.parentElement.querySelector('[role="listbox"]')),!Ke)return;if(le===-1){Ke.scrollTop=0;return}const Fe=oe.current.querySelector(`[data-option-index="${le}"]`);if(Fe&&(Fe.classList.add(`${n}-focused`),Te==="keyboard"&&Fe.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&Te!=="mouse"&&Te!=="touch")){const rt=Fe,zn=Ke.clientHeight+Ke.scrollTop,Hs=rt.offsetTop+rt.offsetHeight;Hs>zn?Ke.scrollTop=Hs-Ke.clientHeight:rt.offsetTop-rt.offsetHeight*($?1.3:0){if(!fe)return;const Fe=Me((()=>{const rt=ae.length-1;if(le==="reset")return $e;if(le==="start")return 0;if(le==="end")return rt;const zn=we.current+le;return zn<0?zn===-1&&B?-1:_&&we.current!==-1||Math.abs(le)>1?0:rt:zn>rt?zn===rt+1&&B?-1:_||Math.abs(le)>1?rt:0:zn})(),Te);if(Ge({index:Fe,reason:Se,event:ue}),r&&le!=="reset")if(Fe===-1)re.current.value=Ie;else{const rt=X(ae[Fe]);re.current.value=rt,rt.toLowerCase().indexOf(Ie.toLowerCase())===0&&Ie.length>0&&re.current.setSelectionRange(Ie.length,rt.length)}}),Et=()=>{const ue=(le,Te)=>{const Se=le?X(le):"",Ke=Te?X(Te):"";return Se===Ke};if(we.current!==-1&&Pe.filteredOptions&&Pe.filteredOptions.length!==ae.length&&Pe.inputValue===Ie&&(j?Ce.length===Pe.value.length&&Pe.value.every((le,Te)=>X(Ce[Te])===X(le)):ue(Pe.value,Ce))){const le=Pe.filteredOptions[we.current];if(le)return fd(ae,Te=>X(Te)===X(le))}return-1},jt=m.useCallback(()=>{if(!fe)return;const ue=Et();if(ue!==-1){we.current=ue;return}const le=j?Ce[0]:Ce;if(ae.length===0||le==null){et({diff:"reset"});return}if(oe.current){if(le!=null){const Te=ae[we.current];if(j&&Te&&fd(Ce,Ke=>W(Te,Ke))!==-1)return;const Se=fd(ae,Ke=>W(Ke,le));Se===-1?et({diff:"reset"}):Ge({index:Se});return}if(we.current>=ae.length-1){Ge({index:ae.length-1});return}Ge({index:we.current})}},[ae.length,j?!1:Ce,b,et,Ge,fe,Ie,j]),sr=at(ue=>{Bu(oe,ue),ue&&jt()});m.useEffect(()=>{jt()},[jt]);const Xt=ue=>{ze||(ke(!0),Ne(!0),A&&A(ue))},Yt=(ue,le)=>{ze&&(ke(!1),R&&R(ue,le))},rn=(ue,le,Te,Se)=>{if(j){if(Ce.length===le.length&&Ce.every((Ke,Fe)=>Ke===le[Fe]))return}else if(Ce===le)return;D&&D(ue,le,Te,Se),Je(le)},Un=m.useRef(!1),Zn=(ue,le,Te="selectOption",Se="options")=>{let Ke=Te,Fe=le;if(j){Fe=Array.isArray(Ce)?Ce.slice():[];const rt=fd(Fe,zn=>W(le,zn));rt===-1?Fe.push(le):Se!=="freeSolo"&&(Fe.splice(rt,1),Ke="removeOption")}je(ue,Fe),rn(ue,Fe,Ke,{option:le}),!g&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&Yt(ue,Ke),(l===!0||l==="touch"&&Un.current||l==="mouse"&&!Un.current)&&re.current.blur()};function wr(ue,le){if(ue===-1)return-1;let Te=ue;for(;;){if(le==="next"&&Te===Ce.length||le==="previous"&&Te===-1)return-1;const Se=ge.querySelector(`[data-tag-index="${Te}"]`);if(!Se||!Se.hasAttribute("tabindex")||Se.disabled||Se.getAttribute("aria-disabled")==="true")Te+=le==="next"?1:-1;else return Te}}const Ao=(ue,le)=>{if(!j)return;Ie===""&&Yt(ue,"toggleInput");let Te=ye;ye===-1?Ie===""&&le==="previous"&&(Te=Ce.length-1):(Te+=le==="next"?1:-1,Te<0&&(Te=0),Te===Ce.length&&(Te=-1)),Te=wr(Te,le),Ee(Te),ct(Te)},ui=ue=>{te.current=!0,Ye(""),O&&O(ue,"","clear"),rn(ue,j?[]:null,"clear")},Ji=ue=>le=>{if(ue.onKeyDown&&ue.onKeyDown(le),!le.defaultMuiPrevented&&(ye!==-1&&["ArrowLeft","ArrowRight"].indexOf(le.key)===-1&&(Ee(-1),ct(-1)),le.which!==229))switch(le.key){case"Home":fe&&T&&(le.preventDefault(),et({diff:"start",direction:"next",reason:"keyboard",event:le}));break;case"End":fe&&T&&(le.preventDefault(),et({diff:"end",direction:"previous",reason:"keyboard",event:le}));break;case"PageUp":le.preventDefault(),et({diff:-hC,direction:"previous",reason:"keyboard",event:le}),Xt(le);break;case"PageDown":le.preventDefault(),et({diff:hC,direction:"next",reason:"keyboard",event:le}),Xt(le);break;case"ArrowDown":le.preventDefault(),et({diff:1,direction:"next",reason:"keyboard",event:le}),Xt(le);break;case"ArrowUp":le.preventDefault(),et({diff:-1,direction:"previous",reason:"keyboard",event:le}),Xt(le);break;case"ArrowLeft":Ao(le,"previous");break;case"ArrowRight":Ao(le,"next");break;case"Enter":if(we.current!==-1&&fe){const Te=ae[we.current],Se=P?P(Te):!1;if(le.preventDefault(),Se)return;Zn(le,Te,"selectOption"),r&&re.current.setSelectionRange(re.current.value.length,re.current.value.length)}else w&&Ie!==""&&Le===!1&&(j&&le.preventDefault(),Zn(le,Ie,"createOption","freeSolo"));break;case"Escape":fe?(le.preventDefault(),le.stopPropagation(),Yt(le,"escape")):c&&(Ie!==""||j&&Ce.length>0)&&(le.preventDefault(),le.stopPropagation(),ui(le));break;case"Backspace":if(j&&!Z&&Ie===""&&Ce.length>0){const Te=ye===-1?Ce.length-1:ye,Se=Ce.slice();Se.splice(Te,1),rn(le,Se,"removeOption",{option:Ce[Te]})}break;case"Delete":if(j&&!Z&&Ie===""&&Ce.length>0&&ye!==-1){const Te=ye,Se=Ce.slice();Se.splice(Te,1),rn(le,Se,"removeOption",{option:Ce[Te]})}break}},Bs=ue=>{He(!0),G&&!te.current&&Xt(ue)},Kn=ue=>{if(t(oe)){re.current.focus();return}He(!1),me.current=!0,te.current=!1,i&&we.current!==-1&&fe?Zn(ue,ae[we.current],"blur"):i&&w&&Ie!==""?Zn(ue,Ie,"blur","freeSolo"):a&&je(ue,Ce),Yt(ue,"blur")},on=ue=>{const le=ue.target.value;Ie!==le&&(Ye(le),Ne(!1),O&&O(ue,le,"input")),le===""?!p&&!j&&rn(ue,null,"clear"):Xt(ue)},Rt=ue=>{const le=Number(ue.currentTarget.getAttribute("data-option-index"));we.current!==le&&Ge({event:ue,index:le,reason:"mouse"})},xn=ue=>{Ge({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Un.current=!0},In=ue=>{const le=Number(ue.currentTarget.getAttribute("data-option-index"));Zn(ue,ae[le],"selectOption"),Un.current=!1},sn=ue=>le=>{const Te=Ce.slice();Te.splice(ue,1),rn(le,Te,"removeOption",{option:Ce[ue]})},Be=ue=>{ze?Yt(ue,"toggleInput"):Xt(ue)},Sr=ue=>{ue.currentTarget.contains(ue.target)&&ue.target.getAttribute("id")!==Q&&ue.preventDefault()},qr=ue=>{ue.currentTarget.contains(ue.target)&&(re.current.focus(),Y&&me.current&&re.current.selectionEnd-re.current.selectionStart===0&&re.current.select(),me.current=!1)},Xr=ue=>{!v&&(Ie===""||!ze)&&Be(ue)};let lr=w&&Ie.length>0;lr=lr||(j?Ce.length>0:Ce!==null);let ar=ae;return $&&(ar=ae.reduce((ue,le,Te)=>{const Se=$(le);return ue.length>0&&ue[ue.length-1].group===Se?ue[ue.length-1].options.push(le):ue.push({key:Te,index:Te,group:Se,options:[le]}),ue},[])),v&&Ve&&Kn(),{getRootProps:(ue={})=>y({"aria-owns":st?`${Q}-listbox`:null},ue,{onKeyDown:Ji(ue),onMouseDown:Sr,onClick:qr}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:Ie,onBlur:Kn,onFocus:Bs,onChange:on,onMouseDown:Xr,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":st?`${Q}-listbox`:void 0,"aria-expanded":st,autoComplete:"off",ref:re,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ui}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Be}),getTagProps:({index:ue})=>y({key:ue,"data-tag-index":ue,tabIndex:-1},!Z&&{onDelete:sn(ue)}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:sr,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:le})=>{var Te;const Se=(j?Ce:[Ce]).some(Fe=>Fe!=null&&W(le,Fe)),Ke=P?P(le):!1;return{key:(Te=M==null?void 0:M(le))!=null?Te:X(le),tabIndex:-1,role:"option",id:`${Q}-option-${ue}`,onMouseMove:Rt,onClick:In,onTouchStart:xn,"data-option-index":ue,"aria-disabled":Ke,"aria-selected":Se}},id:Q,inputValue:Ie,value:Ce,dirty:lr,expanded:fe&&ge,popupOpen:fe,focused:Ve||ye!==-1,anchorEl:ge,setAnchorEl:ve,focusedTag:ye,groupedOptions:ar}}var Ty={};Object.defineProperty(Ty,"__esModule",{value:!0});var LP=Ty.default=void 0,LA=OA(m),TA=oP;function TP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(TP=function(r){return r?n:t})(e)}function OA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=TP(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function RA(e){return Object.keys(e).length===0}function FA(e=null){const t=LA.useContext(TA.ThemeContext);return!t||RA(t)?e:t}LP=Ty.default=FA;const $A=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],zA=de(xA,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ts=m.forwardRef(function(t,n){var r;const o=LP(),i=Xe({props:t,name:"MuiPopper"}),{anchorEl:l,component:a,components:c,componentsProps:d,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:x,placement:_,popperOptions:k,popperRef:b,transition:w,slots:P,slotProps:M}=i,E=se(i,$A),$=(r=P==null?void 0:P.root)!=null?r:c==null?void 0:c.Root,T=y({anchorEl:l,container:f,disablePortal:p,keepMounted:g,modifiers:v,open:x,placement:_,popperOptions:k,popperRef:b,transition:w},E);return S.jsx(zA,y({as:a,direction:o==null?void 0:o.direction,slots:{root:$},slotProps:M??d},T,{ref:n}))});function AA(e){return We("MuiListSubheader",e)}Ue("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const DA=["className","color","component","disableGutters","disableSticky","inset"],NA=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,l={root:["root",n!=="default"&&`color${ce(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return xe(l,AA,t)},BA=de("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>y({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),OP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,f=se(r,DA),p=y({},r,{color:i,component:l,disableGutters:a,disableSticky:c,inset:d}),g=NA(p);return S.jsx(BA,y({as:l,className:pe(g.root,o),ref:n,ownerState:p},f))});OP.muiSkipListHighlight=!0;const HA=nt(S.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 jA(e){return We("MuiChip",e)}const yt=Ue("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),GA=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],VA=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:l,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ce(r)}`,`color${ce(o)}`,a&&"clickable",a&&`clickableColor${ce(o)}`,l&&"deletable",l&&`deletableColor${ce(o)}`,`${c}${ce(o)}`],label:["label",`label${ce(r)}`],avatar:["avatar",`avatar${ce(r)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(r)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(r)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(c)}Color${ce(o)}`]};return xe(d,jA,t)},WA=de("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:l,size:a,variant:c}=n;return[{[`& .${yt.avatar}`]:t.avatar},{[`& .${yt.avatar}`]:t[`avatar${ce(a)}`]},{[`& .${yt.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${yt.icon}`]:t.icon},{[`& .${yt.icon}`]:t[`icon${ce(a)}`]},{[`& .${yt.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${yt.deleteIcon}`]:t.deleteIcon},{[`& .${yt.deleteIcon}`]:t[`deleteIcon${ce(a)}`]},{[`& .${yt.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${yt.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(r)}`]},t.root,t[`size${ce(a)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${ce(r)}`],t[c],t[`${c}${ce(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return y({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",[`&.${yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${yt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${yt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${yt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${yt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${yt.icon}`]:y({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&y({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${yt.deleteIcon}`]:y({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(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)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>y({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>y({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${yt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${yt.avatar}`]:{marginLeft:4},[`& .${yt.avatarSmall}`]:{marginLeft:2},[`& .${yt.icon}`]:{marginLeft:4},[`& .${yt.iconSmall}`]:{marginLeft:2},[`& .${yt.deleteIcon}`]:{marginRight:5},[`& .${yt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),UA=de("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(r)}`]]}})(({ownerState:e})=>y({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function mC(e){return e.key==="Backspace"||e.key==="Delete"}const RP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:l,color:a="default",component:c,deleteIcon:d,disabled:f=!1,icon:p,label:g,onClick:v,onDelete:x,onKeyDown:_,onKeyUp:k,size:b="medium",variant:w="filled",tabIndex:P,skipFocusWhenDisabled:M=!1}=r,E=se(r,GA),$=m.useRef(null),T=Ct($,n),F=G=>{G.stopPropagation(),x&&x(G)},B=G=>{G.currentTarget===G.target&&mC(G)&&G.preventDefault(),_&&_(G)},H=G=>{G.currentTarget===G.target&&(x&&mC(G)?x(G):G.key==="Escape"&&$.current&&$.current.blur()),k&&k(G)},W=l!==!1&&v?!0:l,j=W||x?Jl:c||"div",D=y({},r,{component:j,disabled:f,size:b,color:a,iconColor:m.isValidElement(p)&&p.props.color||a,onDelete:!!x,clickable:W,variant:w}),R=VA(D),z=j===Jl?y({component:c||"div",focusVisibleClassName:R.focusVisible},x&&{disableRipple:!0}):{};let O=null;x&&(O=d&&m.isValidElement(d)?m.cloneElement(d,{className:pe(d.props.className,R.deleteIcon),onClick:F}):S.jsx(HA,{className:pe(R.deleteIcon),onClick:F}));let A=null;o&&m.isValidElement(o)&&(A=m.cloneElement(o,{className:pe(R.avatar,o.props.className)}));let N=null;return p&&m.isValidElement(p)&&(N=m.cloneElement(p,{className:pe(R.icon,p.props.className)})),S.jsxs(WA,y({as:j,className:pe(R.root,i),disabled:W&&f?!0:void 0,onClick:v,onKeyDown:B,onKeyUp:H,ref:T,tabIndex:M&&f?-1:P,ownerState:D},z,E,{children:[A||N,S.jsx(UA,{className:pe(R.label),ownerState:D,children:g}),O]}))});function Os({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 jp=m.createContext(void 0);function si(){return m.useContext(jp)}function FP(e){return S.jsx(kR,y({},e,{defaultTheme:Np,themeId:sc}))}function gC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Pf(e,t=!1){return e&&(gC(e.value)&&e.value!==""||t&&gC(e.defaultValue)&&e.defaultValue!=="")}function ZA(e){return e.startAdornment}function KA(e){return We("MuiInputBase",e)}const cr=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qA=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Gp=(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${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vp=(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]},XA=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:c,hiddenLabel:d,multiline:f,readOnly:p,size:g,startAdornment:v,type:x}=e,_={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",g&&g!=="medium"&&`size${ce(g)}`,f&&"multiline",v&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return xe(_,KA,t)},Wp=de("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gp})(({theme:e,ownerState:t})=>y({},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",[`&.${cr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&y({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Up=de("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=y({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return y({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${cr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${cr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),YA=S.jsx(FP,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ha=m.forwardRef(function(t,n){var r;const o=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:a,className:c,components:d={},componentsProps:f={},defaultValue:p,disabled:g,disableInjectingGlobalStyles:v,endAdornment:x,fullWidth:_=!1,id:k,inputComponent:b="input",inputProps:w={},inputRef:P,maxRows:M,minRows:E,multiline:$=!1,name:T,onBlur:F,onChange:B,onClick:H,onFocus:W,onKeyDown:j,onKeyUp:D,placeholder:R,readOnly:z,renderSuffix:O,rows:A,slotProps:N={},slots:G={},startAdornment:U,type:Z="text",value:Y}=o,ee=se(o,qA),Q=w.value!=null?w.value:Y,{current:X}=m.useRef(Q!=null),te=m.useRef(),me=m.useCallback(fe=>{},[]),re=Ct(te,P,w.ref,me),[oe,ge]=m.useState(!1),ve=si(),ye=Os({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:oe,m.useEffect(()=>{!ve&&g&&oe&&(ge(!1),F&&F())},[ve,g,oe,F]);const Ee=ve&&ve.onFilled,$e=ve&&ve.onEmpty,we=m.useCallback(fe=>{Pf(fe)?Ee&&Ee():$e&&$e()},[Ee,$e]);Mt(()=>{X&&we({value:Q})},[Q,we,X]);const Ce=fe=>{if(ye.disabled){fe.stopPropagation();return}W&&W(fe),w.onFocus&&w.onFocus(fe),ve&&ve.onFocus?ve.onFocus(fe):ge(!0)},Je=fe=>{F&&F(fe),w.onBlur&&w.onBlur(fe),ve&&ve.onBlur?ve.onBlur(fe):ge(!1)},Ie=(fe,...ae)=>{if(!X){const Pe=fe.target||te.current;if(Pe==null)throw new Error(ei(1));we({value:Pe.value})}w.onChange&&w.onChange(fe,...ae),B&&B(fe,...ae)};m.useEffect(()=>{we(te.current)},[]);const Ye=fe=>{te.current&&fe.currentTarget===fe.target&&te.current.focus(),H&&H(fe)};let Ve=b,He=w;$&&Ve==="input"&&(A?He=y({type:void 0,minRows:A,maxRows:A},He):He=y({type:void 0,maxRows:M,minRows:E},He),Ve=kA);const je=fe=>{we(fe.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};m.useEffect(()=>{ve&&ve.setAdornedStart(!!U)},[ve,U]);const ze=y({},o,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:x,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:_,hiddenLabel:ye.hiddenLabel,multiline:$,size:ye.size,startAdornment:U,type:Z}),ke=XA(ze),Ze=G.root||d.Root||Wp,Ne=N.root||f.root||{},Le=G.input||d.Input||Up;return He=y({},He,(r=N.input)!=null?r:f.input),S.jsxs(m.Fragment,{children:[!v&&YA,S.jsxs(Ze,y({},Ne,!Gu(Ze)&&{ownerState:y({},ze,Ne.ownerState)},{ref:n,onClick:Ye},ee,{className:pe(ke.root,Ne.className,c,z&&"MuiInputBase-readOnly"),children:[U,S.jsx(jp.Provider,{value:null,children:S.jsx(Le,y({ownerState:ze,"aria-invalid":ye.error,"aria-describedby":i,autoComplete:l,autoFocus:a,defaultValue:p,disabled:ye.disabled,id:k,onAnimationStart:je,name:T,placeholder:R,readOnly:z,required:ye.required,rows:A,value:Q,onKeyDown:j,onKeyUp:D,type:Z},He,!Gu(Le)&&{as:Ve,ownerState:y({},ze,He.ownerState)},{ref:re,className:pe(ke.input,He.className,z&&"MuiInputBase-readOnly"),onBlur:Je,onChange:Ie,onFocus:Ce}))}),x,O?O(y({},ye,{startAdornment:U})):null]}))]})});function QA(e){return We("MuiInput",e)}const xi=y({},cr,Ue("MuiInput",["root","underline","input"]));function JA(e){return We("MuiOutlinedInput",e)}const bo=y({},cr,Ue("MuiOutlinedInput",["root","notchedOutline","input"]));function eD(e){return We("MuiFilledInput",e)}const dr=y({},cr,Ue("MuiFilledInput",["root","underline","input"])),$P=nt(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function tD(e){return We("MuiAutocomplete",e)}const it=Ue("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 vC,yC;const nD=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],rD=["ref"],oD=["key"],iD=["key"],sD=Cy(),lD=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:f}=e,p={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ce(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return xe(p,tD,t)},aD=de("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:l,size:a}=n;return[{[`& .${it.tag}`]:t.tag},{[`& .${it.tag}`]:t[`tagSize${ce(a)}`]},{[`& .${it.inputRoot}`]:t.inputRoot},{[`& .${it.input}`]:t.input},{[`& .${it.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`& .${it.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${it.inputRoot}`]:{[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:30},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:56},[`& .${it.input}`]:{width:0,minWidth:30}},[`&.${it.focused}`]:{[`& .${it.clearIndicator}`]:{visibility:"visible"},[`& .${it.input}`]:{minWidth:0}},"@media (pointer: fine)":{[`&:hover .${it.clearIndicator}`]:{visibility:"visible"},[`&:hover .${it.input}`]:{minWidth:0}},[`& .${xi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${xi.root}.${cr.sizeSmall}`]:{[`& .${xi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${bo.root}`]:{padding:9,[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:39},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:65},[`& .${it.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${it.endAdornment}`]:{right:9}},[`& .${bo.root}.${cr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${it.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${dr.root}`]:{paddingTop:19,paddingLeft:8,[`.${it.hasPopupIcon}&, .${it.hasClearIcon}&`]:{paddingRight:39},[`.${it.hasPopupIcon}.${it.hasClearIcon}&`]:{paddingRight:65},[`& .${dr.input}`]:{padding:"7px 4px"},[`& .${it.endAdornment}`]:{right:9}},[`& .${dr.root}.${cr.sizeSmall}`]:{paddingBottom:1,[`& .${dr.input}`]:{padding:"2.5px 4px"}},[`& .${cr.hiddenLabel}`]:{paddingTop:8},[`& .${dr.root}.${cr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${it.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${dr.root}.${cr.hiddenLabel}.${cr.sizeSmall}`]:{[`& .${it.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${it.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${it.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${it.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${it.inputRoot}`]:{flexWrap:"wrap"}}}]}),uD=de("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),cD=de(So,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dD=de(So,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>y({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),fD=de(Ts,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${it.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),pD=de(Ui,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>y({},e.typography.body1,{overflow:"auto"})),hD=de("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),mD=de("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),gD=de("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${it.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"},[`&.${it.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"},[`&.${it.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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${it.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${it.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),vD=de(OP,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yD=de("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${it.option}`]:{paddingLeft:24}}),zP=m.forwardRef(function(t,n){var r,o,i,l;const a=sD({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:g,className:v,clearIcon:x=vC||(vC=S.jsx(fP,{fontSize:"small"})),clearOnBlur:_=!a.freeSolo,clearOnEscape:k=!1,clearText:b="Clear",closeText:w="Close",componentsProps:P={},defaultValue:M=a.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:$=!1,disabled:T=!1,disabledItemsFocusable:F=!1,disableListWrap:B=!1,disablePortal:H=!1,filterSelectedOptions:W=!1,forcePopupIcon:j="auto",freeSolo:D=!1,fullWidth:R=!1,getLimitTagsText:z=Se=>`+${Se}`,getOptionLabel:O,groupBy:A,handleHomeEndKeys:N=!a.freeSolo,includeInputInList:G=!1,limitTags:U=-1,ListboxComponent:Z="ul",ListboxProps:Y,loading:ee=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:te="No options",openOnFocus:me=!1,openText:re="Open",PaperComponent:oe=Ui,PopperComponent:ge=Ts,popupIcon:ve=yC||(yC=S.jsx($P,{})),readOnly:ye=!1,renderGroup:Ee,renderInput:$e,renderOption:we,renderTags:Ce,selectOnFocus:Je=!a.freeSolo,size:Ie="medium",slotProps:Ye={}}=a,Ve=se(a,nD),{getRootProps:He,getInputProps:je,getInputLabelProps:ze,getPopupIndicatorProps:ke,getClearProps:Ze,getTagProps:Ne,getListboxProps:Le,getOptionProps:fe,value:ae,dirty:Pe,expanded:st,id:ct,popupOpen:Me,focused:Ge,focusedTag:et,anchorEl:Et,setAnchorEl:jt,inputValue:sr,groupedOptions:Xt}=EA(y({},a,{componentName:"Autocomplete"})),Yt=!E&&!T&&Pe&&!ye,rn=(!D||j===!0)&&j!==!1,{onMouseDown:Un}=je(),{ref:Zn}=Y??{},wr=Le(),{ref:Ao}=wr,ui=se(wr,rD),Ji=Ct(Ao,Zn),Kn=O||(Se=>{var Ke;return(Ke=Se.label)!=null?Ke:Se}),on=y({},a,{disablePortal:H,expanded:st,focused:Ge,fullWidth:R,getOptionLabel:Kn,hasClearIcon:Yt,hasPopupIcon:rn,inputFocused:et===-1,popupOpen:Me,size:Ie}),Rt=lD(on);let xn;if(X&&ae.length>0){const Se=Ke=>y({className:Rt.tag,disabled:T},Ne(Ke));Ce?xn=Ce(ae,Se,on):xn=ae.map((Ke,Fe)=>{const rt=Se({index:Fe}),{key:zn}=rt,Hs=se(rt,oD);return S.jsx(RP,y({label:Kn(Ke),size:Ie},Hs,g),zn)})}if(U>-1&&Array.isArray(xn)){const Se=xn.length-U;!Ge&&Se>0&&(xn=xn.splice(0,U),xn.push(S.jsx("span",{className:Rt.tag,children:z(Se)},xn.length)))}const sn=Ee||(Se=>S.jsxs("li",{children:[S.jsx(vD,{className:Rt.groupLabel,ownerState:on,component:"div",children:Se.group}),S.jsx(yD,{className:Rt.groupUl,ownerState:on,children:Se.children})]},Se.key)),Sr=we||((Se,Ke)=>{const{key:Fe}=Se,rt=se(Se,iD);return S.jsx("li",y({},rt,{children:Kn(Ke)}),Fe)}),qr=(Se,Ke)=>{const Fe=fe({option:Se,index:Ke});return Sr(y({},Fe,{className:Rt.option}),Se,{selected:Fe["aria-selected"],index:Ke,inputValue:sr},on)},Xr=(r=Ye.clearIndicator)!=null?r:P.clearIndicator,lr=(o=Ye.paper)!=null?o:P.paper,ar=(i=Ye.popper)!=null?i:P.popper,ue=(l=Ye.popupIndicator)!=null?l:P.popupIndicator,le=Se=>S.jsx(fD,y({as:ge,disablePortal:H,style:{width:Et?Et.clientWidth:null},ownerState:on,role:"presentation",anchorEl:Et,open:Me},ar,{className:pe(Rt.popper,ar==null?void 0:ar.className),children:S.jsx(pD,y({ownerState:on,as:oe},lr,{className:pe(Rt.paper,lr==null?void 0:lr.className),children:Se}))}));let Te=null;return Xt.length>0?Te=le(S.jsx(gD,y({as:Z,className:Rt.listbox,ownerState:on},ui,Y,{ref:Ji,children:Xt.map((Se,Ke)=>A?sn({key:Se.key,group:Se.group,children:Se.options.map((Fe,rt)=>qr(Fe,Se.index+rt))}):qr(Se,Ke))}))):ee&&Xt.length===0?Te=le(S.jsx(hD,{className:Rt.loading,ownerState:on,children:Q})):Xt.length===0&&!D&&!ee&&(Te=le(S.jsx(mD,{className:Rt.noOptions,ownerState:on,role:"presentation",onMouseDown:Se=>{Se.preventDefault()},children:te}))),S.jsxs(m.Fragment,{children:[S.jsx(aD,y({ref:n,className:pe(Rt.root,v),ownerState:on},He(Ve),{children:$e({id:ct,disabled:T,fullWidth:!0,size:Ie==="small"?"small":void 0,InputLabelProps:ze(),InputProps:y({ref:jt,className:Rt.inputRoot,startAdornment:xn,onClick:Se=>{Se.target===Se.currentTarget&&Un(Se)}},(Yt||rn)&&{endAdornment:S.jsxs(uD,{className:Rt.endAdornment,ownerState:on,children:[Yt?S.jsx(cD,y({},Ze(),{"aria-label":b,title:b,ownerState:on},Xr,{className:pe(Rt.clearIndicator,Xr==null?void 0:Xr.className),children:x})):null,rn?S.jsx(dD,y({},ke(),{disabled:T,"aria-label":Me?w:re,title:Me?w:re,ownerState:on},ue,{className:pe(Rt.popupIndicator,ue==null?void 0:ue.className),children:ve})):null]})}),inputProps:y({className:Rt.input,disabled:T,readOnly:ye},je())})})),Et?Te:null]})}),bD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_D={entering:{opacity:1},entered:{opacity:1}},CD=m.forwardRef(function(t,n){const r=$o(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:c,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:v,onExited:x,onExiting:_,style:k,timeout:b=o,TransitionComponent:w=zo}=t,P=se(t,bD),M=m.useRef(null),E=Ct(M,a.ref,n),$=R=>z=>{if(R){const O=M.current;z===void 0?R(O):R(O,z)}},T=$(g),F=$((R,z)=>{aP(R);const O=wf({style:k,timeout:b,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",O),R.style.transition=r.transitions.create("opacity",O),f&&f(R,z)}),B=$(p),H=$(_),W=$(R=>{const z=wf({style:k,timeout:b,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",z),R.style.transition=r.transitions.create("opacity",z),v&&v(R)}),j=$(x),D=R=>{i&&i(M.current,R)};return S.jsx(w,y({appear:l,in:d,nodeRef:M,onEnter:F,onEntered:B,onEntering:T,onExit:W,onExited:j,onExiting:H,addEndListener:D,timeout:b},P,{children:(R,z)=>m.cloneElement(a,y({style:y({opacity:0,visibility:R==="exited"&&!d?"hidden":void 0},_D[R],k,a.props.style),ref:E},z))}))});function xD(e){return We("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const wD=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],SD=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},xD,t)},PD=de("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>y({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),kD=m.forwardRef(function(t,n){var r,o,i;const l=Xe({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:f={},componentsProps:p={},invisible:g=!1,open:v,slotProps:x={},slots:_={},TransitionComponent:k=CD,transitionDuration:b}=l,w=se(l,wD),P=y({},l,{component:d,invisible:g}),M=SD(P),E=(r=x.root)!=null?r:p.root;return S.jsx(k,y({in:v,timeout:b},w,{children:S.jsx(PD,y({"aria-hidden":!0},E,{as:(o=(i=_.root)!=null?i:f.Root)!=null?o:d,className:pe(M.root,c,E==null?void 0:E.className),ownerState:y({},P,E==null?void 0:E.ownerState),classes:M,ref:n,children:a}))}))});function MD(e){return We("MuiBadge",e)}const pi=Ue("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ID=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],dm=10,fm=4,ED=Cy(),LD=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:l={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`,`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}${ce(o)}`,`overlap${ce(o)}`,t!=="default"&&`color${ce(t)}`]};return xe(a,MD,l)},TD=de("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),OD=de("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}${ce(n.overlap)}`],n.color!=="default"&&t[`color${ce(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:dm*2,lineHeight:1,padding:"0 6px",height:dm*2,borderRadius:dm,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:fm,height:fm*2,minWidth:fm*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${pi.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),AP=m.forwardRef(function(t,n){var r,o,i,l,a,c;const d=ED({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:g,components:v={},componentsProps:x={},children:_,overlap:k="rectangular",color:b="default",invisible:w=!1,max:P=99,badgeContent:M,slots:E,slotProps:$,showZero:T=!1,variant:F="standard"}=d,B=se(d,ID),{badgeContent:H,invisible:W,max:j,displayValue:D}=H$({max:P,invisible:w,badgeContent:M,showZero:T}),R=gy({anchorOrigin:f,color:b,overlap:k,variant:F,badgeContent:M}),z=W||H==null&&F!=="dot",{color:O=b,overlap:A=k,anchorOrigin:N=f,variant:G=F}=z?R:d,U=G!=="dot"?D:void 0,Z=y({},d,{badgeContent:H,invisible:z,max:j,displayValue:U,showZero:T,anchorOrigin:N,color:O,overlap:A,variant:G}),Y=LD(Z),ee=(r=(o=E==null?void 0:E.root)!=null?o:v.Root)!=null?r:TD,Q=(i=(l=E==null?void 0:E.badge)!=null?l:v.Badge)!=null?i:OD,X=(a=$==null?void 0:$.root)!=null?a:x.root,te=(c=$==null?void 0:$.badge)!=null?c:x.badge,me=ni({elementType:ee,externalSlotProps:X,externalForwardedProps:B,additionalProps:{ref:n,as:g},ownerState:Z,className:pe(X==null?void 0:X.className,Y.root,p)}),re=ni({elementType:Q,externalSlotProps:te,ownerState:Z,className:pe(Y.badge,te==null?void 0:te.className)});return S.jsxs(ee,y({},me,{children:[_,S.jsx(Q,y({},re,{children:U}))]}))}),RD=Ue("MuiBox",["root"]),FD=rP(),bC=OR({themeId:sc,defaultTheme:FD,defaultClassName:RD.root,generateClassName:cy.generate});function $D(e){return We("MuiButton",e)}const pd=Ue("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"]),zD=m.createContext({}),AD=m.createContext(void 0),DD=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ND=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,`color${ce(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ce(o)}`],endIcon:["icon","endIcon",`iconSize${ce(o)}`]},c=xe(a,$D,l);return y({},l,c)},DP=e=>y({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),BD=de(Jl,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return y({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":y({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":y({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pd.focusVisible}`]:y({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pd.disabled}`]:y({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pd.disabled}`]:{boxShadow:"none"}}),HD=de("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>y({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DP(e))),jD=de("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>y({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DP(e))),Zp=m.forwardRef(function(t,n){const r=m.useContext(zD),o=m.useContext(AD),i=py(r,t),l=Xe({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:d="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:v=!1,endIcon:x,focusVisibleClassName:_,fullWidth:k=!1,size:b="medium",startIcon:w,type:P,variant:M="text"}=l,E=se(l,DD),$=y({},l,{color:c,component:d,disabled:p,disableElevation:g,disableFocusRipple:v,fullWidth:k,size:b,type:P,variant:M}),T=ND($),F=w&&S.jsx(HD,{className:T.startIcon,ownerState:$,children:w}),B=x&&S.jsx(jD,{className:T.endIcon,ownerState:$,children:x}),H=o||"";return S.jsxs(BD,y({ownerState:$,className:pe(r.className,T.root,f,H),component:d,disabled:p,focusRipple:!v,focusVisibleClassName:pe(T.focusVisible,_),ref:n,type:P},E,{classes:T,children:[F,a,B]}))});function GD(e){return We("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const VD=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],WD=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ce(o)}`],input:["input"]};return xe(i,GD,t)},UD=de(Jl)(({ownerState:e})=>y({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ZD=de("input",{shouldForwardProp:ir})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),KD=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:l,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:p,id:g,inputProps:v,inputRef:x,name:_,onBlur:k,onChange:b,onFocus:w,readOnly:P,required:M=!1,tabIndex:E,type:$,value:T}=t,F=se(t,VD),[B,H]=zi({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),W=si(),j=G=>{w&&w(G),W&&W.onFocus&&W.onFocus(G)},D=G=>{k&&k(G),W&&W.onBlur&&W.onBlur(G)},R=G=>{if(G.nativeEvent.defaultPrevented)return;const U=G.target.checked;H(U),b&&b(G,U)};let z=c;W&&typeof z>"u"&&(z=W.disabled);const O=$==="checkbox"||$==="radio",A=y({},t,{checked:B,disabled:z,disableFocusRipple:d,edge:f}),N=WD(A);return S.jsxs(UD,y({component:"span",className:pe(N.root,l),centerRipple:!0,focusRipple:!d,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:D,ownerState:A,ref:n},F,{children:[S.jsx(ZD,y({autoFocus:r,checked:o,defaultChecked:a,className:N.input,disabled:z,id:O?g:void 0,name:_,onChange:R,readOnly:P,ref:x,required:M,ownerState:A,tabIndex:E,type:$},$==="checkbox"&&T===void 0?{}:{value:T},v)),B?i:p]}))}),qD=nt(S.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"),XD=nt(S.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"),YD=nt(S.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 QD(e){return We("MuiCheckbox",e)}const pm=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),JD=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],eN=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ce(r)}`,`size${ce(o)}`]},l=xe(i,QD,t);return y({},t,l)},tN=de(KD,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ce(n.size)}`],n.color!=="default"&&t[`color${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${pm.checked}, &.${pm.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pm.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nN=S.jsx(XD,{}),rN=S.jsx(qD,{}),oN=S.jsx(YD,{}),iN=m.forwardRef(function(t,n){var r,o;const i=Xe({props:t,name:"MuiCheckbox"}),{checkedIcon:l=nN,color:a="primary",icon:c=rN,indeterminate:d=!1,indeterminateIcon:f=oN,inputProps:p,size:g="medium",className:v}=i,x=se(i,JD),_=d?f:c,k=d?f:l,b=y({},i,{color:a,indeterminate:d,size:g}),w=eN(b);return S.jsx(tN,y({type:"checkbox",inputProps:y({"data-indeterminate":d},p),icon:m.cloneElement(_,{fontSize:(r=_.props.fontSize)!=null?r:g}),checkedIcon:m.cloneElement(k,{fontSize:(o=k.props.fontSize)!=null?o:g}),ownerState:b,ref:n,className:pe(w.root,v)},x,{classes:w}))});function sN(e){return We("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lN=["className","color","disableShrink","size","style","thickness","value","variant"];let Kp=e=>e,_C,CC,xC,wC;const hi=44,aN=Wi(_C||(_C=Kp` 0% { transform: rotate(0deg); } @@ -153,7 +153,7 @@ Error generating stack: `+i.message+` animation: ${0} 1.4s linear infinite; `),aN)),fN=de("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),pN=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>y({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Xl(wC||(wC=Kp` animation: ${0} 1.4s ease-in-out infinite; - `),uN)),NP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:a=40,style:c,thickness:d=3.6,value:f=0,variant:p="indeterminate"}=r,g=se(r,lN),v=y({},r,{color:i,disableShrink:l,size:a,thickness:d,value:f,variant:p}),x=cN(v),_={},k={},b={};if(p==="determinate"){const w=2*Math.PI*((hi-d)/2);_.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(f),_.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,k.transform="rotate(-90deg)"}return S.jsx(dN,y({className:pe(x.root,o),style:y({width:a,height:a},k,c),ownerState:v,ref:n,role:"progressbar"},b,g,{children:S.jsx(fN,{className:x.svg,ownerState:v,viewBox:`${hi/2} ${hi/2} ${hi} ${hi}`,children:S.jsx(pN,{className:x.circle,style:_,ownerState:v,cx:hi,cy:hi,r:(hi-d)/2,fill:"none",strokeWidth:d})})}))}),hN=v2({createStyledComponent:de("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Xe({props:e,name:"MuiContainer"})}),mN=(e,t)=>y({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),gN=e=>y({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),vN=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,a])=>{var c;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(c=a.palette)==null?void 0:c.mode}});let o=y({html:mN(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:y({margin:0},gN(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function yN(e){const t=Xe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(m.Fragment,{children:[S.jsx(FP,{styles:o=>vN(o,r)}),n]})}function bN(e){return We("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const _N=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],CN=e=>{const{open:t,exited:n,classes:r}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bN,r)},xN=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>y({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),wN=de(kD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),SN=m.forwardRef(function(t,n){var r,o,i,l,a,c;const d=Xe({name:"MuiModal",props:t}),{BackdropComponent:f=wN,BackdropProps:p,className:g,closeAfterTransition:v=!1,children:x,container:_,component:k,components:b={},componentsProps:w={},disableAutoFocus:P=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:E=!1,disablePortal:$=!1,disableRestoreFocus:T=!1,disableScrollLock:F=!1,hideBackdrop:B=!1,keepMounted:H=!1,onBackdropClick:W,open:j,slotProps:D,slots:R}=d,z=se(d,_N),O=y({},d,{closeAfterTransition:v,disableAutoFocus:P,disableEnforceFocus:M,disableEscapeKeyDown:E,disablePortal:$,disableRestoreFocus:T,disableScrollLock:F,hideBackdrop:B,keepMounted:H}),{getRootProps:A,getBackdropProps:N,getTransitionProps:G,portalRef:U,isTopModal:Z,exited:Y,hasTransition:ee}=lz(y({},O,{rootRef:n})),Q=y({},O,{exited:Y}),X=CN(Q),te={};if(x.props.tabIndex===void 0&&(te.tabIndex="-1"),ee){const{onEnter:Ee,onExited:$e}=G();te.onEnter=Ee,te.onExited=$e}const me=(r=(o=R==null?void 0:R.root)!=null?o:b.Root)!=null?r:xN,re=(i=(l=R==null?void 0:R.backdrop)!=null?l:b.Backdrop)!=null?i:f,oe=(a=D==null?void 0:D.root)!=null?a:w.root,ge=(c=D==null?void 0:D.backdrop)!=null?c:w.backdrop,ve=ni({elementType:me,externalSlotProps:oe,externalForwardedProps:z,getSlotProps:A,additionalProps:{ref:n,as:k},ownerState:Q,className:pe(g,oe==null?void 0:oe.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),ye=ni({elementType:re,externalSlotProps:ge,additionalProps:p,getSlotProps:Ee=>N(y({},Ee,{onClick:$e=>{W&&W($e),Ee!=null&&Ee.onClick&&Ee.onClick($e)}})),className:pe(ge==null?void 0:ge.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!H&&!j&&(!ee||Y)?null:S.jsx(yP,{ref:U,container:_,disablePortal:$,children:S.jsxs(me,y({},ve,{children:[!B&&f?S.jsx(re,y({},ye)):null,S.jsx(vP,{disableEnforceFocus:M,disableAutoFocus:P,disableRestoreFocus:T,isEnabled:Z,open:j,children:m.cloneElement(x,te)})]}))})});function PN(e){return We("MuiDivider",e)}const SC=Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kN=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],MN=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:l,textAlign:a,variant:c}=e;return xe({root:["root",t&&"absolute",c,i&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},PN,r)},IN=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>y({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>y({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>y({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>y({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>y({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EN=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>y({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),BP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:l,component:a=i?"div":"hr",flexItem:c=!1,light:d=!1,orientation:f="horizontal",role:p=a!=="hr"?"separator":void 0,textAlign:g="center",variant:v="fullWidth"}=r,x=se(r,kN),_=y({},r,{absolute:o,component:a,flexItem:c,light:d,orientation:f,role:p,textAlign:g,variant:v}),k=MN(_);return S.jsx(IN,y({as:a,className:pe(k.root,l),role:p,ref:n,ownerState:_},x,{children:i?S.jsx(EN,{className:k.wrapper,ownerState:_,children:i}):null}))});BP.muiSkipListHighlight=!0;const LN=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],TN=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},eD,t);return y({},t,o)},ON=de(Wp,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return y({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${dr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${dr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dr.disabled}, .${dr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&y({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),RN=de(Up,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vp})(({theme:e,ownerState:t})=>y({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Oy=m.forwardRef(function(t,n){var r,o,i,l;const a=Xe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:x={},type:_="text"}=a,k=se(a,LN),b=y({},a,{fullWidth:f,inputComponent:p,multiline:g,type:_}),w=TN(a),P={root:{ownerState:b},input:{ownerState:b}},M=v??d?Gn(P,v??d):P,E=(r=(o=x.root)!=null?o:c.Root)!=null?r:ON,$=(i=(l=x.input)!=null?l:c.Input)!=null?i:RN;return S.jsx(ha,y({slots:{root:E,input:$},componentsProps:M,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:_},k,{classes:w}))});Oy.muiName="Input";function FN(e){return We("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $N=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zN=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return xe(o,FN,t)},AN=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>y({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>y({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),HP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:a="div",disabled:c=!1,error:d=!1,focused:f,fullWidth:p=!1,hiddenLabel:g=!1,margin:v="none",required:x=!1,size:_="medium",variant:k="outlined"}=r,b=se(r,$N),w=y({},r,{color:l,component:a,disabled:c,error:d,fullWidth:p,hiddenLabel:g,margin:v,required:x,size:_,variant:k}),P=zN(w),[M,E]=m.useState(()=>{let D=!1;return o&&m.Children.forEach(o,R=>{if(!Fd(R,["Input","Select"]))return;const z=Fd(R,["Select"])?R.props.input:R;z&&ZA(z.props)&&(D=!0)}),D}),[$,T]=m.useState(()=>{let D=!1;return o&&m.Children.forEach(o,R=>{Fd(R,["Input","Select"])&&(Sf(R.props,!0)||Sf(R.props.inputProps,!0))&&(D=!0)}),D}),[F,B]=m.useState(!1);c&&F&&B(!1);const H=f!==void 0&&!c?f:F;let W;const j=m.useMemo(()=>({adornedStart:M,setAdornedStart:E,color:l,disabled:c,error:d,filled:$,focused:H,fullWidth:p,hiddenLabel:g,size:_,onBlur:()=>{B(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{B(!0)},registerEffect:W,required:x,variant:k}),[M,l,c,d,$,H,p,g,W,x,_,k]);return S.jsx(jp.Provider,{value:j,children:S.jsx(AN,y({as:a,ownerState:w,className:pe(P.root,i),ref:n},b,{children:o}))})}),DN=P2({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Xe({props:e,name:"MuiStack"})});function NN(e){return We("MuiFormControlLabel",e)}const Ja=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),BN=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],HN=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,l={root:["root",n&&"disabled",`labelPlacement${ce(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return xe(l,NN,t)},jN=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ja.label}`]:t.label},t.root,t[`labelPlacement${ce(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>y({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ja.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ja.label}`]:{[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),GN=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ja.error}`]:{color:(e.vars||e).palette.error.main}})),PC=m.forwardRef(function(t,n){var r,o;const i=Xe({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:a={},control:c,disabled:d,disableTypography:f,label:p,labelPlacement:g="end",required:v,slotProps:x={}}=i,_=se(i,BN),k=si(),b=(r=d??c.props.disabled)!=null?r:k==null?void 0:k.disabled,w=v??c.props.required,P={disabled:b,required:w};["checked","name","onChange","value","inputRef"].forEach(B=>{typeof c.props[B]>"u"&&typeof i[B]<"u"&&(P[B]=i[B])});const M=Os({props:i,muiFormControl:k,states:["error"]}),E=y({},i,{disabled:b,labelPlacement:g,required:w,error:M.error}),$=HN(E),T=(o=x.typography)!=null?o:a.typography;let F=p;return F!=null&&F.type!==Po&&!f&&(F=S.jsx(Po,y({component:"span"},T,{className:pe($.label,T==null?void 0:T.className),children:F}))),S.jsxs(jN,y({className:pe($.root,l),ownerState:E,ref:n},_,{children:[m.cloneElement(c,P),w?S.jsxs(DN,{display:"block",children:[F,S.jsxs(GN,{ownerState:E,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):F]}))});function VN(e){return We("MuiFormHelperText",e)}const kC=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var MC;const WN=["children","className","component","disabled","error","filled","focused","margin","required","variant"],UN=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",a&&"focused",l&&"filled",c&&"required"]};return xe(d,VN,t)},ZN=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${kC.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kC.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),KN=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p"}=r,a=se(r,WN),c=si(),d=Os({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=y({},r,{component:l,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),p=UN(f);return S.jsx(ZN,y({as:l,ownerState:f,className:pe(p.root,i),ref:n},a,{children:o===" "?MC||(MC=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function qN(e){return We("MuiFormLabel",e)}const gu=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),XN=["children","className","color","component","disabled","error","filled","focused","required"],YN=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:a}=e,c={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return xe(c,qN,t)},QN=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>y({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${gu.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${gu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gu.error}`]:{color:(e.vars||e).palette.error.main}})),JN=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${gu.error}`]:{color:(e.vars||e).palette.error.main}})),eB=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:l="label"}=r,a=se(r,XN),c=si(),d=Os({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=y({},r,{color:d.color||"primary",component:l,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),p=YN(f);return S.jsxs(QN,y({as:l,ownerState:f,className:pe(p.root,i),ref:n},a,{children:[o,d.required&&S.jsxs(JN,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),tB=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ag(e){return`scale(${e}, ${e**2})`}const nB={entering:{opacity:1,transform:Ag(1)},entered:{opacity:1,transform:"none"}},hm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wu=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:l,in:a,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:g,onExiting:v,style:x,timeout:_="auto",TransitionComponent:k=zo}=t,b=se(t,tB),w=Dr(),P=m.useRef(),M=$o(),E=m.useRef(null),$=Ct(E,i.ref,n),T=z=>O=>{if(z){const A=E.current;O===void 0?z(A):z(A,O)}},F=T(f),B=T((z,O)=>{aP(z);const{duration:A,delay:N,easing:G}=xf({style:x,timeout:_,easing:l},{mode:"enter"});let U;_==="auto"?(U=M.transitions.getAutoHeightDuration(z.clientHeight),P.current=U):U=A,z.style.transition=[M.transitions.create("opacity",{duration:U,delay:N}),M.transitions.create("transform",{duration:hm?U:U*.666,delay:N,easing:G})].join(","),c&&c(z,O)}),H=T(d),W=T(v),j=T(z=>{const{duration:O,delay:A,easing:N}=xf({style:x,timeout:_,easing:l},{mode:"exit"});let G;_==="auto"?(G=M.transitions.getAutoHeightDuration(z.clientHeight),P.current=G):G=O,z.style.transition=[M.transitions.create("opacity",{duration:G,delay:A}),M.transitions.create("transform",{duration:hm?G:G*.666,delay:hm?A:A||G*.333,easing:N})].join(","),z.style.opacity=0,z.style.transform=Ag(.75),p&&p(z)}),D=T(g),R=z=>{_==="auto"&&w.start(P.current||0,z),r&&r(E.current,z)};return S.jsx(k,y({appear:o,in:a,nodeRef:E,onEnter:B,onEntered:H,onEntering:F,onExit:j,onExited:D,onExiting:W,addEndListener:R,timeout:_==="auto"?null:_},b,{children:(z,O)=>m.cloneElement(i,y({style:y({opacity:0,transform:Ag(.75),visibility:z==="exited"&&!a?"hidden":void 0},nB[z],x,i.props.style),ref:$},O))}))});Wu.muiSupportAuto=!0;const rB=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],oB=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},QA,t);return y({},t,o)},iB=de(Wp,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),y({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xi.disabled}, .${xi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),sB=de(Up,{name:"MuiInput",slot:"Input",overridesResolver:Vp})({}),Ry=m.forwardRef(function(t,n){var r,o,i,l;const a=Xe({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:f,fullWidth:p=!1,inputComponent:g="input",multiline:v=!1,slotProps:x,slots:_={},type:k="text"}=a,b=se(a,rB),w=oB(a),M={root:{ownerState:{disableUnderline:c}}},E=x??f?Gn(x??f,M):M,$=(r=(o=_.root)!=null?o:d.Root)!=null?r:iB,T=(i=(l=_.input)!=null?l:d.Input)!=null?i:sB;return S.jsx(ha,y({slots:{root:$,input:T},slotProps:E,fullWidth:p,inputComponent:g,multiline:v,ref:n,type:k},b,{classes:w}))});Ry.muiName="Input";function lB(e){return We("MuiInputAdornment",e)}const IC=Ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var EC;const aB=["children","className","component","disablePointerEvents","disableTypography","position","variant"],uB=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},cB=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:l}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,l,r&&"hiddenLabel",i&&`size${ce(i)}`]};return xe(a,lB,t)},dB=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:uB})(({theme:e,ownerState:t})=>y({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${IC.positionStart}&:not(.${IC.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),fB=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:f}=r,p=se(r,aB),g=si()||{};let v=f;f&&g.variant,g&&!v&&(v=g.variant);const x=y({},r,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:a,position:d,variant:v}),_=cB(x);return S.jsx(jp.Provider,{value:null,children:S.jsx(dB,y({as:l,ownerState:x,className:pe(_.root,i),ref:n},p,{children:typeof o=="string"&&!c?S.jsx(Po,{color:"text.secondary",children:o}):S.jsxs(m.Fragment,{children:[d==="start"?EC||(EC=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function pB(e){return We("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const hB=["disableAnimation","margin","shrink","variant","className"],mB=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:a}=e,c={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,l],asterisk:[a&&"asterisk"]},d=xe(c,pB,t);return y({},t,d)},gB=de(eB,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gu.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>y({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&y({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&y({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&y({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jP=m.forwardRef(function(t,n){const r=Xe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:l}=r,a=se(r,hB),c=si();let d=i;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=Os({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),p=y({},r,{disableAnimation:o,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),g=mB(p);return S.jsx(gB,y({"data-shrink":d,ownerState:p,ref:n,className:pe(g.root,l)},a,{classes:g}))});function vB(e){return We("MuiLink",e)}const yB=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),GP={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bB=e=>GP[e]||e,_B=({theme:e,ownerState:t})=>{const n=bB(t.color),r=Yl(e,`palette.${n}`,!1)||t.color,o=Yl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mt(r,.4)},CB=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],xB=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return xe(i,vB,t)},wB=de(Po,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>y({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&y({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_B({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yB.focusVisible}`]:{outline:"auto"}})),Pf=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:l="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:f="always",variant:p="inherit",sx:g}=r,v=se(r,CB),{isFocusVisibleRef:x,onBlur:_,onFocus:k,ref:b}=Ap(),[w,P]=m.useState(!1),M=Ct(n,b),E=B=>{_(B),x.current===!1&&P(!1),a&&a(B)},$=B=>{k(B),x.current===!0&&P(!0),c&&c(B)},T=y({},r,{color:i,component:l,focusVisible:w,underline:f,variant:p}),F=xB(T);return S.jsx(wB,y({color:i,className:pe(F.root,o),classes:d,component:l,onBlur:E,onFocus:$,ref:M,ownerState:T,variant:p,sx:[...Object.keys(GP).includes(i)?[]:[{color:i}],...Array.isArray(g)?g:[g]]},v))}),Uu=m.createContext({});function SB(e){return We("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const PB=["children","className","component","dense","disablePadding","subheader"],kB=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},SB,t)},MB=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>y({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),IB=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,f=se(r,PB),p=m.useMemo(()=>({dense:a}),[a]),g=y({},r,{component:l,dense:a,disablePadding:c}),v=kB(g);return S.jsx(Uu.Provider,{value:p,children:S.jsxs(MB,y({as:l,className:pe(v.root,i),ref:n,ownerState:g},f,{children:[d,o]}))})});function EB(e){return We("MuiListItemIcon",e)}const LC=Ue("MuiListItemIcon",["root","alignItemsFlexStart"]),LB=["className"],TB=e=>{const{alignItems:t,classes:n}=e;return xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},EB,n)},OB=de("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>y({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),zl=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,LB),l=m.useContext(Uu),a=y({},r,{alignItems:l.alignItems}),c=TB(a);return S.jsx(OB,y({className:pe(c.root,o),ownerState:a,ref:n},i))});function RB(e){return We("MuiListItemText",e)}const kf=Ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),FB=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],$B=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return xe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},RB,t)},zB=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kf.primary}`]:t.primary},{[`& .${kf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>y({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Al=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:p}=r,g=se(r,FB),{dense:v}=m.useContext(Uu);let x=c??o,_=f;const k=y({},r,{disableTypography:l,inset:a,primary:!!x,secondary:!!_,dense:v}),b=$B(k);return x!=null&&x.type!==Po&&!l&&(x=S.jsx(Po,y({variant:v?"body2":"body1",className:b.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:x}))),_!=null&&_.type!==Po&&!l&&(_=S.jsx(Po,y({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:_}))),S.jsxs(zB,y({className:pe(b.root,i),ownerState:k,ref:n},g,{children:[x,_]}))}),AB=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function TC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function VP(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ja(e,t,n,r,o,i){let l=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!VP(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const Fy=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=t,g=se(t,AB),v=m.useRef(null),x=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mt(()=>{o&&v.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(P,{direction:M})=>{const E=!v.current.style.width;if(P.clientHeight{const M=v.current,E=P.key,$=zt(M).activeElement;if(E==="ArrowDown")P.preventDefault(),ja(M,$,d,c,mm);else if(E==="ArrowUp")P.preventDefault(),ja(M,$,d,c,TC);else if(E==="Home")P.preventDefault(),ja(M,null,d,c,mm);else if(E==="End")P.preventDefault(),ja(M,null,d,c,TC);else if(E.length===1){const T=x.current,F=E.toLowerCase(),B=performance.now();T.keys.length>0&&(B-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&F!==T.keys[0]&&(T.repeating=!1)),T.lastTime=B,T.keys.push(F);const H=$&&!T.repeating&&VP($,T);T.previousKeyMatched&&(H||ja(M,$,!1,c,mm,T))?P.preventDefault():T.previousKeyMatched=!1}f&&f(P)},k=Ct(v,n);let b=-1;m.Children.forEach(l,(P,M)=>{if(!m.isValidElement(P)){b===M&&(b+=1,b>=l.length&&(b=-1));return}P.props.disabled||(p==="selectedMenu"&&P.props.selected||b===-1)&&(b=M),b===M&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&(b+=1,b>=l.length&&(b=-1))});const w=m.Children.map(l,(P,M)=>{if(M===b){const E={};return i&&(E.autoFocus=!0),P.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),m.cloneElement(P,E)}return P});return S.jsx(IB,y({role:"menu",ref:k,className:a,onKeyDown:_,tabIndex:o?0:-1},g,{children:w}))});function DB(e){return We("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);const NB=["onEntering"],BB=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],HB=["slotProps"];function OC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function RC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function FC(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gm(e){return typeof e=="function"?e():e}const jB=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},DB,t)},GB=de(SN,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WP=de(Ui,{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}),VB=m.forwardRef(function(t,n){var r,o,i;const l=Xe({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:g,className:v,container:x,elevation:_=8,marginThreshold:k=16,open:b,PaperProps:w={},slots:P,slotProps:M,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:$=Wu,transitionDuration:T="auto",TransitionProps:{onEntering:F}={},disableScrollLock:B=!1}=l,H=se(l.TransitionProps,NB),W=se(l,BB),j=(r=M==null?void 0:M.paper)!=null?r:w,D=m.useRef(),R=Ct(D,j.ref),z=y({},l,{anchorOrigin:d,anchorReference:p,elevation:_,marginThreshold:k,externalPaperSlotProps:j,transformOrigin:E,TransitionComponent:$,transitionDuration:T,TransitionProps:H}),O=jB(z),A=m.useCallback(()=>{if(p==="anchorPosition")return f;const Ee=gm(c),we=(Ee&&Ee.nodeType===1?Ee:zt(D.current).body).getBoundingClientRect();return{top:we.top+OC(we,d.vertical),left:we.left+RC(we,d.horizontal)}},[c,d.horizontal,d.vertical,f,p]),N=m.useCallback(Ee=>({vertical:OC(Ee,E.vertical),horizontal:RC(Ee,E.horizontal)}),[E.horizontal,E.vertical]),G=m.useCallback(Ee=>{const $e={width:Ee.offsetWidth,height:Ee.offsetHeight},we=N($e);if(p==="none")return{top:null,left:null,transformOrigin:FC(we)};const Ce=A();let Je=Ce.top-we.vertical,Ie=Ce.left-we.horizontal;const Ye=Je+$e.height,Ve=Ie+$e.width,He=ti(gm(c)),je=He.innerHeight-k,ze=He.innerWidth-k;if(k!==null&&Jeje){const ke=Ye-je;Je-=ke,we.vertical+=ke}if(k!==null&&Ieze){const ke=Ve-ze;Ie-=ke,we.horizontal+=ke}return{top:`${Math.round(Je)}px`,left:`${Math.round(Ie)}px`,transformOrigin:FC(we)}},[c,p,A,N,k]),[U,Z]=m.useState(b),Y=m.useCallback(()=>{const Ee=D.current;if(!Ee)return;const $e=G(Ee);$e.top!==null&&(Ee.style.top=$e.top),$e.left!==null&&(Ee.style.left=$e.left),Ee.style.transformOrigin=$e.transformOrigin,Z(!0)},[G]);m.useEffect(()=>(B&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[c,B,Y]);const ee=(Ee,$e)=>{F&&F(Ee,$e),Y()},Q=()=>{Z(!1)};m.useEffect(()=>{b&&Y()}),m.useImperativeHandle(a,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),m.useEffect(()=>{if(!b)return;const Ee=Fp(()=>{Y()}),$e=ti(c);return $e.addEventListener("resize",Ee),()=>{Ee.clear(),$e.removeEventListener("resize",Ee)}},[c,b,Y]);let X=T;T==="auto"&&!$.muiSupportAuto&&(X=void 0);const te=x||(c?zt(gm(c)).body:void 0),me=(o=P==null?void 0:P.root)!=null?o:GB,re=(i=P==null?void 0:P.paper)!=null?i:WP,oe=ni({elementType:re,externalSlotProps:y({},j,{style:U?j.style:y({},j.style,{opacity:0})}),additionalProps:{elevation:_,ref:R},ownerState:z,className:pe(O.paper,j==null?void 0:j.className)}),ge=ni({elementType:me,externalSlotProps:(M==null?void 0:M.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:te,open:b},ownerState:z,className:pe(O.root,v)}),{slotProps:ve}=ge,ye=se(ge,HB);return S.jsx(me,y({},ye,!ju(me)&&{slotProps:ve,disableScrollLock:B},{children:S.jsx($,y({appear:!0,in:b,onEntering:ee,onExited:Q,timeout:X},H,{children:S.jsx(re,y({},oe,{children:g}))}))}))});function WB(e){return We("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const UB=["onEntering"],ZB=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],KB={vertical:"top",horizontal:"right"},qB={vertical:"top",horizontal:"left"},XB=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},WB,t)},YB=de(VB,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QB=de(WP,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),JB=de(Fy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eH=m.forwardRef(function(t,n){var r,o;const i=Xe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:a,className:c,disableAutoFocusItem:d=!1,MenuListProps:f={},onClose:p,open:g,PaperProps:v={},PopoverClasses:x,transitionDuration:_="auto",TransitionProps:{onEntering:k}={},variant:b="selectedMenu",slots:w={},slotProps:P={}}=i,M=se(i.TransitionProps,UB),E=se(i,ZB),$=vy(),T=y({},i,{autoFocus:l,disableAutoFocusItem:d,MenuListProps:f,onEntering:k,PaperProps:v,transitionDuration:_,TransitionProps:M,variant:b}),F=XB(T),B=l&&!d&&g,H=m.useRef(null),W=(N,G)=>{H.current&&H.current.adjustStyleForScrollbar(N,{direction:$?"rtl":"ltr"}),k&&k(N,G)},j=N=>{N.key==="Tab"&&(N.preventDefault(),p&&p(N,"tabKeyDown"))};let D=-1;m.Children.map(a,(N,G)=>{m.isValidElement(N)&&(N.props.disabled||(b==="selectedMenu"&&N.props.selected||D===-1)&&(D=G))});const R=(r=w.paper)!=null?r:QB,z=(o=P.paper)!=null?o:v,O=ni({elementType:w.root,externalSlotProps:P.root,ownerState:T,className:[F.root,c]}),A=ni({elementType:R,externalSlotProps:z,ownerState:T,className:F.paper});return S.jsx(YB,y({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:$?"right":"left"},transformOrigin:$?KB:qB,slots:{paper:R,root:w.root},slotProps:{root:O,paper:A},open:g,ref:n,transitionDuration:_,TransitionProps:y({onEntering:W},M),ownerState:T},E,{classes:x,children:S.jsx(JB,y({onKeyDown:j,actions:H,autoFocus:l&&(D===-1||d),autoFocusItem:B,variant:b},f,{className:pe(F.list,f.className),children:a}))}))});function tH(e){return We("MuiMenuItem",e)}const Ga=Ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nH=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rH=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oH=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:l}=e,c=xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tH,l);return y({},l,c)},iH=de(Jl,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rH})(({theme:e,ownerState:t})=>y({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ga.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ga.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ga.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ga.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ga.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${SC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${SC.inset}`]:{marginLeft:52},[`& .${kf.root}`]:{marginTop:0,marginBottom:0},[`& .${kf.inset}`]:{paddingLeft:36},[`& .${LC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&y({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${LC.root} svg`]:{fontSize:"1.25rem"}}))),Lo=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:p,className:g}=r,v=se(r,nH),x=m.useContext(Uu),_=m.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),k=m.useRef(null);Mt(()=>{o&&k.current&&k.current.focus()},[o]);const b=y({},r,{dense:_.dense,divider:a,disableGutters:c}),w=oH(r),P=Ct(k,n);let M;return r.disabled||(M=p!==void 0?p:-1),S.jsx(Uu.Provider,{value:_,children:S.jsx(iH,y({ref:P,role:f,tabIndex:M,component:i,focusVisibleClassName:pe(w.focusVisible,d),className:pe(w.root,g)},v,{ownerState:b,classes:w}))})});function sH(e){return We("MuiNativeSelect",e)}const $y=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lH=["className","disabled","error","IconComponent","inputRef","variant"],aH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return xe(a,sH,t)},UP=({ownerState:e,theme:t})=>y({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":y({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${$y.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),uH=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ir,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$y.multiple}`]:t.multiple}]}})(UP),ZP=({ownerState:e,theme:t})=>y({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$y.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cH=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(ZP),dH=m.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:a,variant:c="standard"}=t,d=se(t,lH),f=y({},t,{disabled:o,variant:c,error:i}),p=aH(f);return S.jsxs(m.Fragment,{children:[S.jsx(uH,y({ownerState:f,className:pe(p.select,r),disabled:o,ref:a||n},d)),t.multiple?null:S.jsx(cH,{as:l,ownerState:f,className:p.icon})]})});var $C;const fH=["children","classes","className","label","notched"],pH=de("fieldset",{shouldForwardProp:ir})({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%"}),hH=de("legend",{shouldForwardProp:ir})(({ownerState:e,theme:t})=>y({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&y({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mH(e){const{className:t,label:n,notched:r}=e,o=se(e,fH),i=n!=null&&n!=="",l=y({},e,{notched:r,withLabel:i});return S.jsx(pH,y({"aria-hidden":!0,className:t,ownerState:l},o,{children:S.jsx(hH,{ownerState:l,children:i?S.jsx("span",{children:n}):$C||($C=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const gH=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vH=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},JA,t);return y({},t,r)},yH=de(Wp,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return y({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&y({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bH=de(mH,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_H=de(Up,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vp})(({theme:e,ownerState:t})=>y({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),zy=m.forwardRef(function(t,n){var r,o,i,l,a;const c=Xe({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:f=!1,inputComponent:p="input",label:g,multiline:v=!1,notched:x,slots:_={},type:k="text"}=c,b=se(c,gH),w=vH(c),P=si(),M=Os({props:c,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=y({},c,{color:M.color||"primary",disabled:M.disabled,error:M.error,focused:M.focused,formControl:P,fullWidth:f,hiddenLabel:M.hiddenLabel,multiline:v,size:M.size,type:k}),$=(r=(o=_.root)!=null?o:d.Root)!=null?r:yH,T=(i=(l=_.input)!=null?l:d.Input)!=null?i:_H;return S.jsx(ha,y({slots:{root:$,input:T},renderSuffix:F=>S.jsx(bH,{ownerState:E,className:w.notchedOutline,label:g!=null&&g!==""&&M.required?a||(a=S.jsxs(m.Fragment,{children:[g," ","*"]})):g,notched:typeof x<"u"?x:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:k},b,{classes:y({},w,{notchedOutline:null})}))});zy.muiName="Input";const CH=nt(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),xH=nt(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function wH(e){return We("MuiSelect",e)}const Va=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zC;const SH=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],PH=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Va.select}`]:t.select},{[`&.${Va.select}`]:t[n.variant]},{[`&.${Va.error}`]:t.error},{[`&.${Va.multiple}`]:t.multiple}]}})(UP,{[`&.${Va.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kH=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(ZP),MH=de("input",{shouldForwardProp:e=>sP(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function AC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function IH(e){return e==null||typeof e=="string"&&!e.trim()}const EH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(a,wH,t)},LH=m.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:l,autoWidth:a,children:c,className:d,defaultOpen:f,defaultValue:p,disabled:g,displayEmpty:v,error:x=!1,IconComponent:_,inputRef:k,labelId:b,MenuProps:w={},multiple:P,name:M,onBlur:E,onChange:$,onClose:T,onFocus:F,onOpen:B,open:H,readOnly:W,renderValue:j,SelectDisplayProps:D={},tabIndex:R,value:z,variant:O="standard"}=t,A=se(t,SH),[N,G]=zi({controlled:z,default:p,name:"Select"}),[U,Z]=zi({controlled:H,default:f,name:"Select"}),Y=m.useRef(null),ee=m.useRef(null),[Q,X]=m.useState(null),{current:te}=m.useRef(H!=null),[me,re]=m.useState(),oe=Ct(n,k),ge=m.useCallback(Me=>{ee.current=Me,Me&&X(Me)},[]),ve=Q==null?void 0:Q.parentNode;m.useImperativeHandle(oe,()=>({focus:()=>{ee.current.focus()},node:Y.current,value:N}),[N]),m.useEffect(()=>{f&&U&&Q&&!te&&(re(a?null:ve.clientWidth),ee.current.focus())},[Q,a]),m.useEffect(()=>{l&&ee.current.focus()},[l]),m.useEffect(()=>{if(!b)return;const Me=zt(ee.current).getElementById(b);if(Me){const Ge=()=>{getSelection().isCollapsed&&ee.current.focus()};return Me.addEventListener("click",Ge),()=>{Me.removeEventListener("click",Ge)}}},[b]);const ye=(Me,Ge)=>{Me?B&&B(Ge):T&&T(Ge),te||(re(a?null:ve.clientWidth),Z(Me))},Ee=Me=>{Me.button===0&&(Me.preventDefault(),ee.current.focus(),ye(!0,Me))},$e=Me=>{ye(!1,Me)},we=m.Children.toArray(c),Ce=Me=>{const Ge=we.find(et=>et.props.value===Me.target.value);Ge!==void 0&&(G(Ge.props.value),$&&$(Me,Ge))},Je=Me=>Ge=>{let et;if(Ge.currentTarget.hasAttribute("tabindex")){if(P){et=Array.isArray(N)?N.slice():[];const Et=N.indexOf(Me.props.value);Et===-1?et.push(Me.props.value):et.splice(Et,1)}else et=Me.props.value;if(Me.props.onClick&&Me.props.onClick(Ge),N!==et&&(G(et),$)){const Et=Ge.nativeEvent||Ge,jt=new Et.constructor(Et.type,Et);Object.defineProperty(jt,"target",{writable:!0,value:{value:et,name:M}}),$(jt,Me)}P||ye(!1,Ge)}},Ie=Me=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Me.key)!==-1&&(Me.preventDefault(),ye(!0,Me))},Ye=Q!==null&&U,Ve=Me=>{!Ye&&E&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:N,name:M}}),E(Me))};delete A["aria-invalid"];let He,je;const ze=[];let ke=!1;(Sf({value:N})||v)&&(j?He=j(N):ke=!0);const Ze=we.map(Me=>{if(!m.isValidElement(Me))return null;let Ge;if(P){if(!Array.isArray(N))throw new Error(ei(2));Ge=N.some(et=>AC(et,Me.props.value)),Ge&&ke&&ze.push(Me.props.children)}else Ge=AC(N,Me.props.value),Ge&&ke&&(je=Me.props.children);return m.cloneElement(Me,{"aria-selected":Ge?"true":"false",onClick:Je(Me),onKeyUp:et=>{et.key===" "&&et.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(et)},role:"option",selected:Ge,value:void 0,"data-value":Me.props.value})});ke&&(P?ze.length===0?He=null:He=ze.reduce((Me,Ge,et)=>(Me.push(Ge),et{const{classes:t}=e;return t},Ay={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ir(e)&&e!=="variant",slot:"Root"},FH=de(Ry,Ay)(""),$H=de(zy,Ay)(""),zH=de(Oy,Ay)(""),qp=m.forwardRef(function(t,n){const r=Xe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:f=$P,id:p,input:g,inputProps:v,label:x,labelId:_,MenuProps:k,multiple:b=!1,native:w=!1,onClose:P,onOpen:M,open:E,renderValue:$,SelectDisplayProps:T,variant:F="outlined"}=r,B=se(r,TH),H=w?dH:LH,W=si(),j=Os({props:r,muiFormControl:W,states:["variant","error"]}),D=j.variant||F,R=y({},r,{variant:D,classes:l}),z=RH(R),O=se(z,OH),A=g||{standard:S.jsx(FH,{ownerState:R}),outlined:S.jsx($H,{label:x,ownerState:R}),filled:S.jsx(zH,{ownerState:R})}[D],N=Ct(n,A.ref);return S.jsx(m.Fragment,{children:m.cloneElement(A,y({inputComponent:H,inputProps:y({children:i,error:j.error,IconComponent:f,variant:D,type:void 0,multiple:b},w?{id:p}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:_,MenuProps:k,onClose:P,onOpen:M,open:E,renderValue:$,SelectDisplayProps:y({id:p},T)},v,{classes:v?Gn(O,v.classes):O},g?g.props.inputProps:{})},(b&&w||d)&&D==="outlined"?{notched:!0}:{},{ref:N,className:pe(A.props.className,a,z.root)},!g&&{variant:D},B))})});qp.muiName="Select";function AH(e){return We("MuiSkeleton",e)}Ue("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const DH=["animation","className","component","height","style","variant","width"];let Mf=e=>e,DC,NC,BC,HC;const NH=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:l}=e;return xe({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!l&&"heightAuto"]},AH,t)},BH=Wi(DC||(DC=Mf` + `),uN)),NP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:a=40,style:c,thickness:d=3.6,value:f=0,variant:p="indeterminate"}=r,g=se(r,lN),v=y({},r,{color:i,disableShrink:l,size:a,thickness:d,value:f,variant:p}),x=cN(v),_={},k={},b={};if(p==="determinate"){const w=2*Math.PI*((hi-d)/2);_.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(f),_.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,k.transform="rotate(-90deg)"}return S.jsx(dN,y({className:pe(x.root,o),style:y({width:a,height:a},k,c),ownerState:v,ref:n,role:"progressbar"},b,g,{children:S.jsx(fN,{className:x.svg,ownerState:v,viewBox:`${hi/2} ${hi/2} ${hi} ${hi}`,children:S.jsx(pN,{className:x.circle,style:_,ownerState:v,cx:hi,cy:hi,r:(hi-d)/2,fill:"none",strokeWidth:d})})}))}),hN=v2({createStyledComponent:de("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ce(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Xe({props:e,name:"MuiContainer"})}),mN=(e,t)=>y({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),gN=e=>y({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),vN=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,a])=>{var c;r[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(c=a.palette)==null?void 0:c.mode}});let o=y({html:mN(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:y({margin:0},gN(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function yN(e){const t=Xe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return S.jsxs(m.Fragment,{children:[S.jsx(FP,{styles:o=>vN(o,r)}),n]})}function bN(e){return We("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const _N=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],CN=e=>{const{open:t,exited:n,classes:r}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bN,r)},xN=de("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>y({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),wN=de(kD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),SN=m.forwardRef(function(t,n){var r,o,i,l,a,c;const d=Xe({name:"MuiModal",props:t}),{BackdropComponent:f=wN,BackdropProps:p,className:g,closeAfterTransition:v=!1,children:x,container:_,component:k,components:b={},componentsProps:w={},disableAutoFocus:P=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:E=!1,disablePortal:$=!1,disableRestoreFocus:T=!1,disableScrollLock:F=!1,hideBackdrop:B=!1,keepMounted:H=!1,onBackdropClick:W,open:j,slotProps:D,slots:R}=d,z=se(d,_N),O=y({},d,{closeAfterTransition:v,disableAutoFocus:P,disableEnforceFocus:M,disableEscapeKeyDown:E,disablePortal:$,disableRestoreFocus:T,disableScrollLock:F,hideBackdrop:B,keepMounted:H}),{getRootProps:A,getBackdropProps:N,getTransitionProps:G,portalRef:U,isTopModal:Z,exited:Y,hasTransition:ee}=lz(y({},O,{rootRef:n})),Q=y({},O,{exited:Y}),X=CN(Q),te={};if(x.props.tabIndex===void 0&&(te.tabIndex="-1"),ee){const{onEnter:Ee,onExited:$e}=G();te.onEnter=Ee,te.onExited=$e}const me=(r=(o=R==null?void 0:R.root)!=null?o:b.Root)!=null?r:xN,re=(i=(l=R==null?void 0:R.backdrop)!=null?l:b.Backdrop)!=null?i:f,oe=(a=D==null?void 0:D.root)!=null?a:w.root,ge=(c=D==null?void 0:D.backdrop)!=null?c:w.backdrop,ve=ni({elementType:me,externalSlotProps:oe,externalForwardedProps:z,getSlotProps:A,additionalProps:{ref:n,as:k},ownerState:Q,className:pe(g,oe==null?void 0:oe.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),ye=ni({elementType:re,externalSlotProps:ge,additionalProps:p,getSlotProps:Ee=>N(y({},Ee,{onClick:$e=>{W&&W($e),Ee!=null&&Ee.onClick&&Ee.onClick($e)}})),className:pe(ge==null?void 0:ge.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!H&&!j&&(!ee||Y)?null:S.jsx(yP,{ref:U,container:_,disablePortal:$,children:S.jsxs(me,y({},ve,{children:[!B&&f?S.jsx(re,y({},ye)):null,S.jsx(vP,{disableEnforceFocus:M,disableAutoFocus:P,disableRestoreFocus:T,isEnabled:Z,open:j,children:m.cloneElement(x,te)})]}))})});function PN(e){return We("MuiDivider",e)}const SC=Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),kN=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],MN=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:l,textAlign:a,variant:c}=e;return xe({root:["root",t&&"absolute",c,i&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},PN,r)},IN=de("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>y({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>y({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>y({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>y({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>y({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),EN=de("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>y({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),BP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:l,component:a=i?"div":"hr",flexItem:c=!1,light:d=!1,orientation:f="horizontal",role:p=a!=="hr"?"separator":void 0,textAlign:g="center",variant:v="fullWidth"}=r,x=se(r,kN),_=y({},r,{absolute:o,component:a,flexItem:c,light:d,orientation:f,role:p,textAlign:g,variant:v}),k=MN(_);return S.jsx(IN,y({as:a,className:pe(k.root,l),role:p,ref:n,ownerState:_},x,{children:i?S.jsx(EN,{className:k.wrapper,ownerState:_,children:i}):null}))});BP.muiSkipListHighlight=!0;const LN=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],TN=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},eD,t);return y({},t,o)},ON=de(Wp,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return y({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${dr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${dr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dr.disabled}, .${dr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&y({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),RN=de(Up,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vp})(({theme:e,ownerState:t})=>y({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Oy=m.forwardRef(function(t,n){var r,o,i,l;const a=Xe({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:x={},type:_="text"}=a,k=se(a,LN),b=y({},a,{fullWidth:f,inputComponent:p,multiline:g,type:_}),w=TN(a),P={root:{ownerState:b},input:{ownerState:b}},M=v??d?Gn(P,v??d):P,E=(r=(o=x.root)!=null?o:c.Root)!=null?r:ON,$=(i=(l=x.input)!=null?l:c.Input)!=null?i:RN;return S.jsx(ha,y({slots:{root:E,input:$},componentsProps:M,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:_},k,{classes:w}))});Oy.muiName="Input";function FN(e){return We("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $N=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zN=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return xe(o,FN,t)},AN=de("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>y({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>y({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),HP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:a="div",disabled:c=!1,error:d=!1,focused:f,fullWidth:p=!1,hiddenLabel:g=!1,margin:v="none",required:x=!1,size:_="medium",variant:k="outlined"}=r,b=se(r,$N),w=y({},r,{color:l,component:a,disabled:c,error:d,fullWidth:p,hiddenLabel:g,margin:v,required:x,size:_,variant:k}),P=zN(w),[M,E]=m.useState(()=>{let D=!1;return o&&m.Children.forEach(o,R=>{if(!$d(R,["Input","Select"]))return;const z=$d(R,["Select"])?R.props.input:R;z&&ZA(z.props)&&(D=!0)}),D}),[$,T]=m.useState(()=>{let D=!1;return o&&m.Children.forEach(o,R=>{$d(R,["Input","Select"])&&(Pf(R.props,!0)||Pf(R.props.inputProps,!0))&&(D=!0)}),D}),[F,B]=m.useState(!1);c&&F&&B(!1);const H=f!==void 0&&!c?f:F;let W;const j=m.useMemo(()=>({adornedStart:M,setAdornedStart:E,color:l,disabled:c,error:d,filled:$,focused:H,fullWidth:p,hiddenLabel:g,size:_,onBlur:()=>{B(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{B(!0)},registerEffect:W,required:x,variant:k}),[M,l,c,d,$,H,p,g,W,x,_,k]);return S.jsx(jp.Provider,{value:j,children:S.jsx(AN,y({as:a,ownerState:w,className:pe(P.root,i),ref:n},b,{children:o}))})}),DN=P2({createStyledComponent:de("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Xe({props:e,name:"MuiStack"})});function NN(e){return We("MuiFormControlLabel",e)}const Ja=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),BN=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],HN=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,l={root:["root",n&&"disabled",`labelPlacement${ce(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return xe(l,NN,t)},jN=de("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ja.label}`]:t.label},t.root,t[`labelPlacement${ce(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>y({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ja.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Ja.label}`]:{[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),GN=de("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ja.error}`]:{color:(e.vars||e).palette.error.main}})),PC=m.forwardRef(function(t,n){var r,o;const i=Xe({props:t,name:"MuiFormControlLabel"}),{className:l,componentsProps:a={},control:c,disabled:d,disableTypography:f,label:p,labelPlacement:g="end",required:v,slotProps:x={}}=i,_=se(i,BN),k=si(),b=(r=d??c.props.disabled)!=null?r:k==null?void 0:k.disabled,w=v??c.props.required,P={disabled:b,required:w};["checked","name","onChange","value","inputRef"].forEach(B=>{typeof c.props[B]>"u"&&typeof i[B]<"u"&&(P[B]=i[B])});const M=Os({props:i,muiFormControl:k,states:["error"]}),E=y({},i,{disabled:b,labelPlacement:g,required:w,error:M.error}),$=HN(E),T=(o=x.typography)!=null?o:a.typography;let F=p;return F!=null&&F.type!==Po&&!f&&(F=S.jsx(Po,y({component:"span"},T,{className:pe($.label,T==null?void 0:T.className),children:F}))),S.jsxs(jN,y({className:pe($.root,l),ownerState:E,ref:n},_,{children:[m.cloneElement(c,P),w?S.jsxs(DN,{display:"block",children:[F,S.jsxs(GN,{ownerState:E,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):F]}))});function VN(e){return We("MuiFormHelperText",e)}const kC=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var MC;const WN=["children","className","component","disabled","error","filled","focused","margin","required","variant"],UN=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${ce(r)}`,n&&"contained",a&&"focused",l&&"filled",c&&"required"]};return xe(d,VN,t)},ZN=de("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${kC.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kC.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),KN=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p"}=r,a=se(r,WN),c=si(),d=Os({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=y({},r,{component:l,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),p=UN(f);return S.jsx(ZN,y({as:l,ownerState:f,className:pe(p.root,i),ref:n},a,{children:o===" "?MC||(MC=S.jsx("span",{className:"notranslate",children:"​"})):o}))});function qN(e){return We("MuiFormLabel",e)}const gu=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),XN=["children","className","color","component","disabled","error","filled","focused","required"],YN=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:a}=e,c={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return xe(c,qN,t)},QN=de("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>y({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>y({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${gu.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${gu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gu.error}`]:{color:(e.vars||e).palette.error.main}})),JN=de("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${gu.error}`]:{color:(e.vars||e).palette.error.main}})),eB=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:l="label"}=r,a=se(r,XN),c=si(),d=Os({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=y({},r,{color:d.color||"primary",component:l,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),p=YN(f);return S.jsxs(QN,y({as:l,ownerState:f,className:pe(p.root,i),ref:n},a,{children:[o,d.required&&S.jsxs(JN,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),tB=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ag(e){return`scale(${e}, ${e**2})`}const nB={entering:{opacity:1,transform:Ag(1)},entered:{opacity:1,transform:"none"}},hm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Uu=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:l,in:a,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:g,onExiting:v,style:x,timeout:_="auto",TransitionComponent:k=zo}=t,b=se(t,tB),w=Dr(),P=m.useRef(),M=$o(),E=m.useRef(null),$=Ct(E,i.ref,n),T=z=>O=>{if(z){const A=E.current;O===void 0?z(A):z(A,O)}},F=T(f),B=T((z,O)=>{aP(z);const{duration:A,delay:N,easing:G}=wf({style:x,timeout:_,easing:l},{mode:"enter"});let U;_==="auto"?(U=M.transitions.getAutoHeightDuration(z.clientHeight),P.current=U):U=A,z.style.transition=[M.transitions.create("opacity",{duration:U,delay:N}),M.transitions.create("transform",{duration:hm?U:U*.666,delay:N,easing:G})].join(","),c&&c(z,O)}),H=T(d),W=T(v),j=T(z=>{const{duration:O,delay:A,easing:N}=wf({style:x,timeout:_,easing:l},{mode:"exit"});let G;_==="auto"?(G=M.transitions.getAutoHeightDuration(z.clientHeight),P.current=G):G=O,z.style.transition=[M.transitions.create("opacity",{duration:G,delay:A}),M.transitions.create("transform",{duration:hm?G:G*.666,delay:hm?A:A||G*.333,easing:N})].join(","),z.style.opacity=0,z.style.transform=Ag(.75),p&&p(z)}),D=T(g),R=z=>{_==="auto"&&w.start(P.current||0,z),r&&r(E.current,z)};return S.jsx(k,y({appear:o,in:a,nodeRef:E,onEnter:B,onEntered:H,onEntering:F,onExit:j,onExited:D,onExiting:W,addEndListener:R,timeout:_==="auto"?null:_},b,{children:(z,O)=>m.cloneElement(i,y({style:y({opacity:0,transform:Ag(.75),visibility:z==="exited"&&!a?"hidden":void 0},nB[z],x,i.props.style),ref:$},O))}))});Uu.muiSupportAuto=!0;const rB=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],oB=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},QA,t);return y({},t,o)},iB=de(Wp,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gp(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),y({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xi.disabled}, .${xi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),sB=de(Up,{name:"MuiInput",slot:"Input",overridesResolver:Vp})({}),Ry=m.forwardRef(function(t,n){var r,o,i,l;const a=Xe({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:f,fullWidth:p=!1,inputComponent:g="input",multiline:v=!1,slotProps:x,slots:_={},type:k="text"}=a,b=se(a,rB),w=oB(a),M={root:{ownerState:{disableUnderline:c}}},E=x??f?Gn(x??f,M):M,$=(r=(o=_.root)!=null?o:d.Root)!=null?r:iB,T=(i=(l=_.input)!=null?l:d.Input)!=null?i:sB;return S.jsx(ha,y({slots:{root:$,input:T},slotProps:E,fullWidth:p,inputComponent:g,multiline:v,ref:n,type:k},b,{classes:w}))});Ry.muiName="Input";function lB(e){return We("MuiInputAdornment",e)}const IC=Ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var EC;const aB=["children","className","component","disablePointerEvents","disableTypography","position","variant"],uB=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},cB=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:l}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,l,r&&"hiddenLabel",i&&`size${ce(i)}`]};return xe(a,lB,t)},dB=de("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:uB})(({theme:e,ownerState:t})=>y({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${IC.positionStart}&:not(.${IC.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),fB=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:f}=r,p=se(r,aB),g=si()||{};let v=f;f&&g.variant,g&&!v&&(v=g.variant);const x=y({},r,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:a,position:d,variant:v}),_=cB(x);return S.jsx(jp.Provider,{value:null,children:S.jsx(dB,y({as:l,ownerState:x,className:pe(_.root,i),ref:n},p,{children:typeof o=="string"&&!c?S.jsx(Po,{color:"text.secondary",children:o}):S.jsxs(m.Fragment,{children:[d==="start"?EC||(EC=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function pB(e){return We("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const hB=["disableAnimation","margin","shrink","variant","className"],mB=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:a}=e,c={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ce(r)}`,l],asterisk:[a&&"asterisk"]},d=xe(c,pB,t);return y({},t,d)},gB=de(eB,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gu.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>y({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&y({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&y({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&y({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jP=m.forwardRef(function(t,n){const r=Xe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:l}=r,a=se(r,hB),c=si();let d=i;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=Os({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),p=y({},r,{disableAnimation:o,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),g=mB(p);return S.jsx(gB,y({"data-shrink":d,ownerState:p,ref:n,className:pe(g.root,l)},a,{classes:g}))});function vB(e){return We("MuiLink",e)}const yB=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),GP={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bB=e=>GP[e]||e,_B=({theme:e,ownerState:t})=>{const n=bB(t.color),r=Yl(e,`palette.${n}`,!1)||t.color,o=Yl(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:mt(r,.4)},CB=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],xB=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return xe(i,vB,t)},wB=de(Po,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>y({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&y({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_B({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yB.focusVisible}`]:{outline:"auto"}})),vu=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:l="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:f="always",variant:p="inherit",sx:g}=r,v=se(r,CB),{isFocusVisibleRef:x,onBlur:_,onFocus:k,ref:b}=Ap(),[w,P]=m.useState(!1),M=Ct(n,b),E=B=>{_(B),x.current===!1&&P(!1),a&&a(B)},$=B=>{k(B),x.current===!0&&P(!0),c&&c(B)},T=y({},r,{color:i,component:l,focusVisible:w,underline:f,variant:p}),F=xB(T);return S.jsx(wB,y({color:i,className:pe(F.root,o),classes:d,component:l,onBlur:E,onFocus:$,ref:M,ownerState:T,variant:p,sx:[...Object.keys(GP).includes(i)?[]:[{color:i}],...Array.isArray(g)?g:[g]]},v))}),Zu=m.createContext({});function SB(e){return We("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const PB=["children","className","component","dense","disablePadding","subheader"],kB=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},SB,t)},MB=de("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>y({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),IB=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,f=se(r,PB),p=m.useMemo(()=>({dense:a}),[a]),g=y({},r,{component:l,dense:a,disablePadding:c}),v=kB(g);return S.jsx(Zu.Provider,{value:p,children:S.jsxs(MB,y({as:l,className:pe(v.root,i),ref:n,ownerState:g},f,{children:[d,o]}))})});function EB(e){return We("MuiListItemIcon",e)}const LC=Ue("MuiListItemIcon",["root","alignItemsFlexStart"]),LB=["className"],TB=e=>{const{alignItems:t,classes:n}=e;return xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},EB,n)},OB=de("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>y({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),zl=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,LB),l=m.useContext(Zu),a=y({},r,{alignItems:l.alignItems}),c=TB(a);return S.jsx(OB,y({className:pe(c.root,o),ownerState:a,ref:n},i))});function RB(e){return We("MuiListItemText",e)}const kf=Ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),FB=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],$B=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return xe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},RB,t)},zB=de("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kf.primary}`]:t.primary},{[`& .${kf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>y({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Al=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:p}=r,g=se(r,FB),{dense:v}=m.useContext(Zu);let x=c??o,_=f;const k=y({},r,{disableTypography:l,inset:a,primary:!!x,secondary:!!_,dense:v}),b=$B(k);return x!=null&&x.type!==Po&&!l&&(x=S.jsx(Po,y({variant:v?"body2":"body1",className:b.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:x}))),_!=null&&_.type!==Po&&!l&&(_=S.jsx(Po,y({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:_}))),S.jsxs(zB,y({className:pe(b.root,i),ownerState:k,ref:n},g,{children:[x,_]}))}),AB=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function TC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function VP(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ja(e,t,n,r,o,i){let l=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!VP(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const Fy=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=t,g=se(t,AB),v=m.useRef(null),x=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mt(()=>{o&&v.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(P,{direction:M})=>{const E=!v.current.style.width;if(P.clientHeight{const M=v.current,E=P.key,$=zt(M).activeElement;if(E==="ArrowDown")P.preventDefault(),ja(M,$,d,c,mm);else if(E==="ArrowUp")P.preventDefault(),ja(M,$,d,c,TC);else if(E==="Home")P.preventDefault(),ja(M,null,d,c,mm);else if(E==="End")P.preventDefault(),ja(M,null,d,c,TC);else if(E.length===1){const T=x.current,F=E.toLowerCase(),B=performance.now();T.keys.length>0&&(B-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&F!==T.keys[0]&&(T.repeating=!1)),T.lastTime=B,T.keys.push(F);const H=$&&!T.repeating&&VP($,T);T.previousKeyMatched&&(H||ja(M,$,!1,c,mm,T))?P.preventDefault():T.previousKeyMatched=!1}f&&f(P)},k=Ct(v,n);let b=-1;m.Children.forEach(l,(P,M)=>{if(!m.isValidElement(P)){b===M&&(b+=1,b>=l.length&&(b=-1));return}P.props.disabled||(p==="selectedMenu"&&P.props.selected||b===-1)&&(b=M),b===M&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&(b+=1,b>=l.length&&(b=-1))});const w=m.Children.map(l,(P,M)=>{if(M===b){const E={};return i&&(E.autoFocus=!0),P.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),m.cloneElement(P,E)}return P});return S.jsx(IB,y({role:"menu",ref:k,className:a,onKeyDown:_,tabIndex:o?0:-1},g,{children:w}))});function DB(e){return We("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);const NB=["onEntering"],BB=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],HB=["slotProps"];function OC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function RC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function FC(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gm(e){return typeof e=="function"?e():e}const jB=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},DB,t)},GB=de(SN,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WP=de(Ui,{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}),VB=m.forwardRef(function(t,n){var r,o,i;const l=Xe({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:g,className:v,container:x,elevation:_=8,marginThreshold:k=16,open:b,PaperProps:w={},slots:P,slotProps:M,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:$=Uu,transitionDuration:T="auto",TransitionProps:{onEntering:F}={},disableScrollLock:B=!1}=l,H=se(l.TransitionProps,NB),W=se(l,BB),j=(r=M==null?void 0:M.paper)!=null?r:w,D=m.useRef(),R=Ct(D,j.ref),z=y({},l,{anchorOrigin:d,anchorReference:p,elevation:_,marginThreshold:k,externalPaperSlotProps:j,transformOrigin:E,TransitionComponent:$,transitionDuration:T,TransitionProps:H}),O=jB(z),A=m.useCallback(()=>{if(p==="anchorPosition")return f;const Ee=gm(c),we=(Ee&&Ee.nodeType===1?Ee:zt(D.current).body).getBoundingClientRect();return{top:we.top+OC(we,d.vertical),left:we.left+RC(we,d.horizontal)}},[c,d.horizontal,d.vertical,f,p]),N=m.useCallback(Ee=>({vertical:OC(Ee,E.vertical),horizontal:RC(Ee,E.horizontal)}),[E.horizontal,E.vertical]),G=m.useCallback(Ee=>{const $e={width:Ee.offsetWidth,height:Ee.offsetHeight},we=N($e);if(p==="none")return{top:null,left:null,transformOrigin:FC(we)};const Ce=A();let Je=Ce.top-we.vertical,Ie=Ce.left-we.horizontal;const Ye=Je+$e.height,Ve=Ie+$e.width,He=ti(gm(c)),je=He.innerHeight-k,ze=He.innerWidth-k;if(k!==null&&Jeje){const ke=Ye-je;Je-=ke,we.vertical+=ke}if(k!==null&&Ieze){const ke=Ve-ze;Ie-=ke,we.horizontal+=ke}return{top:`${Math.round(Je)}px`,left:`${Math.round(Ie)}px`,transformOrigin:FC(we)}},[c,p,A,N,k]),[U,Z]=m.useState(b),Y=m.useCallback(()=>{const Ee=D.current;if(!Ee)return;const $e=G(Ee);$e.top!==null&&(Ee.style.top=$e.top),$e.left!==null&&(Ee.style.left=$e.left),Ee.style.transformOrigin=$e.transformOrigin,Z(!0)},[G]);m.useEffect(()=>(B&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[c,B,Y]);const ee=(Ee,$e)=>{F&&F(Ee,$e),Y()},Q=()=>{Z(!1)};m.useEffect(()=>{b&&Y()}),m.useImperativeHandle(a,()=>b?{updatePosition:()=>{Y()}}:null,[b,Y]),m.useEffect(()=>{if(!b)return;const Ee=Fp(()=>{Y()}),$e=ti(c);return $e.addEventListener("resize",Ee),()=>{Ee.clear(),$e.removeEventListener("resize",Ee)}},[c,b,Y]);let X=T;T==="auto"&&!$.muiSupportAuto&&(X=void 0);const te=x||(c?zt(gm(c)).body:void 0),me=(o=P==null?void 0:P.root)!=null?o:GB,re=(i=P==null?void 0:P.paper)!=null?i:WP,oe=ni({elementType:re,externalSlotProps:y({},j,{style:U?j.style:y({},j.style,{opacity:0})}),additionalProps:{elevation:_,ref:R},ownerState:z,className:pe(O.paper,j==null?void 0:j.className)}),ge=ni({elementType:me,externalSlotProps:(M==null?void 0:M.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:te,open:b},ownerState:z,className:pe(O.root,v)}),{slotProps:ve}=ge,ye=se(ge,HB);return S.jsx(me,y({},ye,!Gu(me)&&{slotProps:ve,disableScrollLock:B},{children:S.jsx($,y({appear:!0,in:b,onEntering:ee,onExited:Q,timeout:X},H,{children:S.jsx(re,y({},oe,{children:g}))}))}))});function WB(e){return We("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const UB=["onEntering"],ZB=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],KB={vertical:"top",horizontal:"right"},qB={vertical:"top",horizontal:"left"},XB=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},WB,t)},YB=de(VB,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QB=de(WP,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),JB=de(Fy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eH=m.forwardRef(function(t,n){var r,o;const i=Xe({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:a,className:c,disableAutoFocusItem:d=!1,MenuListProps:f={},onClose:p,open:g,PaperProps:v={},PopoverClasses:x,transitionDuration:_="auto",TransitionProps:{onEntering:k}={},variant:b="selectedMenu",slots:w={},slotProps:P={}}=i,M=se(i.TransitionProps,UB),E=se(i,ZB),$=vy(),T=y({},i,{autoFocus:l,disableAutoFocusItem:d,MenuListProps:f,onEntering:k,PaperProps:v,transitionDuration:_,TransitionProps:M,variant:b}),F=XB(T),B=l&&!d&&g,H=m.useRef(null),W=(N,G)=>{H.current&&H.current.adjustStyleForScrollbar(N,{direction:$?"rtl":"ltr"}),k&&k(N,G)},j=N=>{N.key==="Tab"&&(N.preventDefault(),p&&p(N,"tabKeyDown"))};let D=-1;m.Children.map(a,(N,G)=>{m.isValidElement(N)&&(N.props.disabled||(b==="selectedMenu"&&N.props.selected||D===-1)&&(D=G))});const R=(r=w.paper)!=null?r:QB,z=(o=P.paper)!=null?o:v,O=ni({elementType:w.root,externalSlotProps:P.root,ownerState:T,className:[F.root,c]}),A=ni({elementType:R,externalSlotProps:z,ownerState:T,className:F.paper});return S.jsx(YB,y({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:$?"right":"left"},transformOrigin:$?KB:qB,slots:{paper:R,root:w.root},slotProps:{root:O,paper:A},open:g,ref:n,transitionDuration:_,TransitionProps:y({onEntering:W},M),ownerState:T},E,{classes:x,children:S.jsx(JB,y({onKeyDown:j,actions:H,autoFocus:l&&(D===-1||d),autoFocusItem:B,variant:b},f,{className:pe(F.list,f.className),children:a}))}))});function tH(e){return We("MuiMenuItem",e)}const Ga=Ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nH=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rH=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oH=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:l}=e,c=xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},tH,l);return y({},l,c)},iH=de(Jl,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rH})(({theme:e,ownerState:t})=>y({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ga.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ga.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ga.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(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})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ga.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ga.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${SC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${SC.inset}`]:{marginLeft:52},[`& .${kf.root}`]:{marginTop:0,marginBottom:0},[`& .${kf.inset}`]:{paddingLeft:36},[`& .${LC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&y({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${LC.root} svg`]:{fontSize:"1.25rem"}}))),Lo=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:p,className:g}=r,v=se(r,nH),x=m.useContext(Zu),_=m.useMemo(()=>({dense:l||x.dense||!1,disableGutters:c}),[x.dense,l,c]),k=m.useRef(null);Mt(()=>{o&&k.current&&k.current.focus()},[o]);const b=y({},r,{dense:_.dense,divider:a,disableGutters:c}),w=oH(r),P=Ct(k,n);let M;return r.disabled||(M=p!==void 0?p:-1),S.jsx(Zu.Provider,{value:_,children:S.jsx(iH,y({ref:P,role:f,tabIndex:M,component:i,focusVisibleClassName:pe(w.focusVisible,d),className:pe(w.root,g)},v,{ownerState:b,classes:w}))})});function sH(e){return We("MuiNativeSelect",e)}const $y=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lH=["className","disabled","error","IconComponent","inputRef","variant"],aH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return xe(a,sH,t)},UP=({ownerState:e,theme:t})=>y({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":y({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${$y.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),uH=de("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ir,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$y.multiple}`]:t.multiple}]}})(UP),ZP=({ownerState:e,theme:t})=>y({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$y.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cH=de("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(ZP),dH=m.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:a,variant:c="standard"}=t,d=se(t,lH),f=y({},t,{disabled:o,variant:c,error:i}),p=aH(f);return S.jsxs(m.Fragment,{children:[S.jsx(uH,y({ownerState:f,className:pe(p.select,r),disabled:o,ref:a||n},d)),t.multiple?null:S.jsx(cH,{as:l,ownerState:f,className:p.icon})]})});var $C;const fH=["children","classes","className","label","notched"],pH=de("fieldset",{shouldForwardProp:ir})({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%"}),hH=de("legend",{shouldForwardProp:ir})(({ownerState:e,theme:t})=>y({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&y({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mH(e){const{className:t,label:n,notched:r}=e,o=se(e,fH),i=n!=null&&n!=="",l=y({},e,{notched:r,withLabel:i});return S.jsx(pH,y({"aria-hidden":!0,className:t,ownerState:l},o,{children:S.jsx(hH,{ownerState:l,children:i?S.jsx("span",{children:n}):$C||($C=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const gH=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vH=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},JA,t);return y({},t,r)},yH=de(Wp,{shouldForwardProp:e=>ir(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gp})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return y({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&y({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bH=de(mH,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_H=de(Up,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vp})(({theme:e,ownerState:t})=>y({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),zy=m.forwardRef(function(t,n){var r,o,i,l,a;const c=Xe({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:f=!1,inputComponent:p="input",label:g,multiline:v=!1,notched:x,slots:_={},type:k="text"}=c,b=se(c,gH),w=vH(c),P=si(),M=Os({props:c,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=y({},c,{color:M.color||"primary",disabled:M.disabled,error:M.error,focused:M.focused,formControl:P,fullWidth:f,hiddenLabel:M.hiddenLabel,multiline:v,size:M.size,type:k}),$=(r=(o=_.root)!=null?o:d.Root)!=null?r:yH,T=(i=(l=_.input)!=null?l:d.Input)!=null?i:_H;return S.jsx(ha,y({slots:{root:$,input:T},renderSuffix:F=>S.jsx(bH,{ownerState:E,className:w.notchedOutline,label:g!=null&&g!==""&&M.required?a||(a=S.jsxs(m.Fragment,{children:[g," ","*"]})):g,notched:typeof x<"u"?x:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:f,inputComponent:p,multiline:v,ref:n,type:k},b,{classes:y({},w,{notchedOutline:null})}))});zy.muiName="Input";const CH=nt(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),xH=nt(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function wH(e){return We("MuiSelect",e)}const Va=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var zC;const SH=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],PH=de("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Va.select}`]:t.select},{[`&.${Va.select}`]:t[n.variant]},{[`&.${Va.error}`]:t.error},{[`&.${Va.multiple}`]:t.multiple}]}})(UP,{[`&.${Va.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),kH=de("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(ZP),MH=de("input",{shouldForwardProp:e=>sP(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function AC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function IH(e){return e==null||typeof e=="string"&&!e.trim()}const EH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(a,wH,t)},LH=m.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:l,autoWidth:a,children:c,className:d,defaultOpen:f,defaultValue:p,disabled:g,displayEmpty:v,error:x=!1,IconComponent:_,inputRef:k,labelId:b,MenuProps:w={},multiple:P,name:M,onBlur:E,onChange:$,onClose:T,onFocus:F,onOpen:B,open:H,readOnly:W,renderValue:j,SelectDisplayProps:D={},tabIndex:R,value:z,variant:O="standard"}=t,A=se(t,SH),[N,G]=zi({controlled:z,default:p,name:"Select"}),[U,Z]=zi({controlled:H,default:f,name:"Select"}),Y=m.useRef(null),ee=m.useRef(null),[Q,X]=m.useState(null),{current:te}=m.useRef(H!=null),[me,re]=m.useState(),oe=Ct(n,k),ge=m.useCallback(Me=>{ee.current=Me,Me&&X(Me)},[]),ve=Q==null?void 0:Q.parentNode;m.useImperativeHandle(oe,()=>({focus:()=>{ee.current.focus()},node:Y.current,value:N}),[N]),m.useEffect(()=>{f&&U&&Q&&!te&&(re(a?null:ve.clientWidth),ee.current.focus())},[Q,a]),m.useEffect(()=>{l&&ee.current.focus()},[l]),m.useEffect(()=>{if(!b)return;const Me=zt(ee.current).getElementById(b);if(Me){const Ge=()=>{getSelection().isCollapsed&&ee.current.focus()};return Me.addEventListener("click",Ge),()=>{Me.removeEventListener("click",Ge)}}},[b]);const ye=(Me,Ge)=>{Me?B&&B(Ge):T&&T(Ge),te||(re(a?null:ve.clientWidth),Z(Me))},Ee=Me=>{Me.button===0&&(Me.preventDefault(),ee.current.focus(),ye(!0,Me))},$e=Me=>{ye(!1,Me)},we=m.Children.toArray(c),Ce=Me=>{const Ge=we.find(et=>et.props.value===Me.target.value);Ge!==void 0&&(G(Ge.props.value),$&&$(Me,Ge))},Je=Me=>Ge=>{let et;if(Ge.currentTarget.hasAttribute("tabindex")){if(P){et=Array.isArray(N)?N.slice():[];const Et=N.indexOf(Me.props.value);Et===-1?et.push(Me.props.value):et.splice(Et,1)}else et=Me.props.value;if(Me.props.onClick&&Me.props.onClick(Ge),N!==et&&(G(et),$)){const Et=Ge.nativeEvent||Ge,jt=new Et.constructor(Et.type,Et);Object.defineProperty(jt,"target",{writable:!0,value:{value:et,name:M}}),$(jt,Me)}P||ye(!1,Ge)}},Ie=Me=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Me.key)!==-1&&(Me.preventDefault(),ye(!0,Me))},Ye=Q!==null&&U,Ve=Me=>{!Ye&&E&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:N,name:M}}),E(Me))};delete A["aria-invalid"];let He,je;const ze=[];let ke=!1;(Pf({value:N})||v)&&(j?He=j(N):ke=!0);const Ze=we.map(Me=>{if(!m.isValidElement(Me))return null;let Ge;if(P){if(!Array.isArray(N))throw new Error(ei(2));Ge=N.some(et=>AC(et,Me.props.value)),Ge&&ke&&ze.push(Me.props.children)}else Ge=AC(N,Me.props.value),Ge&&ke&&(je=Me.props.children);return m.cloneElement(Me,{"aria-selected":Ge?"true":"false",onClick:Je(Me),onKeyUp:et=>{et.key===" "&&et.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(et)},role:"option",selected:Ge,value:void 0,"data-value":Me.props.value})});ke&&(P?ze.length===0?He=null:He=ze.reduce((Me,Ge,et)=>(Me.push(Ge),et{const{classes:t}=e;return t},Ay={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ir(e)&&e!=="variant",slot:"Root"},FH=de(Ry,Ay)(""),$H=de(zy,Ay)(""),zH=de(Oy,Ay)(""),qp=m.forwardRef(function(t,n){const r=Xe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:f=$P,id:p,input:g,inputProps:v,label:x,labelId:_,MenuProps:k,multiple:b=!1,native:w=!1,onClose:P,onOpen:M,open:E,renderValue:$,SelectDisplayProps:T,variant:F="outlined"}=r,B=se(r,TH),H=w?dH:LH,W=si(),j=Os({props:r,muiFormControl:W,states:["variant","error"]}),D=j.variant||F,R=y({},r,{variant:D,classes:l}),z=RH(R),O=se(z,OH),A=g||{standard:S.jsx(FH,{ownerState:R}),outlined:S.jsx($H,{label:x,ownerState:R}),filled:S.jsx(zH,{ownerState:R})}[D],N=Ct(n,A.ref);return S.jsx(m.Fragment,{children:m.cloneElement(A,y({inputComponent:H,inputProps:y({children:i,error:j.error,IconComponent:f,variant:D,type:void 0,multiple:b},w?{id:p}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:_,MenuProps:k,onClose:P,onOpen:M,open:E,renderValue:$,SelectDisplayProps:y({id:p},T)},v,{classes:v?Gn(O,v.classes):O},g?g.props.inputProps:{})},(b&&w||d)&&D==="outlined"?{notched:!0}:{},{ref:N,className:pe(A.props.className,a,z.root)},!g&&{variant:D},B))})});qp.muiName="Select";function AH(e){return We("MuiSkeleton",e)}Ue("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const DH=["animation","className","component","height","style","variant","width"];let Mf=e=>e,DC,NC,BC,HC;const NH=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:l}=e;return xe({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!l&&"heightAuto"]},AH,t)},BH=Wi(DC||(DC=Mf` 0% { opacity: 1; } @@ -203,8 +203,8 @@ Error generating stack: `+i.message+` right: 0; top: 0; } - `),HH,(t.vars||t).palette.action.hover)),GH=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:l="span",height:a,style:c,variant:d="text",width:f}=r,p=se(r,DH),g=y({},r,{animation:o,component:l,variant:d,hasChildren:!!p.children}),v=NH(g);return S.jsx(jH,y({as:l,ref:n,className:pe(v.root,i),ownerState:g},p,{style:y({width:f,height:a},c)}))});function VH(e){return We("MuiTooltip",e)}const Pi=Ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),WH=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function UH(e){return Math.round(e*1e5)/1e5}const ZH=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ce(i.split("-")[0])}`],arrow:["arrow"]};return xe(l,VH,t)},KH=de(Ts,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>y({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pi.arrow}`]:y({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Pi.arrow}`]:y({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),qH=de("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${ce(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>y({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${UH(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pi.popper}[data-popper-placement*="left"] &`]:y({transformOrigin:"right center"},t.isRtl?y({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):y({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pi.popper}[data-popper-placement*="right"] &`]:y({transformOrigin:"left center"},t.isRtl?y({marginRight:"14px"},t.touch&&{marginRight:"24px"}):y({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pi.popper}[data-popper-placement*="top"] &`]:y({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pi.popper}[data-popper-placement*="bottom"] &`]:y({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),XH=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let pd=!1;const jC=new uc;let Wa={x:0,y:0};function hd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Dg=m.forwardRef(function(t,n){var r,o,i,l,a,c,d,f,p,g,v,x,_,k,b,w,P,M,E;const $=Xe({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:F,components:B={},componentsProps:H={},describeChild:W=!1,disableFocusListener:j=!1,disableHoverListener:D=!1,disableInteractive:R=!1,disableTouchListener:z=!1,enterDelay:O=100,enterNextDelay:A=0,enterTouchDelay:N=700,followCursor:G=!1,id:U,leaveDelay:Z=0,leaveTouchDelay:Y=1500,onClose:ee,onOpen:Q,open:X,placement:te="bottom",PopperComponent:me,PopperProps:re={},slotProps:oe={},slots:ge={},title:ve,TransitionComponent:ye=Wu,TransitionProps:Ee}=$,$e=se($,WH),we=m.isValidElement(F)?F:S.jsx("span",{children:F}),Ce=$o(),Je=vy(),[Ie,Ye]=m.useState(),[Ve,He]=m.useState(null),je=m.useRef(!1),ze=R||G,ke=Dr(),Ze=Dr(),Ne=Dr(),Le=Dr(),[fe,ae]=zi({controlled:X,default:!1,name:"Tooltip",state:"open"});let Pe=fe;const st=Ot(U),ct=m.useRef(),Me=at(()=>{ct.current!==void 0&&(document.body.style.WebkitUserSelect=ct.current,ct.current=void 0),Le.clear()});m.useEffect(()=>Me,[Me]);const Ge=Fe=>{jC.clear(),pd=!0,ae(!0),Q&&!Pe&&Q(Fe)},et=at(Fe=>{jC.start(800+Z,()=>{pd=!1}),ae(!1),ee&&Pe&&ee(Fe),ke.start(Ce.transitions.duration.shortest,()=>{je.current=!1})}),Et=Fe=>{je.current&&Fe.type!=="touchstart"||(Ie&&Ie.removeAttribute("title"),Ze.clear(),Ne.clear(),O||pd&&A?Ze.start(pd?A:O,()=>{Ge(Fe)}):Ge(Fe))},jt=Fe=>{Ze.clear(),Ne.start(Z,()=>{et(Fe)})},{isFocusVisibleRef:sr,onBlur:Xt,onFocus:Yt,ref:rn}=Ap(),[,Un]=m.useState(!1),Zn=Fe=>{Xt(Fe),sr.current===!1&&(Un(!1),jt(Fe))},wr=Fe=>{Ie||Ye(Fe.currentTarget),Yt(Fe),sr.current===!0&&(Un(!0),Et(Fe))},Ao=Fe=>{je.current=!0;const rt=we.props;rt.onTouchStart&&rt.onTouchStart(Fe)},ui=Fe=>{Ao(Fe),Ne.clear(),ke.clear(),Me(),ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(N,()=>{document.body.style.WebkitUserSelect=ct.current,Et(Fe)})},Ji=Fe=>{we.props.onTouchEnd&&we.props.onTouchEnd(Fe),Me(),Ne.start(Y,()=>{et(Fe)})};m.useEffect(()=>{if(!Pe)return;function Fe(rt){(rt.key==="Escape"||rt.key==="Esc")&&et(rt)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[et,Pe]);const Bs=Ct(we.ref,rn,Ye,n);!ve&&ve!==0&&(Pe=!1);const Kn=m.useRef(),on=Fe=>{const rt=we.props;rt.onMouseMove&&rt.onMouseMove(Fe),Wa={x:Fe.clientX,y:Fe.clientY},Kn.current&&Kn.current.update()},Rt={},xn=typeof ve=="string";W?(Rt.title=!Pe&&xn&&!D?ve:null,Rt["aria-describedby"]=Pe?st:null):(Rt["aria-label"]=xn?ve:null,Rt["aria-labelledby"]=Pe&&!xn?st:null);const In=y({},Rt,$e,we.props,{className:pe($e.className,we.props.className),onTouchStart:Ao,ref:Bs},G?{onMouseMove:on}:{}),sn={};z||(In.onTouchStart=ui,In.onTouchEnd=Ji),D||(In.onMouseOver=hd(Et,In.onMouseOver),In.onMouseLeave=hd(jt,In.onMouseLeave),ze||(sn.onMouseOver=Et,sn.onMouseLeave=jt)),j||(In.onFocus=hd(wr,In.onFocus),In.onBlur=hd(Zn,In.onBlur),ze||(sn.onFocus=wr,sn.onBlur=Zn));const Be=m.useMemo(()=>{var Fe;let rt=[{name:"arrow",enabled:!!Ve,options:{element:Ve,padding:4}}];return(Fe=re.popperOptions)!=null&&Fe.modifiers&&(rt=rt.concat(re.popperOptions.modifiers)),y({},re.popperOptions,{modifiers:rt})},[Ve,re]),Sr=y({},$,{isRtl:Je,arrow:T,disableInteractive:ze,placement:te,PopperComponentProp:me,touch:je.current}),qr=ZH(Sr),Xr=(r=(o=ge.popper)!=null?o:B.Popper)!=null?r:KH,lr=(i=(l=(a=ge.transition)!=null?a:B.Transition)!=null?l:ye)!=null?i:Wu,ar=(c=(d=ge.tooltip)!=null?d:B.Tooltip)!=null?c:qH,ue=(f=(p=ge.arrow)!=null?p:B.Arrow)!=null?f:XH,le=Sl(Xr,y({},re,(g=oe.popper)!=null?g:H.popper,{className:pe(qr.popper,re==null?void 0:re.className,(v=(x=oe.popper)!=null?x:H.popper)==null?void 0:v.className)}),Sr),Te=Sl(lr,y({},Ee,(_=oe.transition)!=null?_:H.transition),Sr),Se=Sl(ar,y({},(k=oe.tooltip)!=null?k:H.tooltip,{className:pe(qr.tooltip,(b=(w=oe.tooltip)!=null?w:H.tooltip)==null?void 0:b.className)}),Sr),Ke=Sl(ue,y({},(P=oe.arrow)!=null?P:H.arrow,{className:pe(qr.arrow,(M=(E=oe.arrow)!=null?E:H.arrow)==null?void 0:M.className)}),Sr);return S.jsxs(m.Fragment,{children:[m.cloneElement(we,In),S.jsx(Xr,y({as:me??Ts,placement:te,anchorEl:G?{getBoundingClientRect:()=>({top:Wa.y,left:Wa.x,right:Wa.x,bottom:Wa.y,width:0,height:0})}:Ie,popperRef:Kn,open:Ie?Pe:!1,id:st,transition:!0},sn,le,{popperOptions:Be,children:({TransitionProps:Fe})=>S.jsx(lr,y({timeout:Ce.transitions.duration.shorter},Fe,Te,{children:S.jsxs(ar,y({},Se,{children:[ve,T?S.jsx(ue,y({},Ke,{ref:He})):null]}))}))}))]})}),KP=m.createContext();function YH(e){return We("MuiTable",e)}Ue("MuiTable",["root","stickyHeader"]);const QH=["className","component","padding","size","stickyHeader"],JH=e=>{const{classes:t,stickyHeader:n}=e;return xe({root:["root",n&&"stickyHeader"]},YH,t)},ej=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>y({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":y({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),GC="table",tj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTable"}),{className:o,component:i=GC,padding:l="normal",size:a="medium",stickyHeader:c=!1}=r,d=se(r,QH),f=y({},r,{component:i,padding:l,size:a,stickyHeader:c}),p=JH(f),g=m.useMemo(()=>({padding:l,size:a,stickyHeader:c}),[l,a,c]);return S.jsx(KP.Provider,{value:g,children:S.jsx(ej,y({as:i,role:i===GC?null:"table",ref:n,className:pe(p.root,o),ownerState:f},d))})}),Dy=m.createContext();function nj(e){return We("MuiTableBody",e)}Ue("MuiTableBody",["root"]);const rj=["className","component"],oj=e=>{const{classes:t}=e;return xe({root:["root"]},nj,t)},ij=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),sj={variant:"body"},VC="tbody",lj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableBody"}),{className:o,component:i=VC}=r,l=se(r,rj),a=y({},r,{component:i}),c=oj(a);return S.jsx(Dy.Provider,{value:sj,children:S.jsx(ij,y({className:pe(c.root,o),as:i,ref:n,role:i===VC?null:"rowgroup",ownerState:a},l))})});function aj(e){return We("MuiTableCell",e)}const uj=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),cj=["align","className","component","padding","scope","size","sortDirection","variant"],dj=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:l}=e,a={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return xe(a,aj,t)},fj=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ce(n.size)}`],n.padding!=="normal"&&t[`padding${ce(n.padding)}`],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>y({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?bf(mt(e.palette.divider,1),.88):yf(mt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${uj.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Dl=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:l,padding:a,scope:c,size:d,sortDirection:f,variant:p}=r,g=se(r,cj),v=m.useContext(KP),x=m.useContext(Dy),_=x&&x.variant==="head";let k;l?k=l:k=_?"th":"td";let b=c;k==="td"?b=void 0:!b&&_&&(b="col");const w=p||x&&x.variant,P=y({},r,{align:o,component:k,padding:a||(v&&v.padding?v.padding:"normal"),size:d||(v&&v.size?v.size:"medium"),sortDirection:f,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w}),M=dj(P);let E=null;return f&&(E=f==="asc"?"ascending":"descending"),S.jsx(fj,y({as:k,ref:n,className:pe(M.root,i),"aria-sort":E,scope:b,ownerState:P},g))});function pj(e){return We("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const hj=["className","component","disableGutters","variant"],mj=e=>{const{classes:t,disableGutters:n,variant:r}=e;return xe({root:["root",!n&&"gutters",r]},pj,t)},gj=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>y({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),qP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:a="regular"}=r,c=se(r,hj),d=y({},r,{component:i,disableGutters:l,variant:a}),f=mj(d);return S.jsx(gj,y({as:i,className:pe(f.root,o),ref:n,ownerState:d},c))}),vj=nt(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),yj=nt(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),bj=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],_j=m.forwardRef(function(t,n){var r,o,i,l,a,c,d,f;const{backIconButtonProps:p,count:g,disabled:v=!1,getItemAriaLabel:x,nextIconButtonProps:_,onPageChange:k,page:b,rowsPerPage:w,showFirstButton:P,showLastButton:M,slots:E={},slotProps:$={}}=t,T=se(t,bj),F=vy(),B=oe=>{k(oe,0)},H=oe=>{k(oe,b-1)},W=oe=>{k(oe,b+1)},j=oe=>{k(oe,Math.max(0,Math.ceil(g/w)-1))},D=(r=E.firstButton)!=null?r:So,R=(o=E.lastButton)!=null?o:So,z=(i=E.nextButton)!=null?i:So,O=(l=E.previousButton)!=null?l:So,A=(a=E.firstButtonIcon)!=null?a:CH,N=(c=E.lastButtonIcon)!=null?c:xH,G=(d=E.nextButtonIcon)!=null?d:yj,U=(f=E.previousButtonIcon)!=null?f:vj,Z=F?R:D,Y=F?z:O,ee=F?O:z,Q=F?D:R,X=F?$.lastButton:$.firstButton,te=F?$.nextButton:$.previousButton,me=F?$.previousButton:$.nextButton,re=F?$.firstButton:$.lastButton;return S.jsxs("div",y({ref:n},T,{children:[P&&S.jsx(Z,y({onClick:B,disabled:v||b===0,"aria-label":x("first",b),title:x("first",b)},X,{children:F?S.jsx(N,y({},$.lastButtonIcon)):S.jsx(A,y({},$.firstButtonIcon))})),S.jsx(Y,y({onClick:H,disabled:v||b===0,color:"inherit","aria-label":x("previous",b),title:x("previous",b)},te??p,{children:F?S.jsx(G,y({},$.nextButtonIcon)):S.jsx(U,y({},$.previousButtonIcon))})),S.jsx(ee,y({onClick:W,disabled:v||(g!==-1?b>=Math.ceil(g/w)-1:!1),color:"inherit","aria-label":x("next",b),title:x("next",b)},me??_,{children:F?S.jsx(U,y({},$.previousButtonIcon)):S.jsx(G,y({},$.nextButtonIcon))})),M&&S.jsx(Q,y({onClick:j,disabled:v||b>=Math.ceil(g/w)-1,"aria-label":x("last",b),title:x("last",b)},re,{children:F?S.jsx(A,y({},$.firstButtonIcon)):S.jsx(N,y({},$.lastButtonIcon))}))]}))});function Cj(e){return We("MuiTablePagination",e)}const vs=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var WC;const xj=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],wj=de(Dl,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Sj=de(qP,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>y({[`& .${vs.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vs.actions}`]:{flexShrink:0,marginLeft:20}})),Pj=de("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),kj=de("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>y({},e.typography.body2,{flexShrink:0})),Mj=de(qp,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>y({[`& .${vs.selectIcon}`]:t.selectIcon,[`& .${vs.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vs.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Ij=de(Lo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ej=de("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>y({},e.typography.body2,{flexShrink:0}));function Lj({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Tj(e){return`Go to ${e} page`}const Oj=e=>{const{classes:t}=e;return xe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Cj,t)},Rj=m.forwardRef(function(t,n){var r;const o=Xe({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=_j,backIconButtonProps:l,className:a,colSpan:c,component:d=Dl,count:f,disabled:p=!1,getItemAriaLabel:g=Tj,labelDisplayedRows:v=Lj,labelRowsPerPage:x="Rows per page:",nextIconButtonProps:_,onPageChange:k,onRowsPerPageChange:b,page:w,rowsPerPage:P,rowsPerPageOptions:M=[10,25,50,100],SelectProps:E={},showFirstButton:$=!1,showLastButton:T=!1,slotProps:F={},slots:B={}}=o,H=se(o,xj),W=o,j=Oj(W),D=(r=F==null?void 0:F.select)!=null?r:E,R=D.native?"option":Ij;let z;(d===Dl||d==="td")&&(z=c||1e3);const O=Ot(D.id),A=Ot(D.labelId),N=()=>f===-1?(w+1)*P:P===-1?f:Math.min(f,(w+1)*P);return S.jsx(wj,y({colSpan:z,ref:n,as:d,ownerState:W,className:pe(j.root,a)},H,{children:S.jsxs(Sj,{className:j.toolbar,children:[S.jsx(Pj,{className:j.spacer}),M.length>1&&S.jsx(kj,{className:j.selectLabel,id:A,children:x}),M.length>1&&S.jsx(Mj,y({variant:"standard"},!D.variant&&{input:WC||(WC=S.jsx(ha,{}))},{value:P,onChange:b,id:O,labelId:A},D,{classes:y({},D.classes,{root:pe(j.input,j.selectRoot,(D.classes||{}).root),select:pe(j.select,(D.classes||{}).select),icon:pe(j.selectIcon,(D.classes||{}).icon)}),disabled:p,children:M.map(G=>m.createElement(R,y({},!ju(R)&&{ownerState:W},{className:j.menuItem,key:G.label?G.label:G,value:G.value?G.value:G}),G.label?G.label:G))})),S.jsx(Ej,{className:j.displayedRows,children:v({from:f===0?0:w*P+1,to:N(),count:f===-1?-1:f,page:w})}),S.jsx(i,{className:j.actions,backIconButtonProps:l,count:f,nextIconButtonProps:_,onPageChange:k,page:w,rowsPerPage:P,showFirstButton:$,showLastButton:T,slotProps:F.actions,slots:B.actions,getItemAriaLabel:g,disabled:p})]})}))});function Fj(e){return We("MuiTableRow",e)}const UC=Ue("MuiTableRow",["root","selected","hover","head","footer"]),$j=["className","component","hover","selected"],zj=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return xe({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Fj,t)},Aj=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${UC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${UC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(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}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),ZC="tr",Dj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableRow"}),{className:o,component:i=ZC,hover:l=!1,selected:a=!1}=r,c=se(r,$j),d=m.useContext(Dy),f=y({},r,{component:i,hover:l,selected:a,head:d&&d.variant==="head",footer:d&&d.variant==="footer"}),p=zj(f);return S.jsx(Aj,y({as:i,ref:n,className:pe(p.root,o),role:i===ZC?null:"row",ownerState:f},c))});function Nj(e){return We("MuiTextField",e)}Ue("MuiTextField",["root"]);const Bj=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Hj={standard:Ry,filled:Oy,outlined:zy},jj=e=>{const{classes:t}=e;return xe({root:["root"]},Nj,t)},Gj=de(HP,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:a,color:c="primary",defaultValue:d,disabled:f=!1,error:p=!1,FormHelperTextProps:g,fullWidth:v=!1,helperText:x,id:_,InputLabelProps:k,inputProps:b,InputProps:w,inputRef:P,label:M,maxRows:E,minRows:$,multiline:T=!1,name:F,onBlur:B,onChange:H,onFocus:W,placeholder:j,required:D=!1,rows:R,select:z=!1,SelectProps:O,type:A,value:N,variant:G="outlined"}=r,U=se(r,Bj),Z=y({},r,{autoFocus:i,color:c,disabled:f,error:p,fullWidth:v,multiline:T,required:D,select:z,variant:G}),Y=jj(Z),ee={};G==="outlined"&&(k&&typeof k.shrink<"u"&&(ee.notched=k.shrink),ee.label=M),z&&((!O||!O.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const Q=Ot(_),X=x&&Q?`${Q}-helper-text`:void 0,te=M&&Q?`${Q}-label`:void 0,me=Hj[G],re=S.jsx(me,y({"aria-describedby":X,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:v,multiline:T,name:F,rows:R,maxRows:E,minRows:$,type:A,value:N,id:Q,inputRef:P,onBlur:B,onChange:H,onFocus:W,placeholder:j,inputProps:b},ee,w));return S.jsxs(Gj,y({className:pe(Y.root,a),disabled:f,error:p,fullWidth:v,ref:n,required:D,color:c,variant:G,ownerState:Z},U,{children:[M!=null&&M!==""&&S.jsx(jP,y({htmlFor:Q,id:te},k,{children:M})),z?S.jsx(qp,y({"aria-describedby":X,id:Q,labelId:te,value:N,input:re},O,{children:l})):re,x&&S.jsx(KN,y({id:X},g,{children:x}))]}))});/** + `),HH,(t.vars||t).palette.action.hover)),GH=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:l="span",height:a,style:c,variant:d="text",width:f}=r,p=se(r,DH),g=y({},r,{animation:o,component:l,variant:d,hasChildren:!!p.children}),v=NH(g);return S.jsx(jH,y({as:l,ref:n,className:pe(v.root,i),ownerState:g},p,{style:y({width:f,height:a},c)}))});function VH(e){return We("MuiTooltip",e)}const Pi=Ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),WH=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function UH(e){return Math.round(e*1e5)/1e5}const ZH=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ce(i.split("-")[0])}`],arrow:["arrow"]};return xe(l,VH,t)},KH=de(Ts,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>y({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pi.arrow}`]:y({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Pi.arrow}`]:y({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),qH=de("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${ce(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>y({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${UH(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pi.popper}[data-popper-placement*="left"] &`]:y({transformOrigin:"right center"},t.isRtl?y({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):y({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pi.popper}[data-popper-placement*="right"] &`]:y({transformOrigin:"left center"},t.isRtl?y({marginRight:"14px"},t.touch&&{marginRight:"24px"}):y({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pi.popper}[data-popper-placement*="top"] &`]:y({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pi.popper}[data-popper-placement*="bottom"] &`]:y({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),XH=de("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let hd=!1;const jC=new cc;let Wa={x:0,y:0};function md(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Dg=m.forwardRef(function(t,n){var r,o,i,l,a,c,d,f,p,g,v,x,_,k,b,w,P,M,E;const $=Xe({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:F,components:B={},componentsProps:H={},describeChild:W=!1,disableFocusListener:j=!1,disableHoverListener:D=!1,disableInteractive:R=!1,disableTouchListener:z=!1,enterDelay:O=100,enterNextDelay:A=0,enterTouchDelay:N=700,followCursor:G=!1,id:U,leaveDelay:Z=0,leaveTouchDelay:Y=1500,onClose:ee,onOpen:Q,open:X,placement:te="bottom",PopperComponent:me,PopperProps:re={},slotProps:oe={},slots:ge={},title:ve,TransitionComponent:ye=Uu,TransitionProps:Ee}=$,$e=se($,WH),we=m.isValidElement(F)?F:S.jsx("span",{children:F}),Ce=$o(),Je=vy(),[Ie,Ye]=m.useState(),[Ve,He]=m.useState(null),je=m.useRef(!1),ze=R||G,ke=Dr(),Ze=Dr(),Ne=Dr(),Le=Dr(),[fe,ae]=zi({controlled:X,default:!1,name:"Tooltip",state:"open"});let Pe=fe;const st=Ot(U),ct=m.useRef(),Me=at(()=>{ct.current!==void 0&&(document.body.style.WebkitUserSelect=ct.current,ct.current=void 0),Le.clear()});m.useEffect(()=>Me,[Me]);const Ge=Fe=>{jC.clear(),hd=!0,ae(!0),Q&&!Pe&&Q(Fe)},et=at(Fe=>{jC.start(800+Z,()=>{hd=!1}),ae(!1),ee&&Pe&&ee(Fe),ke.start(Ce.transitions.duration.shortest,()=>{je.current=!1})}),Et=Fe=>{je.current&&Fe.type!=="touchstart"||(Ie&&Ie.removeAttribute("title"),Ze.clear(),Ne.clear(),O||hd&&A?Ze.start(hd?A:O,()=>{Ge(Fe)}):Ge(Fe))},jt=Fe=>{Ze.clear(),Ne.start(Z,()=>{et(Fe)})},{isFocusVisibleRef:sr,onBlur:Xt,onFocus:Yt,ref:rn}=Ap(),[,Un]=m.useState(!1),Zn=Fe=>{Xt(Fe),sr.current===!1&&(Un(!1),jt(Fe))},wr=Fe=>{Ie||Ye(Fe.currentTarget),Yt(Fe),sr.current===!0&&(Un(!0),Et(Fe))},Ao=Fe=>{je.current=!0;const rt=we.props;rt.onTouchStart&&rt.onTouchStart(Fe)},ui=Fe=>{Ao(Fe),Ne.clear(),ke.clear(),Me(),ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(N,()=>{document.body.style.WebkitUserSelect=ct.current,Et(Fe)})},Ji=Fe=>{we.props.onTouchEnd&&we.props.onTouchEnd(Fe),Me(),Ne.start(Y,()=>{et(Fe)})};m.useEffect(()=>{if(!Pe)return;function Fe(rt){(rt.key==="Escape"||rt.key==="Esc")&&et(rt)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[et,Pe]);const Bs=Ct(we.ref,rn,Ye,n);!ve&&ve!==0&&(Pe=!1);const Kn=m.useRef(),on=Fe=>{const rt=we.props;rt.onMouseMove&&rt.onMouseMove(Fe),Wa={x:Fe.clientX,y:Fe.clientY},Kn.current&&Kn.current.update()},Rt={},xn=typeof ve=="string";W?(Rt.title=!Pe&&xn&&!D?ve:null,Rt["aria-describedby"]=Pe?st:null):(Rt["aria-label"]=xn?ve:null,Rt["aria-labelledby"]=Pe&&!xn?st:null);const In=y({},Rt,$e,we.props,{className:pe($e.className,we.props.className),onTouchStart:Ao,ref:Bs},G?{onMouseMove:on}:{}),sn={};z||(In.onTouchStart=ui,In.onTouchEnd=Ji),D||(In.onMouseOver=md(Et,In.onMouseOver),In.onMouseLeave=md(jt,In.onMouseLeave),ze||(sn.onMouseOver=Et,sn.onMouseLeave=jt)),j||(In.onFocus=md(wr,In.onFocus),In.onBlur=md(Zn,In.onBlur),ze||(sn.onFocus=wr,sn.onBlur=Zn));const Be=m.useMemo(()=>{var Fe;let rt=[{name:"arrow",enabled:!!Ve,options:{element:Ve,padding:4}}];return(Fe=re.popperOptions)!=null&&Fe.modifiers&&(rt=rt.concat(re.popperOptions.modifiers)),y({},re.popperOptions,{modifiers:rt})},[Ve,re]),Sr=y({},$,{isRtl:Je,arrow:T,disableInteractive:ze,placement:te,PopperComponentProp:me,touch:je.current}),qr=ZH(Sr),Xr=(r=(o=ge.popper)!=null?o:B.Popper)!=null?r:KH,lr=(i=(l=(a=ge.transition)!=null?a:B.Transition)!=null?l:ye)!=null?i:Uu,ar=(c=(d=ge.tooltip)!=null?d:B.Tooltip)!=null?c:qH,ue=(f=(p=ge.arrow)!=null?p:B.Arrow)!=null?f:XH,le=Sl(Xr,y({},re,(g=oe.popper)!=null?g:H.popper,{className:pe(qr.popper,re==null?void 0:re.className,(v=(x=oe.popper)!=null?x:H.popper)==null?void 0:v.className)}),Sr),Te=Sl(lr,y({},Ee,(_=oe.transition)!=null?_:H.transition),Sr),Se=Sl(ar,y({},(k=oe.tooltip)!=null?k:H.tooltip,{className:pe(qr.tooltip,(b=(w=oe.tooltip)!=null?w:H.tooltip)==null?void 0:b.className)}),Sr),Ke=Sl(ue,y({},(P=oe.arrow)!=null?P:H.arrow,{className:pe(qr.arrow,(M=(E=oe.arrow)!=null?E:H.arrow)==null?void 0:M.className)}),Sr);return S.jsxs(m.Fragment,{children:[m.cloneElement(we,In),S.jsx(Xr,y({as:me??Ts,placement:te,anchorEl:G?{getBoundingClientRect:()=>({top:Wa.y,left:Wa.x,right:Wa.x,bottom:Wa.y,width:0,height:0})}:Ie,popperRef:Kn,open:Ie?Pe:!1,id:st,transition:!0},sn,le,{popperOptions:Be,children:({TransitionProps:Fe})=>S.jsx(lr,y({timeout:Ce.transitions.duration.shorter},Fe,Te,{children:S.jsxs(ar,y({},Se,{children:[ve,T?S.jsx(ue,y({},Ke,{ref:He})):null]}))}))}))]})}),KP=m.createContext();function YH(e){return We("MuiTable",e)}Ue("MuiTable",["root","stickyHeader"]);const QH=["className","component","padding","size","stickyHeader"],JH=e=>{const{classes:t,stickyHeader:n}=e;return xe({root:["root",n&&"stickyHeader"]},YH,t)},ej=de("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>y({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":y({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),GC="table",tj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTable"}),{className:o,component:i=GC,padding:l="normal",size:a="medium",stickyHeader:c=!1}=r,d=se(r,QH),f=y({},r,{component:i,padding:l,size:a,stickyHeader:c}),p=JH(f),g=m.useMemo(()=>({padding:l,size:a,stickyHeader:c}),[l,a,c]);return S.jsx(KP.Provider,{value:g,children:S.jsx(ej,y({as:i,role:i===GC?null:"table",ref:n,className:pe(p.root,o),ownerState:f},d))})}),Dy=m.createContext();function nj(e){return We("MuiTableBody",e)}Ue("MuiTableBody",["root"]);const rj=["className","component"],oj=e=>{const{classes:t}=e;return xe({root:["root"]},nj,t)},ij=de("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),sj={variant:"body"},VC="tbody",lj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableBody"}),{className:o,component:i=VC}=r,l=se(r,rj),a=y({},r,{component:i}),c=oj(a);return S.jsx(Dy.Provider,{value:sj,children:S.jsx(ij,y({className:pe(c.root,o),as:i,ref:n,role:i===VC?null:"rowgroup",ownerState:a},l))})});function aj(e){return We("MuiTableCell",e)}const uj=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),cj=["align","className","component","padding","scope","size","sortDirection","variant"],dj=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:l}=e,a={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return xe(a,aj,t)},fj=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ce(n.size)}`],n.padding!=="normal"&&t[`padding${ce(n.padding)}`],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>y({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?_f(mt(e.palette.divider,1),.88):bf(mt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${uj.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Dl=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:l,padding:a,scope:c,size:d,sortDirection:f,variant:p}=r,g=se(r,cj),v=m.useContext(KP),x=m.useContext(Dy),_=x&&x.variant==="head";let k;l?k=l:k=_?"th":"td";let b=c;k==="td"?b=void 0:!b&&_&&(b="col");const w=p||x&&x.variant,P=y({},r,{align:o,component:k,padding:a||(v&&v.padding?v.padding:"normal"),size:d||(v&&v.size?v.size:"medium"),sortDirection:f,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w}),M=dj(P);let E=null;return f&&(E=f==="asc"?"ascending":"descending"),S.jsx(fj,y({as:k,ref:n,className:pe(M.root,i),"aria-sort":E,scope:b,ownerState:P},g))});function pj(e){return We("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const hj=["className","component","disableGutters","variant"],mj=e=>{const{classes:t,disableGutters:n,variant:r}=e;return xe({root:["root",!n&&"gutters",r]},pj,t)},gj=de("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>y({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),qP=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:a="regular"}=r,c=se(r,hj),d=y({},r,{component:i,disableGutters:l,variant:a}),f=mj(d);return S.jsx(gj,y({as:i,className:pe(f.root,o),ref:n,ownerState:d},c))}),vj=nt(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),yj=nt(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),bj=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],_j=m.forwardRef(function(t,n){var r,o,i,l,a,c,d,f;const{backIconButtonProps:p,count:g,disabled:v=!1,getItemAriaLabel:x,nextIconButtonProps:_,onPageChange:k,page:b,rowsPerPage:w,showFirstButton:P,showLastButton:M,slots:E={},slotProps:$={}}=t,T=se(t,bj),F=vy(),B=oe=>{k(oe,0)},H=oe=>{k(oe,b-1)},W=oe=>{k(oe,b+1)},j=oe=>{k(oe,Math.max(0,Math.ceil(g/w)-1))},D=(r=E.firstButton)!=null?r:So,R=(o=E.lastButton)!=null?o:So,z=(i=E.nextButton)!=null?i:So,O=(l=E.previousButton)!=null?l:So,A=(a=E.firstButtonIcon)!=null?a:CH,N=(c=E.lastButtonIcon)!=null?c:xH,G=(d=E.nextButtonIcon)!=null?d:yj,U=(f=E.previousButtonIcon)!=null?f:vj,Z=F?R:D,Y=F?z:O,ee=F?O:z,Q=F?D:R,X=F?$.lastButton:$.firstButton,te=F?$.nextButton:$.previousButton,me=F?$.previousButton:$.nextButton,re=F?$.firstButton:$.lastButton;return S.jsxs("div",y({ref:n},T,{children:[P&&S.jsx(Z,y({onClick:B,disabled:v||b===0,"aria-label":x("first",b),title:x("first",b)},X,{children:F?S.jsx(N,y({},$.lastButtonIcon)):S.jsx(A,y({},$.firstButtonIcon))})),S.jsx(Y,y({onClick:H,disabled:v||b===0,color:"inherit","aria-label":x("previous",b),title:x("previous",b)},te??p,{children:F?S.jsx(G,y({},$.nextButtonIcon)):S.jsx(U,y({},$.previousButtonIcon))})),S.jsx(ee,y({onClick:W,disabled:v||(g!==-1?b>=Math.ceil(g/w)-1:!1),color:"inherit","aria-label":x("next",b),title:x("next",b)},me??_,{children:F?S.jsx(U,y({},$.previousButtonIcon)):S.jsx(G,y({},$.nextButtonIcon))})),M&&S.jsx(Q,y({onClick:j,disabled:v||b>=Math.ceil(g/w)-1,"aria-label":x("last",b),title:x("last",b)},re,{children:F?S.jsx(A,y({},$.firstButtonIcon)):S.jsx(N,y({},$.lastButtonIcon))}))]}))});function Cj(e){return We("MuiTablePagination",e)}const vs=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var WC;const xj=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],wj=de(Dl,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Sj=de(qP,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>y({[`& .${vs.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vs.actions}`]:{flexShrink:0,marginLeft:20}})),Pj=de("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),kj=de("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>y({},e.typography.body2,{flexShrink:0})),Mj=de(qp,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>y({[`& .${vs.selectIcon}`]:t.selectIcon,[`& .${vs.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vs.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Ij=de(Lo,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ej=de("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>y({},e.typography.body2,{flexShrink:0}));function Lj({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Tj(e){return`Go to ${e} page`}const Oj=e=>{const{classes:t}=e;return xe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Cj,t)},Rj=m.forwardRef(function(t,n){var r;const o=Xe({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=_j,backIconButtonProps:l,className:a,colSpan:c,component:d=Dl,count:f,disabled:p=!1,getItemAriaLabel:g=Tj,labelDisplayedRows:v=Lj,labelRowsPerPage:x="Rows per page:",nextIconButtonProps:_,onPageChange:k,onRowsPerPageChange:b,page:w,rowsPerPage:P,rowsPerPageOptions:M=[10,25,50,100],SelectProps:E={},showFirstButton:$=!1,showLastButton:T=!1,slotProps:F={},slots:B={}}=o,H=se(o,xj),W=o,j=Oj(W),D=(r=F==null?void 0:F.select)!=null?r:E,R=D.native?"option":Ij;let z;(d===Dl||d==="td")&&(z=c||1e3);const O=Ot(D.id),A=Ot(D.labelId),N=()=>f===-1?(w+1)*P:P===-1?f:Math.min(f,(w+1)*P);return S.jsx(wj,y({colSpan:z,ref:n,as:d,ownerState:W,className:pe(j.root,a)},H,{children:S.jsxs(Sj,{className:j.toolbar,children:[S.jsx(Pj,{className:j.spacer}),M.length>1&&S.jsx(kj,{className:j.selectLabel,id:A,children:x}),M.length>1&&S.jsx(Mj,y({variant:"standard"},!D.variant&&{input:WC||(WC=S.jsx(ha,{}))},{value:P,onChange:b,id:O,labelId:A},D,{classes:y({},D.classes,{root:pe(j.input,j.selectRoot,(D.classes||{}).root),select:pe(j.select,(D.classes||{}).select),icon:pe(j.selectIcon,(D.classes||{}).icon)}),disabled:p,children:M.map(G=>m.createElement(R,y({},!Gu(R)&&{ownerState:W},{className:j.menuItem,key:G.label?G.label:G,value:G.value?G.value:G}),G.label?G.label:G))})),S.jsx(Ej,{className:j.displayedRows,children:v({from:f===0?0:w*P+1,to:N(),count:f===-1?-1:f,page:w})}),S.jsx(i,{className:j.actions,backIconButtonProps:l,count:f,nextIconButtonProps:_,onPageChange:k,page:w,rowsPerPage:P,showFirstButton:$,showLastButton:T,slotProps:F.actions,slots:B.actions,getItemAriaLabel:g,disabled:p})]})}))});function Fj(e){return We("MuiTableRow",e)}const UC=Ue("MuiTableRow",["root","selected","hover","head","footer"]),$j=["className","component","hover","selected"],zj=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return xe({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Fj,t)},Aj=de("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${UC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${UC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(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}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),ZC="tr",Dj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTableRow"}),{className:o,component:i=ZC,hover:l=!1,selected:a=!1}=r,c=se(r,$j),d=m.useContext(Dy),f=y({},r,{component:i,hover:l,selected:a,head:d&&d.variant==="head",footer:d&&d.variant==="footer"}),p=zj(f);return S.jsx(Aj,y({as:i,ref:n,className:pe(p.root,o),role:i===ZC?null:"row",ownerState:f},c))});function Nj(e){return We("MuiTextField",e)}Ue("MuiTextField",["root"]);const Bj=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Hj={standard:Ry,filled:Oy,outlined:zy},jj=e=>{const{classes:t}=e;return xe({root:["root"]},Nj,t)},Gj=de(HP,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vj=m.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:a,color:c="primary",defaultValue:d,disabled:f=!1,error:p=!1,FormHelperTextProps:g,fullWidth:v=!1,helperText:x,id:_,InputLabelProps:k,inputProps:b,InputProps:w,inputRef:P,label:M,maxRows:E,minRows:$,multiline:T=!1,name:F,onBlur:B,onChange:H,onFocus:W,placeholder:j,required:D=!1,rows:R,select:z=!1,SelectProps:O,type:A,value:N,variant:G="outlined"}=r,U=se(r,Bj),Z=y({},r,{autoFocus:i,color:c,disabled:f,error:p,fullWidth:v,multiline:T,required:D,select:z,variant:G}),Y=jj(Z),ee={};G==="outlined"&&(k&&typeof k.shrink<"u"&&(ee.notched=k.shrink),ee.label=M),z&&((!O||!O.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const Q=Ot(_),X=x&&Q?`${Q}-helper-text`:void 0,te=M&&Q?`${Q}-label`:void 0,me=Hj[G],re=S.jsx(me,y({"aria-describedby":X,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:v,multiline:T,name:F,rows:R,maxRows:E,minRows:$,type:A,value:N,id:Q,inputRef:P,onBlur:B,onChange:H,onFocus:W,placeholder:j,inputProps:b},ee,w));return S.jsxs(Gj,y({className:pe(Y.root,a),disabled:f,error:p,fullWidth:v,ref:n,required:D,color:c,variant:G,ownerState:Z},U,{children:[M!=null&&M!==""&&S.jsx(jP,y({htmlFor:Q,id:te},k,{children:M})),z?S.jsx(qp,y({"aria-describedby":X,id:Q,labelId:te,value:N,input:re},O,{children:l})):re,x&&S.jsx(KN,y({id:X},g,{children:x}))]}))});/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -213,7 +213,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ny(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uj(){return Math.random().toString(36).substr(2,8)}function qC(e,t){return{usr:e.state,key:e.key,idx:t}}function Ng(e,t,n,r){return n===void 0&&(n=null),Zu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rs(t):t,{state:n,key:t&&t.key||r||Uj()})}function If(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 Rs(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 Zj(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=ki.Pop,c=null,d=f();d==null&&(d=0,l.replaceState(Zu({},l.state,{idx:d}),""));function f(){return(l.state||{idx:null}).idx}function p(){a=ki.Pop;let k=f(),b=k==null?null:k-d;d=k,c&&c({action:a,location:_.location,delta:b})}function g(k,b){a=ki.Push;let w=Ng(_.location,k,b);n&&n(w,k),d=f()+1;let P=qC(w,d),M=_.createHref(w);try{l.pushState(P,"",M)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(M)}i&&c&&c({action:a,location:_.location,delta:1})}function v(k,b){a=ki.Replace;let w=Ng(_.location,k,b);n&&n(w,k),d=f();let P=qC(w,d),M=_.createHref(w);l.replaceState(P,"",M),i&&c&&c({action:a,location:_.location,delta:0})}function x(k){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof k=="string"?k:If(k);return w=w.replace(/ $/,"%20"),dn(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let _={get action(){return a},get location(){return e(o,l)},listen(k){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(KC,p),c=k,()=>{o.removeEventListener(KC,p),c=null}},createHref(k){return t(o,k)},createURL:x,encodeLocation(k){let b=x(k);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:g,replace:v,go(k){return l.go(k)}};return _}var XC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(XC||(XC={}));function Kj(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Rs(t):t,o=By(r.pathname||"/",n);if(o==null)return null;let i=XP(e);qj(i);let l=null;for(let a=0;l==null&&a{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&(dn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Ai([r,c.relativePath]),f=n.concat(c);i.children&&i.children.length>0&&(dn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),XP(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:n5(d,i.index),routesMeta:f})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let c of YP(i.path))o(i,l,c)}),t}function YP(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 l=YP(r.join("/")),a=[];return a.push(...l.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...l),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function qj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:r5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xj=/^:[\w-]+$/,Yj=3,Qj=2,Jj=1,e5=10,t5=-2,YC=e=>e==="*";function n5(e,t){let n=e.split("/"),r=n.length;return n.some(YC)&&(r+=t5),t&&(r+=Qj),n.filter(o=>!YC(o)).reduce((o,i)=>o+(Xj.test(i)?Yj:i===""?Jj:e5),r)}function r5(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 o5(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:v}=f;if(g==="*"){let _=a[p]||"";l=i.slice(0,i.length-_.length).replace(/(.)\/+$/,"$1")}const x=a[p];return v&&!x?d[g]=void 0:d[g]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:l,pattern:e}}function s5(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ny(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,(l,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function l5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ny(!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 By(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 a5(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Rs(e):e;return{pathname:n?n.startsWith("/")?n:u5(n,t):t,search:f5(r),hash:p5(o)}}function u5(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 vm(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 c5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QP(e,t){let n=c5(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function JP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Rs(e):(o=Zu({},e),dn(!o.pathname||!o.pathname.includes("?"),vm("?","pathname","search",o)),dn(!o.pathname||!o.pathname.includes("#"),vm("#","pathname","hash",o)),dn(!o.search||!o.search.includes("#"),vm("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}a=p>=0?t[p]:"/"}let c=a5(o,a),d=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Ai=e=>e.join("/").replace(/\/\/+/g,"/"),d5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,p5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function h5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ek=["post","put","patch","delete"];new Set(ek);const m5=["get",...ek];new Set(m5);/** + */function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ny(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uj(){return Math.random().toString(36).substr(2,8)}function qC(e,t){return{usr:e.state,key:e.key,idx:t}}function Ng(e,t,n,r){return n===void 0&&(n=null),Ku({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rs(t):t,{state:n,key:t&&t.key||r||Uj()})}function If(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 Rs(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 Zj(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=ki.Pop,c=null,d=f();d==null&&(d=0,l.replaceState(Ku({},l.state,{idx:d}),""));function f(){return(l.state||{idx:null}).idx}function p(){a=ki.Pop;let k=f(),b=k==null?null:k-d;d=k,c&&c({action:a,location:_.location,delta:b})}function g(k,b){a=ki.Push;let w=Ng(_.location,k,b);n&&n(w,k),d=f()+1;let P=qC(w,d),M=_.createHref(w);try{l.pushState(P,"",M)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(M)}i&&c&&c({action:a,location:_.location,delta:1})}function v(k,b){a=ki.Replace;let w=Ng(_.location,k,b);n&&n(w,k),d=f();let P=qC(w,d),M=_.createHref(w);l.replaceState(P,"",M),i&&c&&c({action:a,location:_.location,delta:0})}function x(k){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof k=="string"?k:If(k);return w=w.replace(/ $/,"%20"),dn(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let _={get action(){return a},get location(){return e(o,l)},listen(k){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(KC,p),c=k,()=>{o.removeEventListener(KC,p),c=null}},createHref(k){return t(o,k)},createURL:x,encodeLocation(k){let b=x(k);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:g,replace:v,go(k){return l.go(k)}};return _}var XC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(XC||(XC={}));function Kj(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Rs(t):t,o=By(r.pathname||"/",n);if(o==null)return null;let i=XP(e);qj(i);let l=null;for(let a=0;l==null&&a{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&(dn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Ai([r,c.relativePath]),f=n.concat(c);i.children&&i.children.length>0&&(dn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),XP(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:n5(d,i.index),routesMeta:f})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let c of YP(i.path))o(i,l,c)}),t}function YP(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 l=YP(r.join("/")),a=[];return a.push(...l.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...l),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function qj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:r5(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xj=/^:[\w-]+$/,Yj=3,Qj=2,Jj=1,e5=10,t5=-2,YC=e=>e==="*";function n5(e,t){let n=e.split("/"),r=n.length;return n.some(YC)&&(r+=t5),t&&(r+=Qj),n.filter(o=>!YC(o)).reduce((o,i)=>o+(Xj.test(i)?Yj:i===""?Jj:e5),r)}function r5(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 o5(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:v}=f;if(g==="*"){let _=a[p]||"";l=i.slice(0,i.length-_.length).replace(/(.)\/+$/,"$1")}const x=a[p];return v&&!x?d[g]=void 0:d[g]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:l,pattern:e}}function s5(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ny(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,(l,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function l5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ny(!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 By(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 a5(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Rs(e):e;return{pathname:n?n.startsWith("/")?n:u5(n,t):t,search:f5(r),hash:p5(o)}}function u5(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 vm(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 c5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QP(e,t){let n=c5(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function JP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Rs(e):(o=Ku({},e),dn(!o.pathname||!o.pathname.includes("?"),vm("?","pathname","search",o)),dn(!o.pathname||!o.pathname.includes("#"),vm("#","pathname","hash",o)),dn(!o.search||!o.search.includes("#"),vm("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(l==null)a=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}a=p>=0?t[p]:"/"}let c=a5(o,a),d=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Ai=e=>e.join("/").replace(/\/\/+/g,"/"),d5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),f5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,p5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function h5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ek=["post","put","patch","delete"];new Set(ek);const m5=["get",...ek];new Set(m5);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -222,7 +222,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),m.useCallback(function(d,f){if(f===void 0&&(f={}),!a.current)return;if(typeof d=="number"){r.go(d);return}let p=JP(d,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ai([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,l,i,e])}function rk(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Fs),{matches:o}=m.useContext($s),{pathname:i}=hc(),l=JSON.stringify(QP(o,r.v7_relativeSplatPath));return m.useMemo(()=>JP(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function _5(e,t){return C5(e,t)}function C5(e,t,n,r){pc()||dn(!1);let{navigator:o}=m.useContext(Fs),{matches:i}=m.useContext($s),l=i[i.length-1],a=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=hc(),f;if(t){var p;let k=typeof t=="string"?Rs(t):t;c==="/"||(p=k.pathname)!=null&&p.startsWith(c)||dn(!1),f=k}else f=d;let g=f.pathname||"/",v=g;if(c!=="/"){let k=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=Kj(e,{pathname:v}),_=k5(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:Ai([c,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:Ai([c,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&_?m.createElement(Xp.Provider,{value:{location:Ku({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ki.Pop}},_):_}function x5(){let e=L5(),t=h5(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const w5=m.createElement(x5,null);class S5 extends m.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?m.createElement($s.Provider,{value:this.props.routeContext},m.createElement(tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P5(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Hy);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement($s.Provider,{value:t},r)}function k5(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((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let f=l.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);f>=0||dn(!1),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((f,p,g)=>{let v,x=!1,_=null,k=null;n&&(v=a&&p.route.id?a[p.route.id]:void 0,_=p.route.errorElement||w5,c&&(d<0&&g===0?(x=!0,k=null):d===g&&(x=!0,k=p.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,g+1)),w=()=>{let P;return v?P=_:x?P=k:p.route.Component?P=m.createElement(p.route.Component,null):p.route.element?P=p.route.element:P=f,m.createElement(P5,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:P})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?m.createElement(S5,{location:n.location,revalidation:n.revalidation,component:_,error:v,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var ok=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ok||{}),Ef=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}(Ef||{});function M5(e){let t=m.useContext(Hy);return t||dn(!1),t}function I5(e){let t=m.useContext(g5);return t||dn(!1),t}function E5(e){let t=m.useContext($s);return t||dn(!1),t}function ik(e){let t=E5(),n=t.matches[t.matches.length-1];return n.route.id||dn(!1),n.route.id}function L5(){var e;let t=m.useContext(tk),n=I5(Ef.UseRouteError),r=ik(Ef.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function T5(){let{router:e}=M5(ok.UseNavigateStable),t=ik(Ef.UseNavigateStable),n=m.useRef(!1);return nk(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ku({fromRouteId:t},i)))},[e,t])}function eu(e){dn(!1)}function O5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ki.Pop,navigator:i,static:l=!1,future:a}=e;pc()&&dn(!1);let c=t.replace(/^\/*/,"/"),d=m.useMemo(()=>({basename:c,navigator:i,static:l,future:Ku({v7_relativeSplatPath:!1},a)}),[c,a,i,l]);typeof r=="string"&&(r=Rs(r));let{pathname:f="/",search:p="",hash:g="",state:v=null,key:x="default"}=r,_=m.useMemo(()=>{let k=By(f,c);return k==null?null:{location:{pathname:k,search:p,hash:g,state:v,key:x},navigationType:o}},[c,f,p,g,v,x,o]);return _==null?null:m.createElement(Fs.Provider,{value:d},m.createElement(Xp.Provider,{children:n,value:_}))}function R5(e){let{children:t,location:n}=e;return _5(Bg(t),n)}new Promise(()=>{});function Bg(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,Bg(r.props.children,i));return}r.type!==eu&&dn(!1),!r.props.index||!r.props.children||dn(!1);let l={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&&(l.children=Bg(r.props.children,i)),n.push(l)}),n}/** + */function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),m.useCallback(function(d,f){if(f===void 0&&(f={}),!a.current)return;if(typeof d=="number"){r.go(d);return}let p=JP(d,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ai([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,l,i,e])}function rk(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Fs),{matches:o}=m.useContext($s),{pathname:i}=mc(),l=JSON.stringify(QP(o,r.v7_relativeSplatPath));return m.useMemo(()=>JP(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function _5(e,t){return C5(e,t)}function C5(e,t,n,r){hc()||dn(!1);let{navigator:o}=m.useContext(Fs),{matches:i}=m.useContext($s),l=i[i.length-1],a=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=mc(),f;if(t){var p;let k=typeof t=="string"?Rs(t):t;c==="/"||(p=k.pathname)!=null&&p.startsWith(c)||dn(!1),f=k}else f=d;let g=f.pathname||"/",v=g;if(c!=="/"){let k=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(k.length).join("/")}let x=Kj(e,{pathname:v}),_=k5(x&&x.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:Ai([c,o.encodeLocation?o.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?c:Ai([c,o.encodeLocation?o.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&_?m.createElement(Xp.Provider,{value:{location:qu({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ki.Pop}},_):_}function x5(){let e=L5(),t=h5(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,null)}const w5=m.createElement(x5,null);class S5 extends m.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?m.createElement($s.Provider,{value:this.props.routeContext},m.createElement(tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P5(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(Hy);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement($s.Provider,{value:t},r)}function k5(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((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let f=l.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);f>=0||dn(!1),l=l.slice(0,Math.min(l.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((f,p,g)=>{let v,x=!1,_=null,k=null;n&&(v=a&&p.route.id?a[p.route.id]:void 0,_=p.route.errorElement||w5,c&&(d<0&&g===0?(x=!0,k=null):d===g&&(x=!0,k=p.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,g+1)),w=()=>{let P;return v?P=_:x?P=k:p.route.Component?P=m.createElement(p.route.Component,null):p.route.element?P=p.route.element:P=f,m.createElement(P5,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:P})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?m.createElement(S5,{location:n.location,revalidation:n.revalidation,component:_,error:v,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var ok=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ok||{}),Ef=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}(Ef||{});function M5(e){let t=m.useContext(Hy);return t||dn(!1),t}function I5(e){let t=m.useContext(g5);return t||dn(!1),t}function E5(e){let t=m.useContext($s);return t||dn(!1),t}function ik(e){let t=E5(),n=t.matches[t.matches.length-1];return n.route.id||dn(!1),n.route.id}function L5(){var e;let t=m.useContext(tk),n=I5(Ef.UseRouteError),r=ik(Ef.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function T5(){let{router:e}=M5(ok.UseNavigateStable),t=ik(Ef.UseNavigateStable),n=m.useRef(!1);return nk(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qu({fromRouteId:t},i)))},[e,t])}function eu(e){dn(!1)}function O5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ki.Pop,navigator:i,static:l=!1,future:a}=e;hc()&&dn(!1);let c=t.replace(/^\/*/,"/"),d=m.useMemo(()=>({basename:c,navigator:i,static:l,future:qu({v7_relativeSplatPath:!1},a)}),[c,a,i,l]);typeof r=="string"&&(r=Rs(r));let{pathname:f="/",search:p="",hash:g="",state:v=null,key:x="default"}=r,_=m.useMemo(()=>{let k=By(f,c);return k==null?null:{location:{pathname:k,search:p,hash:g,state:v,key:x},navigationType:o}},[c,f,p,g,v,x,o]);return _==null?null:m.createElement(Fs.Provider,{value:d},m.createElement(Xp.Provider,{children:n,value:_}))}function R5(e){let{children:t,location:n}=e;return _5(Bg(t),n)}new Promise(()=>{});function Bg(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,Bg(r.props.children,i));return}r.type!==eu&&dn(!1),!r.props.index||!r.props.children||dn(!1);let l={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&&(l.children=Bg(r.props.children,i)),n.push(l)}),n}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -231,12 +231,12 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function $5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z5(e,t){return e.button===0&&(!t||t==="_self")&&!$5(e)}const A5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],D5="6";try{window.__reactRouterVersion=D5}catch{}const N5="startTransition",QC=Vd[N5];function B5(e){let{basename:t,children:n,future:r,window:o}=e,i=m.useRef();i.current==null&&(i.current=Wj({window:o,v5Compat:!0}));let l=i.current,[a,c]=m.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},f=m.useCallback(p=>{d&&QC?QC(()=>c(p)):c(p)},[c,d]);return m.useLayoutEffect(()=>l.listen(f),[l,f]),m.createElement(O5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:r})}const H5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,JC=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:c,to:d,preventScrollReset:f,unstable_viewTransition:p}=t,g=F5(t,A5),{basename:v}=m.useContext(Fs),x,_=!1;if(typeof d=="string"&&j5.test(d)&&(x=d,H5))try{let P=new URL(window.location.href),M=d.startsWith("//")?new URL(P.protocol+d):new URL(d),E=By(M.pathname,v);M.origin===P.origin&&E!=null?d=E+M.search+M.hash:_=!0}catch{}let k=v5(d,{relative:o}),b=G5(d,{replace:l,state:a,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:p});function w(P){r&&r(P),P.defaultPrevented||b(P)}return m.createElement("a",Hg({},g,{href:x||k,onClick:_||i?r:w,ref:n,target:c}))});var ex;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ex||(ex={}));var tx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tx||(tx={}));function G5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,c=y5(),d=hc(),f=rk(e,{relative:l});return m.useCallback(p=>{if(z5(p,n)){p.preventDefault();let g=r!==void 0?r:If(d)===If(f);c(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a})}},[d,c,f,r,o,n,e,i,l,a])}const zs=m.createContext(void 0),sk={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3};function V5(e,t){var n,r,o=Date.now()-+e;for([n,r]of Object.entries(sk)){var i=n,l=Math[t](o/r);if(1<=l)return[l,i]}return[0,"seconds"]}const W5=m.createContext(void 0),lk=m.memo(e=>{const{date:t,locale:n=navigator.language,formatOptions:r,hideSeconds:o=!0,roundStrategy:i="round",timeElement:l=!0}={...m.useContext(W5),...e},[a,c]=m.useState(""),[d,f]=m.useState(),p=m.useMemo(()=>new Intl.RelativeTimeFormat(n,{localeMatcher:"best fit",numeric:"auto",style:"long",...r}),[n,r]),g=m.useMemo(()=>t instanceof Date?t:new Date(t),[t]),v=m.useCallback(()=>{var[x,_]=V5(g,i);c(_==="seconds"&&o?p.format(-1,"minute"):p.format(-x,_)),f(_)},[g,p,o,i]);return m.useEffect(v,[v]),m.useEffect(()=>{if(d){var x=sk[d];const _=setInterval(v,x);return()=>clearInterval(_)}},[d,v]),l?m.createElement("time",{title:g.toLocaleString(n),dateTime:g.toISOString()},a):a});lk.displayName="TimeAgo";var jy={},ym={};const U5=br($F);var nx;function ak(){return nx||(nx=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=U5}(ym)),ym}var Z5=Dp;Object.defineProperty(jy,"__esModule",{value:!0});var uk=jy.default=void 0;X5(m);var K5=Z5(ak()),q5=S;function ck(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ck=function(r){return r?n:t})(e)}function X5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ck(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}uk=jy.default=(0,K5.default)((0,q5.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var Gy={},Y5=Dp;Object.defineProperty(Gy,"__esModule",{value:!0});var dk=Gy.default=void 0,Q5=Y5(ak()),J5=S;dk=Gy.default=(0,Q5.default)((0,J5.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");const e4={"/":"Home","/other":"Other Diagnostics","/warnings":"Warnings","/layers":"Layers"},t4=()=>{const{pathname:e}=hc(),t=m.useContext(zs);return S.jsx(B$,{position:"static",style:{height:69},children:S.jsx(hN,{maxWidth:"xl",children:S.jsxs(qP,{disableGutters:!0,children:[S.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[S.jsx(Po,{variant:"h6",noWrap:!0,component:JC,to:"/",sx:{marginRight:2,fontWeight:700,color:"inherit",textDecoration:"none",lineHeight:"20px"},children:"Place Name Conflation"}),S.jsxs("small",{style:{fontSize:12},children:["Last updated ",S.jsx(lk,{date:t.lastUpdated})]})]}),S.jsx(bC,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:Object.entries(e4).map(([n,r])=>S.jsx(Zp,{sx:{my:2,color:"white",display:"block",textTransform:"capitalize",textDecoration:n===e?"underline":"none"},component:JC,to:n,children:r},n))}),S.jsxs(bC,{sx:{flexGrow:0},children:[S.jsx(Dg,{title:"View on GitHub",children:S.jsx(So,{component:"a",href:"https://github.com/osm-nz/place-name-conflation",target:"_blank",rel:"noopener noreferrer",style:{color:"white"},children:S.jsx(uk,{})})}),S.jsx(Dg,{title:"View wiki page",children:S.jsx(So,{component:"a",href:"https://osm.wiki/Import/New_Zealand_Place_Names",target:"_blank",rel:"noopener noreferrer",style:{color:"white"},children:S.jsx(dk,{})})})]})]})})})};function Vy(e,t){const n=m.useRef(t);m.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function n4(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const fk=1;function pk(e){return Object.freeze({__version:fk,map:e})}function hk(e,t){return Object.freeze({...e,...t})}const Wy=m.createContext(null),Uy=Wy.Provider;function mc(){const e=m.useContext(Wy);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function Zy(e){function t(n,r){const{instance:o,context:i}=e(n).current;return m.useImperativeHandle(r,()=>o),n.children==null?null:pr.createElement(Uy,{value:i},n.children)}return m.forwardRef(t)}function mk(e){function t(n,r){const[o,i]=m.useState(!1),{instance:l}=e(n,i).current;m.useImperativeHandle(r,()=>l),m.useEffect(function(){o&&l.update()},[l,o,n.children]);const a=l._contentNode;return a?oc.createPortal(n.children,a):null}return m.forwardRef(t)}function Ky(e){function t(n,r){const{instance:o}=e(n).current;return m.useImperativeHandle(r,()=>o),null}return m.forwardRef(t)}function gk(e){return function(n){const r=mc(),o=e(n,r),{instance:i}=o.current,l=m.useRef(n.position),{position:a}=n;return m.useEffect(function(){return i.addTo(r.map),function(){i.remove()}},[r.map,i]),m.useEffect(function(){a!=null&&a!==l.current&&(i.setPosition(a),l.current=a)},[i,a]),o}}function Yp(e,t){const n=m.useRef();m.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function gc(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function vk(e,t){return function(r,o){const i=mc(),l=e(gc(r,i),i);return Vy(i.map,r.attribution),Yp(l.current,r.eventHandlers),t(l.current,i,r,o),l}}var jg={exports:{}};/* @preserve + */function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function $5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function z5(e,t){return e.button===0&&(!t||t==="_self")&&!$5(e)}const A5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],D5="6";try{window.__reactRouterVersion=D5}catch{}const N5="startTransition",QC=Wd[N5];function B5(e){let{basename:t,children:n,future:r,window:o}=e,i=m.useRef();i.current==null&&(i.current=Wj({window:o,v5Compat:!0}));let l=i.current,[a,c]=m.useState({action:l.action,location:l.location}),{v7_startTransition:d}=r||{},f=m.useCallback(p=>{d&&QC?QC(()=>c(p)):c(p)},[c,d]);return m.useLayoutEffect(()=>l.listen(f),[l,f]),m.createElement(O5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:r})}const H5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,JC=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:c,to:d,preventScrollReset:f,unstable_viewTransition:p}=t,g=F5(t,A5),{basename:v}=m.useContext(Fs),x,_=!1;if(typeof d=="string"&&j5.test(d)&&(x=d,H5))try{let P=new URL(window.location.href),M=d.startsWith("//")?new URL(P.protocol+d):new URL(d),E=By(M.pathname,v);M.origin===P.origin&&E!=null?d=E+M.search+M.hash:_=!0}catch{}let k=v5(d,{relative:o}),b=G5(d,{replace:l,state:a,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:p});function w(P){r&&r(P),P.defaultPrevented||b(P)}return m.createElement("a",Hg({},g,{href:x||k,onClick:_||i?r:w,ref:n,target:c}))});var ex;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ex||(ex={}));var tx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tx||(tx={}));function G5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,c=y5(),d=mc(),f=rk(e,{relative:l});return m.useCallback(p=>{if(z5(p,n)){p.preventDefault();let g=r!==void 0?r:If(d)===If(f);c(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:a})}},[d,c,f,r,o,n,e,i,l,a])}const zs=m.createContext(void 0),sk={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3};function V5(e,t){var n,r,o=Date.now()-+e;for([n,r]of Object.entries(sk)){var i=n,l=Math[t](o/r);if(1<=l)return[l,i]}return[0,"seconds"]}const W5=m.createContext(void 0),lk=m.memo(e=>{const{date:t,locale:n=navigator.language,formatOptions:r,hideSeconds:o=!0,roundStrategy:i="round",timeElement:l=!0}={...m.useContext(W5),...e},[a,c]=m.useState(""),[d,f]=m.useState(),p=m.useMemo(()=>new Intl.RelativeTimeFormat(n,{localeMatcher:"best fit",numeric:"auto",style:"long",...r}),[n,r]),g=m.useMemo(()=>t instanceof Date?t:new Date(t),[t]),v=m.useCallback(()=>{var[x,_]=V5(g,i);c(_==="seconds"&&o?p.format(-1,"minute"):p.format(-x,_)),f(_)},[g,p,o,i]);return m.useEffect(v,[v]),m.useEffect(()=>{if(d){var x=sk[d];const _=setInterval(v,x);return()=>clearInterval(_)}},[d,v]),l?m.createElement("time",{title:g.toLocaleString(n),dateTime:g.toISOString()},a):a});lk.displayName="TimeAgo";var jy={},ym={};const U5=br($F);var nx;function ak(){return nx||(nx=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=U5}(ym)),ym}var Z5=Dp;Object.defineProperty(jy,"__esModule",{value:!0});var uk=jy.default=void 0;X5(m);var K5=Z5(ak()),q5=S;function ck(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ck=function(r){return r?n:t})(e)}function X5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ck(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}uk=jy.default=(0,K5.default)((0,q5.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var Gy={},Y5=Dp;Object.defineProperty(Gy,"__esModule",{value:!0});var dk=Gy.default=void 0,Q5=Y5(ak()),J5=S;dk=Gy.default=(0,Q5.default)((0,J5.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");const e4={"/":"Home","/other":"Other Diagnostics","/warnings":"Warnings","/layers":"Layers"},t4=()=>{const{pathname:e}=mc(),t=m.useContext(zs);return S.jsx(B$,{position:"static",style:{height:69},children:S.jsx(hN,{maxWidth:"xl",children:S.jsxs(qP,{disableGutters:!0,children:[S.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[S.jsx(Po,{variant:"h6",noWrap:!0,component:JC,to:"/",sx:{marginRight:2,fontWeight:700,color:"inherit",textDecoration:"none",lineHeight:"20px"},children:"Place Name Conflation"}),S.jsxs("small",{style:{fontSize:12},children:["Last updated ",S.jsx(lk,{date:t.lastUpdated})]})]}),S.jsx(bC,{sx:{flexGrow:1,display:{xs:"none",md:"flex"}},children:Object.entries(e4).map(([n,r])=>S.jsx(Zp,{sx:{my:2,color:"white",display:"block",textTransform:"capitalize",textDecoration:n===e?"underline":"none"},component:JC,to:n,children:r},n))}),S.jsxs(bC,{sx:{flexGrow:0},children:[S.jsx(Dg,{title:"View on GitHub",children:S.jsx(So,{component:"a",href:"https://github.com/osm-nz/place-name-conflation",target:"_blank",rel:"noopener noreferrer",style:{color:"white"},children:S.jsx(uk,{})})}),S.jsx(Dg,{title:"View wiki page",children:S.jsx(So,{component:"a",href:"https://osm.wiki/Import/New_Zealand_Place_Names",target:"_blank",rel:"noopener noreferrer",style:{color:"white"},children:S.jsx(dk,{})})})]})]})})})};function Vy(e,t){const n=m.useRef(t);m.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function n4(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const fk=1;function pk(e){return Object.freeze({__version:fk,map:e})}function hk(e,t){return Object.freeze({...e,...t})}const Wy=m.createContext(null),Uy=Wy.Provider;function gc(){const e=m.useContext(Wy);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function Zy(e){function t(n,r){const{instance:o,context:i}=e(n).current;return m.useImperativeHandle(r,()=>o),n.children==null?null:pr.createElement(Uy,{value:i},n.children)}return m.forwardRef(t)}function mk(e){function t(n,r){const[o,i]=m.useState(!1),{instance:l}=e(n,i).current;m.useImperativeHandle(r,()=>l),m.useEffect(function(){o&&l.update()},[l,o,n.children]);const a=l._contentNode;return a?ic.createPortal(n.children,a):null}return m.forwardRef(t)}function Ky(e){function t(n,r){const{instance:o}=e(n).current;return m.useImperativeHandle(r,()=>o),null}return m.forwardRef(t)}function gk(e){return function(n){const r=gc(),o=e(n,r),{instance:i}=o.current,l=m.useRef(n.position),{position:a}=n;return m.useEffect(function(){return i.addTo(r.map),function(){i.remove()}},[r.map,i]),m.useEffect(function(){a!=null&&a!==l.current&&(i.setPosition(a),l.current=a)},[i,a]),o}}function Yp(e,t){const n=m.useRef();m.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function vc(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function vk(e,t){return function(r,o){const i=gc(),l=e(vc(r,i),i);return Vy(i.map,r.attribution),Yp(l.current,r.eventHandlers),t(l.current,i,r,o),l}}var jg={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */(function(e,t){(function(n,r){r(t)})(Di,function(n){var r="1.9.4";function o(s){var u,h,C,I;for(h=1,C=arguments.length;h"u"||!L||!L.Mixin)){s=P(s)?s:[s];for(var u=0;u0?Math.floor(s):Math.ceil(s)};N.prototype={clone:function(){return new N(this.x,this.y)},add:function(s){return this.clone()._add(U(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(U(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new N(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new N(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(s){s=U(s);var u=s.x-this.x,h=s.y-this.y;return Math.sqrt(u*u+h*h)},equals:function(s){return s=U(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=U(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function U(s,u,h){return s instanceof N?s:P(s)?new N(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new N(s.x,s.y):new N(s,u,h)}function Z(s,u){if(s)for(var h=u?[s,u]:s,C=0,I=h.length;C=this.min.x&&h.x<=this.max.x&&u.y>=this.min.y&&h.y<=this.max.y},intersects:function(s){s=Y(s);var u=this.min,h=this.max,C=s.min,I=s.max,V=I.x>=u.x&&C.x<=h.x,q=I.y>=u.y&&C.y<=h.y;return V&&q},overlaps:function(s){s=Y(s);var u=this.min,h=this.max,C=s.min,I=s.max,V=I.x>u.x&&C.xu.y&&C.y=u.lat&&I.lat<=h.lat&&C.lng>=u.lng&&I.lng<=h.lng},intersects:function(s){s=Q(s);var u=this._southWest,h=this._northEast,C=s.getSouthWest(),I=s.getNorthEast(),V=I.lat>=u.lat&&C.lat<=h.lat,q=I.lng>=u.lng&&C.lng<=h.lng;return V&&q},overlaps:function(s){s=Q(s);var u=this._southWest,h=this._northEast,C=s.getSouthWest(),I=s.getNorthEast(),V=I.lat>u.lat&&C.latu.lng&&C.lng1,Ji=function(){var s=!1;try{var u=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return s}(),Bs=function(){return!!document.createElement("canvas").getContext}(),Kn=!!(document.createElementNS&&we("svg").createSVGRect),on=!!Kn&&function(){var s=document.createElement("div");return s.innerHTML="",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Rt=!Kn&&function(){try{var s=document.createElement("div");s.innerHTML='';var u=s.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),xn=navigator.platform.indexOf("Mac")===0,In=navigator.platform.indexOf("Linux")===0;function sn(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var Be={ie:Ie,ielt9:Ye,edge:Ve,webkit:He,android:je,android23:ze,androidStock:Ze,opera:Ne,chrome:Le,gecko:fe,safari:ae,phantom:Pe,opera12:st,win:ct,ie3d:Me,webkit3d:Ge,gecko3d:et,any3d:Et,mobile:jt,mobileWebkit:sr,mobileWebkit3d:Xt,msPointer:Yt,pointer:rn,touch:Zn,touchNative:Un,mobileOpera:wr,mobileGecko:Ao,retina:ui,passiveEvents:Ji,canvas:Bs,svg:Kn,vml:Rt,inlineSvg:on,mac:xn,linux:In},Sr=Be.msPointer?"MSPointerDown":"pointerdown",qr=Be.msPointer?"MSPointerMove":"pointermove",Xr=Be.msPointer?"MSPointerUp":"pointerup",lr=Be.msPointer?"MSPointerCancel":"pointercancel",ar={touchstart:Sr,touchmove:qr,touchend:Xr,touchcancel:lr},ue={touchstart:ZM,touchmove:wc,touchend:wc,touchcancel:wc},le={},Te=!1;function Se(s,u,h){return u==="touchstart"&&Hs(),ue[u]?(h=ue[u].bind(this,h),s.addEventListener(ar[u],h,!1),h):(console.warn("wrong event specified:",u),p)}function Ke(s,u,h){if(!ar[u]){console.warn("wrong event specified:",u);return}s.removeEventListener(ar[u],h,!1)}function Fe(s){le[s.pointerId]=s}function rt(s){le[s.pointerId]&&(le[s.pointerId]=s)}function zn(s){delete le[s.pointerId]}function Hs(){Te||(document.addEventListener(Sr,Fe,!0),document.addEventListener(qr,rt,!0),document.addEventListener(Xr,zn,!0),document.addEventListener(lr,zn,!0),Te=!0)}function wc(s,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var h in le)u.touches.push(le[h]);u.changedTouches=[u],s(u)}}function ZM(s,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&wn(u),wc(s,u)}function KM(s){var u={},h,C;for(C in s)h=s[C],u[C]=h&&h.bind?h.bind(s):h;return s=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var qM=200;function XM(s,u){s.addEventListener("dblclick",u);var h=0,C;function I(V){if(V.detail!==1){C=V.detail;return}if(!(V.pointerType==="mouse"||V.sourceCapabilities&&!V.sourceCapabilities.firesTouchEvents)){var q=Sb(V);if(!(q.some(function(ie){return ie instanceof HTMLLabelElement&&ie.attributes.for})&&!q.some(function(ie){return ie instanceof HTMLInputElement||ie instanceof HTMLSelectElement}))){var ne=Date.now();ne-h<=qM?(C++,C===2&&u(KM(V))):C=1,h=ne}}}return s.addEventListener("click",I),{dblclick:u,simDblclick:I}}function YM(s,u){s.removeEventListener("dblclick",u.dblclick),s.removeEventListener("click",u.simDblclick)}var sh=kc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ba=kc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_b=ba==="webkitTransition"||ba==="OTransition"?ba+"End":"transitionend";function Cb(s){return typeof s=="string"?document.getElementById(s):s}function _a(s,u){var h=s.style[u]||s.currentStyle&&s.currentStyle[u];if((!h||h==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(s,null);h=C?C[u]:null}return h==="auto"?null:h}function vt(s,u,h){var C=document.createElement(s);return C.className=u||"",h&&h.appendChild(C),C}function Gt(s){var u=s.parentNode;u&&u.removeChild(s)}function Sc(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function js(s){var u=s.parentNode;u&&u.lastChild!==s&&u.appendChild(s)}function Gs(s){var u=s.parentNode;u&&u.firstChild!==s&&u.insertBefore(s,u.firstChild)}function lh(s,u){if(s.classList!==void 0)return s.classList.contains(u);var h=Pc(s);return h.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(h)}function lt(s,u){if(s.classList!==void 0)for(var h=x(u),C=0,I=h.length;C0?2*window.devicePixelRatio:1;function kb(s){return Be.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/eI:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function bh(s,u){var h=u.relatedTarget;if(!h)return!0;try{for(;h&&h!==s;)h=h.parentNode}catch{return!1}return h!==s}var tI={__proto__:null,on:ot,off:Ft,stopPropagation:ns,disableScrollPropagation:yh,disableClickPropagation:Sa,preventDefault:wn,stop:rs,getPropagationPath:Sb,getMousePosition:Pb,getWheelDelta:kb,isExternalTarget:bh,addListener:ot,removeListener:Ft},Mb=A.extend({run:function(s,u,h,C){this.stop(),this._el=s,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=ts(s),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=W(this._animate,this),this._step()},_step:function(s){var u=+new Date-this._startTime,h=this._duration*1e3;uthis.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,u){this._enforcingBounds=!0;var h=this.getCenter(),C=this._limitCenter(h,this._zoom,Q(s));return h.equals(C)||this.panTo(C,u),this._enforcingBounds=!1,this},panInside:function(s,u){u=u||{};var h=U(u.paddingTopLeft||u.padding||[0,0]),C=U(u.paddingBottomRight||u.padding||[0,0]),I=this.project(this.getCenter()),V=this.project(s),q=this.getPixelBounds(),ne=Y([q.min.add(h),q.max.subtract(C)]),ie=ne.getSize();if(!ne.contains(V)){this._enforcingBounds=!0;var he=V.subtract(ne.getCenter()),Oe=ne.extend(V).getSize().subtract(ie);I.x+=he.x<0?-Oe.x:Oe.x,I.y+=he.y<0?-Oe.y:Oe.y,this.panTo(this.unproject(I),u),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=o({animate:!1,pan:!0},s===!0?{animate:!0}:s);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),C=u.divideBy(2).round(),I=h.divideBy(2).round(),V=C.subtract(I);return!V.x&&!V.y?this:(s.animate&&s.pan?this.panBy(V):(s.pan&&this._rawPanBy(V),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:h}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=o({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=l(this._handleGeolocationResponse,this),h=l(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,h,s):navigator.geolocation.getCurrentPosition(u,h,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var u=s.code,h=s.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+h+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var u=s.coords.latitude,h=s.coords.longitude,C=new X(u,h),I=C.toBounds(s.coords.accuracy*2),V=this._locateOptions;if(V.setView){var q=this.getBoundsZoom(I);this.setView(C,V.maxZoom?Math.min(q,V.maxZoom):q)}var ne={latlng:C,bounds:I,timestamp:s.timestamp};for(var ie in s.coords)typeof s.coords[ie]=="number"&&(ne[ie]=s.coords[ie]);this.fire("locationfound",ne)}},addHandler:function(s,u){if(!u)return this;var h=this[s]=new u(this);return this._handlers.push(h),this.options[s]&&h.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)Gt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,u){var h="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),C=vt("div",h,u||this._mapPane);return s&&(this._panes[s]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),u=this.unproject(s.getBottomLeft()),h=this.unproject(s.getTopRight());return new ee(u,h)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,u,h){s=Q(s),h=U(h||[0,0]);var C=this.getZoom()||0,I=this.getMinZoom(),V=this.getMaxZoom(),q=s.getNorthWest(),ne=s.getSouthEast(),ie=this.getSize().subtract(h),he=Y(this.project(ne,C),this.project(q,C)).getSize(),Oe=Be.any3d?this.options.zoomSnap:1,qe=ie.x/he.x,dt=ie.y/he.y,An=u?Math.max(qe,dt):Math.min(qe,dt);return C=this.getScaleZoom(An,C),Oe&&(C=Math.round(C/(Oe/100))*(Oe/100),C=u?Math.ceil(C/Oe)*Oe:Math.floor(C/Oe)*Oe),Math.max(I,Math.min(V,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,u){var h=this._getTopLeftPoint(s,u);return new Z(h,h.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,u){var h=this.options.crs;return u=u===void 0?this._zoom:u,h.scale(s)/h.scale(u)},getScaleZoom:function(s,u){var h=this.options.crs;u=u===void 0?this._zoom:u;var C=h.zoom(s*h.scale(u));return isNaN(C)?1/0:C},project:function(s,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(te(s),u)},unproject:function(s,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(U(s),u)},layerPointToLatLng:function(s){var u=U(s).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(s){var u=this.project(te(s))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(te(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(Q(s))},distance:function(s,u){return this.options.crs.distance(te(s),te(u))},containerPointToLayerPoint:function(s){return U(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return U(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var u=this.containerPointToLayerPoint(U(s));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(te(s)))},mouseEventToContainerPoint:function(s){return Pb(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var u=this._container=Cb(s);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ot(u,"scroll",this._onScroll,this),this._containerId=c(u)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&Be.any3d,lt(s,"leaflet-container"+(Be.touch?" leaflet-touch":"")+(Be.retina?" leaflet-retina":"")+(Be.ielt9?" leaflet-oldie":"")+(Be.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=_a(s,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ln(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(lt(s.markerPane,"leaflet-zoom-hide"),lt(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,u,h){ln(this._mapPane,new N(0,0));var C=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var I=this._zoom!==u;this._moveStart(I,h)._move(s,u)._moveEnd(I),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(s,u){return s&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(s,u,h,C){u===void 0&&(u=this._zoom);var I=this._zoom!==u;return this._zoom=u,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),C?h&&h.pinch&&this.fire("zoom",h):((I||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){ln(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[c(this._container)]=this;var u=s?Ft:ot;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),Be.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=W(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,u){for(var h=[],C,I=u==="mouseout"||u==="mouseover",V=s.target||s.srcElement,q=!1;V;){if(C=this._targets[c(V)],C&&(u==="click"||u==="preclick")&&this._draggableMoved(C)){q=!0;break}if(C&&C.listens(u,!0)&&(I&&!bh(V,s)||(h.push(C),I))||V===this._container)break;V=V.parentNode}return!h.length&&!q&&!I&&this.listens(u,!0)&&(h=[this]),h},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var u=s.target||s.srcElement;if(!(!this._loaded||u._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(u))){var h=s.type;h==="mousedown"&&ph(u),this._fireDOMEvent(s,h)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,u,h){if(s.type==="click"){var C=o({},s);C.type="preclick",this._fireDOMEvent(C,C.type,h)}var I=this._findEventTargets(s,u);if(h){for(var V=[],q=0;q0?Math.round(s-u)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(u))},_limitZoom:function(s){var u=this.getMinZoom(),h=this.getMaxZoom(),C=Be.any3d?this.options.zoomSnap:1;return C&&(s=Math.round(s/C)*C),Math.max(u,Math.min(h,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,u){var h=this._getCenterOffset(s)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(h)?!1:(this.panBy(h,u),!0)},_createAnimProxy:function(){var s=this._proxy=vt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(u){var h=sh,C=this._proxy.style[h];es(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),C===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Gt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),u=this.getZoom();es(this._proxy,this.project(s,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,u,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||h.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(u),I=this._getCenterOffset(s)._divideBy(1-1/C);return h.animate!==!0&&!this.getSize().contains(I)?!1:(W(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(s,u,!0)},this),!0)},_animateZoom:function(s,u,h,C){this._mapPane&&(h&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=u,lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:u,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Qt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function nI(s,u){return new ht(s,u)}var Yr=R.extend({options:{position:"topright"},initialize:function(s){_(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var u=this._map;return u&&u.removeControl(this),this.options.position=s,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var u=this._container=this.onAdd(s),h=this.getPosition(),C=s._controlCorners[h];return lt(u,"leaflet-control"),h.indexOf("bottom")!==-1?C.insertBefore(u,C.firstChild):C.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Pa=function(s){return new Yr(s)};ht.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},u="leaflet-",h=this._controlContainer=vt("div",u+"control-container",this._container);function C(I,V){var q=u+I+" "+u+V;s[I+V]=vt("div",q,h)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)Gt(this._controlCorners[s]);Gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ib=Yr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,u,h,C){return h1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=u&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var u=this._getLayer(c(s.target)),h=u.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;h&&this._map.fire(h,u)},_createRadioElement:function(s,u){var h='",C=document.createElement("div");return C.innerHTML=h,C.firstChild},_addItem:function(s){var u=document.createElement("label"),h=this._map.hasLayer(s.layer),C;s.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=h):C=this._createRadioElement("leaflet-base-layers_"+c(this),h),this._layerControlInputs.push(C),C.layerId=c(s.layer),ot(C,"click",this._onInputClick,this);var I=document.createElement("span");I.innerHTML=" "+s.name;var V=document.createElement("span");u.appendChild(V),V.appendChild(C),V.appendChild(I);var q=s.overlay?this._overlaysList:this._baseLayersList;return q.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,u,h,C=[],I=[];this._handlingClick=!0;for(var V=s.length-1;V>=0;V--)u=s[V],h=this._getLayer(u.layerId).layer,u.checked?C.push(h):u.checked||I.push(h);for(V=0;V=0;I--)u=s[I],h=this._getLayer(u.layerId).layer,u.disabled=h.options.minZoom!==void 0&&Ch.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,ot(s,"click",wn),this.expand();var u=this;setTimeout(function(){Ft(s,"click",wn),u._preventClick=!1})}}),rI=function(s,u,h){return new Ib(s,u,h)},_h=Yr.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(s){var u="leaflet-control-zoom",h=vt("div",u+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,u+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,u+"-out",h,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),h},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,u,h,C,I){var V=vt("a",h,C);return V.innerHTML=s,V.href="#",V.title=u,V.setAttribute("role","button"),V.setAttribute("aria-label",u),Sa(V),ot(V,"click",rs),ot(V,"click",I,this),ot(V,"click",this._refocusOnMap,this),V},_updateDisabled:function(){var s=this._map,u="leaflet-disabled";Qt(this._zoomInButton,u),Qt(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(lt(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(lt(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});ht.mergeOptions({zoomControl:!0}),ht.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _h,this.addControl(this.zoomControl))});var oI=function(s){return new _h(s)},Eb=Yr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var u="leaflet-control-scale",h=vt("div",u),C=this.options;return this._addScales(C,u+"-line",h),s.on(C.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),h},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,u,h){s.metric&&(this._mScale=vt("div",u,h)),s.imperial&&(this._iScale=vt("div",u,h))},_update:function(){var s=this._map,u=s.getSize().y/2,h=s.distance(s.containerPointToLatLng([0,u]),s.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(h)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var u=this._getRoundNum(s),h=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,h,u/s)},_updateImperial:function(s){var u=s*3.2808399,h,C,I;u>5280?(h=u/5280,C=this._getRoundNum(h),this._updateScale(this._iScale,C+" mi",C/h)):(I=this._getRoundNum(u),this._updateScale(this._iScale,I+" ft",I/u))},_updateScale:function(s,u,h){s.style.width=Math.round(this.options.maxWidth*h)+"px",s.innerHTML=u},_getRoundNum:function(s){var u=Math.pow(10,(Math.floor(s)+"").length-1),h=s/u;return h=h>=10?10:h>=5?5:h>=3?3:h>=2?2:1,u*h}}),iI=function(s){return new Eb(s)},sI='',Ch=Yr.extend({options:{position:"bottomright",prefix:''+(Be.inlineSvg?sI+" ":"")+"Leaflet"},initialize:function(s){_(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=vt("div","leaflet-control-attribution"),Sa(this._container);for(var u in s._layers)s._layers[u].getAttribution&&this.addAttribution(s._layers[u].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var u in this._attributions)this._attributions[u]&&s.push(u);var h=[];this.options.prefix&&h.push(this.options.prefix),s.length&&h.push(s.join(", ")),this._container.innerHTML=h.join(' ')}}});ht.mergeOptions({attributionControl:!0}),ht.addInitHook(function(){this.options.attributionControl&&new Ch().addTo(this)});var lI=function(s){return new Ch(s)};Yr.Layers=Ib,Yr.Zoom=_h,Yr.Scale=Eb,Yr.Attribution=Ch,Pa.layers=rI,Pa.zoom=oI,Pa.scale=iI,Pa.attribution=lI;var ho=R.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ho.addTo=function(s,u){return s.addHandler(u,this),this};var aI={Events:O},Lb=Be.touch?"touchstart mousedown":"mousedown",ci=A.extend({options:{clickTolerance:3},initialize:function(s,u,h,C){_(this,C),this._element=s,this._dragStartTarget=u||s,this._preventOutline=h},enable:function(){this._enabled||(ot(this._dragStartTarget,Lb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ci._dragging===this&&this.finishDrag(!0),Ft(this._dragStartTarget,Lb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!lh(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){ci._dragging===this&&this.finishDrag();return}if(!(ci._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(ci._dragging=this,this._preventOutline&&ph(this._element),ch(),Ca(),!this._moving)){this.fire("down");var u=s.touches?s.touches[0]:s,h=xb(this._element);this._startPoint=new N(u.clientX,u.clientY),this._startPos=ts(this._element),this._parentScale=hh(h);var C=s.type==="mousedown";ot(document,C?"mousemove":"touchmove",this._onMove,this),ot(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var u=s.touches&&s.touches.length===1?s.touches[0]:s,h=new N(u.clientX,u.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)V&&(q=ne,V=ie);V>h&&(u[q]=1,wh(s,u,h,C,q),wh(s,u,h,q,I))}function fI(s,u){for(var h=[s[0]],C=1,I=0,V=s.length;Cu&&(h.push(s[C]),I=C);return Iu.max.x&&(h|=2),s.yu.max.y&&(h|=8),h}function pI(s,u){var h=u.x-s.x,C=u.y-s.y;return h*h+C*C}function ka(s,u,h,C){var I=u.x,V=u.y,q=h.x-I,ne=h.y-V,ie=q*q+ne*ne,he;return ie>0&&(he=((s.x-I)*q+(s.y-V)*ne)/ie,he>1?(I=h.x,V=h.y):he>0&&(I+=q*he,V+=ne*he)),q=s.x-I,ne=s.y-V,C?q*q+ne*ne:new N(I,V)}function kr(s){return!P(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function Ab(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),kr(s)}function Db(s,u){var h,C,I,V,q,ne,ie,he;if(!s||s.length===0)throw new Error("latlngs not passed");kr(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Oe=te([0,0]),qe=Q(s),dt=qe.getNorthWest().distanceTo(qe.getSouthWest())*qe.getNorthEast().distanceTo(qe.getNorthWest());dt<1700&&(Oe=xh(s));var An=s.length,gn=[];for(h=0;hC){ie=(V-C)/I,he=[ne.x-ie*(ne.x-q.x),ne.y-ie*(ne.y-q.y)];break}var qn=u.unproject(U(he));return te([qn.lat+Oe.lat,qn.lng+Oe.lng])}var hI={__proto__:null,simplify:Rb,pointToSegmentDistance:Fb,closestPointOnSegment:cI,clipSegment:zb,_getEdgeIntersection:Ec,_getBitCode:os,_sqClosestPointOnSegment:ka,isFlat:kr,_flat:Ab,polylineCenter:Db},Sh={project:function(s){return new N(s.lng,s.lat)},unproject:function(s){return new X(s.y,s.x)},bounds:new Z([-180,-90],[180,90])},Ph={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var u=Math.PI/180,h=this.R,C=s.lat*u,I=this.R_MINOR/h,V=Math.sqrt(1-I*I),q=V*Math.sin(C),ne=Math.tan(Math.PI/4-C/2)/Math.pow((1-q)/(1+q),V/2);return C=-h*Math.log(Math.max(ne,1e-10)),new N(s.lng*u*h,C)},unproject:function(s){for(var u=180/Math.PI,h=this.R,C=this.R_MINOR/h,I=Math.sqrt(1-C*C),V=Math.exp(-s.y/h),q=Math.PI/2-2*Math.atan(V),ne=0,ie=.1,he;ne<15&&Math.abs(ie)>1e-7;ne++)he=I*Math.sin(q),he=Math.pow((1-he)/(1+he),I/2),ie=Math.PI/2-2*Math.atan(V*he)-q,q+=ie;return new X(q*u,s.x*u/h)}},mI={__proto__:null,LonLat:Sh,Mercator:Ph,SphericalMercator:ge},gI=o({},re,{code:"EPSG:3395",projection:Ph,transformation:function(){var s=.5/(Math.PI*Ph.R);return ye(s,.5,-s,.5)}()}),Nb=o({},re,{code:"EPSG:4326",projection:Sh,transformation:ye(1/180,1,-1/180,.5)}),vI=o({},me,{projection:Sh,transformation:ye(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,u){var h=u.lng-s.lng,C=u.lat-s.lat;return Math.sqrt(h*h+C*C)},infinite:!0});me.Earth=re,me.EPSG3395=gI,me.EPSG3857=Ee,me.EPSG900913=$e,me.EPSG4326=Nb,me.Simple=vI;var Qr=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[c(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[c(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var u=s.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var h=this.getEvents();u.on(h,this),this.once("remove",function(){u.off(h,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});ht.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var u=c(s);return this._layers[u]?this:(this._layers[u]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var u=c(s);return this._layers[u]?(this._loaded&&s.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return c(s)in this._layers},eachLayer:function(s,u){for(var h in this._layers)s.call(u,this._layers[h]);return this},_addLayers:function(s){s=s?P(s)?s:[s]:[];for(var u=0,h=s.length;uthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&u[0]instanceof X&&u[0].equals(u[h-1])&&u.pop(),u},_setLatLngs:function(s){No.prototype._setLatLngs.call(this,s),kr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return kr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,u=this.options.weight,h=new N(u,u);if(s=new Z(s.min.subtract(h),s.max.add(h)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,I=this._rings.length,V;Cs.y!=I.y>s.y&&s.x<(I.x-C.x)*(s.y-C.y)/(I.y-C.y)+C.x&&(u=!u);return u||No.prototype._containsPoint.call(this,s,!0)}});function PI(s,u){return new Us(s,u)}var Bo=Do.extend({initialize:function(s,u){_(this,u),this._layers={},s&&this.addData(s)},addData:function(s){var u=P(s)?s:s.features,h,C,I;if(u){for(h=0,C=u.length;h0&&I.push(I[0].slice()),I}function Zs(s,u){return s.feature?o({},s.feature,{geometry:u}):$c(u)}function $c(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Eh={toGeoJSON:function(s){return Zs(this,{type:"Point",coordinates:Ih(this.getLatLng(),s)})}};Lc.include(Eh),kh.include(Eh),Tc.include(Eh),No.include({toGeoJSON:function(s){var u=!kr(this._latlngs),h=Fc(this._latlngs,u?1:0,!1,s);return Zs(this,{type:(u?"Multi":"")+"LineString",coordinates:h})}}),Us.include({toGeoJSON:function(s){var u=!kr(this._latlngs),h=u&&!kr(this._latlngs[0]),C=Fc(this._latlngs,h?2:u?1:0,!0,s);return u||(C=[C]),Zs(this,{type:(h?"Multi":"")+"Polygon",coordinates:C})}}),Vs.include({toMultiPoint:function(s){var u=[];return this.eachLayer(function(h){u.push(h.toGeoJSON(s).geometry.coordinates)}),Zs(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(s){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(s);var h=u==="GeometryCollection",C=[];return this.eachLayer(function(I){if(I.toGeoJSON){var V=I.toGeoJSON(s);if(h)C.push(V.geometry);else{var q=$c(V);q.type==="FeatureCollection"?C.push.apply(C,q.features):C.push(q)}}}),h?Zs(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function jb(s,u){return new Bo(s,u)}var kI=jb,zc=Qr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,u,h){this._url=s,this._bounds=Q(u),_(this,h)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&js(this._image),this},bringToBack:function(){return this._map&&Gs(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=Q(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",u=this._image=s?this._url:vt("img");if(lt(u,"leaflet-image-layer"),this._zoomAnimated&<(u,"leaflet-zoom-animated"),this.options.className&<(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=l(this.fire,this,"load"),u.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(s){var u=this._map.getZoomScale(s.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;es(this._image,h,u)},_reset:function(){var s=this._image,u=new Z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=u.getSize();ln(s,u.min),s.style.width=h.x+"px",s.style.height=h.y+"px"},_updateOpacity:function(){Pr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),MI=function(s,u,h){return new zc(s,u,h)},Gb=zc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",u=this._image=s?this._url:vt("video");if(lt(u,"leaflet-image-layer"),this._zoomAnimated&<(u,"leaflet-zoom-animated"),this.options.className&<(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=l(this.fire,this,"load"),s){for(var h=u.getElementsByTagName("source"),C=[],I=0;I0?C:[u.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var V=0;VI?(u.height=I+"px",lt(s,V)):Qt(s,V),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var u=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),h=this._getAnchor();ln(this._container,u.add(h))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,u=parseInt(_a(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+u,C=this._containerWidth,I=new N(this._containerLeft,-h-this._containerBottom);I._add(ts(this._container));var V=s.layerPointToContainerPoint(I),q=U(this.options.autoPanPadding),ne=U(this.options.autoPanPaddingTopLeft||q),ie=U(this.options.autoPanPaddingBottomRight||q),he=s.getSize(),Oe=0,qe=0;V.x+C+ie.x>he.x&&(Oe=V.x+C-he.x+ie.x),V.x-Oe-ne.x<0&&(Oe=V.x-ne.x),V.y+h+ie.y>he.y&&(qe=V.y+h-he.y+ie.y),V.y-qe-ne.y<0&&(qe=V.y-ne.y),(Oe||qe)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([Oe,qe]))}},_getAnchor:function(){return U(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),LI=function(s,u){return new Ac(s,u)};ht.mergeOptions({closePopupOnClick:!0}),ht.include({openPopup:function(s,u,h){return this._initOverlay(Ac,s,u,h).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Qr.include({bindPopup:function(s,u){return this._popup=this._initOverlay(Ac,this._popup,s,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof Do||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){rs(s);var u=s.layer||s.target;if(this._popup._source===u&&!(u instanceof di)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=u,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Dc=mo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){mo.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){mo.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=mo.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",u=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=vt("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var u,h,C=this._map,I=this._container,V=C.latLngToContainerPoint(C.getCenter()),q=C.layerPointToContainerPoint(s),ne=this.options.direction,ie=I.offsetWidth,he=I.offsetHeight,Oe=U(this.options.offset),qe=this._getAnchor();ne==="top"?(u=ie/2,h=he):ne==="bottom"?(u=ie/2,h=0):ne==="center"?(u=ie/2,h=he/2):ne==="right"?(u=0,h=he/2):ne==="left"?(u=ie,h=he/2):q.xthis.options.maxZoom||hC?this._retainParent(I,V,q,C):!1)},_retainChildren:function(s,u,h,C){for(var I=2*s;I<2*s+2;I++)for(var V=2*u;V<2*u+2;V++){var q=new N(I,V);q.z=h+1;var ne=this._tileCoordsToKey(q),ie=this._tiles[ne];if(ie&&ie.active){ie.retain=!0;continue}else ie&&ie.loaded&&(ie.retain=!0);h+1this.options.maxZoom||this.options.minZoom!==void 0&&I1){this._setView(s,h);return}for(var qe=I.min.y;qe<=I.max.y;qe++)for(var dt=I.min.x;dt<=I.max.x;dt++){var An=new N(dt,qe);if(An.z=this._tileZoom,!!this._isValidTile(An)){var gn=this._tiles[this._tileCoordsToKey(An)];gn?gn.current=!0:q.push(An)}}if(q.sort(function(qn,qs){return qn.distanceTo(V)-qs.distanceTo(V)}),q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mr=document.createDocumentFragment();for(dt=0;dth.max.x)||!u.wrapLat&&(s.yh.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(s);return Q(this.options.bounds).overlaps(C)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var u=this._map,h=this.getTileSize(),C=s.scaleBy(h),I=C.add(h),V=u.unproject(C,s.z),q=u.unproject(I,s.z);return[V,q]},_tileCoordsToBounds:function(s){var u=this._tileCoordsToNwSe(s),h=new ee(u[0],u[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var u=s.split(":"),h=new N(+u[0],+u[1]);return h.z=+u[2],h},_removeTile:function(s){var u=this._tiles[s];u&&(Gt(u.el),delete this._tiles[s],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){lt(s,"leaflet-tile");var u=this.getTileSize();s.style.width=u.x+"px",s.style.height=u.y+"px",s.onselectstart=p,s.onmousemove=p,Be.ielt9&&this.options.opacity<1&&Pr(s,this.options.opacity)},_addTile:function(s,u){var h=this._getTilePos(s),C=this._tileCoordsToKey(s),I=this.createTile(this._wrapCoords(s),l(this._tileReady,this,s));this._initTile(I),this.createTile.length<2&&W(l(this._tileReady,this,s,null,I)),ln(I,h),this._tiles[C]={el:I,coords:s,current:!0},u.appendChild(I),this.fire("tileloadstart",{tile:I,coords:s})},_tileReady:function(s,u,h){u&&this.fire("tileerror",{error:u,tile:h,coords:s});var C=this._tileCoordsToKey(s);h=this._tiles[C],h&&(h.loaded=+new Date,this._map._fadeAnimated?(Pr(h.el,0),j(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),u||(lt(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Be.ielt9||!this._map._fadeAnimated?W(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var u=new N(this._wrapX?f(s.x,this._wrapX):s.x,this._wrapY?f(s.y,this._wrapY):s.y);return u.z=s.z,u},_pxBoundsToTileRange:function(s){var u=this.getTileSize();return new Z(s.min.unscaleBy(u).floor(),s.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function RI(s){return new Ia(s)}var Ks=Ia.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,u){this._url=s,u=_(this,u),u.detectRetina&&Be.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,u){return this._url===s&&u===void 0&&(u=!0),this._url=s,u||this.redraw(),this},createTile:function(s,u){var h=document.createElement("img");return ot(h,"load",l(this._tileOnLoad,this,u,h)),ot(h,"error",l(this._tileOnError,this,u,h)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(s),h},getTileUrl:function(s){var u={r:Be.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-s.y;this.options.tms&&(u.y=h),u["-y"]=h}return w(this._url,o(u,this.options))},_tileOnLoad:function(s,u){Be.ielt9?setTimeout(l(s,this,null,u),0):s(null,u)},_tileOnError:function(s,u,h){var C=this.options.errorTileUrl;C&&u.getAttribute("src")!==C&&(u.src=C),s(h,u)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,u=this.options.maxZoom,h=this.options.zoomReverse,C=this.options.zoomOffset;return h&&(s=u-s),s+C},_getSubdomain:function(s){var u=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var s,u;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(u=this._tiles[s].el,u.onload=p,u.onerror=p,!u.complete)){u.src=E;var h=this._tiles[s].coords;Gt(u),delete this._tiles[s],this.fire("tileabort",{tile:u,coords:h})}},_removeTile:function(s){var u=this._tiles[s];if(u)return u.el.setAttribute("src",E),Ia.prototype._removeTile.call(this,s)},_tileReady:function(s,u,h){if(!(!this._map||h&&h.getAttribute("src")===E))return Ia.prototype._tileReady.call(this,s,u,h)}});function Ub(s,u){return new Ks(s,u)}var Zb=Ks.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,u){this._url=s;var h=o({},this.defaultWmsParams);for(var C in u)C in this.options||(h[C]=u[C]);u=_(this,u);var I=u.detectRetina&&Be.retina?2:1,V=this.getTileSize();h.width=V.x*I,h.height=V.y*I,this.wmsParams=h},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,Ks.prototype.onAdd.call(this,s)},getTileUrl:function(s){var u=this._tileCoordsToNwSe(s),h=this._crs,C=Y(h.project(u[0]),h.project(u[1])),I=C.min,V=C.max,q=(this._wmsVersion>=1.3&&this._crs===Nb?[I.y,I.x,V.y,V.x]:[I.x,I.y,V.x,V.y]).join(","),ne=Ks.prototype.getTileUrl.call(this,s);return ne+k(this.wmsParams,ne,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+q},setParams:function(s,u){return o(this.wmsParams,s),u||this.redraw(),this}});function FI(s,u){return new Zb(s,u)}Ks.WMS=Zb,Ub.wms=FI;var Ho=Qr.extend({options:{padding:.1},initialize:function(s){_(this,s),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),lt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,u){var h=this._map.getZoomScale(u,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),I=this._map.project(this._center,u),V=C.multiplyBy(-h).add(I).subtract(this._map._getNewPixelOrigin(s,u));Be.any3d?es(this._container,V,h):ln(this._container,V)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,u=this._map.getSize(),h=this._map.containerPointToLayerPoint(u.multiplyBy(-s)).round();this._bounds=new Z(h,h.add(u.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Kb=Ho.extend({options:{tolerance:0},getEvents:function(){var s=Ho.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ho.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");ot(s,"mousemove",this._onMouseMove,this),ot(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ot(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Gt(this._container),Ft(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var u in this._layers)s=this._layers[u],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ho.prototype._update.call(this);var s=this._bounds,u=this._container,h=s.getSize(),C=Be.retina?2:1;ln(u,s.min),u.width=C*h.x,u.height=C*h.y,u.style.width=h.x+"px",u.style.height=h.y+"px",Be.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Ho.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[c(s)]=s;var u=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var u=s._order,h=u.next,C=u.prev;h?h.prev=C:this._drawLast=C,C?C.next=h:this._drawFirst=h,delete s._order,delete this._layers[c(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var u=s.options.dashArray.split(/[, ]+/),h=[],C,I;for(I=0;I')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),$I={_initContainer:function(){this._container=vt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ho.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var u=s._container=Ea("shape");lt(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",s._path=Ea("path"),u.appendChild(s._path),this._updateStyle(s),this._layers[c(s)]=s},_addPath:function(s){var u=s._container;this._container.appendChild(u),s.options.interactive&&s.addInteractiveTarget(u)},_removePath:function(s){var u=s._container;Gt(u),s.removeInteractiveTarget(u),delete this._layers[c(s)]},_updateStyle:function(s){var u=s._stroke,h=s._fill,C=s.options,I=s._container;I.stroked=!!C.stroke,I.filled=!!C.fill,C.stroke?(u||(u=s._stroke=Ea("stroke")),I.appendChild(u),u.weight=C.weight+"px",u.color=C.color,u.opacity=C.opacity,C.dashArray?u.dashStyle=P(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=C.lineCap.replace("butt","flat"),u.joinstyle=C.lineJoin):u&&(I.removeChild(u),s._stroke=null),C.fill?(h||(h=s._fill=Ea("fill")),I.appendChild(h),h.color=C.fillColor||C.color,h.opacity=C.fillOpacity):h&&(I.removeChild(h),s._fill=null)},_updateCircle:function(s){var u=s._point.round(),h=Math.round(s._radius),C=Math.round(s._radiusY||h);this._setPath(s,s._empty()?"M0 0":"AL "+u.x+","+u.y+" "+h+","+C+" 0,"+65535*360)},_setPath:function(s,u){s._path.v=u},_bringToFront:function(s){js(s._container)},_bringToBack:function(s){Gs(s._container)}},Nc=Be.vml?Ea:we,La=Ho.extend({_initContainer:function(){this._container=Nc("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Nc("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Gt(this._container),Ft(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ho.prototype._update.call(this);var s=this._bounds,u=s.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,h.setAttribute("width",u.x),h.setAttribute("height",u.y)),ln(h,s.min),h.setAttribute("viewBox",[s.min.x,s.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(s){var u=s._path=Nc("path");s.options.className&<(u,s.options.className),s.options.interactive&<(u,"leaflet-interactive"),this._updateStyle(s),this._layers[c(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){Gt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[c(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var u=s._path,h=s.options;u&&(h.stroke?(u.setAttribute("stroke",h.color),u.setAttribute("stroke-opacity",h.opacity),u.setAttribute("stroke-width",h.weight),u.setAttribute("stroke-linecap",h.lineCap),u.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?u.setAttribute("stroke-dasharray",h.dashArray):u.removeAttribute("stroke-dasharray"),h.dashOffset?u.setAttribute("stroke-dashoffset",h.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),h.fill?(u.setAttribute("fill",h.fillColor||h.color),u.setAttribute("fill-opacity",h.fillOpacity),u.setAttribute("fill-rule",h.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(s,u){this._setPath(s,Ce(s._parts,u))},_updateCircle:function(s){var u=s._point,h=Math.max(Math.round(s._radius),1),C=Math.max(Math.round(s._radiusY),1)||h,I="a"+h+","+C+" 0 1,0 ",V=s._empty()?"M0 0":"M"+(u.x-h)+","+u.y+I+h*2+",0 "+I+-h*2+",0 ";this._setPath(s,V)},_setPath:function(s,u){s._path.setAttribute("d",u)},_bringToFront:function(s){js(s._path)},_bringToBack:function(s){Gs(s._path)}});Be.vml&&La.include($I);function Xb(s){return Be.svg||Be.vml?new La(s):null}ht.include({getRenderer:function(s){var u=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var u=this._paneRenderers[s];return u===void 0&&(u=this._createRenderer({pane:s}),this._paneRenderers[s]=u),u},_createRenderer:function(s){return this.options.preferCanvas&&qb(s)||Xb(s)}});var Yb=Us.extend({initialize:function(s,u){Us.prototype.initialize.call(this,this._boundsToLatLngs(s),u)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=Q(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function zI(s,u){return new Yb(s,u)}La.create=Nc,La.pointsToPath=Ce,Bo.geometryToLayer=Oc,Bo.coordsToLatLng=Mh,Bo.coordsToLatLngs=Rc,Bo.latLngToCoords=Ih,Bo.latLngsToCoords=Fc,Bo.getFeature=Zs,Bo.asFeature=$c,ht.mergeOptions({boxZoom:!0});var Qb=ho.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){ot(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ft(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Gt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ca(),ch(),this._startPoint=this._map.mouseEventToContainerPoint(s),ot(document,{contextmenu:rs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=vt("div","leaflet-zoom-box",this._container),lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var u=new Z(this._point,this._startPoint),h=u.getSize();ln(this._box,u.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},_finish:function(){this._moved&&(Gt(this._box),Qt(this._container,"leaflet-crosshair")),xa(),dh(),Ft(document,{contextmenu:rs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var u=new ee(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ht.addInitHook("addHandler","boxZoom",Qb),ht.mergeOptions({doubleClickZoom:!0});var Jb=ho.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var u=this._map,h=u.getZoom(),C=u.options.zoomDelta,I=s.originalEvent.shiftKey?h-C:h+C;u.options.doubleClickZoom==="center"?u.setZoom(I):u.setZoomAround(s.containerPoint,I)}});ht.addInitHook("addHandler","doubleClickZoom",Jb),ht.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var e0=ho.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new ci(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qt(this._map._container,"leaflet-grab"),Qt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=Q(this._map.options.maxBounds);this._offsetLimit=Y(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var u=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(u),this._prunePositions(u)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,u){return s-(s-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;s.xu.max.x&&(s.x=this._viscousLimit(s.x,u.max.x)),s.y>u.max.y&&(s.y=this._viscousLimit(s.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,u=Math.round(s/2),h=this._initialWorldOffset,C=this._draggable._newPos.x,I=(C-u+h)%s+u-h,V=(C+u+h)%s-u-h,q=Math.abs(I+h)0?V:-V))-u;this._delta=0,this._startTime=null,q&&(s.options.scrollWheelZoom==="center"?s.setZoom(u+q):s.setZoomAround(this._lastMousePos,u+q))}});ht.addInitHook("addHandler","scrollWheelZoom",n0);var AI=600;ht.mergeOptions({tapHold:Be.touchNative&&Be.safari&&Be.mobile,tapTolerance:15});var r0=ho.extend({addHooks:function(){ot(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ft(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var u=s.touches[0];this._startPos=this._newPos=new N(u.clientX,u.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(ot(document,"touchend",wn),ot(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),AI),ot(document,"touchend touchcancel contextmenu",this._cancel,this),ot(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){Ft(document,"touchend",wn),Ft(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),Ft(document,"touchend touchcancel contextmenu",this._cancel,this),Ft(document,"touchmove",this._onMove,this)},_onMove:function(s){var u=s.touches[0];this._newPos=new N(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,u){var h=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});h._simulated=!0,u.target.dispatchEvent(h)}});ht.addInitHook("addHandler","tapHold",r0),ht.mergeOptions({touchZoom:Be.touch,bounceAtZoomLimits:!0});var o0=ho.extend({addHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),ot(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qt(this._map._container,"leaflet-touch-zoom"),Ft(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var u=this._map;if(!(!s.touches||s.touches.length!==2||u._animatingZoom||this._zooming)){var h=u.mouseEventToContainerPoint(s.touches[0]),C=u.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(h.add(C)._divideBy(2))),this._startDist=h.distanceTo(C),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),ot(document,"touchmove",this._onTouchMove,this),ot(document,"touchend touchcancel",this._onTouchEnd,this),wn(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var u=this._map,h=u.mouseEventToContainerPoint(s.touches[0]),C=u.mouseEventToContainerPoint(s.touches[1]),I=h.distanceTo(C)/this._startDist;if(this._zoom=u.getScaleZoom(I,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoomu.getMaxZoom()&&I>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,I===1)return}else{var V=h._add(C)._divideBy(2)._subtract(this._centerPoint);if(I===1&&V.x===0&&V.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(V),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var q=l(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(q,this,!0),wn(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),Ft(document,"touchmove",this._onTouchMove,this),Ft(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ht.addInitHook("addHandler","touchZoom",o0),ht.BoxZoom=Qb,ht.DoubleClickZoom=Jb,ht.Drag=e0,ht.Keyboard=t0,ht.ScrollWheelZoom=n0,ht.TapHold=r0,ht.TouchZoom=o0,n.Bounds=Z,n.Browser=Be,n.CRS=me,n.Canvas=Kb,n.Circle=kh,n.CircleMarker=Tc,n.Class=R,n.Control=Yr,n.DivIcon=Wb,n.DivOverlay=mo,n.DomEvent=tI,n.DomUtil=JM,n.Draggable=ci,n.Evented=A,n.FeatureGroup=Do,n.GeoJSON=Bo,n.GridLayer=Ia,n.Handler=ho,n.Icon=Ws,n.ImageOverlay=zc,n.LatLng=X,n.LatLngBounds=ee,n.Layer=Qr,n.LayerGroup=Vs,n.LineUtil=hI,n.Map=ht,n.Marker=Lc,n.Mixin=aI,n.Path=di,n.Point=N,n.PolyUtil=uI,n.Polygon=Us,n.Polyline=No,n.Popup=Ac,n.PosAnimation=Mb,n.Projection=mI,n.Rectangle=Yb,n.Renderer=Ho,n.SVG=La,n.SVGOverlay=Vb,n.TileLayer=Ks,n.Tooltip=Dc,n.Transformation=ve,n.Util=D,n.VideoOverlay=Gb,n.bind=l,n.bounds=Y,n.canvas=qb,n.circle=wI,n.circleMarker=xI,n.control=Pa,n.divIcon=OI,n.extend=o,n.featureGroup=bI,n.geoJSON=jb,n.geoJson=kI,n.gridLayer=RI,n.icon=_I,n.imageOverlay=MI,n.latLng=te,n.latLngBounds=Q,n.layerGroup=yI,n.map=nI,n.marker=CI,n.point=U,n.polygon=PI,n.polyline=SI,n.popup=LI,n.rectangle=zI,n.setOptions=_,n.stamp=c,n.svg=Xb,n.svgOverlay=EI,n.tileLayer=Ub,n.tooltip=TI,n.transformation=ye,n.version=r,n.videoOverlay=II;var DI=window.L;n.noConflict=function(){return window.L=DI,this},window.L=n})})(jg,jg.exports);var Ki=jg.exports;function yk(e){return e.split(" ").filter(Boolean)}function bk(e,t){yk(t).forEach(n=>{Ki.DomUtil.addClass(e,n)})}function _k(e,t){yk(t).forEach(n=>{Ki.DomUtil.removeClass(e,n)})}function r4(e,t,n){e!=null&&n!==t&&(t!=null&&t.length>0&&_k(e,t),n!=null&&n.length>0&&bk(e,n))}function vc(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function ma(e,t){return t==null?function(r,o){const i=m.useRef();return i.current||(i.current=e(r,o)),i}:function(r,o){const i=m.useRef();i.current||(i.current=e(r,o));const l=m.useRef(r),{instance:a}=i.current;return m.useEffect(function(){l.current!==r&&(t(a,r,l.current),l.current=r)},[a,r,o]),i}}function qy(e,t){m.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var i;(i=t.layerContainer)==null||i.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function Xy(e){return function(n){const r=mc(),o=e(gc(n,r),r);return Vy(r.map,n.attribution),Yp(o.current,n.eventHandlers),qy(o.current,r),o}}function Ck(e,t){const n=m.useRef();m.useEffect(function(){if(t.pathOptions!==n.current){const o=t.pathOptions??{};e.instance.setStyle(o),n.current=o}},[e,t])}function xk(e){return function(n){const r=mc(),o=e(gc(n,r),r);return Yp(o.current,n.eventHandlers),qy(o.current,r),Ck(o.current,n),o}}function o4(e){function t(o,i){return vc(e(o),i)}const n=ma(t),r=gk(n);return Ky(r)}function wk(e,t){const n=ma(e,t),r=Xy(n);return Zy(r)}function Sk(e,t){const n=ma(e),r=vk(n,t);return mk(r)}function i4(e,t){const n=ma(e,t),r=xk(n);return Zy(r)}function Pk(e,t){const n=ma(e,t),r=Xy(n);return Ky(r)}function kk(e,t,n){const{opacity:r,zIndex:o}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),o!=null&&o!==n.zIndex&&e.setZIndex(o)}function s4(e,t,n){t.bounds instanceof Ki.LatLngBounds&&t.bounds!==n.bounds&&e.setBounds(t.bounds),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),t.zIndex!=null&&t.zIndex!==n.zIndex&&e.setZIndex(t.zIndex)}const l4=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_VERSION:fk,LeafletContext:Wy,LeafletProvider:Uy,addClassName:bk,createContainerComponent:Zy,createControlComponent:o4,createControlHook:gk,createDivOverlayComponent:mk,createDivOverlayHook:vk,createElementHook:ma,createElementObject:vc,createLayerComponent:wk,createLayerHook:Xy,createLeafComponent:Ky,createLeafletContext:pk,createOverlayComponent:Sk,createPathComponent:i4,createPathHook:xk,createTileLayerComponent:Pk,extendContext:hk,removeClassName:_k,updateCircle:n4,updateClassName:r4,updateGridLayer:kk,updateMediaOverlay:s4,useAttribution:Vy,useEventHandlers:Yp,useLayerLifecycle:qy,useLeafletContext:mc,usePathOptions:Ck,withPane:gc},Symbol.toStringTag,{value:"Module"}));function Gg(){return Gg=Object.assign||function(e){for(var t=1;t(v==null?void 0:v.map)??null,[v]);const _=m.useCallback(b=>{if(b!==null&&v===null){const w=new Ki.Map(b,f);n!=null&&d!=null?w.setView(n,d):e!=null&&w.fitBounds(e,t),c!=null&&w.whenReady(c),x(pk(w))}},[]);m.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const k=v?pr.createElement(Uy,{value:v},r):l??null;return pr.createElement("div",Gg({},g,{ref:_}),k)}const u4=m.forwardRef(a4),c4=wk(function({position:t,...n},r){const o=new Ki.Marker(t,n);return vc(o,hk(r,{overlayContainer:o}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),d4=Sk(function(t,n){const r=new Ki.Popup(t,n.overlayContainer);return vc(r,n)},function(t,n,{position:r},o){m.useEffect(function(){const{instance:l}=t;function a(d){d.popup===l&&(l.update(),o(!0))}function c(d){d.popup===l&&o(!1)}return n.map.on({popupopen:a,popupclose:c}),n.overlayContainer==null?(r!=null&&l.setLatLng(r),l.openOn(n.map)):n.overlayContainer.bindPopup(l),function(){var f;n.map.off({popupopen:a,popupclose:c}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(l)}},[t,n,o,r])}),f4=Pk(function({url:t,...n},r){const o=new Ki.TileLayer(t,gc(n,r));return vc(o,r)},function(t,n,r){kk(t,n,r);const{url:o}=n;o!=null&&o!==r.url&&t.setUrl(o)});var Mk={};const p4=br(l4);var rx={exports:{}};(function(e,t){(function(n,r){r(t)})(Di,function(n){var r=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(i){L.Util.setOptions(this,i),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var l=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,l?this._withAnimation:this._noAnimation),this._markerCluster=l?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(i){if(i instanceof L.LayerGroup)return this.addLayers([i]);if(!i.getLatLng)return this._nonPointGroup.addLayer(i),this.fire("layeradd",{layer:i}),this;if(!this._map)return this._needsClustering.push(i),this.fire("layeradd",{layer:i}),this;if(this.hasLayer(i))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(i,this._maxZoom),this.fire("layeradd",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var l=i,a=this._zoom;if(i.__parent)for(;l.__parent._zoom>=a;)l=l.__parent;return this._currentShownBounds.contains(l.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(i,l):this._animationAddLayerNonAnimated(i,l)),this},removeLayer:function(i){return i instanceof L.LayerGroup?this.removeLayers([i]):i.getLatLng?this._map?i.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(i)),this._removeLayer(i,!0),this.fire("layerremove",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),i.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(i)&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,i)&&this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}),this):(this._nonPointGroup.removeLayer(i),this.fire("layerremove",{layer:i}),this)},addLayers:function(i,l){if(!L.Util.isArray(i))return this.addLayer(i);var a=this._featureGroup,c=this._nonPointGroup,d=this.options.chunkedLoading,f=this.options.chunkInterval,p=this.options.chunkProgress,g=i.length,v=0,x=!0,_;if(this._map){var k=new Date().getTime(),b=L.bind(function(){var P=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();vf)break}if(_=i[v],_ instanceof L.LayerGroup){x&&(i=i.slice(),x=!1),this._extractNonGroupLayers(_,i),g=i.length;continue}if(!_.getLatLng){c.addLayer(_),l||this.fire("layeradd",{layer:_});continue}if(!this.hasLayer(_)&&(this._addLayer(_,this._maxZoom),l||this.fire("layeradd",{layer:_}),_.__parent&&_.__parent.getChildCount()===2)){var E=_.__parent.getAllChildMarkers(),$=E[0]===_?E[1]:E[0];a.removeLayer($)}}p&&p(v,g,new Date().getTime()-k),v===g?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(b,this.options.chunkDelay)},this);b()}else for(var w=this._needsClustering;v=0;l--)i.extend(this._needsClustering[l].getLatLng());return i.extend(this._nonPointGroup.getBounds()),i},eachLayer:function(i,l){var a=this._needsClustering.slice(),c=this._needsRemoving,d,f,p;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),f=a.length-1;f>=0;f--){for(d=!0,p=c.length-1;p>=0;p--)if(c[p].layer===a[f]){d=!1;break}d&&i.call(l,a[f])}this._nonPointGroup.eachLayer(i,l)},getLayers:function(){var i=[];return this.eachLayer(function(l){i.push(l)}),i},getLayer:function(i){var l=null;return i=parseInt(i,10),this.eachLayer(function(a){L.stamp(a)===i&&(l=a)}),l},hasLayer:function(i){if(!i)return!1;var l,a=this._needsClustering;for(l=a.length-1;l>=0;l--)if(a[l]===i)return!0;for(a=this._needsRemoving,l=a.length-1;l>=0;l--)if(a[l].layer===i)return!1;return!!(i.__parent&&i.__parent._group===this)||this._nonPointGroup.hasLayer(i)},zoomToShowLayer:function(i,l){var a=this._map;typeof l!="function"&&(l=function(){});var c=function(){(a.hasLayer(i)||a.hasLayer(i.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",c,this),this.off("animationend",c,this),a.hasLayer(i)?l():i.__parent._icon&&(this.once("spiderfied",l,this),i.__parent.spiderfy()))};i._icon&&this._map.getBounds().contains(i.getLatLng())?l():i.__parent._zoom=0;a--)if(i[a]===l)return i.splice(a,1),!0},_removeFromGridUnclustered:function(i,l){for(var a=this._map,c=this._gridUnclustered,d=Math.floor(this._map.getMinZoom());l>=d&&c[l].removeObject(i,a.project(i.getLatLng(),l));l--);},_childMarkerDragStart:function(i){i.target.__dragStart=i.target._latlng},_childMarkerMoved:function(i){if(!this._ignoreMove&&!i.target.__dragStart){var l=i.target._popup&&i.target._popup.isOpen();this._moveChild(i.target,i.oldLatLng,i.latlng),l&&i.target.openPopup()}},_moveChild:function(i,l,a){i._latlng=l,this.removeLayer(i),i._latlng=a,this.addLayer(i)},_childMarkerDragEnd:function(i){var l=i.target.__dragStart;delete i.target.__dragStart,l&&this._moveChild(i.target,l,i.target._latlng)},_removeLayer:function(i,l,a){var c=this._gridClusters,d=this._gridUnclustered,f=this._featureGroup,p=this._map,g=Math.floor(this._map.getMinZoom());l&&this._removeFromGridUnclustered(i,this._maxZoom);var v=i.__parent,x=v._markers,_;for(this._arraySplice(x,i);v&&(v._childCount--,v._boundsNeedUpdate=!0,!(v._zoom"+l+"",className:"marker-cluster"+a,iconSize:new L.Point(40,40)})},_bindEvents:function(){var i=this._map,l=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,c=this.options.zoomToBoundsOnClick,d=this.options.spiderfyOnEveryZoom;(l||c||d)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),i.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(i){var l=i.layer,a=l;if(!(i.type==="clusterkeypress"&&i.originalEvent&&i.originalEvent.keyCode!==13)){for(;a._childClusters.length===1;)a=a._childClusters[0];a._zoom===this._maxZoom&&a._childCount===l._childCount&&this.options.spiderfyOnMaxZoom?l.spiderfy():this.options.zoomToBoundsOnClick&&l.zoomToBounds(),this.options.spiderfyOnEveryZoom&&l.spiderfy(),i.originalEvent&&i.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(i){var l=this._map;this._inZoomAnimation||(this._shownPolygon&&l.removeLayer(this._shownPolygon),i.layer.getChildCount()>2&&i.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(i.layer.getConvexHull(),this.options.polygonOptions),l.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var i=this.options.spiderfyOnMaxZoom,l=this.options.showCoverageOnHover,a=this.options.zoomToBoundsOnClick,c=this.options.spiderfyOnEveryZoom,d=this._map;(i||a||c)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),l&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),d.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var i=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),i),this._currentShownBounds=i}},_generateInitialClusters:function(){var i=Math.ceil(this._map.getMaxZoom()),l=Math.floor(this._map.getMinZoom()),a=this.options.maxClusterRadius,c=a;typeof a!="function"&&(c=function(){return a}),this.options.disableClusteringAtZoom!==null&&(i=this.options.disableClusteringAtZoom-1),this._maxZoom=i,this._gridClusters={},this._gridUnclustered={};for(var d=i;d>=l;d--)this._gridClusters[d]=new L.DistanceGrid(c(d)),this._gridUnclustered[d]=new L.DistanceGrid(c(d));this._topClusterLevel=new this._markerCluster(this,l-1)},_addLayer:function(i,l){var a=this._gridClusters,c=this._gridUnclustered,d=Math.floor(this._map.getMinZoom()),f,p;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(i),i.on(this._childMarkerEventHandlers,this);l>=d;l--){f=this._map.project(i.getLatLng(),l);var g=a[l].getNearObject(f);if(g){g._addChild(i),i.__parent=g;return}if(g=c[l].getNearObject(f),g){var v=g.__parent;v&&this._removeLayer(g,!1);var x=new this._markerCluster(this,l,g,i);a[l].addObject(x,this._map.project(x._cLatLng,l)),g.__parent=x,i.__parent=x;var _=x;for(p=l-1;p>v._zoom;p--)_=new this._markerCluster(this,p,_),a[p].addObject(_,this._map.project(g.getLatLng(),p));v._addChild(_),this._removeFromGridUnclustered(g,l);return}c[l].addObject(i,f)}this._topClusterLevel._addChild(i),i.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(i){i instanceof L.MarkerCluster&&i._iconNeedsUpdate&&i._updateIcon()})},_enqueue:function(i){this._queue.push(i),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var i=0;ii?(this._animationStart(),this._animationZoomOut(this._zoom,i)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(i){var l=this._maxLat;return l!==void 0&&(i.getNorth()>=l&&(i._northEast.lat=1/0),i.getSouth()<=-l&&(i._southWest.lat=-1/0)),i},_animationAddLayerNonAnimated:function(i,l){if(l===i)this._featureGroup.addLayer(i);else if(l._childCount===2){l._addToMap();var a=l.getAllChildMarkers();this._featureGroup.removeLayer(a[0]),this._featureGroup.removeLayer(a[1])}else l._updateIcon()},_extractNonGroupLayers:function(i,l){var a=i.getLayers(),c=0,d;for(l=l||[];c=0;f--)x=v[f],a.contains(x._latlng)||c.removeLayer(x)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,l),c.eachLayer(function(p){!(p instanceof L.MarkerCluster)&&p._icon&&p.clusterShow()}),this._topClusterLevel._recursively(a,i,l,function(p){p._recursivelyRestoreChildPositions(l)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,i,d,function(p){c.removeLayer(p),p.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(i,l){this._animationZoomOutSingle(this._topClusterLevel,i-1,l),this._topClusterLevel._recursivelyAddChildrenToMap(null,l,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i,this._getExpandedVisibleBounds())},_animationAddLayer:function(i,l){var a=this,c=this._featureGroup;c.addLayer(i),l!==i&&(l._childCount>2?(l._updateIcon(),this._forceLayout(),this._animationStart(),i._setPos(this._map.latLngToLayerPoint(l.getLatLng())),i.clusterHide(),this._enqueue(function(){c.removeLayer(i),i.clusterShow(),a._animationEnd()})):(this._forceLayout(),a._animationStart(),a._animationZoomOutSingle(l,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(i,l,a){var c=this._getExpandedVisibleBounds(),d=Math.floor(this._map.getMinZoom());i._recursivelyAnimateChildrenInAndAddSelfToMap(c,d,l+1,a);var f=this;this._forceLayout(),i._recursivelyBecomeVisible(c,a),this._enqueue(function(){if(i._childCount===1){var p=i._markers[0];this._ignoreMove=!0,p.setLatLng(p.getLatLng()),this._ignoreMove=!1,p.clusterShow&&p.clusterShow()}else i._recursively(c,a,d,function(g){g._recursivelyRemoveChildrenFromMap(c,d,l+1)});f._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(i){return new L.MarkerClusterGroup(i)};var o=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(i,l,a,c){L.Marker.prototype.initialize.call(this,a?a._cLatLng||a.getLatLng():new L.LatLng(0,0),{icon:this,pane:i.options.clusterPane}),this._group=i,this._zoom=l,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,a&&this._addChild(a),c&&this._addChild(c)},getAllChildMarkers:function(i,l){i=i||[];for(var a=this._childClusters.length-1;a>=0;a--)this._childClusters[a].getAllChildMarkers(i,l);for(var c=this._markers.length-1;c>=0;c--)l&&this._markers[c].__dragStart||i.push(this._markers[c]);return i},getChildCount:function(){return this._childCount},zoomToBounds:function(i){for(var l=this._childClusters.slice(),a=this._group._map,c=a.getBoundsZoom(this._bounds),d=this._zoom+1,f=a.getZoom(),p;l.length>0&&c>d;){d++;var g=[];for(p=0;pd?this._group._map.setView(this._latlng,d):c<=f?this._group._map.setView(this._latlng,f+1):this._group._map.fitBounds(this._bounds,i)},getBounds:function(){var i=new L.LatLngBounds;return i.extend(this._bounds),i},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(i,l){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(i),i instanceof L.MarkerCluster?(l||(this._childClusters.push(i),i.__parent=this),this._childCount+=i._childCount):(l||this._markers.push(i),this._childCount++),this.__parent&&this.__parent._addChild(i,!0)},_setClusterCenter:function(i){this._cLatLng||(this._cLatLng=i._cLatLng||i._latlng)},_resetBounds:function(){var i=this._bounds;i._southWest&&(i._southWest.lat=1/0,i._southWest.lng=1/0),i._northEast&&(i._northEast.lat=-1/0,i._northEast.lng=-1/0)},_recalculateBounds:function(){var i=this._markers,l=this._childClusters,a=0,c=0,d=this._childCount,f,p,g,v;if(d!==0){for(this._resetBounds(),f=0;f=0;f--)p=d[f],p._icon&&(p._setPos(l),p.clusterHide())},function(c){var d=c._childClusters,f,p;for(f=d.length-1;f>=0;f--)p=d[f],p._icon&&(p._setPos(l),p.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(i,l,a,c){this._recursively(i,c,l,function(d){d._recursivelyAnimateChildrenIn(i,d._group._map.latLngToLayerPoint(d.getLatLng()).round(),a),d._isSingleParent()&&a-1===c?(d.clusterShow(),d._recursivelyRemoveChildrenFromMap(i,l,a)):d.clusterHide(),d._addToMap()})},_recursivelyBecomeVisible:function(i,l){this._recursively(i,this._group._map.getMinZoom(),l,null,function(a){a.clusterShow()})},_recursivelyAddChildrenToMap:function(i,l,a){this._recursively(a,this._group._map.getMinZoom()-1,l,function(c){if(l!==c._zoom)for(var d=c._markers.length-1;d>=0;d--){var f=c._markers[d];a.contains(f._latlng)&&(i&&(f._backupLatlng=f.getLatLng(),f.setLatLng(i),f.clusterHide&&f.clusterHide()),c._group._featureGroup.addLayer(f))}},function(c){c._addToMap(i)})},_recursivelyRestoreChildPositions:function(i){for(var l=this._markers.length-1;l>=0;l--){var a=this._markers[l];a._backupLatlng&&(a.setLatLng(a._backupLatlng),delete a._backupLatlng)}if(i-1===this._zoom)for(var c=this._childClusters.length-1;c>=0;c--)this._childClusters[c]._restorePosition();else for(var d=this._childClusters.length-1;d>=0;d--)this._childClusters[d]._recursivelyRestoreChildPositions(i)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(i,l,a,c){var d,f;this._recursively(i,l-1,a-1,function(p){for(f=p._markers.length-1;f>=0;f--)d=p._markers[f],(!c||!c.contains(d._latlng))&&(p._group._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow())},function(p){for(f=p._childClusters.length-1;f>=0;f--)d=p._childClusters[f],(!c||!c.contains(d._latlng))&&(p._group._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow())})},_recursively:function(i,l,a,c,d){var f=this._childClusters,p=this._zoom,g,v;if(l<=p&&(c&&c(this),d&&p===a&&d(this)),p=0;g--)v=f[g],v._boundsNeedUpdate&&v._recalculateBounds(),i.intersects(v._bounds)&&v._recursively(i,l,a,c,d)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var i=this.options.opacity;return this.setOpacity(0),this.options.opacity=i,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(i){this._cellSize=i,this._sqCellSize=i*i,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(i,l){var a=this._getCoord(l.x),c=this._getCoord(l.y),d=this._grid,f=d[c]=d[c]||{},p=f[a]=f[a]||[],g=L.Util.stamp(i);this._objectPoint[g]=l,p.push(i)},updateObject:function(i,l){this.removeObject(i),this.addObject(i,l)},removeObject:function(i,l){var a=this._getCoord(l.x),c=this._getCoord(l.y),d=this._grid,f=d[c]=d[c]||{},p=f[a]=f[a]||[],g,v;for(delete this._objectPoint[L.Util.stamp(i)],g=0,v=p.length;g=0;f--){if(p=l[f],g=this.getDistant(p,i),g>0)d.push(p);else continue;g>a&&(a=g,c=p)}return{maxPoint:c,newPoints:d}},buildConvexHull:function(i,l){var a=[],c=this.findMostDistantPointFromBaseLine(i,l);return c.maxPoint?(a=a.concat(this.buildConvexHull([i[0],c.maxPoint],c.newPoints)),a=a.concat(this.buildConvexHull([c.maxPoint,i[1]],c.newPoints)),a):[i[0]]},getConvexHull:function(i){var l=!1,a=!1,c=!1,d=!1,f=null,p=null,g=null,v=null,x=null,_=null,k;for(k=i.length-1;k>=0;k--){var b=i[k];(l===!1||b.lat>l)&&(f=b,l=b.lat),(a===!1||b.latc)&&(g=b,c=b.lng),(d===!1||b.lng=0;c--)a=i[c].getLatLng(),l.push(a);return L.QuickHull.getConvexHull(l)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var i=this.getAllChildMarkers(null,!0),l=this._group,a=l._map,c=a.latLngToLayerPoint(this._latlng),d;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?d=this._group.options.spiderfyShapePositions(i.length,c):i.length>=this._circleSpiralSwitchover?d=this._generatePointsSpiral(i.length,c):(c.y+=10,d=this._generatePointsCircle(i.length,c)),this._animationSpiderfy(i,d)}},unspiderfy:function(i){this._group._inZoomAnimation||(this._animationUnspiderfy(i),this._group._spiderfied=null)},_generatePointsCircle:function(i,l){var a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+i),c=a/this._2PI,d=this._2PI/i,f=[],p,g;for(c=Math.max(c,35),f.length=i,p=0;p=0;v--)v=0;f--)d=c[f],a.removeLayer(d),d._preSpiderfyLatlng&&(d.setLatLng(d._preSpiderfyLatlng),delete d._preSpiderfyLatlng),d.setZIndexOffset&&d.setZIndexOffset(0),d._spiderLeg&&(l.removeLayer(d._spiderLeg),delete d._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:c}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(i,l){var a=this._group,c=a._map,d=a._featureGroup,f=this._group.options.spiderLegPolylineOptions,p,g,v,x;for(a._ignoreMove=!0,p=0;p=0;k--)E=d.layerPointToLatLng(l[k]),b=i[k],b._preSpiderfyLatlng=b._latlng,b.setLatLng(E),b.clusterShow&&b.clusterShow(),v&&(w=b._spiderLeg,P=w._path,P.style.strokeDashoffset=0,w.setStyle({opacity:_}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout(function(){c._animationEnd(),c.fire("spiderfied",{cluster:a,markers:i})},200)},_animationUnspiderfy:function(i){var l=this,a=this._group,c=a._map,d=a._featureGroup,f=i?c._latLngToNewLayerPoint(this._latlng,i.zoom,i.center):c.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,!0),g=L.Path.SVG,v,x,_,k,b,w;for(a._ignoreMove=!0,a._animationStart(),this.setOpacity(1),x=p.length-1;x>=0;x--)v=p[x],v._preSpiderfyLatlng&&(v.closePopup(),v.setLatLng(v._preSpiderfyLatlng),delete v._preSpiderfyLatlng,w=!0,v._setPos&&(v._setPos(f),w=!1),v.clusterHide&&(v.clusterHide(),w=!1),w&&d.removeLayer(v),g&&(_=v._spiderLeg,k=_._path,b=k.getTotalLength()+.1,k.style.strokeDashoffset=b,_.setStyle({opacity:0})));a._ignoreMove=!1,setTimeout(function(){var P=0;for(x=p.length-1;x>=0;x--)v=p[x],v._spiderLeg&&P++;for(x=p.length-1;x>=0;x--)v=p[x],v._spiderLeg&&(v.clusterShow&&v.clusterShow(),v.setZIndexOffset&&v.setZIndexOffset(0),P>1&&d.removeLayer(v),c.removeLayer(v._spiderLeg),delete v._spiderLeg);a._animationEnd(),a.fire("unspiderfied",{cluster:l,markers:p})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(i){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(i))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(i){this._spiderfied&&this._spiderfied.unspiderfy(i)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(i){i._spiderLeg&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),this._map.removeLayer(i._spiderLeg),delete i._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(i){return i?i instanceof L.MarkerClusterGroup?i=i._topClusterLevel.getAllChildMarkers():i instanceof L.LayerGroup?i=i._layers:i instanceof L.MarkerCluster?i=i.getAllChildMarkers():i instanceof L.Marker&&(i=[i]):i=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(i),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(i),this},_flagParentsIconsNeedUpdate:function(i){var l,a;for(l in i)for(a=i[l].__parent;a;)a._iconNeedsUpdate=!0,a=a.__parent},_refreshSingleMarkerModeMarkers:function(i){var l,a;for(l in i)a=i[l],this.hasLayer(a)&&a.setIcon(this._overrideMarkerIcon(a))}}),L.Marker.include({refreshIconOptions:function(i,l){var a=this.options.icon;return L.setOptions(a,i),this.setIcon(a),l&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),n.MarkerClusterGroup=r,n.MarkerCluster=o,Object.defineProperty(n,"__esModule",{value:!0})})})(rx,rx.exports);const h4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",m4=Object.freeze(Object.defineProperty({__proto__:null,default:h4},Symbol.toStringTag,{value:"Module"})),g4=br(m4),v4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",y4=Object.freeze(Object.defineProperty({__proto__:null,default:v4},Symbol.toStringTag,{value:"Module"})),b4=br(y4),_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",C4=Object.freeze(Object.defineProperty({__proto__:null,default:_4},Symbol.toStringTag,{value:"Module"})),x4=br(C4);var Pl=Di&&Di.__assign||function(){return Pl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||!L||!L.Mixin)){s=P(s)?s:[s];for(var u=0;u0?Math.floor(s):Math.ceil(s)};N.prototype={clone:function(){return new N(this.x,this.y)},add:function(s){return this.clone()._add(U(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(U(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new N(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new N(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(s){s=U(s);var u=s.x-this.x,h=s.y-this.y;return Math.sqrt(u*u+h*h)},equals:function(s){return s=U(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=U(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function U(s,u,h){return s instanceof N?s:P(s)?new N(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new N(s.x,s.y):new N(s,u,h)}function Z(s,u){if(s)for(var h=u?[s,u]:s,C=0,I=h.length;C=this.min.x&&h.x<=this.max.x&&u.y>=this.min.y&&h.y<=this.max.y},intersects:function(s){s=Y(s);var u=this.min,h=this.max,C=s.min,I=s.max,V=I.x>=u.x&&C.x<=h.x,q=I.y>=u.y&&C.y<=h.y;return V&&q},overlaps:function(s){s=Y(s);var u=this.min,h=this.max,C=s.min,I=s.max,V=I.x>u.x&&C.xu.y&&C.y=u.lat&&I.lat<=h.lat&&C.lng>=u.lng&&I.lng<=h.lng},intersects:function(s){s=Q(s);var u=this._southWest,h=this._northEast,C=s.getSouthWest(),I=s.getNorthEast(),V=I.lat>=u.lat&&C.lat<=h.lat,q=I.lng>=u.lng&&C.lng<=h.lng;return V&&q},overlaps:function(s){s=Q(s);var u=this._southWest,h=this._northEast,C=s.getSouthWest(),I=s.getNorthEast(),V=I.lat>u.lat&&C.latu.lng&&C.lng1,Ji=function(){var s=!1;try{var u=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",p,u),window.removeEventListener("testPassiveEventSupport",p,u)}catch{}return s}(),Bs=function(){return!!document.createElement("canvas").getContext}(),Kn=!!(document.createElementNS&&we("svg").createSVGRect),on=!!Kn&&function(){var s=document.createElement("div");return s.innerHTML="",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Rt=!Kn&&function(){try{var s=document.createElement("div");s.innerHTML='';var u=s.firstChild;return u.style.behavior="url(#default#VML)",u&&typeof u.adj=="object"}catch{return!1}}(),xn=navigator.platform.indexOf("Mac")===0,In=navigator.platform.indexOf("Linux")===0;function sn(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var Be={ie:Ie,ielt9:Ye,edge:Ve,webkit:He,android:je,android23:ze,androidStock:Ze,opera:Ne,chrome:Le,gecko:fe,safari:ae,phantom:Pe,opera12:st,win:ct,ie3d:Me,webkit3d:Ge,gecko3d:et,any3d:Et,mobile:jt,mobileWebkit:sr,mobileWebkit3d:Xt,msPointer:Yt,pointer:rn,touch:Zn,touchNative:Un,mobileOpera:wr,mobileGecko:Ao,retina:ui,passiveEvents:Ji,canvas:Bs,svg:Kn,vml:Rt,inlineSvg:on,mac:xn,linux:In},Sr=Be.msPointer?"MSPointerDown":"pointerdown",qr=Be.msPointer?"MSPointerMove":"pointermove",Xr=Be.msPointer?"MSPointerUp":"pointerup",lr=Be.msPointer?"MSPointerCancel":"pointercancel",ar={touchstart:Sr,touchmove:qr,touchend:Xr,touchcancel:lr},ue={touchstart:ZM,touchmove:Sc,touchend:Sc,touchcancel:Sc},le={},Te=!1;function Se(s,u,h){return u==="touchstart"&&Hs(),ue[u]?(h=ue[u].bind(this,h),s.addEventListener(ar[u],h,!1),h):(console.warn("wrong event specified:",u),p)}function Ke(s,u,h){if(!ar[u]){console.warn("wrong event specified:",u);return}s.removeEventListener(ar[u],h,!1)}function Fe(s){le[s.pointerId]=s}function rt(s){le[s.pointerId]&&(le[s.pointerId]=s)}function zn(s){delete le[s.pointerId]}function Hs(){Te||(document.addEventListener(Sr,Fe,!0),document.addEventListener(qr,rt,!0),document.addEventListener(Xr,zn,!0),document.addEventListener(lr,zn,!0),Te=!0)}function Sc(s,u){if(u.pointerType!==(u.MSPOINTER_TYPE_MOUSE||"mouse")){u.touches=[];for(var h in le)u.touches.push(le[h]);u.changedTouches=[u],s(u)}}function ZM(s,u){u.MSPOINTER_TYPE_TOUCH&&u.pointerType===u.MSPOINTER_TYPE_TOUCH&&wn(u),Sc(s,u)}function KM(s){var u={},h,C;for(C in s)h=s[C],u[C]=h&&h.bind?h.bind(s):h;return s=u,u.type="dblclick",u.detail=2,u.isTrusted=!1,u._simulated=!0,u}var qM=200;function XM(s,u){s.addEventListener("dblclick",u);var h=0,C;function I(V){if(V.detail!==1){C=V.detail;return}if(!(V.pointerType==="mouse"||V.sourceCapabilities&&!V.sourceCapabilities.firesTouchEvents)){var q=Sb(V);if(!(q.some(function(ie){return ie instanceof HTMLLabelElement&&ie.attributes.for})&&!q.some(function(ie){return ie instanceof HTMLInputElement||ie instanceof HTMLSelectElement}))){var ne=Date.now();ne-h<=qM?(C++,C===2&&u(KM(V))):C=1,h=ne}}}return s.addEventListener("click",I),{dblclick:u,simDblclick:I}}function YM(s,u){s.removeEventListener("dblclick",u.dblclick),s.removeEventListener("click",u.simDblclick)}var sh=Mc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ba=Mc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_b=ba==="webkitTransition"||ba==="OTransition"?ba+"End":"transitionend";function Cb(s){return typeof s=="string"?document.getElementById(s):s}function _a(s,u){var h=s.style[u]||s.currentStyle&&s.currentStyle[u];if((!h||h==="auto")&&document.defaultView){var C=document.defaultView.getComputedStyle(s,null);h=C?C[u]:null}return h==="auto"?null:h}function vt(s,u,h){var C=document.createElement(s);return C.className=u||"",h&&h.appendChild(C),C}function Gt(s){var u=s.parentNode;u&&u.removeChild(s)}function Pc(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function js(s){var u=s.parentNode;u&&u.lastChild!==s&&u.appendChild(s)}function Gs(s){var u=s.parentNode;u&&u.firstChild!==s&&u.insertBefore(s,u.firstChild)}function lh(s,u){if(s.classList!==void 0)return s.classList.contains(u);var h=kc(s);return h.length>0&&new RegExp("(^|\\s)"+u+"(\\s|$)").test(h)}function lt(s,u){if(s.classList!==void 0)for(var h=x(u),C=0,I=h.length;C0?2*window.devicePixelRatio:1;function kb(s){return Be.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/eI:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function bh(s,u){var h=u.relatedTarget;if(!h)return!0;try{for(;h&&h!==s;)h=h.parentNode}catch{return!1}return h!==s}var tI={__proto__:null,on:ot,off:Ft,stopPropagation:ns,disableScrollPropagation:yh,disableClickPropagation:Sa,preventDefault:wn,stop:rs,getPropagationPath:Sb,getMousePosition:Pb,getWheelDelta:kb,isExternalTarget:bh,addListener:ot,removeListener:Ft},Mb=A.extend({run:function(s,u,h,C){this.stop(),this._el=s,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=ts(s),this._offset=u.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=W(this._animate,this),this._step()},_step:function(s){var u=+new Date-this._startTime,h=this._duration*1e3;uthis.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,u){this._enforcingBounds=!0;var h=this.getCenter(),C=this._limitCenter(h,this._zoom,Q(s));return h.equals(C)||this.panTo(C,u),this._enforcingBounds=!1,this},panInside:function(s,u){u=u||{};var h=U(u.paddingTopLeft||u.padding||[0,0]),C=U(u.paddingBottomRight||u.padding||[0,0]),I=this.project(this.getCenter()),V=this.project(s),q=this.getPixelBounds(),ne=Y([q.min.add(h),q.max.subtract(C)]),ie=ne.getSize();if(!ne.contains(V)){this._enforcingBounds=!0;var he=V.subtract(ne.getCenter()),Oe=ne.extend(V).getSize().subtract(ie);I.x+=he.x<0?-Oe.x:Oe.x,I.y+=he.y<0?-Oe.y:Oe.y,this.panTo(this.unproject(I),u),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=o({animate:!1,pan:!0},s===!0?{animate:!0}:s);var u=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),C=u.divideBy(2).round(),I=h.divideBy(2).round(),V=C.subtract(I);return!V.x&&!V.y?this:(s.animate&&s.pan?this.panBy(V):(s.pan&&this._rawPanBy(V),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:u,newSize:h}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=o({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var u=l(this._handleGeolocationResponse,this),h=l(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(u,h,s):navigator.geolocation.getCurrentPosition(u,h,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var u=s.code,h=s.message||(u===1?"permission denied":u===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:u,message:"Geolocation error: "+h+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var u=s.coords.latitude,h=s.coords.longitude,C=new X(u,h),I=C.toBounds(s.coords.accuracy*2),V=this._locateOptions;if(V.setView){var q=this.getBoundsZoom(I);this.setView(C,V.maxZoom?Math.min(q,V.maxZoom):q)}var ne={latlng:C,bounds:I,timestamp:s.timestamp};for(var ie in s.coords)typeof s.coords[ie]=="number"&&(ne[ie]=s.coords[ie]);this.fire("locationfound",ne)}},addHandler:function(s,u){if(!u)return this;var h=this[s]=new u(this);return this._handlers.push(h),this.options[s]&&h.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)Gt(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,u){var h="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),C=vt("div",h,u||this._mapPane);return s&&(this._panes[s]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),u=this.unproject(s.getBottomLeft()),h=this.unproject(s.getTopRight());return new ee(u,h)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,u,h){s=Q(s),h=U(h||[0,0]);var C=this.getZoom()||0,I=this.getMinZoom(),V=this.getMaxZoom(),q=s.getNorthWest(),ne=s.getSouthEast(),ie=this.getSize().subtract(h),he=Y(this.project(ne,C),this.project(q,C)).getSize(),Oe=Be.any3d?this.options.zoomSnap:1,qe=ie.x/he.x,dt=ie.y/he.y,An=u?Math.max(qe,dt):Math.min(qe,dt);return C=this.getScaleZoom(An,C),Oe&&(C=Math.round(C/(Oe/100))*(Oe/100),C=u?Math.ceil(C/Oe)*Oe:Math.floor(C/Oe)*Oe),Math.max(I,Math.min(V,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,u){var h=this._getTopLeftPoint(s,u);return new Z(h,h.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,u){var h=this.options.crs;return u=u===void 0?this._zoom:u,h.scale(s)/h.scale(u)},getScaleZoom:function(s,u){var h=this.options.crs;u=u===void 0?this._zoom:u;var C=h.zoom(s*h.scale(u));return isNaN(C)?1/0:C},project:function(s,u){return u=u===void 0?this._zoom:u,this.options.crs.latLngToPoint(te(s),u)},unproject:function(s,u){return u=u===void 0?this._zoom:u,this.options.crs.pointToLatLng(U(s),u)},layerPointToLatLng:function(s){var u=U(s).add(this.getPixelOrigin());return this.unproject(u)},latLngToLayerPoint:function(s){var u=this.project(te(s))._round();return u._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(te(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(Q(s))},distance:function(s,u){return this.options.crs.distance(te(s),te(u))},containerPointToLayerPoint:function(s){return U(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return U(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var u=this.containerPointToLayerPoint(U(s));return this.layerPointToLatLng(u)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(te(s)))},mouseEventToContainerPoint:function(s){return Pb(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var u=this._container=Cb(s);if(u){if(u._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ot(u,"scroll",this._onScroll,this),this._containerId=c(u)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&Be.any3d,lt(s,"leaflet-container"+(Be.touch?" leaflet-touch":"")+(Be.retina?" leaflet-retina":"")+(Be.ielt9?" leaflet-oldie":"")+(Be.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var u=_a(s,"position");u!=="absolute"&&u!=="relative"&&u!=="fixed"&&u!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ln(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(lt(s.markerPane,"leaflet-zoom-hide"),lt(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,u,h){ln(this._mapPane,new N(0,0));var C=!this._loaded;this._loaded=!0,u=this._limitZoom(u),this.fire("viewprereset");var I=this._zoom!==u;this._moveStart(I,h)._move(s,u)._moveEnd(I),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(s,u){return s&&this.fire("zoomstart"),u||this.fire("movestart"),this},_move:function(s,u,h,C){u===void 0&&(u=this._zoom);var I=this._zoom!==u;return this._zoom=u,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),C?h&&h.pinch&&this.fire("zoom",h):((I||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){ln(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[c(this._container)]=this;var u=s?Ft:ot;u(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&u(window,"resize",this._onResize,this),Be.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=W(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,u){for(var h=[],C,I=u==="mouseout"||u==="mouseover",V=s.target||s.srcElement,q=!1;V;){if(C=this._targets[c(V)],C&&(u==="click"||u==="preclick")&&this._draggableMoved(C)){q=!0;break}if(C&&C.listens(u,!0)&&(I&&!bh(V,s)||(h.push(C),I))||V===this._container)break;V=V.parentNode}return!h.length&&!q&&!I&&this.listens(u,!0)&&(h=[this]),h},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var u=s.target||s.srcElement;if(!(!this._loaded||u._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(u))){var h=s.type;h==="mousedown"&&ph(u),this._fireDOMEvent(s,h)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,u,h){if(s.type==="click"){var C=o({},s);C.type="preclick",this._fireDOMEvent(C,C.type,h)}var I=this._findEventTargets(s,u);if(h){for(var V=[],q=0;q0?Math.round(s-u)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(u))},_limitZoom:function(s){var u=this.getMinZoom(),h=this.getMaxZoom(),C=Be.any3d?this.options.zoomSnap:1;return C&&(s=Math.round(s/C)*C),Math.max(u,Math.min(h,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,u){var h=this._getCenterOffset(s)._trunc();return(u&&u.animate)!==!0&&!this.getSize().contains(h)?!1:(this.panBy(h,u),!0)},_createAnimProxy:function(){var s=this._proxy=vt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(u){var h=sh,C=this._proxy.style[h];es(this._proxy,this.project(u.center,u.zoom),this.getZoomScale(u.zoom,1)),C===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Gt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),u=this.getZoom();es(this._proxy,this.project(s,u),this.getZoomScale(u,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,u,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||h.animate===!1||this._nothingToAnimate()||Math.abs(u-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(u),I=this._getCenterOffset(s)._divideBy(1-1/C);return h.animate!==!0&&!this.getSize().contains(I)?!1:(W(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(s,u,!0)},this),!0)},_animateZoom:function(s,u,h,C){this._mapPane&&(h&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=u,lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:u,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Qt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function nI(s,u){return new ht(s,u)}var Yr=R.extend({options:{position:"topright"},initialize:function(s){_(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var u=this._map;return u&&u.removeControl(this),this.options.position=s,u&&u.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var u=this._container=this.onAdd(s),h=this.getPosition(),C=s._controlCorners[h];return lt(u,"leaflet-control"),h.indexOf("bottom")!==-1?C.insertBefore(u,C.firstChild):C.appendChild(u),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Pa=function(s){return new Yr(s)};ht.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},u="leaflet-",h=this._controlContainer=vt("div",u+"control-container",this._container);function C(I,V){var q=u+I+" "+u+V;s[I+V]=vt("div",q,h)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)Gt(this._controlCorners[s]);Gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ib=Yr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,u,h,C){return h1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=u&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var u=this._getLayer(c(s.target)),h=u.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;h&&this._map.fire(h,u)},_createRadioElement:function(s,u){var h='",C=document.createElement("div");return C.innerHTML=h,C.firstChild},_addItem:function(s){var u=document.createElement("label"),h=this._map.hasLayer(s.layer),C;s.overlay?(C=document.createElement("input"),C.type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=h):C=this._createRadioElement("leaflet-base-layers_"+c(this),h),this._layerControlInputs.push(C),C.layerId=c(s.layer),ot(C,"click",this._onInputClick,this);var I=document.createElement("span");I.innerHTML=" "+s.name;var V=document.createElement("span");u.appendChild(V),V.appendChild(C),V.appendChild(I);var q=s.overlay?this._overlaysList:this._baseLayersList;return q.appendChild(u),this._checkDisabledLayers(),u},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,u,h,C=[],I=[];this._handlingClick=!0;for(var V=s.length-1;V>=0;V--)u=s[V],h=this._getLayer(u.layerId).layer,u.checked?C.push(h):u.checked||I.push(h);for(V=0;V=0;I--)u=s[I],h=this._getLayer(u.layerId).layer,u.disabled=h.options.minZoom!==void 0&&Ch.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,ot(s,"click",wn),this.expand();var u=this;setTimeout(function(){Ft(s,"click",wn),u._preventClick=!1})}}),rI=function(s,u,h){return new Ib(s,u,h)},_h=Yr.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(s){var u="leaflet-control-zoom",h=vt("div",u+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,u+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,u+"-out",h,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),h},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,u,h,C,I){var V=vt("a",h,C);return V.innerHTML=s,V.href="#",V.title=u,V.setAttribute("role","button"),V.setAttribute("aria-label",u),Sa(V),ot(V,"click",rs),ot(V,"click",I,this),ot(V,"click",this._refocusOnMap,this),V},_updateDisabled:function(){var s=this._map,u="leaflet-disabled";Qt(this._zoomInButton,u),Qt(this._zoomOutButton,u),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(lt(this._zoomOutButton,u),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(lt(this._zoomInButton,u),this._zoomInButton.setAttribute("aria-disabled","true"))}});ht.mergeOptions({zoomControl:!0}),ht.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _h,this.addControl(this.zoomControl))});var oI=function(s){return new _h(s)},Eb=Yr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var u="leaflet-control-scale",h=vt("div",u),C=this.options;return this._addScales(C,u+"-line",h),s.on(C.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),h},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,u,h){s.metric&&(this._mScale=vt("div",u,h)),s.imperial&&(this._iScale=vt("div",u,h))},_update:function(){var s=this._map,u=s.getSize().y/2,h=s.distance(s.containerPointToLatLng([0,u]),s.containerPointToLatLng([this.options.maxWidth,u]));this._updateScales(h)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var u=this._getRoundNum(s),h=u<1e3?u+" m":u/1e3+" km";this._updateScale(this._mScale,h,u/s)},_updateImperial:function(s){var u=s*3.2808399,h,C,I;u>5280?(h=u/5280,C=this._getRoundNum(h),this._updateScale(this._iScale,C+" mi",C/h)):(I=this._getRoundNum(u),this._updateScale(this._iScale,I+" ft",I/u))},_updateScale:function(s,u,h){s.style.width=Math.round(this.options.maxWidth*h)+"px",s.innerHTML=u},_getRoundNum:function(s){var u=Math.pow(10,(Math.floor(s)+"").length-1),h=s/u;return h=h>=10?10:h>=5?5:h>=3?3:h>=2?2:1,u*h}}),iI=function(s){return new Eb(s)},sI='',Ch=Yr.extend({options:{position:"bottomright",prefix:''+(Be.inlineSvg?sI+" ":"")+"Leaflet"},initialize:function(s){_(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=vt("div","leaflet-control-attribution"),Sa(this._container);for(var u in s._layers)s._layers[u].getAttribution&&this.addAttribution(s._layers[u].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var u in this._attributions)this._attributions[u]&&s.push(u);var h=[];this.options.prefix&&h.push(this.options.prefix),s.length&&h.push(s.join(", ")),this._container.innerHTML=h.join(' ')}}});ht.mergeOptions({attributionControl:!0}),ht.addInitHook(function(){this.options.attributionControl&&new Ch().addTo(this)});var lI=function(s){return new Ch(s)};Yr.Layers=Ib,Yr.Zoom=_h,Yr.Scale=Eb,Yr.Attribution=Ch,Pa.layers=rI,Pa.zoom=oI,Pa.scale=iI,Pa.attribution=lI;var ho=R.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ho.addTo=function(s,u){return s.addHandler(u,this),this};var aI={Events:O},Lb=Be.touch?"touchstart mousedown":"mousedown",ci=A.extend({options:{clickTolerance:3},initialize:function(s,u,h,C){_(this,C),this._element=s,this._dragStartTarget=u||s,this._preventOutline=h},enable:function(){this._enabled||(ot(this._dragStartTarget,Lb,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ci._dragging===this&&this.finishDrag(!0),Ft(this._dragStartTarget,Lb,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!lh(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){ci._dragging===this&&this.finishDrag();return}if(!(ci._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(ci._dragging=this,this._preventOutline&&ph(this._element),ch(),Ca(),!this._moving)){this.fire("down");var u=s.touches?s.touches[0]:s,h=xb(this._element);this._startPoint=new N(u.clientX,u.clientY),this._startPos=ts(this._element),this._parentScale=hh(h);var C=s.type==="mousedown";ot(document,C?"mousemove":"touchmove",this._onMove,this),ot(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var u=s.touches&&s.touches.length===1?s.touches[0]:s,h=new N(u.clientX,u.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)V&&(q=ne,V=ie);V>h&&(u[q]=1,wh(s,u,h,C,q),wh(s,u,h,q,I))}function fI(s,u){for(var h=[s[0]],C=1,I=0,V=s.length;Cu&&(h.push(s[C]),I=C);return Iu.max.x&&(h|=2),s.yu.max.y&&(h|=8),h}function pI(s,u){var h=u.x-s.x,C=u.y-s.y;return h*h+C*C}function ka(s,u,h,C){var I=u.x,V=u.y,q=h.x-I,ne=h.y-V,ie=q*q+ne*ne,he;return ie>0&&(he=((s.x-I)*q+(s.y-V)*ne)/ie,he>1?(I=h.x,V=h.y):he>0&&(I+=q*he,V+=ne*he)),q=s.x-I,ne=s.y-V,C?q*q+ne*ne:new N(I,V)}function kr(s){return!P(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function Ab(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),kr(s)}function Db(s,u){var h,C,I,V,q,ne,ie,he;if(!s||s.length===0)throw new Error("latlngs not passed");kr(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Oe=te([0,0]),qe=Q(s),dt=qe.getNorthWest().distanceTo(qe.getSouthWest())*qe.getNorthEast().distanceTo(qe.getNorthWest());dt<1700&&(Oe=xh(s));var An=s.length,gn=[];for(h=0;hC){ie=(V-C)/I,he=[ne.x-ie*(ne.x-q.x),ne.y-ie*(ne.y-q.y)];break}var qn=u.unproject(U(he));return te([qn.lat+Oe.lat,qn.lng+Oe.lng])}var hI={__proto__:null,simplify:Rb,pointToSegmentDistance:Fb,closestPointOnSegment:cI,clipSegment:zb,_getEdgeIntersection:Lc,_getBitCode:os,_sqClosestPointOnSegment:ka,isFlat:kr,_flat:Ab,polylineCenter:Db},Sh={project:function(s){return new N(s.lng,s.lat)},unproject:function(s){return new X(s.y,s.x)},bounds:new Z([-180,-90],[180,90])},Ph={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var u=Math.PI/180,h=this.R,C=s.lat*u,I=this.R_MINOR/h,V=Math.sqrt(1-I*I),q=V*Math.sin(C),ne=Math.tan(Math.PI/4-C/2)/Math.pow((1-q)/(1+q),V/2);return C=-h*Math.log(Math.max(ne,1e-10)),new N(s.lng*u*h,C)},unproject:function(s){for(var u=180/Math.PI,h=this.R,C=this.R_MINOR/h,I=Math.sqrt(1-C*C),V=Math.exp(-s.y/h),q=Math.PI/2-2*Math.atan(V),ne=0,ie=.1,he;ne<15&&Math.abs(ie)>1e-7;ne++)he=I*Math.sin(q),he=Math.pow((1-he)/(1+he),I/2),ie=Math.PI/2-2*Math.atan(V*he)-q,q+=ie;return new X(q*u,s.x*u/h)}},mI={__proto__:null,LonLat:Sh,Mercator:Ph,SphericalMercator:ge},gI=o({},re,{code:"EPSG:3395",projection:Ph,transformation:function(){var s=.5/(Math.PI*Ph.R);return ye(s,.5,-s,.5)}()}),Nb=o({},re,{code:"EPSG:4326",projection:Sh,transformation:ye(1/180,1,-1/180,.5)}),vI=o({},me,{projection:Sh,transformation:ye(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,u){var h=u.lng-s.lng,C=u.lat-s.lat;return Math.sqrt(h*h+C*C)},infinite:!0});me.Earth=re,me.EPSG3395=gI,me.EPSG3857=Ee,me.EPSG900913=$e,me.EPSG4326=Nb,me.Simple=vI;var Qr=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[c(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[c(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var u=s.target;if(u.hasLayer(this)){if(this._map=u,this._zoomAnimated=u._zoomAnimated,this.getEvents){var h=this.getEvents();u.on(h,this),this.once("remove",function(){u.off(h,this)},this)}this.onAdd(u),this.fire("add"),u.fire("layeradd",{layer:this})}}});ht.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var u=c(s);return this._layers[u]?this:(this._layers[u]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var u=c(s);return this._layers[u]?(this._loaded&&s.onRemove(this),delete this._layers[u],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return c(s)in this._layers},eachLayer:function(s,u){for(var h in this._layers)s.call(u,this._layers[h]);return this},_addLayers:function(s){s=s?P(s)?s:[s]:[];for(var u=0,h=s.length;uthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&u[0]instanceof X&&u[0].equals(u[h-1])&&u.pop(),u},_setLatLngs:function(s){No.prototype._setLatLngs.call(this,s),kr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return kr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,u=this.options.weight,h=new N(u,u);if(s=new Z(s.min.subtract(h),s.max.add(h)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var C=0,I=this._rings.length,V;Cs.y!=I.y>s.y&&s.x<(I.x-C.x)*(s.y-C.y)/(I.y-C.y)+C.x&&(u=!u);return u||No.prototype._containsPoint.call(this,s,!0)}});function PI(s,u){return new Us(s,u)}var Bo=Do.extend({initialize:function(s,u){_(this,u),this._layers={},s&&this.addData(s)},addData:function(s){var u=P(s)?s:s.features,h,C,I;if(u){for(h=0,C=u.length;h0&&I.push(I[0].slice()),I}function Zs(s,u){return s.feature?o({},s.feature,{geometry:u}):zc(u)}function zc(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Eh={toGeoJSON:function(s){return Zs(this,{type:"Point",coordinates:Ih(this.getLatLng(),s)})}};Tc.include(Eh),kh.include(Eh),Oc.include(Eh),No.include({toGeoJSON:function(s){var u=!kr(this._latlngs),h=$c(this._latlngs,u?1:0,!1,s);return Zs(this,{type:(u?"Multi":"")+"LineString",coordinates:h})}}),Us.include({toGeoJSON:function(s){var u=!kr(this._latlngs),h=u&&!kr(this._latlngs[0]),C=$c(this._latlngs,h?2:u?1:0,!0,s);return u||(C=[C]),Zs(this,{type:(h?"Multi":"")+"Polygon",coordinates:C})}}),Vs.include({toMultiPoint:function(s){var u=[];return this.eachLayer(function(h){u.push(h.toGeoJSON(s).geometry.coordinates)}),Zs(this,{type:"MultiPoint",coordinates:u})},toGeoJSON:function(s){var u=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(u==="MultiPoint")return this.toMultiPoint(s);var h=u==="GeometryCollection",C=[];return this.eachLayer(function(I){if(I.toGeoJSON){var V=I.toGeoJSON(s);if(h)C.push(V.geometry);else{var q=zc(V);q.type==="FeatureCollection"?C.push.apply(C,q.features):C.push(q)}}}),h?Zs(this,{geometries:C,type:"GeometryCollection"}):{type:"FeatureCollection",features:C}}});function jb(s,u){return new Bo(s,u)}var kI=jb,Ac=Qr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,u,h){this._url=s,this._bounds=Q(u),_(this,h)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&js(this._image),this},bringToBack:function(){return this._map&&Gs(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=Q(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",u=this._image=s?this._url:vt("img");if(lt(u,"leaflet-image-layer"),this._zoomAnimated&<(u,"leaflet-zoom-animated"),this.options.className&<(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onload=l(this.fire,this,"load"),u.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=u.src;return}u.src=this._url,u.alt=this.options.alt},_animateZoom:function(s){var u=this._map.getZoomScale(s.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;es(this._image,h,u)},_reset:function(){var s=this._image,u=new Z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=u.getSize();ln(s,u.min),s.style.width=h.x+"px",s.style.height=h.y+"px"},_updateOpacity:function(){Pr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),MI=function(s,u,h){return new Ac(s,u,h)},Gb=Ac.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",u=this._image=s?this._url:vt("video");if(lt(u,"leaflet-image-layer"),this._zoomAnimated&<(u,"leaflet-zoom-animated"),this.options.className&<(u,this.options.className),u.onselectstart=p,u.onmousemove=p,u.onloadeddata=l(this.fire,this,"load"),s){for(var h=u.getElementsByTagName("source"),C=[],I=0;I0?C:[u.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(u.style,"objectFit")&&(u.style.objectFit="fill"),u.autoplay=!!this.options.autoplay,u.loop=!!this.options.loop,u.muted=!!this.options.muted,u.playsInline=!!this.options.playsInline;for(var V=0;VI?(u.height=I+"px",lt(s,V)):Qt(s,V),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var u=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),h=this._getAnchor();ln(this._container,u.add(h))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,u=parseInt(_a(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+u,C=this._containerWidth,I=new N(this._containerLeft,-h-this._containerBottom);I._add(ts(this._container));var V=s.layerPointToContainerPoint(I),q=U(this.options.autoPanPadding),ne=U(this.options.autoPanPaddingTopLeft||q),ie=U(this.options.autoPanPaddingBottomRight||q),he=s.getSize(),Oe=0,qe=0;V.x+C+ie.x>he.x&&(Oe=V.x+C-he.x+ie.x),V.x-Oe-ne.x<0&&(Oe=V.x-ne.x),V.y+h+ie.y>he.y&&(qe=V.y+h-he.y+ie.y),V.y-qe-ne.y<0&&(qe=V.y-ne.y),(Oe||qe)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([Oe,qe]))}},_getAnchor:function(){return U(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),LI=function(s,u){return new Dc(s,u)};ht.mergeOptions({closePopupOnClick:!0}),ht.include({openPopup:function(s,u,h){return this._initOverlay(Dc,s,u,h).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),Qr.include({bindPopup:function(s,u){return this._popup=this._initOverlay(Dc,this._popup,s,u),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof Do||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){rs(s);var u=s.layer||s.target;if(this._popup._source===u&&!(u instanceof di)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=u,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Nc=mo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){mo.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){mo.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=mo.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",u=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=vt("div",u),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var u,h,C=this._map,I=this._container,V=C.latLngToContainerPoint(C.getCenter()),q=C.layerPointToContainerPoint(s),ne=this.options.direction,ie=I.offsetWidth,he=I.offsetHeight,Oe=U(this.options.offset),qe=this._getAnchor();ne==="top"?(u=ie/2,h=he):ne==="bottom"?(u=ie/2,h=0):ne==="center"?(u=ie/2,h=he/2):ne==="right"?(u=0,h=he/2):ne==="left"?(u=ie,h=he/2):q.xthis.options.maxZoom||hC?this._retainParent(I,V,q,C):!1)},_retainChildren:function(s,u,h,C){for(var I=2*s;I<2*s+2;I++)for(var V=2*u;V<2*u+2;V++){var q=new N(I,V);q.z=h+1;var ne=this._tileCoordsToKey(q),ie=this._tiles[ne];if(ie&&ie.active){ie.retain=!0;continue}else ie&&ie.loaded&&(ie.retain=!0);h+1this.options.maxZoom||this.options.minZoom!==void 0&&I1){this._setView(s,h);return}for(var qe=I.min.y;qe<=I.max.y;qe++)for(var dt=I.min.x;dt<=I.max.x;dt++){var An=new N(dt,qe);if(An.z=this._tileZoom,!!this._isValidTile(An)){var gn=this._tiles[this._tileCoordsToKey(An)];gn?gn.current=!0:q.push(An)}}if(q.sort(function(qn,qs){return qn.distanceTo(V)-qs.distanceTo(V)}),q.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mr=document.createDocumentFragment();for(dt=0;dth.max.x)||!u.wrapLat&&(s.yh.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(s);return Q(this.options.bounds).overlaps(C)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var u=this._map,h=this.getTileSize(),C=s.scaleBy(h),I=C.add(h),V=u.unproject(C,s.z),q=u.unproject(I,s.z);return[V,q]},_tileCoordsToBounds:function(s){var u=this._tileCoordsToNwSe(s),h=new ee(u[0],u[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var u=s.split(":"),h=new N(+u[0],+u[1]);return h.z=+u[2],h},_removeTile:function(s){var u=this._tiles[s];u&&(Gt(u.el),delete this._tiles[s],this.fire("tileunload",{tile:u.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){lt(s,"leaflet-tile");var u=this.getTileSize();s.style.width=u.x+"px",s.style.height=u.y+"px",s.onselectstart=p,s.onmousemove=p,Be.ielt9&&this.options.opacity<1&&Pr(s,this.options.opacity)},_addTile:function(s,u){var h=this._getTilePos(s),C=this._tileCoordsToKey(s),I=this.createTile(this._wrapCoords(s),l(this._tileReady,this,s));this._initTile(I),this.createTile.length<2&&W(l(this._tileReady,this,s,null,I)),ln(I,h),this._tiles[C]={el:I,coords:s,current:!0},u.appendChild(I),this.fire("tileloadstart",{tile:I,coords:s})},_tileReady:function(s,u,h){u&&this.fire("tileerror",{error:u,tile:h,coords:s});var C=this._tileCoordsToKey(s);h=this._tiles[C],h&&(h.loaded=+new Date,this._map._fadeAnimated?(Pr(h.el,0),j(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),u||(lt(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Be.ielt9||!this._map._fadeAnimated?W(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var u=new N(this._wrapX?f(s.x,this._wrapX):s.x,this._wrapY?f(s.y,this._wrapY):s.y);return u.z=s.z,u},_pxBoundsToTileRange:function(s){var u=this.getTileSize();return new Z(s.min.unscaleBy(u).floor(),s.max.unscaleBy(u).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function RI(s){return new Ia(s)}var Ks=Ia.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,u){this._url=s,u=_(this,u),u.detectRetina&&Be.retina&&u.maxZoom>0?(u.tileSize=Math.floor(u.tileSize/2),u.zoomReverse?(u.zoomOffset--,u.minZoom=Math.min(u.maxZoom,u.minZoom+1)):(u.zoomOffset++,u.maxZoom=Math.max(u.minZoom,u.maxZoom-1)),u.minZoom=Math.max(0,u.minZoom)):u.zoomReverse?u.minZoom=Math.min(u.maxZoom,u.minZoom):u.maxZoom=Math.max(u.minZoom,u.maxZoom),typeof u.subdomains=="string"&&(u.subdomains=u.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,u){return this._url===s&&u===void 0&&(u=!0),this._url=s,u||this.redraw(),this},createTile:function(s,u){var h=document.createElement("img");return ot(h,"load",l(this._tileOnLoad,this,u,h)),ot(h,"error",l(this._tileOnError,this,u,h)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(s),h},getTileUrl:function(s){var u={r:Be.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-s.y;this.options.tms&&(u.y=h),u["-y"]=h}return w(this._url,o(u,this.options))},_tileOnLoad:function(s,u){Be.ielt9?setTimeout(l(s,this,null,u),0):s(null,u)},_tileOnError:function(s,u,h){var C=this.options.errorTileUrl;C&&u.getAttribute("src")!==C&&(u.src=C),s(h,u)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,u=this.options.maxZoom,h=this.options.zoomReverse,C=this.options.zoomOffset;return h&&(s=u-s),s+C},_getSubdomain:function(s){var u=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[u]},_abortLoading:function(){var s,u;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(u=this._tiles[s].el,u.onload=p,u.onerror=p,!u.complete)){u.src=E;var h=this._tiles[s].coords;Gt(u),delete this._tiles[s],this.fire("tileabort",{tile:u,coords:h})}},_removeTile:function(s){var u=this._tiles[s];if(u)return u.el.setAttribute("src",E),Ia.prototype._removeTile.call(this,s)},_tileReady:function(s,u,h){if(!(!this._map||h&&h.getAttribute("src")===E))return Ia.prototype._tileReady.call(this,s,u,h)}});function Ub(s,u){return new Ks(s,u)}var Zb=Ks.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,u){this._url=s;var h=o({},this.defaultWmsParams);for(var C in u)C in this.options||(h[C]=u[C]);u=_(this,u);var I=u.detectRetina&&Be.retina?2:1,V=this.getTileSize();h.width=V.x*I,h.height=V.y*I,this.wmsParams=h},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var u=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[u]=this._crs.code,Ks.prototype.onAdd.call(this,s)},getTileUrl:function(s){var u=this._tileCoordsToNwSe(s),h=this._crs,C=Y(h.project(u[0]),h.project(u[1])),I=C.min,V=C.max,q=(this._wmsVersion>=1.3&&this._crs===Nb?[I.y,I.x,V.y,V.x]:[I.x,I.y,V.x,V.y]).join(","),ne=Ks.prototype.getTileUrl.call(this,s);return ne+k(this.wmsParams,ne,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+q},setParams:function(s,u){return o(this.wmsParams,s),u||this.redraw(),this}});function FI(s,u){return new Zb(s,u)}Ks.WMS=Zb,Ub.wms=FI;var Ho=Qr.extend({options:{padding:.1},initialize:function(s){_(this,s),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),lt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,u){var h=this._map.getZoomScale(u,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),I=this._map.project(this._center,u),V=C.multiplyBy(-h).add(I).subtract(this._map._getNewPixelOrigin(s,u));Be.any3d?es(this._container,V,h):ln(this._container,V)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,u=this._map.getSize(),h=this._map.containerPointToLayerPoint(u.multiplyBy(-s)).round();this._bounds=new Z(h,h.add(u.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Kb=Ho.extend({options:{tolerance:0},getEvents:function(){var s=Ho.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ho.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");ot(s,"mousemove",this._onMouseMove,this),ot(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ot(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Gt(this._container),Ft(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var u in this._layers)s=this._layers[u],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ho.prototype._update.call(this);var s=this._bounds,u=this._container,h=s.getSize(),C=Be.retina?2:1;ln(u,s.min),u.width=C*h.x,u.height=C*h.y,u.style.width=h.x+"px",u.style.height=h.y+"px",Be.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Ho.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[c(s)]=s;var u=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=u),this._drawLast=u,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var u=s._order,h=u.next,C=u.prev;h?h.prev=C:this._drawLast=C,C?C.next=h:this._drawFirst=h,delete s._order,delete this._layers[c(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var u=s.options.dashArray.split(/[, ]+/),h=[],C,I;for(I=0;I')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),$I={_initContainer:function(){this._container=vt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ho.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var u=s._container=Ea("shape");lt(u,"leaflet-vml-shape "+(this.options.className||"")),u.coordsize="1 1",s._path=Ea("path"),u.appendChild(s._path),this._updateStyle(s),this._layers[c(s)]=s},_addPath:function(s){var u=s._container;this._container.appendChild(u),s.options.interactive&&s.addInteractiveTarget(u)},_removePath:function(s){var u=s._container;Gt(u),s.removeInteractiveTarget(u),delete this._layers[c(s)]},_updateStyle:function(s){var u=s._stroke,h=s._fill,C=s.options,I=s._container;I.stroked=!!C.stroke,I.filled=!!C.fill,C.stroke?(u||(u=s._stroke=Ea("stroke")),I.appendChild(u),u.weight=C.weight+"px",u.color=C.color,u.opacity=C.opacity,C.dashArray?u.dashStyle=P(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):u.dashStyle="",u.endcap=C.lineCap.replace("butt","flat"),u.joinstyle=C.lineJoin):u&&(I.removeChild(u),s._stroke=null),C.fill?(h||(h=s._fill=Ea("fill")),I.appendChild(h),h.color=C.fillColor||C.color,h.opacity=C.fillOpacity):h&&(I.removeChild(h),s._fill=null)},_updateCircle:function(s){var u=s._point.round(),h=Math.round(s._radius),C=Math.round(s._radiusY||h);this._setPath(s,s._empty()?"M0 0":"AL "+u.x+","+u.y+" "+h+","+C+" 0,"+65535*360)},_setPath:function(s,u){s._path.v=u},_bringToFront:function(s){js(s._container)},_bringToBack:function(s){Gs(s._container)}},Bc=Be.vml?Ea:we,La=Ho.extend({_initContainer:function(){this._container=Bc("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bc("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Gt(this._container),Ft(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ho.prototype._update.call(this);var s=this._bounds,u=s.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(u))&&(this._svgSize=u,h.setAttribute("width",u.x),h.setAttribute("height",u.y)),ln(h,s.min),h.setAttribute("viewBox",[s.min.x,s.min.y,u.x,u.y].join(" ")),this.fire("update")}},_initPath:function(s){var u=s._path=Bc("path");s.options.className&<(u,s.options.className),s.options.interactive&<(u,"leaflet-interactive"),this._updateStyle(s),this._layers[c(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){Gt(s._path),s.removeInteractiveTarget(s._path),delete this._layers[c(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var u=s._path,h=s.options;u&&(h.stroke?(u.setAttribute("stroke",h.color),u.setAttribute("stroke-opacity",h.opacity),u.setAttribute("stroke-width",h.weight),u.setAttribute("stroke-linecap",h.lineCap),u.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?u.setAttribute("stroke-dasharray",h.dashArray):u.removeAttribute("stroke-dasharray"),h.dashOffset?u.setAttribute("stroke-dashoffset",h.dashOffset):u.removeAttribute("stroke-dashoffset")):u.setAttribute("stroke","none"),h.fill?(u.setAttribute("fill",h.fillColor||h.color),u.setAttribute("fill-opacity",h.fillOpacity),u.setAttribute("fill-rule",h.fillRule||"evenodd")):u.setAttribute("fill","none"))},_updatePoly:function(s,u){this._setPath(s,Ce(s._parts,u))},_updateCircle:function(s){var u=s._point,h=Math.max(Math.round(s._radius),1),C=Math.max(Math.round(s._radiusY),1)||h,I="a"+h+","+C+" 0 1,0 ",V=s._empty()?"M0 0":"M"+(u.x-h)+","+u.y+I+h*2+",0 "+I+-h*2+",0 ";this._setPath(s,V)},_setPath:function(s,u){s._path.setAttribute("d",u)},_bringToFront:function(s){js(s._path)},_bringToBack:function(s){Gs(s._path)}});Be.vml&&La.include($I);function Xb(s){return Be.svg||Be.vml?new La(s):null}ht.include({getRenderer:function(s){var u=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return u||(u=this._renderer=this._createRenderer()),this.hasLayer(u)||this.addLayer(u),u},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var u=this._paneRenderers[s];return u===void 0&&(u=this._createRenderer({pane:s}),this._paneRenderers[s]=u),u},_createRenderer:function(s){return this.options.preferCanvas&&qb(s)||Xb(s)}});var Yb=Us.extend({initialize:function(s,u){Us.prototype.initialize.call(this,this._boundsToLatLngs(s),u)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=Q(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function zI(s,u){return new Yb(s,u)}La.create=Bc,La.pointsToPath=Ce,Bo.geometryToLayer=Rc,Bo.coordsToLatLng=Mh,Bo.coordsToLatLngs=Fc,Bo.latLngToCoords=Ih,Bo.latLngsToCoords=$c,Bo.getFeature=Zs,Bo.asFeature=zc,ht.mergeOptions({boxZoom:!0});var Qb=ho.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){ot(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ft(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Gt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ca(),ch(),this._startPoint=this._map.mouseEventToContainerPoint(s),ot(document,{contextmenu:rs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=vt("div","leaflet-zoom-box",this._container),lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var u=new Z(this._point,this._startPoint),h=u.getSize();ln(this._box,u.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},_finish:function(){this._moved&&(Gt(this._box),Qt(this._container,"leaflet-crosshair")),xa(),dh(),Ft(document,{contextmenu:rs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var u=new ee(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(u).fire("boxzoomend",{boxZoomBounds:u})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ht.addInitHook("addHandler","boxZoom",Qb),ht.mergeOptions({doubleClickZoom:!0});var Jb=ho.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var u=this._map,h=u.getZoom(),C=u.options.zoomDelta,I=s.originalEvent.shiftKey?h-C:h+C;u.options.doubleClickZoom==="center"?u.setZoom(I):u.setZoomAround(s.containerPoint,I)}});ht.addInitHook("addHandler","doubleClickZoom",Jb),ht.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var e0=ho.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new ci(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qt(this._map._container,"leaflet-grab"),Qt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var u=Q(this._map.options.maxBounds);this._offsetLimit=Y(this._map.latLngToContainerPoint(u.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(u.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var u=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(u),this._prunePositions(u)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),u=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=u.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,u){return s-(s-u)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),u=this._offsetLimit;s.xu.max.x&&(s.x=this._viscousLimit(s.x,u.max.x)),s.y>u.max.y&&(s.y=this._viscousLimit(s.y,u.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,u=Math.round(s/2),h=this._initialWorldOffset,C=this._draggable._newPos.x,I=(C-u+h)%s+u-h,V=(C+u+h)%s-u-h,q=Math.abs(I+h)0?V:-V))-u;this._delta=0,this._startTime=null,q&&(s.options.scrollWheelZoom==="center"?s.setZoom(u+q):s.setZoomAround(this._lastMousePos,u+q))}});ht.addInitHook("addHandler","scrollWheelZoom",n0);var AI=600;ht.mergeOptions({tapHold:Be.touchNative&&Be.safari&&Be.mobile,tapTolerance:15});var r0=ho.extend({addHooks:function(){ot(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ft(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var u=s.touches[0];this._startPos=this._newPos=new N(u.clientX,u.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(ot(document,"touchend",wn),ot(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",u))},this),AI),ot(document,"touchend touchcancel contextmenu",this._cancel,this),ot(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){Ft(document,"touchend",wn),Ft(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),Ft(document,"touchend touchcancel contextmenu",this._cancel,this),Ft(document,"touchmove",this._onMove,this)},_onMove:function(s){var u=s.touches[0];this._newPos=new N(u.clientX,u.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,u){var h=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:u.screenX,screenY:u.screenY,clientX:u.clientX,clientY:u.clientY});h._simulated=!0,u.target.dispatchEvent(h)}});ht.addInitHook("addHandler","tapHold",r0),ht.mergeOptions({touchZoom:Be.touch,bounceAtZoomLimits:!0});var o0=ho.extend({addHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),ot(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qt(this._map._container,"leaflet-touch-zoom"),Ft(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var u=this._map;if(!(!s.touches||s.touches.length!==2||u._animatingZoom||this._zooming)){var h=u.mouseEventToContainerPoint(s.touches[0]),C=u.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=u.getSize()._divideBy(2),this._startLatLng=u.containerPointToLatLng(this._centerPoint),u.options.touchZoom!=="center"&&(this._pinchStartLatLng=u.containerPointToLatLng(h.add(C)._divideBy(2))),this._startDist=h.distanceTo(C),this._startZoom=u.getZoom(),this._moved=!1,this._zooming=!0,u._stop(),ot(document,"touchmove",this._onTouchMove,this),ot(document,"touchend touchcancel",this._onTouchEnd,this),wn(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var u=this._map,h=u.mouseEventToContainerPoint(s.touches[0]),C=u.mouseEventToContainerPoint(s.touches[1]),I=h.distanceTo(C)/this._startDist;if(this._zoom=u.getScaleZoom(I,this._startZoom),!u.options.bounceAtZoomLimits&&(this._zoomu.getMaxZoom()&&I>1)&&(this._zoom=u._limitZoom(this._zoom)),u.options.touchZoom==="center"){if(this._center=this._startLatLng,I===1)return}else{var V=h._add(C)._divideBy(2)._subtract(this._centerPoint);if(I===1&&V.x===0&&V.y===0)return;this._center=u.unproject(u.project(this._pinchStartLatLng,this._zoom).subtract(V),this._zoom)}this._moved||(u._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var q=l(u._move,u,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(q,this,!0),wn(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),Ft(document,"touchmove",this._onTouchMove,this),Ft(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ht.addInitHook("addHandler","touchZoom",o0),ht.BoxZoom=Qb,ht.DoubleClickZoom=Jb,ht.Drag=e0,ht.Keyboard=t0,ht.ScrollWheelZoom=n0,ht.TapHold=r0,ht.TouchZoom=o0,n.Bounds=Z,n.Browser=Be,n.CRS=me,n.Canvas=Kb,n.Circle=kh,n.CircleMarker=Oc,n.Class=R,n.Control=Yr,n.DivIcon=Wb,n.DivOverlay=mo,n.DomEvent=tI,n.DomUtil=JM,n.Draggable=ci,n.Evented=A,n.FeatureGroup=Do,n.GeoJSON=Bo,n.GridLayer=Ia,n.Handler=ho,n.Icon=Ws,n.ImageOverlay=Ac,n.LatLng=X,n.LatLngBounds=ee,n.Layer=Qr,n.LayerGroup=Vs,n.LineUtil=hI,n.Map=ht,n.Marker=Tc,n.Mixin=aI,n.Path=di,n.Point=N,n.PolyUtil=uI,n.Polygon=Us,n.Polyline=No,n.Popup=Dc,n.PosAnimation=Mb,n.Projection=mI,n.Rectangle=Yb,n.Renderer=Ho,n.SVG=La,n.SVGOverlay=Vb,n.TileLayer=Ks,n.Tooltip=Nc,n.Transformation=ve,n.Util=D,n.VideoOverlay=Gb,n.bind=l,n.bounds=Y,n.canvas=qb,n.circle=wI,n.circleMarker=xI,n.control=Pa,n.divIcon=OI,n.extend=o,n.featureGroup=bI,n.geoJSON=jb,n.geoJson=kI,n.gridLayer=RI,n.icon=_I,n.imageOverlay=MI,n.latLng=te,n.latLngBounds=Q,n.layerGroup=yI,n.map=nI,n.marker=CI,n.point=U,n.polygon=PI,n.polyline=SI,n.popup=LI,n.rectangle=zI,n.setOptions=_,n.stamp=c,n.svg=Xb,n.svgOverlay=EI,n.tileLayer=Ub,n.tooltip=TI,n.transformation=ye,n.version=r,n.videoOverlay=II;var DI=window.L;n.noConflict=function(){return window.L=DI,this},window.L=n})})(jg,jg.exports);var Ki=jg.exports;function yk(e){return e.split(" ").filter(Boolean)}function bk(e,t){yk(t).forEach(n=>{Ki.DomUtil.addClass(e,n)})}function _k(e,t){yk(t).forEach(n=>{Ki.DomUtil.removeClass(e,n)})}function r4(e,t,n){e!=null&&n!==t&&(t!=null&&t.length>0&&_k(e,t),n!=null&&n.length>0&&bk(e,n))}function yc(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function ma(e,t){return t==null?function(r,o){const i=m.useRef();return i.current||(i.current=e(r,o)),i}:function(r,o){const i=m.useRef();i.current||(i.current=e(r,o));const l=m.useRef(r),{instance:a}=i.current;return m.useEffect(function(){l.current!==r&&(t(a,r,l.current),l.current=r)},[a,r,o]),i}}function qy(e,t){m.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var i;(i=t.layerContainer)==null||i.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function Xy(e){return function(n){const r=gc(),o=e(vc(n,r),r);return Vy(r.map,n.attribution),Yp(o.current,n.eventHandlers),qy(o.current,r),o}}function Ck(e,t){const n=m.useRef();m.useEffect(function(){if(t.pathOptions!==n.current){const o=t.pathOptions??{};e.instance.setStyle(o),n.current=o}},[e,t])}function xk(e){return function(n){const r=gc(),o=e(vc(n,r),r);return Yp(o.current,n.eventHandlers),qy(o.current,r),Ck(o.current,n),o}}function o4(e){function t(o,i){return yc(e(o),i)}const n=ma(t),r=gk(n);return Ky(r)}function wk(e,t){const n=ma(e,t),r=Xy(n);return Zy(r)}function Sk(e,t){const n=ma(e),r=vk(n,t);return mk(r)}function i4(e,t){const n=ma(e,t),r=xk(n);return Zy(r)}function Pk(e,t){const n=ma(e,t),r=Xy(n);return Ky(r)}function kk(e,t,n){const{opacity:r,zIndex:o}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),o!=null&&o!==n.zIndex&&e.setZIndex(o)}function s4(e,t,n){t.bounds instanceof Ki.LatLngBounds&&t.bounds!==n.bounds&&e.setBounds(t.bounds),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),t.zIndex!=null&&t.zIndex!==n.zIndex&&e.setZIndex(t.zIndex)}const l4=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_VERSION:fk,LeafletContext:Wy,LeafletProvider:Uy,addClassName:bk,createContainerComponent:Zy,createControlComponent:o4,createControlHook:gk,createDivOverlayComponent:mk,createDivOverlayHook:vk,createElementHook:ma,createElementObject:yc,createLayerComponent:wk,createLayerHook:Xy,createLeafComponent:Ky,createLeafletContext:pk,createOverlayComponent:Sk,createPathComponent:i4,createPathHook:xk,createTileLayerComponent:Pk,extendContext:hk,removeClassName:_k,updateCircle:n4,updateClassName:r4,updateGridLayer:kk,updateMediaOverlay:s4,useAttribution:Vy,useEventHandlers:Yp,useLayerLifecycle:qy,useLeafletContext:gc,usePathOptions:Ck,withPane:vc},Symbol.toStringTag,{value:"Module"}));function Gg(){return Gg=Object.assign||function(e){for(var t=1;t(v==null?void 0:v.map)??null,[v]);const _=m.useCallback(b=>{if(b!==null&&v===null){const w=new Ki.Map(b,f);n!=null&&d!=null?w.setView(n,d):e!=null&&w.fitBounds(e,t),c!=null&&w.whenReady(c),x(pk(w))}},[]);m.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const k=v?pr.createElement(Uy,{value:v},r):l??null;return pr.createElement("div",Gg({},g,{ref:_}),k)}const u4=m.forwardRef(a4),c4=wk(function({position:t,...n},r){const o=new Ki.Marker(t,n);return yc(o,hk(r,{overlayContainer:o}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),d4=Sk(function(t,n){const r=new Ki.Popup(t,n.overlayContainer);return yc(r,n)},function(t,n,{position:r},o){m.useEffect(function(){const{instance:l}=t;function a(d){d.popup===l&&(l.update(),o(!0))}function c(d){d.popup===l&&o(!1)}return n.map.on({popupopen:a,popupclose:c}),n.overlayContainer==null?(r!=null&&l.setLatLng(r),l.openOn(n.map)):n.overlayContainer.bindPopup(l),function(){var f;n.map.off({popupopen:a,popupclose:c}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(l)}},[t,n,o,r])}),f4=Pk(function({url:t,...n},r){const o=new Ki.TileLayer(t,vc(n,r));return yc(o,r)},function(t,n,r){kk(t,n,r);const{url:o}=n;o!=null&&o!==r.url&&t.setUrl(o)});var Mk={};const p4=br(l4);var rx={exports:{}};(function(e,t){(function(n,r){r(t)})(Di,function(n){var r=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(i){L.Util.setOptions(this,i),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var l=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,l?this._withAnimation:this._noAnimation),this._markerCluster=l?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(i){if(i instanceof L.LayerGroup)return this.addLayers([i]);if(!i.getLatLng)return this._nonPointGroup.addLayer(i),this.fire("layeradd",{layer:i}),this;if(!this._map)return this._needsClustering.push(i),this.fire("layeradd",{layer:i}),this;if(this.hasLayer(i))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(i,this._maxZoom),this.fire("layeradd",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var l=i,a=this._zoom;if(i.__parent)for(;l.__parent._zoom>=a;)l=l.__parent;return this._currentShownBounds.contains(l.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(i,l):this._animationAddLayerNonAnimated(i,l)),this},removeLayer:function(i){return i instanceof L.LayerGroup?this.removeLayers([i]):i.getLatLng?this._map?i.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(i)),this._removeLayer(i,!0),this.fire("layerremove",{layer:i}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),i.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(i)&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,i)&&this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}),this):(this._nonPointGroup.removeLayer(i),this.fire("layerremove",{layer:i}),this)},addLayers:function(i,l){if(!L.Util.isArray(i))return this.addLayer(i);var a=this._featureGroup,c=this._nonPointGroup,d=this.options.chunkedLoading,f=this.options.chunkInterval,p=this.options.chunkProgress,g=i.length,v=0,x=!0,_;if(this._map){var k=new Date().getTime(),b=L.bind(function(){var P=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();vf)break}if(_=i[v],_ instanceof L.LayerGroup){x&&(i=i.slice(),x=!1),this._extractNonGroupLayers(_,i),g=i.length;continue}if(!_.getLatLng){c.addLayer(_),l||this.fire("layeradd",{layer:_});continue}if(!this.hasLayer(_)&&(this._addLayer(_,this._maxZoom),l||this.fire("layeradd",{layer:_}),_.__parent&&_.__parent.getChildCount()===2)){var E=_.__parent.getAllChildMarkers(),$=E[0]===_?E[1]:E[0];a.removeLayer($)}}p&&p(v,g,new Date().getTime()-k),v===g?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(b,this.options.chunkDelay)},this);b()}else for(var w=this._needsClustering;v=0;l--)i.extend(this._needsClustering[l].getLatLng());return i.extend(this._nonPointGroup.getBounds()),i},eachLayer:function(i,l){var a=this._needsClustering.slice(),c=this._needsRemoving,d,f,p;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),f=a.length-1;f>=0;f--){for(d=!0,p=c.length-1;p>=0;p--)if(c[p].layer===a[f]){d=!1;break}d&&i.call(l,a[f])}this._nonPointGroup.eachLayer(i,l)},getLayers:function(){var i=[];return this.eachLayer(function(l){i.push(l)}),i},getLayer:function(i){var l=null;return i=parseInt(i,10),this.eachLayer(function(a){L.stamp(a)===i&&(l=a)}),l},hasLayer:function(i){if(!i)return!1;var l,a=this._needsClustering;for(l=a.length-1;l>=0;l--)if(a[l]===i)return!0;for(a=this._needsRemoving,l=a.length-1;l>=0;l--)if(a[l].layer===i)return!1;return!!(i.__parent&&i.__parent._group===this)||this._nonPointGroup.hasLayer(i)},zoomToShowLayer:function(i,l){var a=this._map;typeof l!="function"&&(l=function(){});var c=function(){(a.hasLayer(i)||a.hasLayer(i.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",c,this),this.off("animationend",c,this),a.hasLayer(i)?l():i.__parent._icon&&(this.once("spiderfied",l,this),i.__parent.spiderfy()))};i._icon&&this._map.getBounds().contains(i.getLatLng())?l():i.__parent._zoom=0;a--)if(i[a]===l)return i.splice(a,1),!0},_removeFromGridUnclustered:function(i,l){for(var a=this._map,c=this._gridUnclustered,d=Math.floor(this._map.getMinZoom());l>=d&&c[l].removeObject(i,a.project(i.getLatLng(),l));l--);},_childMarkerDragStart:function(i){i.target.__dragStart=i.target._latlng},_childMarkerMoved:function(i){if(!this._ignoreMove&&!i.target.__dragStart){var l=i.target._popup&&i.target._popup.isOpen();this._moveChild(i.target,i.oldLatLng,i.latlng),l&&i.target.openPopup()}},_moveChild:function(i,l,a){i._latlng=l,this.removeLayer(i),i._latlng=a,this.addLayer(i)},_childMarkerDragEnd:function(i){var l=i.target.__dragStart;delete i.target.__dragStart,l&&this._moveChild(i.target,l,i.target._latlng)},_removeLayer:function(i,l,a){var c=this._gridClusters,d=this._gridUnclustered,f=this._featureGroup,p=this._map,g=Math.floor(this._map.getMinZoom());l&&this._removeFromGridUnclustered(i,this._maxZoom);var v=i.__parent,x=v._markers,_;for(this._arraySplice(x,i);v&&(v._childCount--,v._boundsNeedUpdate=!0,!(v._zoom"+l+"",className:"marker-cluster"+a,iconSize:new L.Point(40,40)})},_bindEvents:function(){var i=this._map,l=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,c=this.options.zoomToBoundsOnClick,d=this.options.spiderfyOnEveryZoom;(l||c||d)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),i.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(i){var l=i.layer,a=l;if(!(i.type==="clusterkeypress"&&i.originalEvent&&i.originalEvent.keyCode!==13)){for(;a._childClusters.length===1;)a=a._childClusters[0];a._zoom===this._maxZoom&&a._childCount===l._childCount&&this.options.spiderfyOnMaxZoom?l.spiderfy():this.options.zoomToBoundsOnClick&&l.zoomToBounds(),this.options.spiderfyOnEveryZoom&&l.spiderfy(),i.originalEvent&&i.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(i){var l=this._map;this._inZoomAnimation||(this._shownPolygon&&l.removeLayer(this._shownPolygon),i.layer.getChildCount()>2&&i.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(i.layer.getConvexHull(),this.options.polygonOptions),l.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var i=this.options.spiderfyOnMaxZoom,l=this.options.showCoverageOnHover,a=this.options.zoomToBoundsOnClick,c=this.options.spiderfyOnEveryZoom,d=this._map;(i||a||c)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),l&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),d.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var i=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),i),this._currentShownBounds=i}},_generateInitialClusters:function(){var i=Math.ceil(this._map.getMaxZoom()),l=Math.floor(this._map.getMinZoom()),a=this.options.maxClusterRadius,c=a;typeof a!="function"&&(c=function(){return a}),this.options.disableClusteringAtZoom!==null&&(i=this.options.disableClusteringAtZoom-1),this._maxZoom=i,this._gridClusters={},this._gridUnclustered={};for(var d=i;d>=l;d--)this._gridClusters[d]=new L.DistanceGrid(c(d)),this._gridUnclustered[d]=new L.DistanceGrid(c(d));this._topClusterLevel=new this._markerCluster(this,l-1)},_addLayer:function(i,l){var a=this._gridClusters,c=this._gridUnclustered,d=Math.floor(this._map.getMinZoom()),f,p;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(i),i.on(this._childMarkerEventHandlers,this);l>=d;l--){f=this._map.project(i.getLatLng(),l);var g=a[l].getNearObject(f);if(g){g._addChild(i),i.__parent=g;return}if(g=c[l].getNearObject(f),g){var v=g.__parent;v&&this._removeLayer(g,!1);var x=new this._markerCluster(this,l,g,i);a[l].addObject(x,this._map.project(x._cLatLng,l)),g.__parent=x,i.__parent=x;var _=x;for(p=l-1;p>v._zoom;p--)_=new this._markerCluster(this,p,_),a[p].addObject(_,this._map.project(g.getLatLng(),p));v._addChild(_),this._removeFromGridUnclustered(g,l);return}c[l].addObject(i,f)}this._topClusterLevel._addChild(i),i.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(i){i instanceof L.MarkerCluster&&i._iconNeedsUpdate&&i._updateIcon()})},_enqueue:function(i){this._queue.push(i),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var i=0;ii?(this._animationStart(),this._animationZoomOut(this._zoom,i)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(i){var l=this._maxLat;return l!==void 0&&(i.getNorth()>=l&&(i._northEast.lat=1/0),i.getSouth()<=-l&&(i._southWest.lat=-1/0)),i},_animationAddLayerNonAnimated:function(i,l){if(l===i)this._featureGroup.addLayer(i);else if(l._childCount===2){l._addToMap();var a=l.getAllChildMarkers();this._featureGroup.removeLayer(a[0]),this._featureGroup.removeLayer(a[1])}else l._updateIcon()},_extractNonGroupLayers:function(i,l){var a=i.getLayers(),c=0,d;for(l=l||[];c=0;f--)x=v[f],a.contains(x._latlng)||c.removeLayer(x)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,l),c.eachLayer(function(p){!(p instanceof L.MarkerCluster)&&p._icon&&p.clusterShow()}),this._topClusterLevel._recursively(a,i,l,function(p){p._recursivelyRestoreChildPositions(l)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,i,d,function(p){c.removeLayer(p),p.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(i,l){this._animationZoomOutSingle(this._topClusterLevel,i-1,l),this._topClusterLevel._recursivelyAddChildrenToMap(null,l,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),i,this._getExpandedVisibleBounds())},_animationAddLayer:function(i,l){var a=this,c=this._featureGroup;c.addLayer(i),l!==i&&(l._childCount>2?(l._updateIcon(),this._forceLayout(),this._animationStart(),i._setPos(this._map.latLngToLayerPoint(l.getLatLng())),i.clusterHide(),this._enqueue(function(){c.removeLayer(i),i.clusterShow(),a._animationEnd()})):(this._forceLayout(),a._animationStart(),a._animationZoomOutSingle(l,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(i,l,a){var c=this._getExpandedVisibleBounds(),d=Math.floor(this._map.getMinZoom());i._recursivelyAnimateChildrenInAndAddSelfToMap(c,d,l+1,a);var f=this;this._forceLayout(),i._recursivelyBecomeVisible(c,a),this._enqueue(function(){if(i._childCount===1){var p=i._markers[0];this._ignoreMove=!0,p.setLatLng(p.getLatLng()),this._ignoreMove=!1,p.clusterShow&&p.clusterShow()}else i._recursively(c,a,d,function(g){g._recursivelyRemoveChildrenFromMap(c,d,l+1)});f._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(i){return new L.MarkerClusterGroup(i)};var o=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(i,l,a,c){L.Marker.prototype.initialize.call(this,a?a._cLatLng||a.getLatLng():new L.LatLng(0,0),{icon:this,pane:i.options.clusterPane}),this._group=i,this._zoom=l,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,a&&this._addChild(a),c&&this._addChild(c)},getAllChildMarkers:function(i,l){i=i||[];for(var a=this._childClusters.length-1;a>=0;a--)this._childClusters[a].getAllChildMarkers(i,l);for(var c=this._markers.length-1;c>=0;c--)l&&this._markers[c].__dragStart||i.push(this._markers[c]);return i},getChildCount:function(){return this._childCount},zoomToBounds:function(i){for(var l=this._childClusters.slice(),a=this._group._map,c=a.getBoundsZoom(this._bounds),d=this._zoom+1,f=a.getZoom(),p;l.length>0&&c>d;){d++;var g=[];for(p=0;pd?this._group._map.setView(this._latlng,d):c<=f?this._group._map.setView(this._latlng,f+1):this._group._map.fitBounds(this._bounds,i)},getBounds:function(){var i=new L.LatLngBounds;return i.extend(this._bounds),i},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(i,l){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(i),i instanceof L.MarkerCluster?(l||(this._childClusters.push(i),i.__parent=this),this._childCount+=i._childCount):(l||this._markers.push(i),this._childCount++),this.__parent&&this.__parent._addChild(i,!0)},_setClusterCenter:function(i){this._cLatLng||(this._cLatLng=i._cLatLng||i._latlng)},_resetBounds:function(){var i=this._bounds;i._southWest&&(i._southWest.lat=1/0,i._southWest.lng=1/0),i._northEast&&(i._northEast.lat=-1/0,i._northEast.lng=-1/0)},_recalculateBounds:function(){var i=this._markers,l=this._childClusters,a=0,c=0,d=this._childCount,f,p,g,v;if(d!==0){for(this._resetBounds(),f=0;f=0;f--)p=d[f],p._icon&&(p._setPos(l),p.clusterHide())},function(c){var d=c._childClusters,f,p;for(f=d.length-1;f>=0;f--)p=d[f],p._icon&&(p._setPos(l),p.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(i,l,a,c){this._recursively(i,c,l,function(d){d._recursivelyAnimateChildrenIn(i,d._group._map.latLngToLayerPoint(d.getLatLng()).round(),a),d._isSingleParent()&&a-1===c?(d.clusterShow(),d._recursivelyRemoveChildrenFromMap(i,l,a)):d.clusterHide(),d._addToMap()})},_recursivelyBecomeVisible:function(i,l){this._recursively(i,this._group._map.getMinZoom(),l,null,function(a){a.clusterShow()})},_recursivelyAddChildrenToMap:function(i,l,a){this._recursively(a,this._group._map.getMinZoom()-1,l,function(c){if(l!==c._zoom)for(var d=c._markers.length-1;d>=0;d--){var f=c._markers[d];a.contains(f._latlng)&&(i&&(f._backupLatlng=f.getLatLng(),f.setLatLng(i),f.clusterHide&&f.clusterHide()),c._group._featureGroup.addLayer(f))}},function(c){c._addToMap(i)})},_recursivelyRestoreChildPositions:function(i){for(var l=this._markers.length-1;l>=0;l--){var a=this._markers[l];a._backupLatlng&&(a.setLatLng(a._backupLatlng),delete a._backupLatlng)}if(i-1===this._zoom)for(var c=this._childClusters.length-1;c>=0;c--)this._childClusters[c]._restorePosition();else for(var d=this._childClusters.length-1;d>=0;d--)this._childClusters[d]._recursivelyRestoreChildPositions(i)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(i,l,a,c){var d,f;this._recursively(i,l-1,a-1,function(p){for(f=p._markers.length-1;f>=0;f--)d=p._markers[f],(!c||!c.contains(d._latlng))&&(p._group._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow())},function(p){for(f=p._childClusters.length-1;f>=0;f--)d=p._childClusters[f],(!c||!c.contains(d._latlng))&&(p._group._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow())})},_recursively:function(i,l,a,c,d){var f=this._childClusters,p=this._zoom,g,v;if(l<=p&&(c&&c(this),d&&p===a&&d(this)),p=0;g--)v=f[g],v._boundsNeedUpdate&&v._recalculateBounds(),i.intersects(v._bounds)&&v._recursively(i,l,a,c,d)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var i=this.options.opacity;return this.setOpacity(0),this.options.opacity=i,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(i){this._cellSize=i,this._sqCellSize=i*i,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(i,l){var a=this._getCoord(l.x),c=this._getCoord(l.y),d=this._grid,f=d[c]=d[c]||{},p=f[a]=f[a]||[],g=L.Util.stamp(i);this._objectPoint[g]=l,p.push(i)},updateObject:function(i,l){this.removeObject(i),this.addObject(i,l)},removeObject:function(i,l){var a=this._getCoord(l.x),c=this._getCoord(l.y),d=this._grid,f=d[c]=d[c]||{},p=f[a]=f[a]||[],g,v;for(delete this._objectPoint[L.Util.stamp(i)],g=0,v=p.length;g=0;f--){if(p=l[f],g=this.getDistant(p,i),g>0)d.push(p);else continue;g>a&&(a=g,c=p)}return{maxPoint:c,newPoints:d}},buildConvexHull:function(i,l){var a=[],c=this.findMostDistantPointFromBaseLine(i,l);return c.maxPoint?(a=a.concat(this.buildConvexHull([i[0],c.maxPoint],c.newPoints)),a=a.concat(this.buildConvexHull([c.maxPoint,i[1]],c.newPoints)),a):[i[0]]},getConvexHull:function(i){var l=!1,a=!1,c=!1,d=!1,f=null,p=null,g=null,v=null,x=null,_=null,k;for(k=i.length-1;k>=0;k--){var b=i[k];(l===!1||b.lat>l)&&(f=b,l=b.lat),(a===!1||b.latc)&&(g=b,c=b.lng),(d===!1||b.lng=0;c--)a=i[c].getLatLng(),l.push(a);return L.QuickHull.getConvexHull(l)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var i=this.getAllChildMarkers(null,!0),l=this._group,a=l._map,c=a.latLngToLayerPoint(this._latlng),d;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?d=this._group.options.spiderfyShapePositions(i.length,c):i.length>=this._circleSpiralSwitchover?d=this._generatePointsSpiral(i.length,c):(c.y+=10,d=this._generatePointsCircle(i.length,c)),this._animationSpiderfy(i,d)}},unspiderfy:function(i){this._group._inZoomAnimation||(this._animationUnspiderfy(i),this._group._spiderfied=null)},_generatePointsCircle:function(i,l){var a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+i),c=a/this._2PI,d=this._2PI/i,f=[],p,g;for(c=Math.max(c,35),f.length=i,p=0;p=0;v--)v=0;f--)d=c[f],a.removeLayer(d),d._preSpiderfyLatlng&&(d.setLatLng(d._preSpiderfyLatlng),delete d._preSpiderfyLatlng),d.setZIndexOffset&&d.setZIndexOffset(0),d._spiderLeg&&(l.removeLayer(d._spiderLeg),delete d._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:c}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(i,l){var a=this._group,c=a._map,d=a._featureGroup,f=this._group.options.spiderLegPolylineOptions,p,g,v,x;for(a._ignoreMove=!0,p=0;p=0;k--)E=d.layerPointToLatLng(l[k]),b=i[k],b._preSpiderfyLatlng=b._latlng,b.setLatLng(E),b.clusterShow&&b.clusterShow(),v&&(w=b._spiderLeg,P=w._path,P.style.strokeDashoffset=0,w.setStyle({opacity:_}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout(function(){c._animationEnd(),c.fire("spiderfied",{cluster:a,markers:i})},200)},_animationUnspiderfy:function(i){var l=this,a=this._group,c=a._map,d=a._featureGroup,f=i?c._latLngToNewLayerPoint(this._latlng,i.zoom,i.center):c.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,!0),g=L.Path.SVG,v,x,_,k,b,w;for(a._ignoreMove=!0,a._animationStart(),this.setOpacity(1),x=p.length-1;x>=0;x--)v=p[x],v._preSpiderfyLatlng&&(v.closePopup(),v.setLatLng(v._preSpiderfyLatlng),delete v._preSpiderfyLatlng,w=!0,v._setPos&&(v._setPos(f),w=!1),v.clusterHide&&(v.clusterHide(),w=!1),w&&d.removeLayer(v),g&&(_=v._spiderLeg,k=_._path,b=k.getTotalLength()+.1,k.style.strokeDashoffset=b,_.setStyle({opacity:0})));a._ignoreMove=!1,setTimeout(function(){var P=0;for(x=p.length-1;x>=0;x--)v=p[x],v._spiderLeg&&P++;for(x=p.length-1;x>=0;x--)v=p[x],v._spiderLeg&&(v.clusterShow&&v.clusterShow(),v.setZIndexOffset&&v.setZIndexOffset(0),P>1&&d.removeLayer(v),c.removeLayer(v._spiderLeg),delete v._spiderLeg);a._animationEnd(),a.fire("unspiderfied",{cluster:l,markers:p})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(i){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(i))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(i){this._spiderfied&&this._spiderfied.unspiderfy(i)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(i){i._spiderLeg&&(this._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),this._map.removeLayer(i._spiderLeg),delete i._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(i){return i?i instanceof L.MarkerClusterGroup?i=i._topClusterLevel.getAllChildMarkers():i instanceof L.LayerGroup?i=i._layers:i instanceof L.MarkerCluster?i=i.getAllChildMarkers():i instanceof L.Marker&&(i=[i]):i=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(i),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(i),this},_flagParentsIconsNeedUpdate:function(i){var l,a;for(l in i)for(a=i[l].__parent;a;)a._iconNeedsUpdate=!0,a=a.__parent},_refreshSingleMarkerModeMarkers:function(i){var l,a;for(l in i)a=i[l],this.hasLayer(a)&&a.setIcon(this._overrideMarkerIcon(a))}}),L.Marker.include({refreshIconOptions:function(i,l){var a=this.options.icon;return L.setOptions(a,i),this.setIcon(a),l&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),n.MarkerClusterGroup=r,n.MarkerCluster=o,Object.defineProperty(n,"__esModule",{value:!0})})})(rx,rx.exports);const h4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",m4=Object.freeze(Object.defineProperty({__proto__:null,default:h4},Symbol.toStringTag,{value:"Module"})),g4=br(m4),v4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",y4=Object.freeze(Object.defineProperty({__proto__:null,default:v4},Symbol.toStringTag,{value:"Module"})),b4=br(y4),_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",C4=Object.freeze(Object.defineProperty({__proto__:null,default:_4},Symbol.toStringTag,{value:"Module"})),x4=br(C4);var Pl=Di&&Di.__assign||function(){return Pl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const e=m.useContext(Ek);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},L4={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function ft(e){return We("MuiDataGrid",e)}const K=Ue("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderTop","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--pinnedRight","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),ox=1e3;class T4{constructor(t=ox){this.timeouts=new Map,this.cleanupTimeout=ox,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class O4{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var To=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(To||{});class R4{}function F4(e){let t=0;return function(r,o,i,l){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new O4:new T4);const[a]=m.useState(new R4),c=m.useRef(null),d=m.useRef();d.current=i;const f=m.useRef(null);if(!c.current&&d.current){const p=(g,v,x)=>{var _;v.defaultMuiPrevented||(_=d.current)==null||_.call(d,g,v,x)};c.current=r.current.subscribeEvent(o,p,l),t+=1,f.current={cleanupToken:t},e.registry.register(a,()=>{var g;(g=c.current)==null||g.call(c),c.current=null,f.current=null},f.current)}else!d.current&&c.current&&(c.current(),c.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));m.useEffect(()=>{if(!c.current&&d.current){const p=(g,v,x)=>{var _;v.defaultMuiPrevented||(_=d.current)==null||_.call(d,g,v,x)};c.current=r.current.subscribeEvent(o,p,l)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=c.current)==null||p.call(c),c.current=null}},[r,o,l])}}const $4={registry:null},Re=F4($4),z4={isFirst:!0};function Tt(e,t,n){Re(e,t,n,z4)}const li=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},A4=Object.is;function Lk(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!A4(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}li(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function D4(e){return e.acceptsApiRef}function ix(e,t){return D4(t)?t(e):t(e.current.state)}const N4=Object.is,Tk=Lk,B4=()=>({state:null,equals:null,selector:null}),be=(e,t,n=N4)=>{const r=Ls(B4),o=r.current.selector!==null,[i,l]=m.useState(o?null:ix(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,$p(()=>e.current.store.subscribe(()=>{const a=ix(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,l(a))})),i},co=e=>e.dimensions;var Lf="NOT_FOUND";function H4(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Lf},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function j4(e,t){var n=[];function r(a){var c=n.findIndex(function(f){return t(a,f.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Lf}function o(a,c){r(a)===Lf&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var G4=function(t,n){return t===n};function V4(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p),_=n(g,p),k=r(g,p),b=o(g,p);return i(v,x,_,k,b)};else if(e&&t&&n&&r&&o)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p),_=n(g,p),k=r(g,p);return o(v,x,_,k)};else if(e&&t&&n&&r)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p),_=n(g,p);return r(v,x,_)};else if(e&&t&&n)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p);return n(v,x)};else if(e&&t)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p);return t(v)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},It=(...e)=>{const t=(n,r)=>{const o=al(n),i=o?n.current.instanceId:r??ul,l=o?n.current.state:n,a=sx.get(i),c=a??new Map,d=c==null?void 0:c.get(e);if(c&&d)return d(l,i);const f=Z4(...e);return a||sx.set(i,c),c.set(e,f),f(l,i)};return t.acceptsApiRef=!0,t},K4=.7,q4=1.3,X4={compact:K4,comfortable:q4,standard:1},kl=e=>e.density,yc=Qe(kl,e=>X4[e]);let pn=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const Wg={left:[],right:[]},Y4=e=>e.theme,Oo=e=>e.columns,qo=Qe(Oo,e=>e.orderedFields),qi=Qe(Oo,e=>e.lookup),so=It(qo,qi,(e,t)=>e.map(n=>t[n])),Nr=Qe(Oo,e=>e.columnVisibilityModel),bn=It(so,Nr,(e,t)=>e.filter(n=>t[n.field]!==!1)),bc=It(bn,e=>e.map(t=>t.field)),Q4=e=>e.pinnedColumns,Qp=It(Oo,Q4,bc,Y4,(e,t,n,r)=>{const o=J4(t,n,r.direction==="rtl");return{left:o.left.map(l=>e.lookup[l]),right:o.right.map(l=>e.lookup[l])}});function J4(e,t,n){var a,c;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((c=e.right)==null?void 0:c.length)===0)return Wg;const r=(d,f)=>Array.isArray(d)?d.filter(p=>f.includes(p)):[],o=r(e.left,t),i=t.filter(d=>!o.includes(d)),l=r(e.right,i);return n?{left:l,right:o}:{left:o,right:l}}const As=It(bn,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Fk=It(so,e=>e.filter(t=>t.filterable)),e3=It(so,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),t3=It(so,e=>e.some(t=>t.colSpan!==void 0)),n3=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],r3=e=>{const{classes:t}=e;return xe({root:["editInputCell"]},ft,t)},o3=de(ha,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>y({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),i3=m.forwardRef((e,t)=>{const n=De(),{id:r,value:o,field:i,colDef:l,hasFocus:a,debounceMs:c=200,isProcessingProps:d,onValueChange:f}=e,p=se(e,n3),g=ut(),v=m.useRef(),[x,_]=m.useState(o),k=r3(n),b=m.useCallback(async P=>{const M=P.target.value;f&&await f(P,M);const E=g.current.getColumn(i);let $=M;E.valueParser&&($=E.valueParser(M,g.current.getRow(r),E,g)),_($),g.current.setEditCellValue({id:r,field:i,value:$,debounceMs:c,unstable_skipValueParser:!0},P)},[g,c,i,r,f]),w=g.current.unstable_getEditCellMeta(r,i);return m.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&_(o)},[w,o]),Mt(()=>{a&&v.current.focus()},[a]),S.jsx(o3,y({ref:t,inputRef:v,className:k.root,ownerState:n,fullWidth:!0,type:l.type==="number"?l.type:"text",value:x??"",onChange:b,endAdornment:d?S.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),s3=e=>S.jsx(i3,y({},e));li(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error");const $k=(e,t)=>t&&e.length>1?[e[0]]:e,lx=(e,t)=>n=>y({},n,{sorting:y({},n.sorting,{sortModel:$k(e,t)})}),l3=e=>e==="desc",a3=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=l3(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},u3=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const l=t.params[i],a=n.params[i];return r=o.comparator(l.value,a.value,l,a),r},0),c3=(e,t)=>{const n=e.map(r=>a3(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>u3(n,o,i)).map(o=>o.node.id)},ax=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Qy=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,d3=new Intl.Collator,f3=(e,t)=>{const n=Qy(e,t);return n!==null?n:typeof e=="string"?d3.compare(e.toString(),t.toString()):e-t},zk=(e,t)=>{const n=Qy(e,t);return n!==null?n:Number(e)-Number(t)},Ak=(e,t)=>{const n=Qy(e,t);return n!==null?n:e>t?1:e{const{value:$}=E.target;x(String($)),k(!0),g.start(w.filterDebounceMs,()=>{const T=y({},t,{value:$,fromInput:b});n(T),k(!1)})},[b,n,t,w.filterDebounceMs,g]);return m.useEffect(()=>{(t.fromInput!==b||t.value===void 0)&&x(String(t.value??""))},[b,t]),S.jsx(w.slots.baseTextField,y({id:b,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:P,variant:f,type:r||"text",InputProps:y({},_||c?{endAdornment:_?S.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:a},d,{inputProps:y({tabIndex:l},d==null?void 0:d.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},p,(M=w.slotProps)==null?void 0:M.baseTextField))}function h3(e){return typeof e=="number"&&!Number.isNaN(e)}function Dk(e){return typeof e=="function"}function Jy(e){return typeof e=="object"&&e!==null}function m3(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function Dd(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const oi=(e,t,n)=>Math.max(t,Math.min(n,e));function ux(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Nl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function v3(e,t,n){const r=g3(e);return()=>t+(n-t)*r()}function Nk(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const y3=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function Bk(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:l,error:a,helperText:c,size:d,variant:f}=e,p=se(e,y3),g={color:l,error:a,helperText:c,size:d,variant:f},[v,x]=m.useState(t.value||[]),_=Ot(),k=De();m.useEffect(()=>{const w=t.value??[];x(w.map(String))},[t.value]);const b=m.useCallback((w,P)=>{x(P.map(String)),n(y({},t,{value:[...P]}))},[n,t]);return S.jsx(zP,y({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,P)=>{const{inputValue:M}=P;return M==null||M===""?[]:[M]},id:_,value:v,onChange:b,renderTags:(w,P)=>w.map((M,E)=>S.jsx(k.slots.baseChip,y({variant:"outlined",size:"small",label:M},P({index:E})))),renderInput:w=>{var P;return S.jsx(k.slots.baseTextField,y({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:y({},w.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},g,(P=k.slotProps)==null?void 0:P.baseTextField))}},p))}var Fo=function(e){return e.Cell="cell",e.Row="row",e}(Fo||{}),wt=function(e){return e.Edit="edit",e.View="view",e}(wt||{}),Lt=function(e){return e.Edit="edit",e.View="view",e}(Lt||{}),Bn=function(e){return e.And="and",e.Or="or",e}(Bn||{}),jo=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(jo||{}),to=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(to||{}),mi=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(mi||{}),vo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(vo||{});function Hk(e){return e.field!==void 0}const qu=()=>({items:[],logicOperator:Bn.And,quickFilterValues:[],quickFilterLogicOperator:Bn.And});function jk(e){return{current:e.current.getPublicApi()}}let Ua;function b3(){if(Ua!==void 0)return Ua;try{Ua=new Function("return true")()}catch{Ua=!1}return Ua}const Ug=(e,t)=>{const n=y({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=qi(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},_3=li(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),C3=li("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),x3=li("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),Gk=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(_3(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),l=o.some(a=>a.operator==null);return i&&C3(),l&&x3(),l||i?y({},e,{items:o.map(a=>Ug(a,n))}):e.items!==o?y({},e,{items:o}):e},cx=(e,t,n)=>r=>y({},r,{filterModel:Gk(e,t,n)}),Xu=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,Vk=(e,t)=>{var f;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const p=n.valueParser;r=Array.isArray(e.value)?(f=e.value)==null?void 0:f.map(g=>p(g,void 0,n,t)):p(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=Xu(r));const i=y({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=l.find(p=>p.value===i.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=jk(t),d=a.getApplyFilterFn(i,n);return typeof d!="function"?null:{item:i,fn:p=>{let g=t.current.getRowValue(p,n);return o&&(g=Xu(g)),d(g,p,n,c)}}};let dx=1;const w3=(e,t,n)=>{const{items:r}=e,o=r.map(a=>Vk(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!b3())return(a,c)=>{const d={};for(let f=0;f{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},A4=Object.is;function Lk(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!A4(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}li(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function D4(e){return e.acceptsApiRef}function ix(e,t){return D4(t)?t(e):t(e.current.state)}const N4=Object.is,Tk=Lk,B4=()=>({state:null,equals:null,selector:null}),be=(e,t,n=N4)=>{const r=Ls(B4),o=r.current.selector!==null,[i,l]=m.useState(o?null:ix(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,$p(()=>e.current.store.subscribe(()=>{const a=ix(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,l(a))})),i},co=e=>e.dimensions;var Lf="NOT_FOUND";function H4(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Lf},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function j4(e,t){var n=[];function r(a){var c=n.findIndex(function(f){return t(a,f.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Lf}function o(a,c){r(a)===Lf&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var G4=function(t,n){return t===n};function V4(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p),_=n(g,p),k=r(g,p),b=o(g,p);return i(v,x,_,k,b)};else if(e&&t&&n&&r&&o)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p),_=n(g,p),k=r(g,p);return o(v,x,_,k)};else if(e&&t&&n&&r)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p),_=n(g,p);return r(v,x,_)};else if(e&&t&&n)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p),x=t(g,p);return n(v,x)};else if(e&&t)a=(c,d)=>{const f=al(c),p=d??(f?c.current.instanceId:ul),g=f?c.current.state:c,v=e(g,p);return t(v)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},It=(...e)=>{const t=(n,r)=>{const o=al(n),i=o?n.current.instanceId:r??ul,l=o?n.current.state:n,a=sx.get(i),c=a??new Map,d=c==null?void 0:c.get(e);if(c&&d)return d(l,i);const f=Z4(...e);return a||sx.set(i,c),c.set(e,f),f(l,i)};return t.acceptsApiRef=!0,t},K4=.7,q4=1.3,X4={compact:K4,comfortable:q4,standard:1},kl=e=>e.density,bc=Qe(kl,e=>X4[e]);let pn=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const Wg={left:[],right:[]},Y4=e=>e.theme,Oo=e=>e.columns,qo=Qe(Oo,e=>e.orderedFields),qi=Qe(Oo,e=>e.lookup),so=It(qo,qi,(e,t)=>e.map(n=>t[n])),Nr=Qe(Oo,e=>e.columnVisibilityModel),bn=It(so,Nr,(e,t)=>e.filter(n=>t[n.field]!==!1)),_c=It(bn,e=>e.map(t=>t.field)),Q4=e=>e.pinnedColumns,Qp=It(Oo,Q4,_c,Y4,(e,t,n,r)=>{const o=J4(t,n,r.direction==="rtl");return{left:o.left.map(l=>e.lookup[l]),right:o.right.map(l=>e.lookup[l])}});function J4(e,t,n){var a,c;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((c=e.right)==null?void 0:c.length)===0)return Wg;const r=(d,f)=>Array.isArray(d)?d.filter(p=>f.includes(p)):[],o=r(e.left,t),i=t.filter(d=>!o.includes(d)),l=r(e.right,i);return n?{left:l,right:o}:{left:o,right:l}}const As=It(bn,e=>{const t=[];let n=0;for(let r=0;r{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),Fk=It(so,e=>e.filter(t=>t.filterable)),e3=It(so,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),t3=It(so,e=>e.some(t=>t.colSpan!==void 0)),n3=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],r3=e=>{const{classes:t}=e;return xe({root:["editInputCell"]},ft,t)},o3=de(ha,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>y({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),i3=m.forwardRef((e,t)=>{const n=De(),{id:r,value:o,field:i,colDef:l,hasFocus:a,debounceMs:c=200,isProcessingProps:d,onValueChange:f}=e,p=se(e,n3),g=ut(),v=m.useRef(),[x,_]=m.useState(o),k=r3(n),b=m.useCallback(async P=>{const M=P.target.value;f&&await f(P,M);const E=g.current.getColumn(i);let $=M;E.valueParser&&($=E.valueParser(M,g.current.getRow(r),E,g)),_($),g.current.setEditCellValue({id:r,field:i,value:$,debounceMs:c,unstable_skipValueParser:!0},P)},[g,c,i,r,f]),w=g.current.unstable_getEditCellMeta(r,i);return m.useEffect(()=>{(w==null?void 0:w.changeReason)!=="debouncedSetEditCellValue"&&_(o)},[w,o]),Mt(()=>{a&&v.current.focus()},[a]),S.jsx(o3,y({ref:t,inputRef:v,className:k.root,ownerState:n,fullWidth:!0,type:l.type==="number"?l.type:"text",value:x??"",onChange:b,endAdornment:d?S.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),s3=e=>S.jsx(i3,y({},e));li(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error");const $k=(e,t)=>t&&e.length>1?[e[0]]:e,lx=(e,t)=>n=>y({},n,{sorting:y({},n.sorting,{sortModel:$k(e,t)})}),l3=e=>e==="desc",a3=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=l3(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},u3=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const l=t.params[i],a=n.params[i];return r=o.comparator(l.value,a.value,l,a),r},0),c3=(e,t)=>{const n=e.map(r=>a3(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>u3(n,o,i)).map(o=>o.node.id)},ax=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Qy=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,d3=new Intl.Collator,f3=(e,t)=>{const n=Qy(e,t);return n!==null?n:typeof e=="string"?d3.compare(e.toString(),t.toString()):e-t},zk=(e,t)=>{const n=Qy(e,t);return n!==null?n:Number(e)-Number(t)},Ak=(e,t)=>{const n=Qy(e,t);return n!==null?n:e>t?1:e{const{value:$}=E.target;x(String($)),k(!0),g.start(w.filterDebounceMs,()=>{const T=y({},t,{value:$,fromInput:b});n(T),k(!1)})},[b,n,t,w.filterDebounceMs,g]);return m.useEffect(()=>{(t.fromInput!==b||t.value===void 0)&&x(String(t.value??""))},[b,t]),S.jsx(w.slots.baseTextField,y({id:b,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:P,variant:f,type:r||"text",InputProps:y({},_||c?{endAdornment:_?S.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:a},d,{inputProps:y({tabIndex:l},d==null?void 0:d.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},p,(M=w.slotProps)==null?void 0:M.baseTextField))}function h3(e){return typeof e=="number"&&!Number.isNaN(e)}function Dk(e){return typeof e=="function"}function Jy(e){return typeof e=="object"&&e!==null}function m3(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function Nd(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const oi=(e,t,n)=>Math.max(t,Math.min(n,e));function ux(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Nl(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function v3(e,t,n){const r=g3(e);return()=>t+(n-t)*r()}function Nk(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const y3=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function Bk(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:l,error:a,helperText:c,size:d,variant:f}=e,p=se(e,y3),g={color:l,error:a,helperText:c,size:d,variant:f},[v,x]=m.useState(t.value||[]),_=Ot(),k=De();m.useEffect(()=>{const w=t.value??[];x(w.map(String))},[t.value]);const b=m.useCallback((w,P)=>{x(P.map(String)),n(y({},t,{value:[...P]}))},[n,t]);return S.jsx(zP,y({multiple:!0,freeSolo:!0,options:[],filterOptions:(w,P)=>{const{inputValue:M}=P;return M==null||M===""?[]:[M]},id:_,value:v,onChange:b,renderTags:(w,P)=>w.map((M,E)=>S.jsx(k.slots.baseChip,y({variant:"outlined",size:"small",label:M},P({index:E})))),renderInput:w=>{var P;return S.jsx(k.slots.baseTextField,y({},w,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:y({},w.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},g,(P=k.slotProps)==null?void 0:P.baseTextField))}},p))}var Fo=function(e){return e.Cell="cell",e.Row="row",e}(Fo||{}),wt=function(e){return e.Edit="edit",e.View="view",e}(wt||{}),Lt=function(e){return e.Edit="edit",e.View="view",e}(Lt||{}),Bn=function(e){return e.And="and",e.Or="or",e}(Bn||{}),jo=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(jo||{}),to=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(to||{}),mi=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(mi||{}),vo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(vo||{});function Hk(e){return e.field!==void 0}const Xu=()=>({items:[],logicOperator:Bn.And,quickFilterValues:[],quickFilterLogicOperator:Bn.And});function jk(e){return{current:e.current.getPublicApi()}}let Ua;function b3(){if(Ua!==void 0)return Ua;try{Ua=new Function("return true")()}catch{Ua=!1}return Ua}const Ug=(e,t)=>{const n=y({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=qi(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},_3=li(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),C3=li("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),x3=li("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),Gk=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(_3(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),l=o.some(a=>a.operator==null);return i&&C3(),l&&x3(),l||i?y({},e,{items:o.map(a=>Ug(a,n))}):e.items!==o?y({},e,{items:o}):e},cx=(e,t,n)=>r=>y({},r,{filterModel:Gk(e,t,n)}),Yu=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,Vk=(e,t)=>{var f;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const p=n.valueParser;r=Array.isArray(e.value)?(f=e.value)==null?void 0:f.map(g=>p(g,void 0,n,t)):p(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=Yu(r));const i=y({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=l.find(p=>p.value===i.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=jk(t),d=a.getApplyFilterFn(i,n);return typeof d!="function"?null:{item:i,fn:p=>{let g=t.current.getRowValue(p,n);return o&&(g=Yu(g)),d(g,p,n,c)}}};let dx=1;const w3=(e,t,n)=>{const{items:r}=e,o=r.map(a=>Vk(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!b3())return(a,c)=>{const d={};for(let f=0;f`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(` `)} @@ -245,22 +245,22 @@ ${o.map((a,c)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${c} ? false `)} }; -return result$$;`.replaceAll("$$",String(dx)));return dx+=1,(a,c)=>i(o,a,c)},Wk=e=>e.quickFilterExcludeHiddenColumns??!0,S3=(e,t)=>{var a;const n=((a=e.quickFilterValues)==null?void 0:a.filter(Boolean))??[];if(n.length===0)return null;const r=Wk(e)?bc(t):qo(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,l=jk(t);return r.forEach(c=>{const d=t.current.getColumn(c),f=d==null?void 0:d.getApplyQuickFilterFn;f&&o.push({column:d,appliers:n.map(p=>{const g=i?Xu(p):p;return{fn:f(g,d,l)}})})}),function(d,f){const p={};e:for(let g=0;g{const r=w3(e,t,n),o=S3(e,t);return function(l,a,c){c.passingFilterItems=(r==null?void 0:r(l,a))??null,c.passingQuickFilterValues=(o==null?void 0:o(l,a))??null}},fx=e=>e!=null,k3=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Vk(r,t)!==null)),e.cleanedFilterItems),M3=(e,t,n,r,o)=>{const i=k3(o,r,n.items),l=e.filter(fx),a=t.filter(fx);if(l.length>0){const c=f=>l.some(p=>p[f.id]);if((n.logicOperator??qu().logicOperator)===Bn.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(a.length>0&&n.quickFilterValues!=null){const c=f=>a.some(p=>p[f]);if((n.quickFilterLogicOperator??qu().quickFilterLogicOperator)===Bn.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},I3=e=>{if(!e)return null;const t=new RegExp(Dd(e),"i");return(n,r,o,i)=>{let l=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(l=Xu(l)),l!=null?t.test(l.toString()):!1}},E3=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Dd(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:xo},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:xo},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Dd(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:xo},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Dd(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:xo},{value:"isEmpty",getApplyFilterFn:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Bk}],lo={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:f3,type:"string",align:"left",filterOperators:E3(),renderEditCell:s3,getApplyQuickFilterFn:I3},L3=["open","target","onClose","children","position","className","onExited"],T3=e=>{const{classes:t}=e;return xe({root:["menu"]},ft,t)},O3=de(Ts,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${K.menuList}`]:{outline:0}})),R3={"bottom-start":"top left","bottom-end":"top right"};function Uk(e){var _;const{open:t,target:n,onClose:r,children:o,position:i,className:l,onExited:a}=e,c=se(e,L3),d=ut(),f=De(),p=T3(f),g=m.useRef(null);Mt(()=>{var k,b;t?g.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((b=(k=g.current)==null?void 0:k.focus)==null||b.call(k),g.current=null)},[t]),m.useEffect(()=>{const k=t?"menuOpen":"menuClose";d.current.publishEvent(k,{target:n})},[d,t,n]);const v=k=>b=>{k&&k(),a&&a(b)},x=k=>{k.target&&(n===k.target||n!=null&&n.contains(k.target))||r(k)};return S.jsx(O3,y({as:f.slots.basePopper,className:pe(l,p.root),ownerState:f,open:t,anchorEl:n,transition:!0,placement:i},c,(_=f.slotProps)==null?void 0:_.basePopper,{children:({TransitionProps:k,placement:b})=>S.jsx(gP,{onClickAway:x,mouseEvent:"onMouseDown",children:S.jsx(Wu,y({},k,{style:{transformOrigin:R3[b]},onExited:v(k==null?void 0:k.onExited),children:S.jsx(Ui,{children:o})}))})}))}const F3=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],$3=e=>typeof e.getActions=="function";function z3(e){var z;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:l}=e,a=se(e,F3),[c,d]=m.useState(-1),[f,p]=m.useState(!1),g=ut(),v=m.useRef(null),x=m.useRef(null),_=m.useRef(!1),k=m.useRef({}),b=$o(),w=Ot(),P=Ot(),M=De();if(!$3(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(g.current.getRowParams(n)),$=E.filter(O=>!O.props.showInMenu),T=E.filter(O=>O.props.showInMenu),F=$.length+(T.length?1:0);m.useLayoutEffect(()=>{r||Object.entries(k.current).forEach(([O,A])=>{A==null||A.stop({},()=>{delete k.current[O]})})},[r]),m.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),m.useEffect(()=>{r||(d(-1),_.current=!1)},[r]),m.useImperativeHandle(l,()=>({focus(){if(!_.current){const O=E.findIndex(A=>!A.props.disabled);d(O)}}}),[E]),m.useEffect(()=>{c>=F&&d(F-1)},[c,F]);const B=()=>{p(!0),d(F-1),_.current=!0},H=()=>{p(!1)},W=O=>A=>{k.current[O]=A},j=(O,A)=>N=>{d(O),_.current=!0,A&&A(N)},D=O=>{if(F<=1)return;const A=(G,U)=>{var ee;if(G<0||G>E.length)return G;const Z=b.direction==="rtl"?-1:1,Y=(U==="left"?-1:1)*Z;return(ee=E[G+Y])!=null&&ee.props.disabled?A(G+Y,U):G+Y};let N=c;O.key==="ArrowRight"?N=A(c,"right"):O.key==="ArrowLeft"&&(N=A(c,"left")),!(N<0||N>=F)&&N!==c&&(O.preventDefault(),O.stopPropagation(),d(N))},R=O=>{O.key==="Tab"&&O.preventDefault(),["Tab","Escape"].includes(O.key)&&H()};return S.jsxs("div",y({role:"menu",ref:v,tabIndex:-1,className:K.actionsCell,onKeyDown:D},a,{children:[$.map((O,A)=>m.cloneElement(O,{key:A,touchRippleRef:W(A),onClick:j(A,O.props.onClick),tabIndex:c===A?o:-1})),T.length>0&&P&&S.jsx(M.slots.baseIconButton,y({ref:x,id:P,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?w:void 0,role:"menuitem",size:"small",onClick:B,touchRippleRef:W(P),tabIndex:c===$.length?o:-1},(z=M.slotProps)==null?void 0:z.baseIconButton,{children:S.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&S.jsx(Uk,{open:f,target:x.current,position:i,onClose:H,children:S.jsx(Fy,{id:w,className:K.menuList,onKeyDown:R,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:T.map((O,A)=>m.cloneElement(O,{key:A,closeMenu:H}))})})]}))}const A3=e=>S.jsx(z3,y({},e)),Jp="actions",D3=y({},lo,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:A3,getApplyQuickFilterFn:void 0}),fo=e=>e.rows,eh=Qe(fo,e=>e.totalRowCount),N3=Qe(fo,e=>e.loading),B3=Qe(fo,e=>e.totalTopLevelRowCount),Mi=Qe(fo,e=>e.dataRowIdToModelLookup),Tf=Qe(fo,e=>e.dataRowIdToIdLookup),zr=Qe(fo,e=>e.tree),H3=Qe(fo,e=>e.groupingName),px=Qe(fo,e=>e.treeDepths),th=It(fo,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),md=Qe(fo,e=>e.dataRowIds),j3=Qe(fo,e=>e==null?void 0:e.additionalRowGroups),Ds=It(j3,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),G3=Qe(Ds,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),Hn="auto-generated-group-node-root",Bl=Symbol("mui.id_autogenerated"),V3=()=>({type:"group",id:Hn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function W3(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` -`))}const Of=(e,t,n)=>{const r=t?t(e):e.id;return W3(r,e,n),r},Nd=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},l={};for(let a=0;a{const n=e[Hn];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Kk=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:l,treeDepths:a,dataRowIds:c,groupingName:d}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},y({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:Zk({tree:f.tree,rowCountProp:t}),groupingName:d,loading:n})},oa=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,eb=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const r=new Map;n.forEach(d=>{const f=Of(d,t,"A row was provided without id when calling updateRows():");r.has(f)?r.set(f,y({},r.get(f),d)):r.set(f,d)});const o={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:y({},e.updates.idToActionLookup)},i=y({},e.dataRowIdToModelLookup),l=y({},e.dataRowIdToIdLookup),a={insert:{},modify:{},remove:{}};r.forEach((d,f)=>{const p=o.idToActionLookup[f];if(d._action==="delete"){if(p==="remove"||!i[f])return;p!=null&&(a[p][f]=!0),o.actions.remove.push(f),delete i[f],delete l[f];return}const g=i[f];if(g){p==="remove"?(a.remove[f]=!0,o.actions.modify.push(f)):p==null&&o.actions.modify.push(f),i[f]=y({},g,d);return}p==="remove"?(a.remove[f]=!0,o.actions.insert.push(f)):p==null&&o.actions.insert.push(f),i[f]=d,l[f]=f});const c=Object.keys(a);for(let d=0;d0&&(o.actions[f]=o.actions[f].filter(g=>!p[g]))}return{dataRowIdToModelLookup:i,dataRowIdToIdLookup:l,updates:o,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function Z3(e){var o,i;const t=Ds(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((l,a)=>(l+=e.current.unstable_getRowHeight(a.id),l),0))||0,r=((i=t==null?void 0:t.bottom)==null?void 0:i.reduce((l,a)=>(l+=e.current.unstable_getRowHeight(a.id),l),0))||0;return{top:n,bottom:r}}function qk(e){return`var(--DataGrid-overlayHeight, ${2*co(e.current.state).rowHeight}px)`}const K3=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],q3=e=>{const{classes:t}=e;return xe({root:["booleanCell"]},ft,t)};function X3(e){const{value:t}=e,n=se(e,K3),r=ut(),o=De(),i={classes:o.classes},l=q3(i),a=m.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return S.jsx(a,y({fontSize:"small",className:l.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const Y3=m.memo(X3),Q3=e=>e.field!=="__row_group_by_columns_group__"&&oa(e.rowNode)?"":S.jsx(Y3,y({},e)),J3=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],eG=e=>{const{classes:t}=e;return xe({root:["editBooleanCell"]},ft,t)};function tG(e){var b;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:l}=e,a=se(e,J3),c=ut(),d=m.useRef(null),f=Ot(),[p,g]=m.useState(n),v=De(),x={classes:v.classes},_=eG(x),k=m.useCallback(async w=>{const P=w.target.checked;l&&await l(w,P),g(P),await c.current.setEditCellValue({id:t,field:r,value:P},w)},[c,r,t,l]);return m.useEffect(()=>{g(n)},[n]),Mt(()=>{i&&d.current.focus()},[i]),S.jsx("label",y({htmlFor:f,className:pe(_.root,o)},a,{children:S.jsx(v.slots.baseCheckbox,y({id:f,inputRef:d,checked:!!p,onChange:k,size:"small"},(b=v.slotProps)==null?void 0:b.baseCheckbox))}))}const nG=e=>S.jsx(tG,y({},e)),rG=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],oG=de("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function iG(e){var M,E,$;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:l,label:a,variant:c="standard"}=e,d=se(e,rG),[f,p]=m.useState(t.value||""),g=De(),v=Ot(),x=Ot(),_=((M=g.slotProps)==null?void 0:M.baseSelect)||{},k=_.native??!1,b=((E=g.slotProps)==null?void 0:E.baseSelectOption)||{},w=m.useCallback(T=>{const F=T.target.value;p(F),n(y({},t,{value:F}))},[n,t]);m.useEffect(()=>{p(t.value||"")},[t.value]);const P=a??r.current.getLocaleText("filterPanelInputLabel");return S.jsxs(oG,{children:[S.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[S.jsx(g.slots.baseInputLabel,y({},($=g.slotProps)==null?void 0:$.baseInputLabel,{id:v,shrink:!0,variant:c,children:P})),S.jsxs(g.slots.baseSelect,y({labelId:v,id:x,label:P,value:f,onChange:w,variant:c,notched:c==="outlined"?!0:void 0,native:k,displayEmpty:!0,inputProps:{ref:o,tabIndex:l}},d,_,{children:[S.jsx(g.slots.baseSelectOption,y({},b,{native:k,value:"",children:r.current.getLocaleText("filterValueAny")})),S.jsx(g.slots.baseSelectOption,y({},b,{native:k,value:"true",children:r.current.getLocaleText("filterValueTrue")})),S.jsx(g.slots.baseSelectOption,y({},b,{native:k,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}const sG=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=String(e.value)==="true";return n=>!!n===t},InputComponent:iG}],lG=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),aG=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Xk=y({},lo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Q3,renderEditCell:nG,sortComparator:zk,valueFormatter:lG,filterOperators:sG(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>aG(e)}),uG=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],cG=e=>{const{classes:t}=e;return xe({root:["checkboxInput"]},ft,t)},dG=m.forwardRef(function(t,n){var E;const{field:r,id:o,value:i,rowNode:l,hasFocus:a,tabIndex:c}=t,d=se(t,uG),f=ut(),p=De(),g={classes:p.classes},v=cG(g),x=m.useRef(null),_=m.useRef(null),k=Ct(x,n),b=$=>{const T={value:$.target.checked,id:o};f.current.publishEvent("rowSelectionCheckboxChange",T,$)};m.useLayoutEffect(()=>{if(c===0){const $=f.current.getCellElement(o,r);$&&($.tabIndex=-1)}},[f,c,o,r]),m.useEffect(()=>{var $;if(a){const T=($=x.current)==null?void 0:$.querySelector("input");T==null||T.focus({preventScroll:!0})}else _.current&&_.current.stop({})},[a]);const w=m.useCallback($=>{$.key===" "&&$.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=f.current.isRowSelectable(o),M=f.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return S.jsx(p.slots.baseCheckbox,y({ref:k,tabIndex:c,checked:i,onChange:b,className:v.root,inputProps:{"aria-label":M},onKeyDown:w,disabled:!P,touchRippleRef:_},(E=p.slotProps)==null?void 0:E.baseCheckbox,d))}),fG=dG;function tb(e){return e.signature===To.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const nh=e=>e.focus,Er=Qe(nh,e=>e.cell),pG=Qe(nh,e=>e.columnHeader);Qe(nh,e=>e.columnHeaderFilter);const Rf=Qe(nh,e=>e.columnGroupHeader),rh=e=>e.tabIndex,nb=Qe(rh,e=>e.cell),Yk=Qe(rh,e=>e.columnHeader);Qe(rh,e=>e.columnHeaderFilter);const hG=Qe(rh,e=>e.columnGroupHeader),Lr=e=>e.rowSelection,mG=Qe(Lr,e=>e.length),gG=It(Lr,Mi,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Ff=It(Lr,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Qk=e=>e.sorting,rb=Qe(Qk,e=>e.sortedRows),ob=It(rb,Mi,zr,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];i&&r.push({id:o,model:i});const l=n[o];return l&&oa(l)&&r.push({id:o,model:{[Bl]:o}}),r},[])),Tr=Qe(Qk,e=>e.sortModel),vG=It(Tr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),ib=e=>e.filter,vn=Qe(ib,e=>e.filterModel);Qe(vn,e=>e.quickFilterValues);const yG=e=>e.visibleRowsLookup,Jk=Qe(ib,e=>e.filteredRowsLookup);Qe(ib,e=>e.filteredDescendantCountLookup);const Xi=It(yG,ob,(e,t)=>t.filter(n=>e[n.id]!==!1)),vu=It(Xi,e=>e.map(t=>t.id)),bG=It(Jk,ob,(e,t)=>t.filter(n=>e[n.id]!==!1)),_G=It(bG,e=>e.map(t=>t.id)),eM=It(Xi,zr,th,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),tM=Qe(Xi,e=>e.length),nM=Qe(eM,e=>e.length),CG=It(vn,qi,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var l,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((l=o==null?void 0:o.filterOperators)==null?void 0:l.length)===0)return!1;const i=o.filterOperators.find(c=>c.value===r.operator);return i?!i.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),xG=It(CG,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{}));function tt(e,t,n){const r=m.useRef(!0);m.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function mn(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const rM=(e,t,n,r,o)=>{const i=mn(e,"useNativeEventListener"),[l,a]=m.useState(!1),c=m.useRef(r),d=Dk(t)?t():(t==null?void 0:t.current)??null,f=m.useCallback(p=>c.current&&c.current(p),[]);m.useEffect(()=>{c.current=r},[r]),m.useEffect(()=>{if(d&&n&&!l){i.debug(`Binding native ${n} event`),d.addEventListener(n,f,o),a(!0);const p=()=>{i.debug(`Clearing native ${n} event`),d.removeEventListener(n,f,o)};e.current.subscribeEvent("unmount",p)}},[d,f,n,l,i,o,e])},_c=e=>{const t=m.useRef(!0);t.current&&(t.current=!1,e())},wG=()=>{};function SG(e,t,n){const r=m.useRef(null);r.current=t,Mt(()=>{if(typeof ResizeObserver>"u")return wG;const o=e.current,i=new ResizeObserver(l=>{r.current(l)});return o&&i.observe(o),()=>{i.disconnect()}},[e,n])}const PG=()=>{},kG=(e,t)=>{const n=m.useRef(!1);Mt(()=>n.current||!e?PG:(n.current=!0,t()),[n.current||e])},MG=100,IG=e=>e?0:100,oM=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,iM=e=>({page:0,pageSize:e?0:100}),EG=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),sM=(e,t)=>{if(t===To.DataGrid&&e>MG)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`))},oh=e=>e.pagination,Nn=Qe(oh,e=>e.paginationModel),Ml=Qe(oh,e=>e.rowCount),tu=Qe(oh,e=>e.meta),LG=Qe(Nn,e=>e.page),TG=Qe(Nn,e=>e.pageSize),lM=Qe(Nn,Ml,(e,t)=>oM(t,e.pageSize,e.page)),sb=It(Nn,zr,th,Xi,eM,(e,t,n,r,o)=>{var v;const i=o.length,l=Math.min(e.pageSize*e.page,i-1),a=Math.min(l+e.pageSize-1,i-1);if(l===-1||a===-1)return null;if(n<2)return{firstRowIndex:l,lastRowIndex:a};const c=o[l],d=a-l+1,f=r.findIndex(x=>x.id===c.id);let p=f,g=0;for(;p0)&&(p+=1),_===0&&(g+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),OG=It(Xi,sb,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),aM=It(vu,sb,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),RG=["field","colDef"],FG=e=>{const{classes:t}=e;return xe({root:["checkboxInput"]},ft,t)},$G=m.forwardRef(function(t,n){var T;const r=se(t,RG),[,o]=m.useState(!1),i=ut(),l=De(),a={classes:l.classes},c=FG(a),d=be(i,Yk),f=be(i,Lr),p=be(i,vu),g=be(i,aM),v=m.useMemo(()=>typeof l.isRowSelectable!="function"?f:f.filter(F=>i.current.getRow(F)?l.isRowSelectable(i.current.getRowParams(F)):!1),[i,l.isRowSelectable,f]),x=m.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?p:g).reduce((B,H)=>(B[H]=!0,B),{}),[l.pagination,l.checkboxSelectionVisibleOnly,g,p]),_=m.useMemo(()=>v.filter(F=>x[F]).length,[v,x]),k=_>0&&_0,w=F=>{const B={value:F.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",B)},P=d!==null&&d.field===t.field?0:-1;m.useLayoutEffect(()=>{const F=i.current.getColumnHeaderElement(t.field);P===0&&F&&(F.tabIndex=-1)},[P,i,t.field]);const M=m.useCallback(F=>{F.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),E=m.useCallback(()=>{o(F=>!F)},[]);m.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const $=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return S.jsx(l.slots.baseCheckbox,y({ref:n,indeterminate:k,checked:b,onChange:w,className:c.root,inputProps:{"aria-label":$},tabIndex:P,onKeyDown:M,disabled:!tb(l)},(T=l.slotProps)==null?void 0:T.baseCheckbox,r))}),gi="__check__",ga=y({},Xk,{type:"custom",field:gi,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=Ff(r),i=r.current.getRowId(t);return o[i]!==void 0},renderHeader:e=>S.jsx($G,y({},e)),renderCell:e=>S.jsx(fG,y({},e))}),zG=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function hx(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function rl(e){var P;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:l,clearButton:a,tabIndex:c,disabled:d}=e,f=se(e,zG),p=Dr(),[g,v]=m.useState(()=>hx(t.value,r)),[x,_]=m.useState(!1),k=Ot(),b=De(),w=m.useCallback(M=>{p.clear();const E=M.target.value;v(E),_(!0),p.start(b.filterDebounceMs,()=>{const $=new Date(E);n(y({},t,{value:Number.isNaN($.getTime())?void 0:$})),_(!1)})},[n,t,b.filterDebounceMs,p]);return m.useEffect(()=>{const M=hx(t.value,r);v(M)},[t.value,r]),S.jsx(b.slots.baseTextField,y({fullWidth:!0,id:k,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:w,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:y({},x||a?{endAdornment:x?S.jsx(b.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:d},l,{inputProps:y({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},f,(P=b.slotProps)==null?void 0:P.baseTextField))}function ol(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return l=>{if(!l)return!1;if(r)return t(l.getTime(),i);const a=new Date(l);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),i)}}const uM=e=>[{value:"is",getApplyFilterFn:t=>ol(t,(n,r)=>n===r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>ol(t,(n,r)=>n!==r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>ol(t,(n,r)=>n>r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>ol(t,(n,r)=>n>=r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>ol(t,(n,r)=>nol(t,(n,r)=>n<=r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],AG=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],DG=de(ha)({fontSize:"inherit"}),NG=e=>{const{classes:t}=e;return xe({root:["editInputCell"]},ft,t)};function BG(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:l,onValueChange:a}=e,c=se(e,AG),d=o.type==="dateTime",f=ut(),p=m.useRef(),g=m.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let E;return M==null||Number.isNaN(M.getTime())?E="":E=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:M,formatted:E}},[n,d]),[v,x]=m.useState(g),k={classes:De().classes},b=NG(k),w=m.useCallback(M=>{if(M==="")return null;const[E,$]=M.split("T"),[T,F,B]=E.split("-"),H=new Date;if(H.setFullYear(Number(T),Number(F)-1,Number(B)),H.setHours(0,0,0,0),$){const[W,j]=$.split(":");H.setHours(Number(W),Number(j),0,0)}return H},[]),P=m.useCallback(async M=>{const E=M.target.value,$=w(E);a&&await a(M,$),x({parsed:$,formatted:E}),f.current.setEditCellValue({id:t,field:r,value:$},M)},[f,r,t,a,w]);return m.useEffect(()=>{x(M=>{var E,$;return g.parsed!==M.parsed&&((E=g.parsed)==null?void 0:E.getTime())!==(($=M.parsed)==null?void 0:$.getTime())?g:M})},[g]),Mt(()=>{i&&p.current.focus()},[i]),S.jsx(DG,y({inputRef:p,fullWidth:!0,className:b.root,type:d?"datetime-local":"date",inputProps:y({max:d?"9999-12-31T23:59":"9999-12-31"},l),value:v.formatted,onChange:P},c))}const cM=e=>S.jsx(BG,y({},e));function dM({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` -`))}const HG=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return dM({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},jG=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return dM({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},GG=y({},lo,{type:"date",sortComparator:Ak,valueFormatter:HG,filterOperators:uM(),renderEditCell:cM,pastedValueParser:e=>new Date(e)}),VG=y({},lo,{type:"dateTime",sortComparator:Ak,valueFormatter:jG,filterOperators:uM(!0),renderEditCell:cM,pastedValueParser:e=>new Date(e)}),bi=e=>e==null?null:Number(e),WG=e=>e==null||Number.isNaN(e)||e===""?null:t=>bi(t)===bi(e),UG=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>bi(t)===e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>bi(t)!==e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)>e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)>=e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)<=e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Bk,InputComponentProps:{type:"number"}}],ZG=y({},lo,{type:"number",align:"right",headerAlign:"right",sortComparator:zk,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>h3(e)?e.toLocaleString():e||"",filterOperators:UG(),getApplyQuickFilterFn:WG}),$f=e=>e==="Escape",fM=e=>e==="Tab";function pM(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const zf=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",KG=e=>!!e.key,qG=e=>fM(e)||$f(e);function hM(e){return!!((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()==="v"&&!e.shiftKey&&!e.altKey)}function ia(e){return(e==null?void 0:e.type)==="singleSelect"}function Ps(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(y({field:e.field},t)):e.valueOptions}function Af(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const XG=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],YG=["MenuProps"];function QG(e){return!!e.key}function JG(e){var j,D;const t=De(),{id:n,value:r,field:o,row:i,colDef:l,hasFocus:a,error:c,onValueChange:d,initialOpen:f=t.editMode===Fo.Cell}=e,p=se(e,XG),g=ut(),v=m.useRef(),x=m.useRef(),[_,k]=m.useState(f),w=(((j=t.slotProps)==null?void 0:j.baseSelect)||{}).native??!1,P=((D=t.slotProps)==null?void 0:D.baseSelect)||{},{MenuProps:M}=P,E=se(P,YG);if(Mt(()=>{var R;a&&((R=x.current)==null||R.focus())},[a]),!ia(l))return null;const $=Ps(l,{id:n,row:i});if(!$)return null;const T=l.getOptionValue,F=l.getOptionLabel,B=async R=>{if(!ia(l)||!$)return;k(!1);const z=R.target,O=Af(z.value,$,T);d&&await d(R,O),await g.current.setEditCellValue({id:n,field:o,value:O},R)},H=(R,z)=>{if(t.editMode===Fo.Row){k(!1);return}if(z==="backdropClick"||$f(R.key)){const O=g.current.getCellParams(n,o);g.current.publishEvent("cellEditStop",y({},O,{reason:$f(R.key)?to.escapeKeyDown:to.cellFocusOut}))}},W=R=>{QG(R)&&R.key==="Enter"||k(!0)};return!$||!l?null:S.jsx(t.slots.baseSelect,y({ref:v,inputRef:x,value:r,onChange:B,open:_,onOpen:W,MenuProps:y({onClose:H},M),error:c,native:w,fullWidth:!0},p,E,{children:$.map(R=>{var O;const z=T(R);return m.createElement(t.slots.baseSelectOption,y({},((O=t.slotProps)==null?void 0:O.baseSelectOption)||{},{native:w,key:z,value:z}),F(R))})}))}const eV=e=>S.jsx(JG,y({},e)),tV=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],nV=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...Ps(e)||[]].map(a=>{const c=r(a);let d=n(a);return d===""&&(d=" "),m.createElement(t,y({},i,{native:o,key:c,value:c}),d)}),rV=de("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function mx(e){var T,F,B,H,W;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:l,tabIndex:a,label:c,variant:d="standard",clearButton:f}=e,p=se(e,tV),g=t.value??"",v=Ot(),x=Ot(),_=De(),k=((F=(T=_.slotProps)==null?void 0:T.baseSelect)==null?void 0:F.native)??!1;let b=null;if(t.field){const j=o.current.getColumn(t.field);ia(j)&&(b=j)}const w=b==null?void 0:b.getOptionValue,P=b==null?void 0:b.getOptionLabel,M=m.useMemo(()=>Ps(b),[b]),E=m.useCallback(j=>{let D=j.target.value;D=Af(D,M,w),n(y({},t,{value:D}))},[M,w,n,t]);if(!ia(b))return null;const $=c??o.current.getLocaleText("filterPanelInputLabel");return S.jsxs(rV,{children:[S.jsxs(_.slots.baseFormControl,{fullWidth:!0,children:[S.jsx(_.slots.baseInputLabel,y({},(B=_.slotProps)==null?void 0:B.baseInputLabel,{id:x,htmlFor:v,shrink:!0,variant:d,children:$})),S.jsx(_.slots.baseSelect,y({id:v,label:$,labelId:x,value:g,onChange:E,variant:d,type:r||"text",inputProps:{tabIndex:a,ref:i,placeholder:l??o.current.getLocaleText("filterPanelInputPlaceholder")},native:k,notched:d==="outlined"?!0:void 0},p,(H=_.slotProps)==null?void 0:H.baseSelect,{children:nV({column:b,OptionComponent:_.slots.baseSelectOption,getOptionLabel:P,getOptionValue:w,isSelectNative:k,baseSelectOptionProps:(W=_.slotProps)==null?void 0:W.baseSelectOption})}))]}),f]})}const oV=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],iV=EP();function sV(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:l,helperText:a,size:c,variant:d="standard"}=e,f=se(e,oV),p={color:i,error:l,helperText:a,size:c,variant:d},g=Ot(),v=De();let x=null;if(t.field){const E=r.current.getColumn(t.field);ia(E)&&(x=E)}const _=x==null?void 0:x.getOptionValue,k=x==null?void 0:x.getOptionLabel,b=m.useCallback((E,$)=>_(E)===_($),[_]),w=m.useMemo(()=>Ps(x)||[],[x]),P=m.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,$)=>{const T=w.find(F=>_(F)===$);return T!=null&&E.push(T),E},[]):[],[_,t.value,w]),M=m.useCallback((E,$)=>{n(y({},t,{value:$.map(_)}))},[n,t,_]);return S.jsx(zP,y({multiple:!0,options:w,isOptionEqualToValue:b,filterOptions:iV,id:g,value:P,onChange:M,getOptionLabel:k,renderTags:(E,$)=>E.map((T,F)=>S.jsx(v.slots.baseChip,y({variant:"outlined",size:"small",label:k(T)},$({index:F})))),renderInput:E=>{var $;return S.jsx(v.slots.baseTextField,y({},E,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:y({},E.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},p,($=v.slotProps)==null?void 0:$.baseTextField))}},f))}const il=e=>e==null||!Jy(e)?e:e.value,lV=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>il(t)===il(e.value),InputComponent:mx},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>il(t)!==il(e.value),InputComponent:mx},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(il);return n=>t.includes(il(n))},InputComponent:sV}],aV=e=>typeof e[0]=="object",uV=e=>Jy(e)?e.value:e,cV=e=>Jy(e)?e.label:String(e),dV=y({},lo,{type:"singleSelect",getOptionLabel:cV,getOptionValue:uV,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!ia(n))return"";const i=Ps(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!aV(i))return n.getOptionLabel(e);const l=i.find(a=>n.getOptionValue(a)===e);return l?n.getOptionLabel(l):""},renderEditCell:eV,filterOperators:lV(),pastedValueParser:(e,t,n)=>{const r=n,o=Ps(r)||[],i=r.getOptionValue;if(o.find(a=>i(a)===e))return e}}),fV="string",pV=()=>({string:lo,number:ZG,date:GG,dateTime:VG,boolean:Xk,singleSelect:dV,[Jp]:D3,custom:lo}),lb=e=>e.headerFiltering,hV=Qe(lb,e=>(e==null?void 0:e.enabled)??!1),mV=Qe(lb,e=>e.editing),gV=Qe(lb,e=>e.menuOpen),ih=e=>e.columnGrouping,mM=It(ih,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),gM=It(ih,e=>(e==null?void 0:e.lookup)??{}),vV=It(ih,e=>(e==null?void 0:e.headerStructure)??[]),Cc=Qe(ih,e=>(e==null?void 0:e.maxDepth)??0),vM=["maxWidth","minWidth","width","flex"],bm=pV();function yV({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(l=>l.field)),o={all:{},frozenFields:[],freeze:l=>{const a=o.all[l];a&&a.frozen!==!0&&(o.all[l].frozen=!0,o.frozenFields.push(l))}};function i(){if(o.frozenFields.length===r.size)return;const l={min:{},max:{}};let a=e,c=t,d=0;o.frozenFields.forEach(f=>{a-=o.all[f].computedWidth,c-=o.all[f].flex});for(let f=0;fp.maxWidth&&(d+=p.maxWidth-v,v=p.maxWidth,l.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:v,flex:p.flex}}d<0?Object.keys(l.max).forEach(f=>{o.freeze(f)}):d>0?Object.keys(l.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),i()}return i(),o.all}const Zg=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(c=>{let d=e.lookup[c],f=0,p=!1;e.columnVisibilityModel[c]!==!1&&(d.flex&&d.flex>0?(r+=d.flex,p=!0):f=oi(d.width||lo.width,d.minWidth||lo.minWidth,d.maxWidth||lo.maxWidth),o+=f),d.computedWidth!==f&&(d=y({},d,{computedWidth:f})),p&&i.push(d),n[c]=d});const l=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(l-o,0);if(r>0&&l>0){const c=yV({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(c).forEach(d=>{n[d].computedWidth=c[d].computedWidth})}return y({},e,{lookup:n})},bV=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},l=[];for(let f=0;f!i[f])],c=y({},e.lookup);for(let f=0;f{g[v]=x===-1?1/0:x}),c[p]=g}return y({},e,{orderedFields:a,lookup:c})};function gx(e){let t=bm[fV];return e&&bm[e]&&(t=bm[e]),t}const cl=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Nr(e),keepOnlyColumnsToUpsert:o=!1})=>{var f,p;const i=!e.current.state.columns;let l;if(i)l={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const g=Oo(e.current.state);l={orderedFields:o?[]:[...g.orderedFields],lookup:y({},g.lookup),columnVisibilityModel:r}}let a={};o&&!i&&(a=Object.keys(l.lookup).reduce((g,v)=>y({},g,{[v]:!1}),{})),t.forEach(g=>{const{field:v}=g;a[v]=!0;let x=l.lookup[v];x==null?(x=y({},gx(g.type),{field:v,hasBeenResized:!1}),l.orderedFields.push(v)):o&&l.orderedFields.push(v),x&&x.type!==g.type&&(x=y({},gx(g.type),{field:v}));let _=x.hasBeenResized;vM.forEach(k=>{g[k]!==void 0&&(_=!0,g[k]===-1&&(g[k]=1/0))}),l.lookup[v]=y({},x,g,{hasBeenResized:_})}),o&&!i&&Object.keys(l.lookup).forEach(g=>{a[g]||delete l.lookup[g]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",l),d=bV(c,n);return Zg(d,((p=(f=e.current).getRootDimensions)==null?void 0:p.call(f))??void 0)};function _V({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let l=n;l{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return xe(r,ft,n)},wV=xt("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${K["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${K["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${K["scrollArea--left"]}`]:{left:0},[`&.${K["scrollArea--right"]}`]:{right:0}}));function SV(e){const{scrollDirection:t}=e,n=m.useRef(null),r=ut(),o=Dr(),i=be(r,yc),l=be(r,Rk),a=be(r,co),c=m.useRef({left:0,top:0}),d=()=>{if(t==="left")return c.current.left>0;if(t==="right"){const F=l-a.viewportInnerSize.width;return c.current.left{c.current=F,v(d)},E=at(F=>{let B;if(F.preventDefault(),t==="left")B=F.clientX-n.current.getBoundingClientRect().right;else if(t==="right")B=Math.max(1,F.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");B=(B-vx)*CV+vx,o.start(0,()=>{r.current.scroll({left:c.current.left+B,top:c.current.top})})}),$=at(()=>{p(!0)}),T=at(()=>{p(!1)});return Re(r,"scrollPositionChange",M),Re(r,"columnHeaderDragStart",$),Re(r,"columnHeaderDragEnd",T),!f||!g?null:S.jsx(wV,{ref:n,className:pe(k.root),ownerState:_,onDragOver:E,style:P})}const yx=Yi(SV),yM=m.createContext(void 0);function ai(){const e=m.useContext(yM);if(e===void 0)throw new Error(["MUI X: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` -`));return e}const Yu=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=sb(e),n=OG(e)):(n=Xi(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Ns=(e,t)=>{const n=Yu(e,t);return m.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},va=e=>e.rowsMeta,ub=e=>e.virtualization,PV=Qe(ub,e=>e.enabled),cb=Qe(ub,e=>e.enabledForColumns),db=Qe(ub,e=>e.renderContext),kV=It(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),bM={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},MV=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0,renderContext:bM};return y({},e,{virtualization:n})};function IV(e,t){const n=i=>{e.current.setState(l=>y({},l,{virtualization:y({},l.virtualization,{enabled:i})}))};tt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(l=>y({},l,{virtualization:y({},l.virtualization,{enabledForColumns:i})}))}},"public"),m.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const _m=50;var Jt=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(Jt||{});const bx={top:0,left:0},EV=Object.freeze(new Map),LV=(e,t,n,r,o)=>({direction:Jt.NONE,buffer:CM(e,Jt.NONE,t,n,r,o)});let Kg=!1;try{typeof window<"u"&&(Kg=/jsdom/.test(window.navigator.userAgent))}catch{}const TV=()=>{const e=ai(),t=De(),n=be(e,bn),r=be(e,PV)&&!Kg,o=be(e,cb)&&!Kg,i=be(e,co),l=i.viewportOuterSize,a=be(e,Ds),c=be(e,Qp),d=a.bottom.length>0,[f,p]=m.useState(EV),g=$o(),v=be(e,Er),x=be(e,nb),_=be(e,va),k=be(e,Ff),b=Ns(e,t),w=e.current.rootElementRef,P=e.current.mainElementRef,M=e.current.virtualScrollerRef,E=m.useRef(null),$=m.useRef(null),T=i.contentSize.height,F=i.columnsTotalWidth,B=be(e,t3);SG(P,()=>e.current.resize());const H=m.useRef(bx),W=m.useRef(bx),j=m.useRef(bM),D=be(e,db),R=Dr(),z=m.useRef(void 0),O=Ls(()=>LV(g.direction,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,_m*6)).current,A={rowIndex:m.useMemo(()=>v?b.rows.findIndex(re=>re.id===v.id):-1,[v,b.rows]),columnIndex:m.useMemo(()=>v?n.findIndex(re=>re.field===v.field):-1,[v,n])},N=m.useCallback(re=>{if(FV(re,e.current.state.virtualization.renderContext))return;const oe=re.firstRowIndex!==j.current.firstRowIndex||re.lastRowIndex!==j.current.lastRowIndex;e.current.setState(ge=>y({},ge,{virtualization:y({},ge.virtualization,{renderContext:re})})),i.isReady&&oe&&(j.current=re,e.current.publishEvent("renderedRowsIntervalChange",re)),W.current=H.current},[e,i.isReady]),G=()=>{const re={top:M.current.scrollTop,left:M.current.scrollLeft},oe=re.left-H.current.left,ge=re.top-H.current.top,ve=oe!==0||ge!==0;H.current=re;const ye=ve?$V(oe,ge):Jt.NONE,Ee=Math.abs(H.current.top-W.current.top),$e=Math.abs(H.current.left-W.current.left),we=Ee>=i.rowHeight||$e>=_m,Ce=O.direction!==ye;if(!(we||Ce))return D;if(Ce)switch(ye){case Jt.NONE:case Jt.LEFT:case Jt.RIGHT:z.current=void 0;break;default:z.current=D;break}O.direction=ye,O.buffer=CM(g.direction,ye,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,_m*6);const Ie=Cm(e,t,r,o),Ye=xm(Ie,H.current,O);return oc.flushSync(()=>{N(Ye)}),R.start(1e3,G),Ye},U=()=>{const re=Cm(e,t,r,o),oe=xm(re,H.current,O);N(oe)},Z=at(re=>{const{scrollTop:oe,scrollLeft:ge}=re.currentTarget;if(oe<0||g.direction==="ltr"&&ge<0||g.direction==="rtl"&&ge>0)return;const ve=G();e.current.publishEvent("scrollPositionChange",{top:oe,left:ge,renderContext:ve})}),Y=at(re=>{e.current.publishEvent("virtualScrollerWheel",{},re)}),ee=at(re=>{e.current.publishEvent("virtualScrollerTouchMove",{},re)}),Q=(re={})=>{var He;if(!re.rows&&!b.range)return[];const oe=re.renderContext??D,ge=!d&&re.position===void 0||d&&re.position==="bottom",ve=re.position!==void 0;let ye;switch(re.position){case"top":ye=0;break;case"bottom":ye=a.top.length+b.rows.length;break;case void 0:ye=a.top.length;break}const Ee=re.rows??b.rows,$e=oe.firstRowIndex,we=Math.min(oe.lastRowIndex,Ee.length),Ce=re.rows?ux(0,re.rows.length):ux($e,we);let Je=-1;!ve&&A.rowIndex!==-1&&(A.rowIndex<$e&&(Je=A.rowIndex,Ce.unshift(Je)),A.rowIndex>=we&&(Je=A.rowIndex,Ce.push(Je)));const Ie=[],Ye=(He=t.slotProps)==null?void 0:He.row,Ve=As(e);return Ce.forEach(je=>{var jt,sr,Xt;const{id:ze,model:ke}=Ee[je];if(B){const Yt=c.left.length,rn=n.length-c.right.length;e.current.calculateColSpan({rowId:ze,minFirstColumn:Yt,maxLastColumn:rn,columns:n}),c.left.length>0&&e.current.calculateColSpan({rowId:ze,minFirstColumn:0,maxLastColumn:c.left.length,columns:n}),c.right.length>0&&e.current.calculateColSpan({rowId:ze,minFirstColumn:n.length-c.right.length,maxLastColumn:n.length,columns:n})}const Ze=(v==null?void 0:v.id)===ze,Ne=e.current.rowHasAutoHeight(ze)?"auto":e.current.unstable_getRowHeight(ze);let Le;k[ze]==null?Le=!1:Le=e.current.isRowSelectable(ze);let fe=!1;re.position===void 0&&(fe=je===0);let ae=!1;if(ge)if(ve)ae=je===Ee.length-1;else{const Yt=b.rows.length-1;je===Yt&&(ae=!0)}const st=je===Je;let ct=null;x!==null&&x.id===ze&&(ct=e.current.getCellParams(ze,x.field).cellMode==="view"?x.field:null);let Me=oe;!ve&&z.current&&je>=z.current.firstRowIndex&&je=l.width,te=m.useMemo(()=>({overflowX:X?void 0:"hidden",overflowY:t.autoHeight?"hidden":void 0}),[X,t.autoHeight]),me=m.useMemo(()=>{const re=Math.max(T,1),oe={width:X?F:"auto",height:re};return t.autoHeight&&(b.rows.length===0?oe.height=qk(e):oe.height=T),oe},[e,F,T,X,t.autoHeight,b.rows.length]);return m.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,me]),Mt(()=>{e.current.resize()},[e,_.currentPageTotalHeight]),Mt(()=>{r&&(M.current.scrollLeft=0,M.current.scrollTop=0)},[r,w,M]),kG(l.width!==0,()=>{const re=Cm(e,t,r,o),oe=xm(re,H.current,O);N(oe),e.current.publishEvent("scrollPositionChange",{top:H.current.top,left:H.current.left,renderContext:oe})}),e.current.register("private",{updateRenderContext:U}),Re(e,"columnsChange",U),Re(e,"filteredRowsSet",U),Re(e,"rowExpansionChange",U),{renderContext:D,setPanels:p,getRows:Q,getContainerProps:()=>({ref:P}),getScrollerProps:()=>({ref:M,tabIndex:-1,onScroll:Z,onWheel:Y,onTouchMove:ee,style:te,role:"presentation"}),getContentProps:()=>({style:me,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:E,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:$,role:"presentation"})}};function Cm(e,t,n,r){const o=co(e.current.state),i=Yu(e,t),l=bn(e),a=e.current.state.rows.dataRowIds.at(-1),c=l.at(-1);return{enabled:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:a!==void 0?e.current.unstable_getRowHeight(a):0,lastColumnWidth:(c==null?void 0:c.computedWidth)??0,rowsMeta:va(e.current.state),columnPositions:As(e),rows:i.rows,range:i.range,pinnedColumns:Qp(e),visibleColumns:l}}function xm(e,t,n){let r;if(!e.enabled)r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length};else{const{top:i,left:l}=t,a=Math.abs(l)+e.leftPinnedWidth,c=Math.min(_x(e,i,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1),d=e.autoHeight?c+e.rows.length:_x(e,i+e.viewportInnerHeight);let f=0,p=e.columnPositions.length;if(e.enabledForColumns){let g=!1;const[v,x]=qg({firstIndex:c,lastIndex:d,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let _=v;_=e.range.lastRowIndex);const i=oi(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Hi(t,e.rowsMeta.positions,n):RV(t,e.rowsMeta.positions,i,n)}function OV(e,t,n){const[r,o]=qg({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,l]=qg({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=_V({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:l}}function Hi(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),l=t[i];let a;if(n!=null&&n.atStart){const c=(i===t.length-1?n.lastPosition:t[i+1])-l;a=e-c=Math.abs(e)?t>0?Jt.DOWN:Jt.UP:e>0?Jt.RIGHT:Jt.LEFT}function CM(e,t,n,r,o,i){if(e==="rtl")switch(t){case Jt.LEFT:t=Jt.RIGHT;break;case Jt.RIGHT:t=Jt.LEFT;break}switch(t){case Jt.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Jt.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case Jt.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case Jt.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case Jt.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const zV=xt("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),AV=xt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),DV=e=>{const{classes:t}=e;return xe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function NV(e){const t=ut(),n=De(),r=Ns(t,n),o=be(t,co);let i=o.viewportOuterSize.height-o.headersTotalHeight-(o.hasScrollX?o.scrollbarSize:0);(n.autoHeight&&r.rows.length===0||i===0)&&(i=qk(t));const l=DV(y({},e,{classes:n.classes}));return S.jsx(zV,{className:pe(l.root),overlayType:e.overlayType,children:S.jsx(AV,y({className:pe(l.inner),style:{height:i,width:o.viewportOuterSize.width}},e))})}function BV(){var d,f,p;const e=ut(),t=De(),n=be(e,eh),r=be(e,tM),o=be(e,N3),i=!o&&n===0,l=!o&&n>0&&r===0;let a=null,c="";return i&&(a=S.jsx(t.slots.noRowsOverlay,y({},(d=t.slotProps)==null?void 0:d.noRowsOverlay)),c="noRowsOverlay"),l&&(a=S.jsx(t.slots.noResultsOverlay,y({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),c="noResultsOverlay"),o&&(a=S.jsx(t.slots.loadingOverlay,y({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),c="loadingOverlay"),a===null?null:S.jsx(NV,{overlayType:c,children:a})}const Bd=e=>e.columnMenu;function HV(){var k;const e=ai(),t=De(),n=be(e,bn),r=be(e,xG),o=be(e,vG),i=be(e,Yk),l=be(e,nb),a=be(e,hG),c=be(e,pG),d=be(e,Rf),f=be(e,Cc),p=be(e,Bd),g=be(e,Nr),v=be(e,vV),x=!(a===null&&i===null&&l===null),_=m.useRef(null);return e.current.register("private",{columnHeadersContainerRef:_}),S.jsx(t.slots.columnHeaders,y({ref:_,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:x},(k=t.slotProps)==null?void 0:k.columnHeaders))}const jV=Yi(HV),GV=()=>{const e=ai(),t=De(),n=be(e,bn),r=be(e,eh),o=be(e,Cc),i=be(e,G3);let l="grid";return t.treeData&&(l="treegrid"),{role:l,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":tb(t)}},VV=xt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden"}),WV=m.forwardRef((e,t)=>{const n=GV(),r=De();return S.jsx(VV,y({ref:t,ownerState:r,className:e.className,tabIndex:-1},n,{children:e.children}))}),UV=()=>xe({root:["topContainer"]},ft,{}),ZV=xt("div")({position:"sticky",zIndex:4,top:0,"&::after":{content:'" "',position:"absolute",zIndex:5,bottom:0,left:0,right:0,height:1,width:"var(--DataGrid-rowWidth)",backgroundColor:"var(--DataGrid-rowBorderColor)"}});function KV(e){const t=UV();return S.jsx(ZV,y({},e,{className:pe(t.root,e.className,K["container--top"]),role:"presentation"}))}const qV=()=>xe({root:["bottomContainer"]},ft,{}),XV=xt("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function YV(e){const t=qV();return S.jsx(XV,y({},e,{className:pe(t.root,e.className,K["container--bottom"]),role:"presentation"}))}const QV=(e,t)=>{const{classes:n}=e;return xe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},JV=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),eW=m.forwardRef(function(t,n){var l;const r=De(),o=!r.autoHeight&&((l=t.style)==null?void 0:l.minHeight)==="auto",i=QV(r,o);return S.jsx(JV,y({ref:n},t,{ownerState:r,className:pe(i.root,t.className)}))}),tW=xt("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),xM=xt("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),nW=xt(xM)({left:0,borderRight:"1px solid var(--DataGrid-rowBorderColor)"}),rW=xt(xM)({right:0,borderLeft:"1px solid var(--DataGrid-rowBorderColor)"}),oW=xt("div")({flexGrow:1,borderTop:"1px solid var(--DataGrid-rowBorderColor)"});function iW(){const e=ut(),{viewportOuterSize:t,minimumSize:n,hasScrollX:r,hasScrollY:o,scrollbarSize:i,leftPinnedWidth:l,rightPinnedWidth:a}=be(e,co),c=r?i:0,d=t.height-n.height-c,f=Math.max(c,d);return f===0?null:S.jsxs(tW,{className:K.filler,role:"presentation",style:{height:f},children:[l>0&&S.jsx(nW,{className:K["filler--pinnedLeft"],style:{width:l}}),S.jsx(oW,{}),a>0&&S.jsx(rW,{className:K["filler--pinnedRight"],style:{width:a+(o?i:0)}})]})}const sW=Yi(iW),lW=["className"],aW=e=>{const{classes:t}=e;return xe({root:["virtualScrollerRenderZone"]},ft,t)},uW=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),cW=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,lW),i=ut(),l=De(),a=aW(l),c=be(i,()=>{const d=db(i);return va(i.current.state).positions[d.firstRowIndex]??0});return S.jsx(uW,y({ref:n,className:pe(a.root,r),ownerState:l,style:{transform:`translate3d(0, ${c}px, 0)`}},o))}),dW={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Qu=e=>e.preferencePanel;var ks=function(e){return e.filters="filters",e.columns="columns",e}(ks||{});const fW=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return xe(r,ft,n)},wM=xt("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),pW=xt(wM)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),hW=xt(wM)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),mW=xt("div")({display:"inline-block"}),Cx=m.forwardRef(function(t,n){const r=ai(),o=De(),i=m.useRef(!1),l=m.useRef(0),a=m.useRef(null),c=m.useRef(null),d=fW(o,t.position),f=be(r,co),p=t.position==="vertical"?"height":"width",g=t.position==="vertical"?"scrollTop":"scrollLeft",v=t.position==="vertical"?f.hasScrollX:f.hasScrollY,x=f.minimumSize[p]+(v?f.scrollbarSize:0),k=(t.position==="vertical"?f.viewportInnerSize.height:f.viewportOuterSize.width)*(x/f.viewportOuterSize[p]),b=at(()=>{const M=r.current.virtualScrollerRef.current,E=a.current;if(M[g]===l.current)return;if(i.current){i.current=!1;return}i.current=!0;const $=M[g]/x;E[g]=$*k,l.current=M[g]}),w=at(()=>{const M=r.current.virtualScrollerRef.current,E=a.current;if(i.current){i.current=!1;return}i.current=!0;const $=E[g]/k;M[g]=$*x});$p(()=>{const M=r.current.virtualScrollerRef.current,E=a.current;return M.addEventListener("scroll",b,{capture:!0}),E.addEventListener("scroll",w,{capture:!0}),()=>{M.removeEventListener("scroll",b,{capture:!0}),E.removeEventListener("scroll",w,{capture:!0})}}),m.useEffect(()=>{c.current.style.setProperty(p,`${k}px`)},[k,p]);const P=t.position==="vertical"?pW:hW;return S.jsx(P,{ref:Ct(n,a),className:d.root,tabIndex:-1,children:S.jsx(mW,{ref:c,className:d.content})})}),gW=(e,t)=>{const{classes:n}=e,r={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight"],scroller:["virtualScroller"]};return xe(r,ft,n)},vW=xt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function yW(e){const t=ut(),n=De(),r=be(t,co),o=gW(n,r),i=TV(),{getContainerProps:l,getScrollerProps:a,getContentProps:c,getRenderZoneProps:d,getScrollbarVerticalProps:f,getScrollbarHorizontalProps:p,getRows:g}=i,v=g();return S.jsxs(WV,y({className:o.root},l(),{children:[S.jsx(yx,{scrollDirection:"left"}),S.jsx(yx,{scrollDirection:"right"}),S.jsxs(vW,y({className:o.scroller},a(),{ownerState:n,children:[S.jsxs(KV,{children:[S.jsx(jV,{}),S.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:i})]}),S.jsx(BV,{}),S.jsx(eW,y({},c(),{children:S.jsxs(cW,y({},d(),{children:[v,S.jsx(n.slots.detailPanels,{virtualScroller:i})]}))})),v.length>0&&S.jsx(sW,{}),S.jsx(YV,{children:S.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:i})})]})),r.hasScrollY&&S.jsx(Cx,y({position:"vertical"},f())),r.hasScrollX&&S.jsx(Cx,y({position:"horizontal"},p())),e.children]}))}function bW(){var t;const e=De();return e.hideFooter?null:S.jsx(e.slots.footer,y({},(t=e.slotProps)==null?void 0:t.footer))}let wm;function _W(){return wm===void 0&&document.createElement("div").focus({get preventScroll(){return wm=!0,!1}}),wm}function CW(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Df(e,t){return e.closest(`.${t}`)}function Qi(e){return e.replace(/["\\]/g,"\\$&")}function xW(e,t){return e.querySelector(`[role="columnheader"][data-field="${Qi(t)}"]`)}function SM(e){return`.${K.row}[data-id="${Qi(String(e))}"]`}function wW(e,t){return e.querySelector(SM(t))}function SW(e,{id:t,field:n}){const r=SM(t),o=`.${K.cell}[data-field="${Qi(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function xc(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function PW(e){return e.getAttribute("data-field")}function kW(e,t){return e.querySelector(`[data-field="${Qi(t)}"]`)}function MW(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function IW(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Qi(t)}-|"]`)??[])}function EW(e,t){var l;if(!Df(e,K.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(l=t.virtualScrollerRef)!=null&&l.current?(MM(t).forEach(a=>{const c=a.getAttribute("data-id");if(!c)return;let d=o;const f=t.unstable_getCellColSpanInfo(c,o);f&&f.spannedByColSpan&&(d=f.leftVisibleCellIndex);const p=a.querySelector(`[data-colindex="${d}"]`);p&&i.push(p)}),i):[]}function xx(e,t){return e.rootElementRef.current.querySelector(`.${K[t]}`)}const PM=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return MM(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${K[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const c=ya(a);c!==null&&r(c)&&o.push(a)})}),o};function LW(e,t){const n=ya(t);return PM({api:e,colIndex:n,position:"left",filterFn:r=>r>n})}function TW(e,t){const n=ya(t);return PM({api:e,colIndex:n,position:"right",filterFn:r=>r{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${K[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(l=>{const a=ya(l);a!==null&&r(a)&&o.push(l)}),o};function OW(e,t){const n=ya(t);return kM({api:e,position:"left",colIndex:n,filterFn:r=>r>n})}function RW(e,t){const n=ya(t);return kM({api:e,position:"right",colIndex:n,filterFn:r=>r div > [data-field="${Qi(t)}"][role="columnheader"]`)}function $W(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Qi(t)}"][role="gridcell"]`))}function MM(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${K.row}`)}function ya(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}class Hd extends Error{}function zW(e){const t=m.useCallback(p=>({field:p,colDef:e.current.getColumn(p)}),[e]),n=m.useCallback(p=>{const g=e.current.getRow(p);if(!g)throw new Hd(`No row with id #${p} found`);return{id:p,columns:e.current.getAllColumns(),row:g}},[e]),r=m.useCallback((p,g)=>{const v=e.current.getColumn(g),x=e.current.getRow(p),_=e.current.getRowNode(p);if(!x||!_)throw new Hd(`No row with id #${p} found`);const k=x[g],b=v!=null&&v.valueGetter?v.valueGetter(k,x,v,e):k,w=Er(e),P=nb(e),M={id:p,field:g,row:x,rowNode:_,colDef:v,cellMode:e.current.getCellMode(p,g),hasFocus:w!==null&&w.field===g&&w.id===p,tabIndex:P&&P.field===g&&P.id===p?0:-1,value:b,formattedValue:b,isEditable:!1};return v&&v.valueFormatter&&(M.formattedValue=v.valueFormatter(b,x,v,e)),M.isEditable=v&&e.current.isCellEditable(M),M},[e]),o=m.useCallback((p,g)=>{const v=e.current.getColumn(g),x=e.current.getRow(p);if(!x)throw new Hd(`No row with id #${p} found`);return!v||!v.valueGetter?x[g]:v.valueGetter(x[v.field],x,v,e)},[e]),i=m.useCallback((p,g)=>{const v=g.field;if(!g||!g.valueGetter)return p[v];const x=p[g.field];return g.valueGetter(x,p,g,e)},[e]),l=m.useCallback((p,g)=>{const v=i(p,g);return!g||!g.valueFormatter?v:g.valueFormatter(v,p,g,e)},[e,i]),a=m.useCallback(p=>e.current.rootElementRef.current?xW(e.current.rootElementRef.current,p):null,[e]),c=m.useCallback(p=>e.current.rootElementRef.current?wW(e.current.rootElementRef.current,p):null,[e]),d=m.useCallback((p,g)=>e.current.rootElementRef.current?SW(e.current.rootElementRef.current,{id:p,field:g}):null,[e]);tt(e,{getCellValue:o,getCellParams:r,getCellElement:d,getRowValue:i,getRowFormattedValue:l,getRowParams:n,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a},"public")}const fb=(e,t,n,r,o)=>{const i=t===n-1;return e===pn.LEFT&&i?!0:r?e===pn.LEFT?!0:e===pn.RIGHT?!i:!i||o:!1},pb=(e,t)=>e===pn.RIGHT&&t===0,AW=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],DW=["changeReason","unstable_updateValueOnRender"];let Yn=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const IM={[Yn.LEFT]:pn.LEFT,[Yn.RIGHT]:pn.RIGHT,[Yn.NONE]:void 0,[Yn.VIRTUAL]:void 0},wx={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:wt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},NW=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:l,isSelectionMode:a,classes:c}=e,d={root:["cell",`cell--text${ce(t)}`,l&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Yn.LEFT&&"cell--pinnedLeft",o===Yn.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]};return xe(d,ft,c)},BW=m.forwardRef(function(t,n){var Ne;const{column:r,rowId:o,editCellState:i,align:l,colIndex:a,width:c,className:d,style:f,colSpan:p,disableDragEvents:g,isNotVisible:v,pinnedOffset:x,pinnedPosition:_,sectionIndex:k,sectionLength:b,gridHasFiller:w,onClick:P,onDoubleClick:M,onMouseDown:E,onMouseUp:$,onMouseOver:T,onKeyDown:F,onKeyUp:B,onDragEnter:H,onDragOver:W}=t,j=se(t,AW),D=ut(),R=De(),z=r.field,O=be(D,()=>{try{const fe=D.current.getCellParams(o,z);return fe.api=D.current,fe}catch(Le){if(Le instanceof Hd)return wx;throw Le}},Tk),A=be(D,()=>D.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:z})),{cellMode:N,hasFocus:G,isEditable:U=!1,value:Z}=O,Y=r.type==="actions"&&((Ne=r.getActions)==null?void 0:Ne.call(r,D.current.getRowParams(o)).some(Le=>!Le.props.disabled)),ee=(N==="view"||!U)&&!Y?O.tabIndex:-1,{classes:Q,getCellClassName:X}=R,me=[be(D,()=>D.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:z}).filter(Boolean).join(" "))];r.cellClassName&&me.push(typeof r.cellClassName=="function"?r.cellClassName(O):r.cellClassName),r.display==="flex"&&me.push(K["cell--flex"]),X&&me.push(X(O));const re=O.formattedValue??Z,oe=m.useRef(null),ge=Ct(n,oe),ve=m.useRef(null),ye=R.cellSelection??!1,Ee=IM[_],$e=pb(Ee,k),we=fb(Ee,k,b,R.showCellVerticalBorder,w),Ce={align:l,showLeftBorder:$e,showRightBorder:we,isEditable:U,classes:R.classes,pinnedPosition:_,isSelected:A,isSelectionMode:ye},Je=NW(Ce),Ie=m.useCallback(Le=>fe=>{const ae=D.current.getCellParams(o,z||"");D.current.publishEvent(Le,ae,fe),$&&$(fe)},[D,z,$,o]),Ye=m.useCallback(Le=>fe=>{const ae=D.current.getCellParams(o,z||"");D.current.publishEvent(Le,ae,fe),E&&E(fe)},[D,z,E,o]),Ve=m.useCallback((Le,fe)=>ae=>{if(!D.current.getRow(o))return;const Pe=D.current.getCellParams(o,z||"");D.current.publishEvent(Le,Pe,ae),fe&&fe(ae)},[D,z,o]),He=m.useMemo(()=>{if(v)return{padding:0,opacity:0,width:0,border:0};const Le=y({"--width":`${c}px`},f);return _===Yn.LEFT&&(Le.left=x),_===Yn.RIGHT&&(Le.right=x),Le},[c,v,f,x,_]);if(m.useEffect(()=>{if(!G||N===wt.Edit)return;const Le=zt(D.current.rootElementRef.current);if(oe.current&&!oe.current.contains(Le.activeElement)){const fe=oe.current.querySelector('[tabindex="0"]'),ae=ve.current||fe||oe.current;if(_W())ae.focus({preventScroll:!0});else{const Pe=D.current.getScrollPosition();ae.focus(),D.current.scroll(Pe)}}},[G,N,D]),O===wx)return null;let je=j.onFocus,ze,ke;if(i===null&&r.renderCell&&(ze=r.renderCell(O)),i!==null&&r.renderEditCell){const Le=D.current.getRowWithUpdatedValues(o,r.field),fe=se(i,DW),ae=r.valueFormatter?r.valueFormatter(i.value,Le,r,D):O.formattedValue,Pe=y({},O,{row:Le,formattedValue:ae},fe);ze=r.renderEditCell(Pe),me.push(K["cell--editing"]),me.push(Q==null?void 0:Q["cell--editing"])}if(ze===void 0){const Le=re==null?void 0:re.toString();ze=Le,ke=Le}m.isValidElement(ze)&&Y&&(ze=m.cloneElement(ze,{focusElementRef:ve}));const Ze=g?null:{onDragEnter:Ve("cellDragEnter",H),onDragOver:Ve("cellDragOver",W)};return S.jsx("div",y({ref:ge,className:pe(d,me,Je.root),role:"gridcell","data-field":z,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":p,style:He,title:ke,tabIndex:ee,onClick:Ve("cellClick",P),onDoubleClick:Ve("cellDoubleClick",M),onMouseOver:Ve("cellMouseOver",T),onMouseDown:Ye("cellMouseDown"),onMouseUp:Ie("cellMouseUp"),onKeyDown:Ve("cellKeyDown",F),onKeyUp:Ve("cellKeyUp",B)},Ze,j,{onFocus:je,children:ze}))}),HW=Yi(BW),jW=["field","align","width","height"],GW=v3(1e4,20,80),VW=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ce(t)}`,"withBorderColor"]};return xe(r,ft,n)};function WW(e){const{align:t,width:n,height:r}=e,o=se(e,jW),l={classes:De().classes,align:t},a=VW(l),c=Math.round(GW());return S.jsx("div",y({className:a.root,style:{height:r,maxWidth:n,minWidth:n}},o,{children:S.jsx(GH,{width:`${c}%`,height:25})}))}const UW=Yi(WW);function ZW(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?YR(fs(e.palette.divider,1),.88):XR(fs(e.palette.divider,1),.68)}const Sx={[`.${K.columnSeparator}, .${K["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},Px={[`& .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.menuIcon}`]:{width:"auto",visibility:"visible"}},KW=de("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${K.autoHeight}`]:t.autoHeight},{[`&.${K.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${K["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${K["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${K["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${K.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${K["root--disableUserSelection"]} .${K.cell}`]:t["root--disableUserSelection"]},{[`&.${K.autosizing}`]:t.autosizing},{[`& .${K.editBooleanCell}`]:t.editBooleanCell},{[`& .${K.cell}`]:t.cell},{[`& .${K["cell--editing"]}`]:t["cell--editing"]},{[`& .${K["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${K["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${K["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${K["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${K["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${K["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${K["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${K["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${K.cellCheckbox}`]:t.cellCheckbox},{[`& .${K.cellSkeleton}`]:t.cellSkeleton},{[`& .${K.checkboxInput}`]:t.checkboxInput},{[`& .${K["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${K["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${K["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${K["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${K["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${K["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${K["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${K["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${K["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${K.columnHeader}`]:t.columnHeader},{[`& .${K.headerFilterRow}`]:t.headerFilterRow},{[`& .${K.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${K.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${K.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${K["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${K["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${K.columnSeparator}`]:t.columnSeparator},{[`& .${K.filterIcon}`]:t.filterIcon},{[`& .${K.iconSeparator}`]:t.iconSeparator},{[`& .${K.menuIcon}`]:t.menuIcon},{[`& .${K.menuIconButton}`]:t.menuIconButton},{[`& .${K.menuOpen}`]:t.menuOpen},{[`& .${K.menuList}`]:t.menuList},{[`& .${K["row--editable"]}`]:t["row--editable"]},{[`& .${K["row--editing"]}`]:t["row--editing"]},{[`& .${K["row--dragging"]}`]:t["row--dragging"]},{[`& .${K.row}`]:t.row},{[`& .${K.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${K.rowReorderCell}`]:t.rowReorderCell},{[`& .${K["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${K.sortIcon}`]:t.sortIcon},{[`& .${K.withBorderColor}`]:t.withBorderColor},{[`& .${K.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${K.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${K.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${K["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var k,b;const t=ZW(e),n=e.shape.borderRadius,r=e.vars?e.vars.palette.background.default:((k=e.mixins.MuiDataGrid)==null?void 0:k.containerBackground)??e.palette.background.default,o=((b=e.mixins.MuiDataGrid)==null?void 0:b.pinnedBackground)??r,i=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:fs(e.palette.background.default,e.palette.action.disabledOpacity),l=(e.vars||e).palette.action.hoverOpacity,a=(e.vars||e).palette.action.hover,c=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${c})`:fs(e.palette.primary.main,c),f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( +return result$$;`.replaceAll("$$",String(dx)));return dx+=1,(a,c)=>i(o,a,c)},Wk=e=>e.quickFilterExcludeHiddenColumns??!0,S3=(e,t)=>{var a;const n=((a=e.quickFilterValues)==null?void 0:a.filter(Boolean))??[];if(n.length===0)return null;const r=Wk(e)?_c(t):qo(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,l=jk(t);return r.forEach(c=>{const d=t.current.getColumn(c),f=d==null?void 0:d.getApplyQuickFilterFn;f&&o.push({column:d,appliers:n.map(p=>{const g=i?Yu(p):p;return{fn:f(g,d,l)}})})}),function(d,f){const p={};e:for(let g=0;g{const r=w3(e,t,n),o=S3(e,t);return function(l,a,c){c.passingFilterItems=(r==null?void 0:r(l,a))??null,c.passingQuickFilterValues=(o==null?void 0:o(l,a))??null}},fx=e=>e!=null,k3=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>Vk(r,t)!==null)),e.cleanedFilterItems),M3=(e,t,n,r,o)=>{const i=k3(o,r,n.items),l=e.filter(fx),a=t.filter(fx);if(l.length>0){const c=f=>l.some(p=>p[f.id]);if((n.logicOperator??Xu().logicOperator)===Bn.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(a.length>0&&n.quickFilterValues!=null){const c=f=>a.some(p=>p[f]);if((n.quickFilterLogicOperator??Xu().quickFilterLogicOperator)===Bn.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},I3=e=>{if(!e)return null;const t=new RegExp(Nd(e),"i");return(n,r,o,i)=>{let l=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(l=Yu(l)),l!=null?t.test(l.toString()):!1}},E3=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Nd(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:xo},{value:"equals",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:xo},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Nd(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:xo},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Nd(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:xo},{value:"isEmpty",getApplyFilterFn:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Bk}],lo={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:f3,type:"string",align:"left",filterOperators:E3(),renderEditCell:s3,getApplyQuickFilterFn:I3},L3=["open","target","onClose","children","position","className","onExited"],T3=e=>{const{classes:t}=e;return xe({root:["menu"]},ft,t)},O3=de(Ts,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${K.menuList}`]:{outline:0}})),R3={"bottom-start":"top left","bottom-end":"top right"};function Uk(e){var _;const{open:t,target:n,onClose:r,children:o,position:i,className:l,onExited:a}=e,c=se(e,L3),d=ut(),f=De(),p=T3(f),g=m.useRef(null);Mt(()=>{var k,b;t?g.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((b=(k=g.current)==null?void 0:k.focus)==null||b.call(k),g.current=null)},[t]),m.useEffect(()=>{const k=t?"menuOpen":"menuClose";d.current.publishEvent(k,{target:n})},[d,t,n]);const v=k=>b=>{k&&k(),a&&a(b)},x=k=>{k.target&&(n===k.target||n!=null&&n.contains(k.target))||r(k)};return S.jsx(O3,y({as:f.slots.basePopper,className:pe(l,p.root),ownerState:f,open:t,anchorEl:n,transition:!0,placement:i},c,(_=f.slotProps)==null?void 0:_.basePopper,{children:({TransitionProps:k,placement:b})=>S.jsx(gP,{onClickAway:x,mouseEvent:"onMouseDown",children:S.jsx(Uu,y({},k,{style:{transformOrigin:R3[b]},onExited:v(k==null?void 0:k.onExited),children:S.jsx(Ui,{children:o})}))})}))}const F3=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],$3=e=>typeof e.getActions=="function";function z3(e){var z;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:l}=e,a=se(e,F3),[c,d]=m.useState(-1),[f,p]=m.useState(!1),g=ut(),v=m.useRef(null),x=m.useRef(null),_=m.useRef(!1),k=m.useRef({}),b=$o(),w=Ot(),P=Ot(),M=De();if(!$3(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(g.current.getRowParams(n)),$=E.filter(O=>!O.props.showInMenu),T=E.filter(O=>O.props.showInMenu),F=$.length+(T.length?1:0);m.useLayoutEffect(()=>{r||Object.entries(k.current).forEach(([O,A])=>{A==null||A.stop({},()=>{delete k.current[O]})})},[r]),m.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),m.useEffect(()=>{r||(d(-1),_.current=!1)},[r]),m.useImperativeHandle(l,()=>({focus(){if(!_.current){const O=E.findIndex(A=>!A.props.disabled);d(O)}}}),[E]),m.useEffect(()=>{c>=F&&d(F-1)},[c,F]);const B=()=>{p(!0),d(F-1),_.current=!0},H=()=>{p(!1)},W=O=>A=>{k.current[O]=A},j=(O,A)=>N=>{d(O),_.current=!0,A&&A(N)},D=O=>{if(F<=1)return;const A=(G,U)=>{var ee;if(G<0||G>E.length)return G;const Z=b.direction==="rtl"?-1:1,Y=(U==="left"?-1:1)*Z;return(ee=E[G+Y])!=null&&ee.props.disabled?A(G+Y,U):G+Y};let N=c;O.key==="ArrowRight"?N=A(c,"right"):O.key==="ArrowLeft"&&(N=A(c,"left")),!(N<0||N>=F)&&N!==c&&(O.preventDefault(),O.stopPropagation(),d(N))},R=O=>{O.key==="Tab"&&O.preventDefault(),["Tab","Escape"].includes(O.key)&&H()};return S.jsxs("div",y({role:"menu",ref:v,tabIndex:-1,className:K.actionsCell,onKeyDown:D},a,{children:[$.map((O,A)=>m.cloneElement(O,{key:A,touchRippleRef:W(A),onClick:j(A,O.props.onClick),tabIndex:c===A?o:-1})),T.length>0&&P&&S.jsx(M.slots.baseIconButton,y({ref:x,id:P,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?w:void 0,role:"menuitem",size:"small",onClick:B,touchRippleRef:W(P),tabIndex:c===$.length?o:-1},(z=M.slotProps)==null?void 0:z.baseIconButton,{children:S.jsx(M.slots.moreActionsIcon,{fontSize:"small"})})),T.length>0&&S.jsx(Uk,{open:f,target:x.current,position:i,onClose:H,children:S.jsx(Fy,{id:w,className:K.menuList,onKeyDown:R,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:T.map((O,A)=>m.cloneElement(O,{key:A,closeMenu:H}))})})]}))}const A3=e=>S.jsx(z3,y({},e)),Jp="actions",D3=y({},lo,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:A3,getApplyQuickFilterFn:void 0}),fo=e=>e.rows,eh=Qe(fo,e=>e.totalRowCount),N3=Qe(fo,e=>e.loading),B3=Qe(fo,e=>e.totalTopLevelRowCount),Mi=Qe(fo,e=>e.dataRowIdToModelLookup),Tf=Qe(fo,e=>e.dataRowIdToIdLookup),zr=Qe(fo,e=>e.tree),H3=Qe(fo,e=>e.groupingName),px=Qe(fo,e=>e.treeDepths),th=It(fo,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),gd=Qe(fo,e=>e.dataRowIds),j3=Qe(fo,e=>e==null?void 0:e.additionalRowGroups),Ds=It(j3,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),G3=Qe(Ds,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),Hn="auto-generated-group-node-root",Bl=Symbol("mui.id_autogenerated"),V3=()=>({type:"group",id:Hn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function W3(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` +`))}const Of=(e,t,n)=>{const r=t?t(e):e.id;return W3(r,e,n),r},Bd=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},l={};for(let a=0;a{const n=e[Hn];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Kk=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:l,treeDepths:a,dataRowIds:c,groupingName:d}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},y({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:Zk({tree:f.tree,rowCountProp:t}),groupingName:d,loading:n})},oa=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,eb=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const r=new Map;n.forEach(d=>{const f=Of(d,t,"A row was provided without id when calling updateRows():");r.has(f)?r.set(f,y({},r.get(f),d)):r.set(f,d)});const o={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:y({},e.updates.idToActionLookup)},i=y({},e.dataRowIdToModelLookup),l=y({},e.dataRowIdToIdLookup),a={insert:{},modify:{},remove:{}};r.forEach((d,f)=>{const p=o.idToActionLookup[f];if(d._action==="delete"){if(p==="remove"||!i[f])return;p!=null&&(a[p][f]=!0),o.actions.remove.push(f),delete i[f],delete l[f];return}const g=i[f];if(g){p==="remove"?(a.remove[f]=!0,o.actions.modify.push(f)):p==null&&o.actions.modify.push(f),i[f]=y({},g,d);return}p==="remove"?(a.remove[f]=!0,o.actions.insert.push(f)):p==null&&o.actions.insert.push(f),i[f]=d,l[f]=f});const c=Object.keys(a);for(let d=0;d0&&(o.actions[f]=o.actions[f].filter(g=>!p[g]))}return{dataRowIdToModelLookup:i,dataRowIdToIdLookup:l,updates:o,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function Z3(e){var o,i;const t=Ds(e),n=((o=t==null?void 0:t.top)==null?void 0:o.reduce((l,a)=>(l+=e.current.unstable_getRowHeight(a.id),l),0))||0,r=((i=t==null?void 0:t.bottom)==null?void 0:i.reduce((l,a)=>(l+=e.current.unstable_getRowHeight(a.id),l),0))||0;return{top:n,bottom:r}}function qk(e){return`var(--DataGrid-overlayHeight, ${2*co(e.current.state).rowHeight}px)`}const K3=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],q3=e=>{const{classes:t}=e;return xe({root:["booleanCell"]},ft,t)};function X3(e){const{value:t}=e,n=se(e,K3),r=ut(),o=De(),i={classes:o.classes},l=q3(i),a=m.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return S.jsx(a,y({fontSize:"small",className:l.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const Y3=m.memo(X3),Q3=e=>e.field!=="__row_group_by_columns_group__"&&oa(e.rowNode)?"":S.jsx(Y3,y({},e)),J3=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],eG=e=>{const{classes:t}=e;return xe({root:["editBooleanCell"]},ft,t)};function tG(e){var b;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:l}=e,a=se(e,J3),c=ut(),d=m.useRef(null),f=Ot(),[p,g]=m.useState(n),v=De(),x={classes:v.classes},_=eG(x),k=m.useCallback(async w=>{const P=w.target.checked;l&&await l(w,P),g(P),await c.current.setEditCellValue({id:t,field:r,value:P},w)},[c,r,t,l]);return m.useEffect(()=>{g(n)},[n]),Mt(()=>{i&&d.current.focus()},[i]),S.jsx("label",y({htmlFor:f,className:pe(_.root,o)},a,{children:S.jsx(v.slots.baseCheckbox,y({id:f,inputRef:d,checked:!!p,onChange:k,size:"small"},(b=v.slotProps)==null?void 0:b.baseCheckbox))}))}const nG=e=>S.jsx(tG,y({},e)),rG=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],oG=de("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function iG(e){var M,E,$;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:l,label:a,variant:c="standard"}=e,d=se(e,rG),[f,p]=m.useState(t.value||""),g=De(),v=Ot(),x=Ot(),_=((M=g.slotProps)==null?void 0:M.baseSelect)||{},k=_.native??!1,b=((E=g.slotProps)==null?void 0:E.baseSelectOption)||{},w=m.useCallback(T=>{const F=T.target.value;p(F),n(y({},t,{value:F}))},[n,t]);m.useEffect(()=>{p(t.value||"")},[t.value]);const P=a??r.current.getLocaleText("filterPanelInputLabel");return S.jsxs(oG,{children:[S.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[S.jsx(g.slots.baseInputLabel,y({},($=g.slotProps)==null?void 0:$.baseInputLabel,{id:v,shrink:!0,variant:c,children:P})),S.jsxs(g.slots.baseSelect,y({labelId:v,id:x,label:P,value:f,onChange:w,variant:c,notched:c==="outlined"?!0:void 0,native:k,displayEmpty:!0,inputProps:{ref:o,tabIndex:l}},d,_,{children:[S.jsx(g.slots.baseSelectOption,y({},b,{native:k,value:"",children:r.current.getLocaleText("filterValueAny")})),S.jsx(g.slots.baseSelectOption,y({},b,{native:k,value:"true",children:r.current.getLocaleText("filterValueTrue")})),S.jsx(g.slots.baseSelectOption,y({},b,{native:k,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}const sG=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=String(e.value)==="true";return n=>!!n===t},InputComponent:iG}],lG=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),aG=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Xk=y({},lo,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Q3,renderEditCell:nG,sortComparator:zk,valueFormatter:lG,filterOperators:sG(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>aG(e)}),uG=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],cG=e=>{const{classes:t}=e;return xe({root:["checkboxInput"]},ft,t)},dG=m.forwardRef(function(t,n){var E;const{field:r,id:o,value:i,rowNode:l,hasFocus:a,tabIndex:c}=t,d=se(t,uG),f=ut(),p=De(),g={classes:p.classes},v=cG(g),x=m.useRef(null),_=m.useRef(null),k=Ct(x,n),b=$=>{const T={value:$.target.checked,id:o};f.current.publishEvent("rowSelectionCheckboxChange",T,$)};m.useLayoutEffect(()=>{if(c===0){const $=f.current.getCellElement(o,r);$&&($.tabIndex=-1)}},[f,c,o,r]),m.useEffect(()=>{var $;if(a){const T=($=x.current)==null?void 0:$.querySelector("input");T==null||T.focus({preventScroll:!0})}else _.current&&_.current.stop({})},[a]);const w=m.useCallback($=>{$.key===" "&&$.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=f.current.isRowSelectable(o),M=f.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return S.jsx(p.slots.baseCheckbox,y({ref:k,tabIndex:c,checked:i,onChange:b,className:v.root,inputProps:{"aria-label":M},onKeyDown:w,disabled:!P,touchRippleRef:_},(E=p.slotProps)==null?void 0:E.baseCheckbox,d))}),fG=dG;function tb(e){return e.signature===To.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const nh=e=>e.focus,Er=Qe(nh,e=>e.cell),pG=Qe(nh,e=>e.columnHeader);Qe(nh,e=>e.columnHeaderFilter);const Rf=Qe(nh,e=>e.columnGroupHeader),rh=e=>e.tabIndex,nb=Qe(rh,e=>e.cell),Yk=Qe(rh,e=>e.columnHeader);Qe(rh,e=>e.columnHeaderFilter);const hG=Qe(rh,e=>e.columnGroupHeader),Lr=e=>e.rowSelection,mG=Qe(Lr,e=>e.length),gG=It(Lr,Mi,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Ff=It(Lr,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Qk=e=>e.sorting,rb=Qe(Qk,e=>e.sortedRows),ob=It(rb,Mi,zr,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];i&&r.push({id:o,model:i});const l=n[o];return l&&oa(l)&&r.push({id:o,model:{[Bl]:o}}),r},[])),Tr=Qe(Qk,e=>e.sortModel),vG=It(Tr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),ib=e=>e.filter,vn=Qe(ib,e=>e.filterModel);Qe(vn,e=>e.quickFilterValues);const yG=e=>e.visibleRowsLookup,Jk=Qe(ib,e=>e.filteredRowsLookup);Qe(ib,e=>e.filteredDescendantCountLookup);const Xi=It(yG,ob,(e,t)=>t.filter(n=>e[n.id]!==!1)),yu=It(Xi,e=>e.map(t=>t.id)),bG=It(Jk,ob,(e,t)=>t.filter(n=>e[n.id]!==!1)),_G=It(bG,e=>e.map(t=>t.id)),eM=It(Xi,zr,th,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),tM=Qe(Xi,e=>e.length),nM=Qe(eM,e=>e.length),CG=It(vn,qi,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var l,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((l=o==null?void 0:o.filterOperators)==null?void 0:l.length)===0)return!1;const i=o.filterOperators.find(c=>c.value===r.operator);return i?!i.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),xG=It(CG,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{}));function tt(e,t,n){const r=m.useRef(!0);m.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function mn(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const rM=(e,t,n,r,o)=>{const i=mn(e,"useNativeEventListener"),[l,a]=m.useState(!1),c=m.useRef(r),d=Dk(t)?t():(t==null?void 0:t.current)??null,f=m.useCallback(p=>c.current&&c.current(p),[]);m.useEffect(()=>{c.current=r},[r]),m.useEffect(()=>{if(d&&n&&!l){i.debug(`Binding native ${n} event`),d.addEventListener(n,f,o),a(!0);const p=()=>{i.debug(`Clearing native ${n} event`),d.removeEventListener(n,f,o)};e.current.subscribeEvent("unmount",p)}},[d,f,n,l,i,o,e])},Cc=e=>{const t=m.useRef(!0);t.current&&(t.current=!1,e())},wG=()=>{};function SG(e,t,n){const r=m.useRef(null);r.current=t,Mt(()=>{if(typeof ResizeObserver>"u")return wG;const o=e.current,i=new ResizeObserver(l=>{r.current(l)});return o&&i.observe(o),()=>{i.disconnect()}},[e,n])}const PG=()=>{},kG=(e,t)=>{const n=m.useRef(!1);Mt(()=>n.current||!e?PG:(n.current=!0,t()),[n.current||e])},MG=100,IG=e=>e?0:100,oM=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,iM=e=>({page:0,pageSize:e?0:100}),EG=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),sM=(e,t)=>{if(t===To.DataGrid&&e>MG)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`))},oh=e=>e.pagination,Nn=Qe(oh,e=>e.paginationModel),Ml=Qe(oh,e=>e.rowCount),tu=Qe(oh,e=>e.meta),LG=Qe(Nn,e=>e.page),TG=Qe(Nn,e=>e.pageSize),lM=Qe(Nn,Ml,(e,t)=>oM(t,e.pageSize,e.page)),sb=It(Nn,zr,th,Xi,eM,(e,t,n,r,o)=>{var v;const i=o.length,l=Math.min(e.pageSize*e.page,i-1),a=Math.min(l+e.pageSize-1,i-1);if(l===-1||a===-1)return null;if(n<2)return{firstRowIndex:l,lastRowIndex:a};const c=o[l],d=a-l+1,f=r.findIndex(x=>x.id===c.id);let p=f,g=0;for(;p0)&&(p+=1),_===0&&(g+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),OG=It(Xi,sb,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),aM=It(yu,sb,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),RG=["field","colDef"],FG=e=>{const{classes:t}=e;return xe({root:["checkboxInput"]},ft,t)},$G=m.forwardRef(function(t,n){var T;const r=se(t,RG),[,o]=m.useState(!1),i=ut(),l=De(),a={classes:l.classes},c=FG(a),d=be(i,Yk),f=be(i,Lr),p=be(i,yu),g=be(i,aM),v=m.useMemo(()=>typeof l.isRowSelectable!="function"?f:f.filter(F=>i.current.getRow(F)?l.isRowSelectable(i.current.getRowParams(F)):!1),[i,l.isRowSelectable,f]),x=m.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?p:g).reduce((B,H)=>(B[H]=!0,B),{}),[l.pagination,l.checkboxSelectionVisibleOnly,g,p]),_=m.useMemo(()=>v.filter(F=>x[F]).length,[v,x]),k=_>0&&_0,w=F=>{const B={value:F.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",B)},P=d!==null&&d.field===t.field?0:-1;m.useLayoutEffect(()=>{const F=i.current.getColumnHeaderElement(t.field);P===0&&F&&(F.tabIndex=-1)},[P,i,t.field]);const M=m.useCallback(F=>{F.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),E=m.useCallback(()=>{o(F=>!F)},[]);m.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const $=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return S.jsx(l.slots.baseCheckbox,y({ref:n,indeterminate:k,checked:b,onChange:w,className:c.root,inputProps:{"aria-label":$},tabIndex:P,onKeyDown:M,disabled:!tb(l)},(T=l.slotProps)==null?void 0:T.baseCheckbox,r))}),gi="__check__",ga=y({},Xk,{type:"custom",field:gi,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=Ff(r),i=r.current.getRowId(t);return o[i]!==void 0},renderHeader:e=>S.jsx($G,y({},e)),renderCell:e=>S.jsx(fG,y({},e))}),zG=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function hx(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function rl(e){var P;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:l,clearButton:a,tabIndex:c,disabled:d}=e,f=se(e,zG),p=Dr(),[g,v]=m.useState(()=>hx(t.value,r)),[x,_]=m.useState(!1),k=Ot(),b=De(),w=m.useCallback(M=>{p.clear();const E=M.target.value;v(E),_(!0),p.start(b.filterDebounceMs,()=>{const $=new Date(E);n(y({},t,{value:Number.isNaN($.getTime())?void 0:$})),_(!1)})},[n,t,b.filterDebounceMs,p]);return m.useEffect(()=>{const M=hx(t.value,r);v(M)},[t.value,r]),S.jsx(b.slots.baseTextField,y({fullWidth:!0,id:k,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:w,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:y({},x||a?{endAdornment:x?S.jsx(b.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:d},l,{inputProps:y({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},f,(P=b.slotProps)==null?void 0:P.baseTextField))}function ol(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return l=>{if(!l)return!1;if(r)return t(l.getTime(),i);const a=new Date(l);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),i)}}const uM=e=>[{value:"is",getApplyFilterFn:t=>ol(t,(n,r)=>n===r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>ol(t,(n,r)=>n!==r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>ol(t,(n,r)=>n>r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>ol(t,(n,r)=>n>=r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>ol(t,(n,r)=>nol(t,(n,r)=>n<=r,e),InputComponent:rl,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],AG=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],DG=de(ha)({fontSize:"inherit"}),NG=e=>{const{classes:t}=e;return xe({root:["editInputCell"]},ft,t)};function BG(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:l,onValueChange:a}=e,c=se(e,AG),d=o.type==="dateTime",f=ut(),p=m.useRef(),g=m.useMemo(()=>{let M;n==null?M=null:n instanceof Date?M=n:M=new Date((n??"").toString());let E;return M==null||Number.isNaN(M.getTime())?E="":E=new Date(M.getTime()-M.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:M,formatted:E}},[n,d]),[v,x]=m.useState(g),k={classes:De().classes},b=NG(k),w=m.useCallback(M=>{if(M==="")return null;const[E,$]=M.split("T"),[T,F,B]=E.split("-"),H=new Date;if(H.setFullYear(Number(T),Number(F)-1,Number(B)),H.setHours(0,0,0,0),$){const[W,j]=$.split(":");H.setHours(Number(W),Number(j),0,0)}return H},[]),P=m.useCallback(async M=>{const E=M.target.value,$=w(E);a&&await a(M,$),x({parsed:$,formatted:E}),f.current.setEditCellValue({id:t,field:r,value:$},M)},[f,r,t,a,w]);return m.useEffect(()=>{x(M=>{var E,$;return g.parsed!==M.parsed&&((E=g.parsed)==null?void 0:E.getTime())!==(($=M.parsed)==null?void 0:$.getTime())?g:M})},[g]),Mt(()=>{i&&p.current.focus()},[i]),S.jsx(DG,y({inputRef:p,fullWidth:!0,className:b.root,type:d?"datetime-local":"date",inputProps:y({max:d?"9999-12-31T23:59":"9999-12-31"},l),value:v.formatted,onChange:P},c))}const cM=e=>S.jsx(BG,y({},e));function dM({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(` +`))}const HG=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return dM({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},jG=(e,t,n,r)=>{if(!e)return"";const o=r.current.getRowId(t);return dM({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},GG=y({},lo,{type:"date",sortComparator:Ak,valueFormatter:HG,filterOperators:uM(),renderEditCell:cM,pastedValueParser:e=>new Date(e)}),VG=y({},lo,{type:"dateTime",sortComparator:Ak,valueFormatter:jG,filterOperators:uM(!0),renderEditCell:cM,pastedValueParser:e=>new Date(e)}),bi=e=>e==null?null:Number(e),WG=e=>e==null||Number.isNaN(e)||e===""?null:t=>bi(t)===bi(e),UG=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>bi(t)===e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>bi(t)!==e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)>e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)>=e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:bi(t)<=e.value,InputComponent:xo,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Bk,InputComponentProps:{type:"number"}}],ZG=y({},lo,{type:"number",align:"right",headerAlign:"right",sortComparator:zk,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>h3(e)?e.toLocaleString():e||"",filterOperators:UG(),getApplyQuickFilterFn:WG}),$f=e=>e==="Escape",fM=e=>e==="Tab";function pM(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const zf=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",KG=e=>!!e.key,qG=e=>fM(e)||$f(e);function hM(e){return!!((e.ctrlKey||e.metaKey)&&e.key.toLowerCase()==="v"&&!e.shiftKey&&!e.altKey)}function ia(e){return(e==null?void 0:e.type)==="singleSelect"}function Ps(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(y({field:e.field},t)):e.valueOptions}function Af(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const XG=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],YG=["MenuProps"];function QG(e){return!!e.key}function JG(e){var j,D;const t=De(),{id:n,value:r,field:o,row:i,colDef:l,hasFocus:a,error:c,onValueChange:d,initialOpen:f=t.editMode===Fo.Cell}=e,p=se(e,XG),g=ut(),v=m.useRef(),x=m.useRef(),[_,k]=m.useState(f),w=(((j=t.slotProps)==null?void 0:j.baseSelect)||{}).native??!1,P=((D=t.slotProps)==null?void 0:D.baseSelect)||{},{MenuProps:M}=P,E=se(P,YG);if(Mt(()=>{var R;a&&((R=x.current)==null||R.focus())},[a]),!ia(l))return null;const $=Ps(l,{id:n,row:i});if(!$)return null;const T=l.getOptionValue,F=l.getOptionLabel,B=async R=>{if(!ia(l)||!$)return;k(!1);const z=R.target,O=Af(z.value,$,T);d&&await d(R,O),await g.current.setEditCellValue({id:n,field:o,value:O},R)},H=(R,z)=>{if(t.editMode===Fo.Row){k(!1);return}if(z==="backdropClick"||$f(R.key)){const O=g.current.getCellParams(n,o);g.current.publishEvent("cellEditStop",y({},O,{reason:$f(R.key)?to.escapeKeyDown:to.cellFocusOut}))}},W=R=>{QG(R)&&R.key==="Enter"||k(!0)};return!$||!l?null:S.jsx(t.slots.baseSelect,y({ref:v,inputRef:x,value:r,onChange:B,open:_,onOpen:W,MenuProps:y({onClose:H},M),error:c,native:w,fullWidth:!0},p,E,{children:$.map(R=>{var O;const z=T(R);return m.createElement(t.slots.baseSelectOption,y({},((O=t.slotProps)==null?void 0:O.baseSelectOption)||{},{native:w,key:z,value:z}),F(R))})}))}const eV=e=>S.jsx(JG,y({},e)),tV=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],nV=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...Ps(e)||[]].map(a=>{const c=r(a);let d=n(a);return d===""&&(d=" "),m.createElement(t,y({},i,{native:o,key:c,value:c}),d)}),rV=de("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function mx(e){var T,F,B,H,W;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:l,tabIndex:a,label:c,variant:d="standard",clearButton:f}=e,p=se(e,tV),g=t.value??"",v=Ot(),x=Ot(),_=De(),k=((F=(T=_.slotProps)==null?void 0:T.baseSelect)==null?void 0:F.native)??!1;let b=null;if(t.field){const j=o.current.getColumn(t.field);ia(j)&&(b=j)}const w=b==null?void 0:b.getOptionValue,P=b==null?void 0:b.getOptionLabel,M=m.useMemo(()=>Ps(b),[b]),E=m.useCallback(j=>{let D=j.target.value;D=Af(D,M,w),n(y({},t,{value:D}))},[M,w,n,t]);if(!ia(b))return null;const $=c??o.current.getLocaleText("filterPanelInputLabel");return S.jsxs(rV,{children:[S.jsxs(_.slots.baseFormControl,{fullWidth:!0,children:[S.jsx(_.slots.baseInputLabel,y({},(B=_.slotProps)==null?void 0:B.baseInputLabel,{id:x,htmlFor:v,shrink:!0,variant:d,children:$})),S.jsx(_.slots.baseSelect,y({id:v,label:$,labelId:x,value:g,onChange:E,variant:d,type:r||"text",inputProps:{tabIndex:a,ref:i,placeholder:l??o.current.getLocaleText("filterPanelInputPlaceholder")},native:k,notched:d==="outlined"?!0:void 0},p,(H=_.slotProps)==null?void 0:H.baseSelect,{children:nV({column:b,OptionComponent:_.slots.baseSelectOption,getOptionLabel:P,getOptionValue:w,isSelectNative:k,baseSelectOptionProps:(W=_.slotProps)==null?void 0:W.baseSelectOption})}))]}),f]})}const oV=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],iV=EP();function sV(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:l,helperText:a,size:c,variant:d="standard"}=e,f=se(e,oV),p={color:i,error:l,helperText:a,size:c,variant:d},g=Ot(),v=De();let x=null;if(t.field){const E=r.current.getColumn(t.field);ia(E)&&(x=E)}const _=x==null?void 0:x.getOptionValue,k=x==null?void 0:x.getOptionLabel,b=m.useCallback((E,$)=>_(E)===_($),[_]),w=m.useMemo(()=>Ps(x)||[],[x]),P=m.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,$)=>{const T=w.find(F=>_(F)===$);return T!=null&&E.push(T),E},[]):[],[_,t.value,w]),M=m.useCallback((E,$)=>{n(y({},t,{value:$.map(_)}))},[n,t,_]);return S.jsx(zP,y({multiple:!0,options:w,isOptionEqualToValue:b,filterOptions:iV,id:g,value:P,onChange:M,getOptionLabel:k,renderTags:(E,$)=>E.map((T,F)=>S.jsx(v.slots.baseChip,y({variant:"outlined",size:"small",label:k(T)},$({index:F})))),renderInput:E=>{var $;return S.jsx(v.slots.baseTextField,y({},E,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:y({},E.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},p,($=v.slotProps)==null?void 0:$.baseTextField))}},f))}const il=e=>e==null||!Jy(e)?e:e.value,lV=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>il(t)===il(e.value),InputComponent:mx},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>il(t)!==il(e.value),InputComponent:mx},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(il);return n=>t.includes(il(n))},InputComponent:sV}],aV=e=>typeof e[0]=="object",uV=e=>Jy(e)?e.value:e,cV=e=>Jy(e)?e.label:String(e),dV=y({},lo,{type:"singleSelect",getOptionLabel:cV,getOptionValue:uV,valueFormatter(e,t,n,r){const o=r.current.getRowId(t);if(!ia(n))return"";const i=Ps(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!aV(i))return n.getOptionLabel(e);const l=i.find(a=>n.getOptionValue(a)===e);return l?n.getOptionLabel(l):""},renderEditCell:eV,filterOperators:lV(),pastedValueParser:(e,t,n)=>{const r=n,o=Ps(r)||[],i=r.getOptionValue;if(o.find(a=>i(a)===e))return e}}),fV="string",pV=()=>({string:lo,number:ZG,date:GG,dateTime:VG,boolean:Xk,singleSelect:dV,[Jp]:D3,custom:lo}),lb=e=>e.headerFiltering,hV=Qe(lb,e=>(e==null?void 0:e.enabled)??!1),mV=Qe(lb,e=>e.editing),gV=Qe(lb,e=>e.menuOpen),ih=e=>e.columnGrouping,mM=It(ih,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),gM=It(ih,e=>(e==null?void 0:e.lookup)??{}),vV=It(ih,e=>(e==null?void 0:e.headerStructure)??[]),xc=Qe(ih,e=>(e==null?void 0:e.maxDepth)??0),vM=["maxWidth","minWidth","width","flex"],bm=pV();function yV({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(l=>l.field)),o={all:{},frozenFields:[],freeze:l=>{const a=o.all[l];a&&a.frozen!==!0&&(o.all[l].frozen=!0,o.frozenFields.push(l))}};function i(){if(o.frozenFields.length===r.size)return;const l={min:{},max:{}};let a=e,c=t,d=0;o.frozenFields.forEach(f=>{a-=o.all[f].computedWidth,c-=o.all[f].flex});for(let f=0;fp.maxWidth&&(d+=p.maxWidth-v,v=p.maxWidth,l.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:v,flex:p.flex}}d<0?Object.keys(l.max).forEach(f=>{o.freeze(f)}):d>0?Object.keys(l.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),i()}return i(),o.all}const Zg=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(c=>{let d=e.lookup[c],f=0,p=!1;e.columnVisibilityModel[c]!==!1&&(d.flex&&d.flex>0?(r+=d.flex,p=!0):f=oi(d.width||lo.width,d.minWidth||lo.minWidth,d.maxWidth||lo.maxWidth),o+=f),d.computedWidth!==f&&(d=y({},d,{computedWidth:f})),p&&i.push(d),n[c]=d});const l=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(l-o,0);if(r>0&&l>0){const c=yV({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(c).forEach(d=>{n[d].computedWidth=c[d].computedWidth})}return y({},e,{lookup:n})},bV=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},l=[];for(let f=0;f!i[f])],c=y({},e.lookup);for(let f=0;f{g[v]=x===-1?1/0:x}),c[p]=g}return y({},e,{orderedFields:a,lookup:c})};function gx(e){let t=bm[fV];return e&&bm[e]&&(t=bm[e]),t}const cl=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=Nr(e),keepOnlyColumnsToUpsert:o=!1})=>{var f,p;const i=!e.current.state.columns;let l;if(i)l={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const g=Oo(e.current.state);l={orderedFields:o?[]:[...g.orderedFields],lookup:y({},g.lookup),columnVisibilityModel:r}}let a={};o&&!i&&(a=Object.keys(l.lookup).reduce((g,v)=>y({},g,{[v]:!1}),{})),t.forEach(g=>{const{field:v}=g;a[v]=!0;let x=l.lookup[v];x==null?(x=y({},gx(g.type),{field:v,hasBeenResized:!1}),l.orderedFields.push(v)):o&&l.orderedFields.push(v),x&&x.type!==g.type&&(x=y({},gx(g.type),{field:v}));let _=x.hasBeenResized;vM.forEach(k=>{g[k]!==void 0&&(_=!0,g[k]===-1&&(g[k]=1/0))}),l.lookup[v]=y({},x,g,{hasBeenResized:_})}),o&&!i&&Object.keys(l.lookup).forEach(g=>{a[g]||delete l.lookup[g]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",l),d=bV(c,n);return Zg(d,((p=(f=e.current).getRootDimensions)==null?void 0:p.call(f))??void 0)};function _V({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let l=n;l{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return xe(r,ft,n)},wV=xt("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${K["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${K["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${K["scrollArea--left"]}`]:{left:0},[`&.${K["scrollArea--right"]}`]:{right:0}}));function SV(e){const{scrollDirection:t}=e,n=m.useRef(null),r=ut(),o=Dr(),i=be(r,bc),l=be(r,Rk),a=be(r,co),c=m.useRef({left:0,top:0}),d=()=>{if(t==="left")return c.current.left>0;if(t==="right"){const F=l-a.viewportInnerSize.width;return c.current.left{c.current=F,v(d)},E=at(F=>{let B;if(F.preventDefault(),t==="left")B=F.clientX-n.current.getBoundingClientRect().right;else if(t==="right")B=Math.max(1,F.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");B=(B-vx)*CV+vx,o.start(0,()=>{r.current.scroll({left:c.current.left+B,top:c.current.top})})}),$=at(()=>{p(!0)}),T=at(()=>{p(!1)});return Re(r,"scrollPositionChange",M),Re(r,"columnHeaderDragStart",$),Re(r,"columnHeaderDragEnd",T),!f||!g?null:S.jsx(wV,{ref:n,className:pe(k.root),ownerState:_,onDragOver:E,style:P})}const yx=Yi(SV),yM=m.createContext(void 0);function ai(){const e=m.useContext(yM);if(e===void 0)throw new Error(["MUI X: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(` +`));return e}const Qu=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=sb(e),n=OG(e)):(n=Xi(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Ns=(e,t)=>{const n=Qu(e,t);return m.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},va=e=>e.rowsMeta,ub=e=>e.virtualization,PV=Qe(ub,e=>e.enabled),cb=Qe(ub,e=>e.enabledForColumns),db=Qe(ub,e=>e.renderContext),kV=It(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),bM={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},MV=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0,renderContext:bM};return y({},e,{virtualization:n})};function IV(e,t){const n=i=>{e.current.setState(l=>y({},l,{virtualization:y({},l.virtualization,{enabled:i})}))};tt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(l=>y({},l,{virtualization:y({},l.virtualization,{enabledForColumns:i})}))}},"public"),m.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const _m=50;var Jt=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(Jt||{});const bx={top:0,left:0},EV=Object.freeze(new Map),LV=(e,t,n,r,o)=>({direction:Jt.NONE,buffer:CM(e,Jt.NONE,t,n,r,o)});let Kg=!1;try{typeof window<"u"&&(Kg=/jsdom/.test(window.navigator.userAgent))}catch{}const TV=()=>{const e=ai(),t=De(),n=be(e,bn),r=be(e,PV)&&!Kg,o=be(e,cb)&&!Kg,i=be(e,co),l=i.viewportOuterSize,a=be(e,Ds),c=be(e,Qp),d=a.bottom.length>0,[f,p]=m.useState(EV),g=$o(),v=be(e,Er),x=be(e,nb),_=be(e,va),k=be(e,Ff),b=Ns(e,t),w=e.current.rootElementRef,P=e.current.mainElementRef,M=e.current.virtualScrollerRef,E=m.useRef(null),$=m.useRef(null),T=i.contentSize.height,F=i.columnsTotalWidth,B=be(e,t3);SG(P,()=>e.current.resize());const H=m.useRef(bx),W=m.useRef(bx),j=m.useRef(bM),D=be(e,db),R=Dr(),z=m.useRef(void 0),O=Ls(()=>LV(g.direction,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,_m*6)).current,A={rowIndex:m.useMemo(()=>v?b.rows.findIndex(re=>re.id===v.id):-1,[v,b.rows]),columnIndex:m.useMemo(()=>v?n.findIndex(re=>re.field===v.field):-1,[v,n])},N=m.useCallback(re=>{if(FV(re,e.current.state.virtualization.renderContext))return;const oe=re.firstRowIndex!==j.current.firstRowIndex||re.lastRowIndex!==j.current.lastRowIndex;e.current.setState(ge=>y({},ge,{virtualization:y({},ge.virtualization,{renderContext:re})})),i.isReady&&oe&&(j.current=re,e.current.publishEvent("renderedRowsIntervalChange",re)),W.current=H.current},[e,i.isReady]),G=()=>{const re={top:M.current.scrollTop,left:M.current.scrollLeft},oe=re.left-H.current.left,ge=re.top-H.current.top,ve=oe!==0||ge!==0;H.current=re;const ye=ve?$V(oe,ge):Jt.NONE,Ee=Math.abs(H.current.top-W.current.top),$e=Math.abs(H.current.left-W.current.left),we=Ee>=i.rowHeight||$e>=_m,Ce=O.direction!==ye;if(!(we||Ce))return D;if(Ce)switch(ye){case Jt.NONE:case Jt.LEFT:case Jt.RIGHT:z.current=void 0;break;default:z.current=D;break}O.direction=ye,O.buffer=CM(g.direction,ye,t.rowBufferPx,t.columnBufferPx,i.rowHeight*15,_m*6);const Ie=Cm(e,t,r,o),Ye=xm(Ie,H.current,O);return ic.flushSync(()=>{N(Ye)}),R.start(1e3,G),Ye},U=()=>{const re=Cm(e,t,r,o),oe=xm(re,H.current,O);N(oe)},Z=at(re=>{const{scrollTop:oe,scrollLeft:ge}=re.currentTarget;if(oe<0||g.direction==="ltr"&&ge<0||g.direction==="rtl"&&ge>0)return;const ve=G();e.current.publishEvent("scrollPositionChange",{top:oe,left:ge,renderContext:ve})}),Y=at(re=>{e.current.publishEvent("virtualScrollerWheel",{},re)}),ee=at(re=>{e.current.publishEvent("virtualScrollerTouchMove",{},re)}),Q=(re={})=>{var He;if(!re.rows&&!b.range)return[];const oe=re.renderContext??D,ge=!d&&re.position===void 0||d&&re.position==="bottom",ve=re.position!==void 0;let ye;switch(re.position){case"top":ye=0;break;case"bottom":ye=a.top.length+b.rows.length;break;case void 0:ye=a.top.length;break}const Ee=re.rows??b.rows,$e=oe.firstRowIndex,we=Math.min(oe.lastRowIndex,Ee.length),Ce=re.rows?ux(0,re.rows.length):ux($e,we);let Je=-1;!ve&&A.rowIndex!==-1&&(A.rowIndex<$e&&(Je=A.rowIndex,Ce.unshift(Je)),A.rowIndex>=we&&(Je=A.rowIndex,Ce.push(Je)));const Ie=[],Ye=(He=t.slotProps)==null?void 0:He.row,Ve=As(e);return Ce.forEach(je=>{var jt,sr,Xt;const{id:ze,model:ke}=Ee[je];if(B){const Yt=c.left.length,rn=n.length-c.right.length;e.current.calculateColSpan({rowId:ze,minFirstColumn:Yt,maxLastColumn:rn,columns:n}),c.left.length>0&&e.current.calculateColSpan({rowId:ze,minFirstColumn:0,maxLastColumn:c.left.length,columns:n}),c.right.length>0&&e.current.calculateColSpan({rowId:ze,minFirstColumn:n.length-c.right.length,maxLastColumn:n.length,columns:n})}const Ze=(v==null?void 0:v.id)===ze,Ne=e.current.rowHasAutoHeight(ze)?"auto":e.current.unstable_getRowHeight(ze);let Le;k[ze]==null?Le=!1:Le=e.current.isRowSelectable(ze);let fe=!1;re.position===void 0&&(fe=je===0);let ae=!1;if(ge)if(ve)ae=je===Ee.length-1;else{const Yt=b.rows.length-1;je===Yt&&(ae=!0)}const st=je===Je;let ct=null;x!==null&&x.id===ze&&(ct=e.current.getCellParams(ze,x.field).cellMode==="view"?x.field:null);let Me=oe;!ve&&z.current&&je>=z.current.firstRowIndex&&je=l.width,te=m.useMemo(()=>({overflowX:X?void 0:"hidden",overflowY:t.autoHeight?"hidden":void 0}),[X,t.autoHeight]),me=m.useMemo(()=>{const re=Math.max(T,1),oe={width:X?F:"auto",height:re};return t.autoHeight&&(b.rows.length===0?oe.height=qk(e):oe.height=T),oe},[e,F,T,X,t.autoHeight,b.rows.length]);return m.useEffect(()=>{e.current.publishEvent("virtualScrollerContentSizeChange")},[e,me]),Mt(()=>{e.current.resize()},[e,_.currentPageTotalHeight]),Mt(()=>{r&&(M.current.scrollLeft=0,M.current.scrollTop=0)},[r,w,M]),kG(l.width!==0,()=>{const re=Cm(e,t,r,o),oe=xm(re,H.current,O);N(oe),e.current.publishEvent("scrollPositionChange",{top:H.current.top,left:H.current.left,renderContext:oe})}),e.current.register("private",{updateRenderContext:U}),Re(e,"columnsChange",U),Re(e,"filteredRowsSet",U),Re(e,"rowExpansionChange",U),{renderContext:D,setPanels:p,getRows:Q,getContainerProps:()=>({ref:P}),getScrollerProps:()=>({ref:M,tabIndex:-1,onScroll:Z,onWheel:Y,onTouchMove:ee,style:te,role:"presentation"}),getContentProps:()=>({style:me,role:"presentation"}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:E,role:"presentation"}),getScrollbarHorizontalProps:()=>({ref:$,role:"presentation"})}};function Cm(e,t,n,r){const o=co(e.current.state),i=Qu(e,t),l=bn(e),a=e.current.state.rows.dataRowIds.at(-1),c=l.at(-1);return{enabled:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:a!==void 0?e.current.unstable_getRowHeight(a):0,lastColumnWidth:(c==null?void 0:c.computedWidth)??0,rowsMeta:va(e.current.state),columnPositions:As(e),rows:i.rows,range:i.range,pinnedColumns:Qp(e),visibleColumns:l}}function xm(e,t,n){let r;if(!e.enabled)r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length};else{const{top:i,left:l}=t,a=Math.abs(l)+e.leftPinnedWidth,c=Math.min(_x(e,i,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1),d=e.autoHeight?c+e.rows.length:_x(e,i+e.viewportInnerHeight);let f=0,p=e.columnPositions.length;if(e.enabledForColumns){let g=!1;const[v,x]=qg({firstIndex:c,lastIndex:d,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});for(let _=v;_=e.range.lastRowIndex);const i=oi(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Hi(t,e.rowsMeta.positions,n):RV(t,e.rowsMeta.positions,i,n)}function OV(e,t,n){const[r,o]=qg({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,l]=qg({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=_V({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:l}}function Hi(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),l=t[i];let a;if(n!=null&&n.atStart){const c=(i===t.length-1?n.lastPosition:t[i+1])-l;a=e-c=Math.abs(e)?t>0?Jt.DOWN:Jt.UP:e>0?Jt.RIGHT:Jt.LEFT}function CM(e,t,n,r,o,i){if(e==="rtl")switch(t){case Jt.LEFT:t=Jt.RIGHT;break;case Jt.RIGHT:t=Jt.LEFT;break}switch(t){case Jt.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Jt.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case Jt.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case Jt.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case Jt.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const zV=xt("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),AV=xt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),DV=e=>{const{classes:t}=e;return xe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function NV(e){const t=ut(),n=De(),r=Ns(t,n),o=be(t,co);let i=o.viewportOuterSize.height-o.headersTotalHeight-(o.hasScrollX?o.scrollbarSize:0);(n.autoHeight&&r.rows.length===0||i===0)&&(i=qk(t));const l=DV(y({},e,{classes:n.classes}));return S.jsx(zV,{className:pe(l.root),overlayType:e.overlayType,children:S.jsx(AV,y({className:pe(l.inner),style:{height:i,width:o.viewportOuterSize.width}},e))})}function BV(){var d,f,p;const e=ut(),t=De(),n=be(e,eh),r=be(e,tM),o=be(e,N3),i=!o&&n===0,l=!o&&n>0&&r===0;let a=null,c="";return i&&(a=S.jsx(t.slots.noRowsOverlay,y({},(d=t.slotProps)==null?void 0:d.noRowsOverlay)),c="noRowsOverlay"),l&&(a=S.jsx(t.slots.noResultsOverlay,y({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),c="noResultsOverlay"),o&&(a=S.jsx(t.slots.loadingOverlay,y({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),c="loadingOverlay"),a===null?null:S.jsx(NV,{overlayType:c,children:a})}const Hd=e=>e.columnMenu;function HV(){var k;const e=ai(),t=De(),n=be(e,bn),r=be(e,xG),o=be(e,vG),i=be(e,Yk),l=be(e,nb),a=be(e,hG),c=be(e,pG),d=be(e,Rf),f=be(e,xc),p=be(e,Hd),g=be(e,Nr),v=be(e,vV),x=!(a===null&&i===null&&l===null),_=m.useRef(null);return e.current.register("private",{columnHeadersContainerRef:_}),S.jsx(t.slots.columnHeaders,y({ref:_,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:x},(k=t.slotProps)==null?void 0:k.columnHeaders))}const jV=Yi(HV),GV=()=>{const e=ai(),t=De(),n=be(e,bn),r=be(e,eh),o=be(e,xc),i=be(e,G3);let l="grid";return t.treeData&&(l="treegrid"),{role:l,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":tb(t)}},VV=xt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})({flexGrow:1,position:"relative",overflow:"hidden"}),WV=m.forwardRef((e,t)=>{const n=GV(),r=De();return S.jsx(VV,y({ref:t,ownerState:r,className:e.className,tabIndex:-1},n,{children:e.children}))}),UV=()=>xe({root:["topContainer"]},ft,{}),ZV=xt("div")({position:"sticky",zIndex:4,top:0,"&::after":{content:'" "',position:"absolute",zIndex:5,bottom:0,left:0,right:0,height:1,width:"var(--DataGrid-rowWidth)",backgroundColor:"var(--DataGrid-rowBorderColor)"}});function KV(e){const t=UV();return S.jsx(ZV,y({},e,{className:pe(t.root,e.className,K["container--top"]),role:"presentation"}))}const qV=()=>xe({root:["bottomContainer"]},ft,{}),XV=xt("div")({position:"sticky",zIndex:4,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function YV(e){const t=qV();return S.jsx(XV,y({},e,{className:pe(t.root,e.className,K["container--bottom"]),role:"presentation"}))}const QV=(e,t)=>{const{classes:n}=e;return xe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},JV=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),eW=m.forwardRef(function(t,n){var l;const r=De(),o=!r.autoHeight&&((l=t.style)==null?void 0:l.minHeight)==="auto",i=QV(r,o);return S.jsx(JV,y({ref:n},t,{ownerState:r,className:pe(i.root,t.className)}))}),tW=xt("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),xM=xt("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),nW=xt(xM)({left:0,borderRight:"1px solid var(--DataGrid-rowBorderColor)"}),rW=xt(xM)({right:0,borderLeft:"1px solid var(--DataGrid-rowBorderColor)"}),oW=xt("div")({flexGrow:1,borderTop:"1px solid var(--DataGrid-rowBorderColor)"});function iW(){const e=ut(),{viewportOuterSize:t,minimumSize:n,hasScrollX:r,hasScrollY:o,scrollbarSize:i,leftPinnedWidth:l,rightPinnedWidth:a}=be(e,co),c=r?i:0,d=t.height-n.height-c,f=Math.max(c,d);return f===0?null:S.jsxs(tW,{className:K.filler,role:"presentation",style:{height:f},children:[l>0&&S.jsx(nW,{className:K["filler--pinnedLeft"],style:{width:l}}),S.jsx(oW,{}),a>0&&S.jsx(rW,{className:K["filler--pinnedRight"],style:{width:a+(o?i:0)}})]})}const sW=Yi(iW),lW=["className"],aW=e=>{const{classes:t}=e;return xe({root:["virtualScrollerRenderZone"]},ft,t)},uW=xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),cW=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,lW),i=ut(),l=De(),a=aW(l),c=be(i,()=>{const d=db(i);return va(i.current.state).positions[d.firstRowIndex]??0});return S.jsx(uW,y({ref:n,className:pe(a.root,r),ownerState:l,style:{transform:`translate3d(0, ${c}px, 0)`}},o))}),dW={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1},Ju=e=>e.preferencePanel;var ks=function(e){return e.filters="filters",e.columns="columns",e}(ks||{});const fW=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return xe(r,ft,n)},wM=xt("div")({position:"absolute",display:"inline-block",zIndex:6,"& > div":{display:"inline-block"},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),pW=xt(wM)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),hW=xt(wM)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),mW=xt("div")({display:"inline-block"}),Cx=m.forwardRef(function(t,n){const r=ai(),o=De(),i=m.useRef(!1),l=m.useRef(0),a=m.useRef(null),c=m.useRef(null),d=fW(o,t.position),f=be(r,co),p=t.position==="vertical"?"height":"width",g=t.position==="vertical"?"scrollTop":"scrollLeft",v=t.position==="vertical"?f.hasScrollX:f.hasScrollY,x=f.minimumSize[p]+(v?f.scrollbarSize:0),k=(t.position==="vertical"?f.viewportInnerSize.height:f.viewportOuterSize.width)*(x/f.viewportOuterSize[p]),b=at(()=>{const M=r.current.virtualScrollerRef.current,E=a.current;if(M[g]===l.current)return;if(i.current){i.current=!1;return}i.current=!0;const $=M[g]/x;E[g]=$*k,l.current=M[g]}),w=at(()=>{const M=r.current.virtualScrollerRef.current,E=a.current;if(i.current){i.current=!1;return}i.current=!0;const $=E[g]/k;M[g]=$*x});$p(()=>{const M=r.current.virtualScrollerRef.current,E=a.current;return M.addEventListener("scroll",b,{capture:!0}),E.addEventListener("scroll",w,{capture:!0}),()=>{M.removeEventListener("scroll",b,{capture:!0}),E.removeEventListener("scroll",w,{capture:!0})}}),m.useEffect(()=>{c.current.style.setProperty(p,`${k}px`)},[k,p]);const P=t.position==="vertical"?pW:hW;return S.jsx(P,{ref:Ct(n,a),className:d.root,tabIndex:-1,children:S.jsx(mW,{ref:c,className:d.content})})}),gW=(e,t)=>{const{classes:n}=e,r={root:["main",t.rightPinnedWidth>0&&"main--hasPinnedRight"],scroller:["virtualScroller"]};return xe(r,ft,n)},vW=xt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({position:"relative",height:"100%",overflow:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0});function yW(e){const t=ut(),n=De(),r=be(t,co),o=gW(n,r),i=TV(),{getContainerProps:l,getScrollerProps:a,getContentProps:c,getRenderZoneProps:d,getScrollbarVerticalProps:f,getScrollbarHorizontalProps:p,getRows:g}=i,v=g();return S.jsxs(WV,y({className:o.root},l(),{children:[S.jsx(yx,{scrollDirection:"left"}),S.jsx(yx,{scrollDirection:"right"}),S.jsxs(vW,y({className:o.scroller},a(),{ownerState:n,children:[S.jsxs(KV,{children:[S.jsx(jV,{}),S.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:i})]}),S.jsx(BV,{}),S.jsx(eW,y({},c(),{children:S.jsxs(cW,y({},d(),{children:[v,S.jsx(n.slots.detailPanels,{virtualScroller:i})]}))})),v.length>0&&S.jsx(sW,{}),S.jsx(YV,{children:S.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:i})})]})),r.hasScrollY&&S.jsx(Cx,y({position:"vertical"},f())),r.hasScrollX&&S.jsx(Cx,y({position:"horizontal"},p())),e.children]}))}function bW(){var t;const e=De();return e.hideFooter?null:S.jsx(e.slots.footer,y({},(t=e.slotProps)==null?void 0:t.footer))}let wm;function _W(){return wm===void 0&&document.createElement("div").focus({get preventScroll(){return wm=!0,!1}}),wm}function CW(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Df(e,t){return e.closest(`.${t}`)}function Qi(e){return e.replace(/["\\]/g,"\\$&")}function xW(e,t){return e.querySelector(`[role="columnheader"][data-field="${Qi(t)}"]`)}function SM(e){return`.${K.row}[data-id="${Qi(String(e))}"]`}function wW(e,t){return e.querySelector(SM(t))}function SW(e,{id:t,field:n}){const r=SM(t),o=`.${K.cell}[data-field="${Qi(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function wc(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function PW(e){return e.getAttribute("data-field")}function kW(e,t){return e.querySelector(`[data-field="${Qi(t)}"]`)}function MW(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function IW(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Qi(t)}-|"]`)??[])}function EW(e,t){var l;if(!Df(e,K.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(l=t.virtualScrollerRef)!=null&&l.current?(MM(t).forEach(a=>{const c=a.getAttribute("data-id");if(!c)return;let d=o;const f=t.unstable_getCellColSpanInfo(c,o);f&&f.spannedByColSpan&&(d=f.leftVisibleCellIndex);const p=a.querySelector(`[data-colindex="${d}"]`);p&&i.push(p)}),i):[]}function xx(e,t){return e.rootElementRef.current.querySelector(`.${K[t]}`)}const PM=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return MM(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${K[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const c=ya(a);c!==null&&r(c)&&o.push(a)})}),o};function LW(e,t){const n=ya(t);return PM({api:e,colIndex:n,position:"left",filterFn:r=>r>n})}function TW(e,t){const n=ya(t);return PM({api:e,colIndex:n,position:"right",filterFn:r=>r{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${K[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(l=>{const a=ya(l);a!==null&&r(a)&&o.push(l)}),o};function OW(e,t){const n=ya(t);return kM({api:e,position:"left",colIndex:n,filterFn:r=>r>n})}function RW(e,t){const n=ya(t);return kM({api:e,position:"right",colIndex:n,filterFn:r=>r div > [data-field="${Qi(t)}"][role="columnheader"]`)}function $W(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Qi(t)}"][role="gridcell"]`))}function MM(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${K.row}`)}function ya(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}class jd extends Error{}function zW(e){const t=m.useCallback(p=>({field:p,colDef:e.current.getColumn(p)}),[e]),n=m.useCallback(p=>{const g=e.current.getRow(p);if(!g)throw new jd(`No row with id #${p} found`);return{id:p,columns:e.current.getAllColumns(),row:g}},[e]),r=m.useCallback((p,g)=>{const v=e.current.getColumn(g),x=e.current.getRow(p),_=e.current.getRowNode(p);if(!x||!_)throw new jd(`No row with id #${p} found`);const k=x[g],b=v!=null&&v.valueGetter?v.valueGetter(k,x,v,e):k,w=Er(e),P=nb(e),M={id:p,field:g,row:x,rowNode:_,colDef:v,cellMode:e.current.getCellMode(p,g),hasFocus:w!==null&&w.field===g&&w.id===p,tabIndex:P&&P.field===g&&P.id===p?0:-1,value:b,formattedValue:b,isEditable:!1};return v&&v.valueFormatter&&(M.formattedValue=v.valueFormatter(b,x,v,e)),M.isEditable=v&&e.current.isCellEditable(M),M},[e]),o=m.useCallback((p,g)=>{const v=e.current.getColumn(g),x=e.current.getRow(p);if(!x)throw new jd(`No row with id #${p} found`);return!v||!v.valueGetter?x[g]:v.valueGetter(x[v.field],x,v,e)},[e]),i=m.useCallback((p,g)=>{const v=g.field;if(!g||!g.valueGetter)return p[v];const x=p[g.field];return g.valueGetter(x,p,g,e)},[e]),l=m.useCallback((p,g)=>{const v=i(p,g);return!g||!g.valueFormatter?v:g.valueFormatter(v,p,g,e)},[e,i]),a=m.useCallback(p=>e.current.rootElementRef.current?xW(e.current.rootElementRef.current,p):null,[e]),c=m.useCallback(p=>e.current.rootElementRef.current?wW(e.current.rootElementRef.current,p):null,[e]),d=m.useCallback((p,g)=>e.current.rootElementRef.current?SW(e.current.rootElementRef.current,{id:p,field:g}):null,[e]);tt(e,{getCellValue:o,getCellParams:r,getCellElement:d,getRowValue:i,getRowFormattedValue:l,getRowParams:n,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a},"public")}const fb=(e,t,n,r,o)=>{const i=t===n-1;return e===pn.LEFT&&i?!0:r?e===pn.LEFT?!0:e===pn.RIGHT?!i:!i||o:!1},pb=(e,t)=>e===pn.RIGHT&&t===0,AW=["column","rowId","editCellState","align","children","colIndex","width","className","style","gridHasScrollX","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],DW=["changeReason","unstable_updateValueOnRender"];let Yn=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const IM={[Yn.LEFT]:pn.LEFT,[Yn.RIGHT]:pn.RIGHT,[Yn.NONE]:void 0,[Yn.VIRTUAL]:void 0},wx={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:wt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},NW=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:l,isSelectionMode:a,classes:c}=e,d={root:["cell",`cell--text${ce(t)}`,l&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Yn.LEFT&&"cell--pinnedLeft",o===Yn.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]};return xe(d,ft,c)},BW=m.forwardRef(function(t,n){var Ne;const{column:r,rowId:o,editCellState:i,align:l,colIndex:a,width:c,className:d,style:f,colSpan:p,disableDragEvents:g,isNotVisible:v,pinnedOffset:x,pinnedPosition:_,sectionIndex:k,sectionLength:b,gridHasFiller:w,onClick:P,onDoubleClick:M,onMouseDown:E,onMouseUp:$,onMouseOver:T,onKeyDown:F,onKeyUp:B,onDragEnter:H,onDragOver:W}=t,j=se(t,AW),D=ut(),R=De(),z=r.field,O=be(D,()=>{try{const fe=D.current.getCellParams(o,z);return fe.api=D.current,fe}catch(Le){if(Le instanceof jd)return wx;throw Le}},Tk),A=be(D,()=>D.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:o,field:z})),{cellMode:N,hasFocus:G,isEditable:U=!1,value:Z}=O,Y=r.type==="actions"&&((Ne=r.getActions)==null?void 0:Ne.call(r,D.current.getRowParams(o)).some(Le=>!Le.props.disabled)),ee=(N==="view"||!U)&&!Y?O.tabIndex:-1,{classes:Q,getCellClassName:X}=R,me=[be(D,()=>D.current.unstable_applyPipeProcessors("cellClassName",[],{id:o,field:z}).filter(Boolean).join(" "))];r.cellClassName&&me.push(typeof r.cellClassName=="function"?r.cellClassName(O):r.cellClassName),r.display==="flex"&&me.push(K["cell--flex"]),X&&me.push(X(O));const re=O.formattedValue??Z,oe=m.useRef(null),ge=Ct(n,oe),ve=m.useRef(null),ye=R.cellSelection??!1,Ee=IM[_],$e=pb(Ee,k),we=fb(Ee,k,b,R.showCellVerticalBorder,w),Ce={align:l,showLeftBorder:$e,showRightBorder:we,isEditable:U,classes:R.classes,pinnedPosition:_,isSelected:A,isSelectionMode:ye},Je=NW(Ce),Ie=m.useCallback(Le=>fe=>{const ae=D.current.getCellParams(o,z||"");D.current.publishEvent(Le,ae,fe),$&&$(fe)},[D,z,$,o]),Ye=m.useCallback(Le=>fe=>{const ae=D.current.getCellParams(o,z||"");D.current.publishEvent(Le,ae,fe),E&&E(fe)},[D,z,E,o]),Ve=m.useCallback((Le,fe)=>ae=>{if(!D.current.getRow(o))return;const Pe=D.current.getCellParams(o,z||"");D.current.publishEvent(Le,Pe,ae),fe&&fe(ae)},[D,z,o]),He=m.useMemo(()=>{if(v)return{padding:0,opacity:0,width:0,border:0};const Le=y({"--width":`${c}px`},f);return _===Yn.LEFT&&(Le.left=x),_===Yn.RIGHT&&(Le.right=x),Le},[c,v,f,x,_]);if(m.useEffect(()=>{if(!G||N===wt.Edit)return;const Le=zt(D.current.rootElementRef.current);if(oe.current&&!oe.current.contains(Le.activeElement)){const fe=oe.current.querySelector('[tabindex="0"]'),ae=ve.current||fe||oe.current;if(_W())ae.focus({preventScroll:!0});else{const Pe=D.current.getScrollPosition();ae.focus(),D.current.scroll(Pe)}}},[G,N,D]),O===wx)return null;let je=j.onFocus,ze,ke;if(i===null&&r.renderCell&&(ze=r.renderCell(O)),i!==null&&r.renderEditCell){const Le=D.current.getRowWithUpdatedValues(o,r.field),fe=se(i,DW),ae=r.valueFormatter?r.valueFormatter(i.value,Le,r,D):O.formattedValue,Pe=y({},O,{row:Le,formattedValue:ae},fe);ze=r.renderEditCell(Pe),me.push(K["cell--editing"]),me.push(Q==null?void 0:Q["cell--editing"])}if(ze===void 0){const Le=re==null?void 0:re.toString();ze=Le,ke=Le}m.isValidElement(ze)&&Y&&(ze=m.cloneElement(ze,{focusElementRef:ve}));const Ze=g?null:{onDragEnter:Ve("cellDragEnter",H),onDragOver:Ve("cellDragOver",W)};return S.jsx("div",y({ref:ge,className:pe(d,me,Je.root),role:"gridcell","data-field":z,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":p,style:He,title:ke,tabIndex:ee,onClick:Ve("cellClick",P),onDoubleClick:Ve("cellDoubleClick",M),onMouseOver:Ve("cellMouseOver",T),onMouseDown:Ye("cellMouseDown"),onMouseUp:Ie("cellMouseUp"),onKeyDown:Ve("cellKeyDown",F),onKeyUp:Ve("cellKeyUp",B)},Ze,j,{onFocus:je,children:ze}))}),HW=Yi(BW),jW=["field","align","width","height"],GW=v3(1e4,20,80),VW=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ce(t)}`,"withBorderColor"]};return xe(r,ft,n)};function WW(e){const{align:t,width:n,height:r}=e,o=se(e,jW),l={classes:De().classes,align:t},a=VW(l),c=Math.round(GW());return S.jsx("div",y({className:a.root,style:{height:r,maxWidth:n,minWidth:n}},o,{children:S.jsx(GH,{width:`${c}%`,height:25})}))}const UW=Yi(WW);function ZW(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?YR(fs(e.palette.divider,1),.88):XR(fs(e.palette.divider,1),.68)}const Sx={[`.${K.columnSeparator}, .${K["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},Px={[`& .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.menuIcon}`]:{width:"auto",visibility:"visible"}},KW=de("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${K.autoHeight}`]:t.autoHeight},{[`&.${K.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${K["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${K["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${K["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${K.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${K["root--disableUserSelection"]} .${K.cell}`]:t["root--disableUserSelection"]},{[`&.${K.autosizing}`]:t.autosizing},{[`& .${K.editBooleanCell}`]:t.editBooleanCell},{[`& .${K.cell}`]:t.cell},{[`& .${K["cell--editing"]}`]:t["cell--editing"]},{[`& .${K["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${K["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${K["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${K["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${K["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${K["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${K["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${K["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${K.cellCheckbox}`]:t.cellCheckbox},{[`& .${K.cellSkeleton}`]:t.cellSkeleton},{[`& .${K.checkboxInput}`]:t.checkboxInput},{[`& .${K["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${K["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${K["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${K["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${K["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${K["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${K["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${K["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${K["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${K.columnHeader}`]:t.columnHeader},{[`& .${K.headerFilterRow}`]:t.headerFilterRow},{[`& .${K.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${K.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${K.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${K["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${K["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${K.columnSeparator}`]:t.columnSeparator},{[`& .${K.filterIcon}`]:t.filterIcon},{[`& .${K.iconSeparator}`]:t.iconSeparator},{[`& .${K.menuIcon}`]:t.menuIcon},{[`& .${K.menuIconButton}`]:t.menuIconButton},{[`& .${K.menuOpen}`]:t.menuOpen},{[`& .${K.menuList}`]:t.menuList},{[`& .${K["row--editable"]}`]:t["row--editable"]},{[`& .${K["row--editing"]}`]:t["row--editing"]},{[`& .${K["row--dragging"]}`]:t["row--dragging"]},{[`& .${K.row}`]:t.row},{[`& .${K.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${K.rowReorderCell}`]:t.rowReorderCell},{[`& .${K["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${K.sortIcon}`]:t.sortIcon},{[`& .${K.withBorderColor}`]:t.withBorderColor},{[`& .${K.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${K.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${K.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${K["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{var k,b;const t=ZW(e),n=e.shape.borderRadius,r=e.vars?e.vars.palette.background.default:((k=e.mixins.MuiDataGrid)==null?void 0:k.containerBackground)??e.palette.background.default,o=((b=e.mixins.MuiDataGrid)==null?void 0:b.pinnedBackground)??r,i=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:fs(e.palette.background.default,e.palette.action.disabledOpacity),l=(e.vars||e).palette.action.hoverOpacity,a=(e.vars||e).palette.action.hover,c=(e.vars||e).palette.action.selectedOpacity,d=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${c})`:fs(e.palette.primary.main,c),f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc( ${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity} - ))`:fs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),p=e.vars?a:Sm(o,a,l),g=e.vars?d:Sm(o,d,c),v=e.vars?a:Sm(g,a,l),x={backgroundColor:d,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:d}}};return y({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":i,"--DataGrid-containerBackground":r,"--DataGrid-pinnedBackground":o,"--DataGrid-rowBorderColor":t,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`.${K.main} > *:first-of-type`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${K.autoHeight}`]:{height:"auto"},[`&.${K.autosizing}`]:{[`& .${K.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${K.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${K.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${K.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${K.groupingCriteriaCell}`]:{width:"unset"},[`& .${K.treeDataGroupingCell}`]:{width:"unset"}},[`& .${K.columnHeader}, & .${K.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${K.columnHeader}:focus-within, & .${K.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:fs(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${K.columnHeader}:focus, & .${K.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${K.columnHeaderCheckbox}, & .${K.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${K.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${K["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${K["columnHeader--sorted"]} .${K.iconButtonContainer}, & .${K["columnHeader--filtered"]} .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}) .${K.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${K.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${K.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${K["columnHeader--filledGroup"]} .${K.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${K.sortIcon}, & .${K.filterIcon}`]:{fontSize:"inherit"},[`& .${K["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${K["columnHeader--alignCenter"]} .${K.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${K["columnHeader--alignRight"]} .${K.columnHeaderDraggableContainer}, & .${K["columnHeader--alignRight"]} .${K.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${K["columnHeader--alignCenter"]} .${K.menuIcon}, & .${K["columnHeader--alignRight"]} .${K.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${K["columnHeader--alignRight"]} .${K.menuIcon}, & .${K["columnHeader--alignRight"]} .${K.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${K["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${K["columnHeader--pinnedLeft"]}, & .${K["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${K.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${K.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${K.columnHeaders}:hover`]:Sx,[`& .${K.columnHeader}:hover`]:Px,[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}):hover .${K.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${K.columnHeaders}`]:Sx,[`& .${K.columnHeader}`]:Px},[`& .${K["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${K["columnSeparator--sideRight"]}`]:{right:-12},[`& .${K["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${K["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${K.iconSeparator}`]:{color:"inherit"},[`& .${K.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${K.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${K.headerFilterRow}`]:{[`& .${K.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`.${K.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${K["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":x},[`& .${K["container--top"]}, & .${K["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${K.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":x},[`& .${K["virtualScrollerContent--overflowed"]} .${K["row--lastVisible"]} .${K.cell}`]:{borderTopColor:"transparent"},[`&.${K["root--disableUserSelection"]} .${K.cell}`]:{userSelect:"none"},[`& .${K["row--dynamicHeight"]} > .${K.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${K.cellEmpty}`]:{padding:0,height:"unset"},[`& .${K.cell}.${K["cell--selectionMode"]}`]:{cursor:"default"},[`& .${K.cell}.${K["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${K["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${K["row--editing"]} .${K.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${K.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${K.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${K.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${K.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${K.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${K["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${K.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${K.withBorderColor}`]:{borderColor:t},[`& .${K["cell--withLeftBorder"]}, & .${K["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${K["cell--withRightBorder"]}, & .${K["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${K["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${K["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${K["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${K["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${K.virtualScrollerContent} .${K.row}`]:{"&:hover":{[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:p}},"&.Mui-selected":{[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:g},"&:hover":{[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:v}}}},[`& .${K.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${K.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${K.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${K.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${K["columnHeader--dragging"]}, & .${K["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${K["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${K.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${K.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${K.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${K.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${K["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${K["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${K.filler}`]:{flex:1},[`& .${K["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"}})});function Sm(e,t,n,r=1){const o=(c,d)=>Math.round((c**(1/r)*(1-n)+d**(1/r)*n)**r),i=Ql(e),l=Ql(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return Rp({type:"rgb",values:a})}const qW=["children","className"],XW=e=>{const{autoHeight:t,density:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",t&&"autoHeight",`root--density${ce(n)}`,"withBorderColor",o&&"withVerticalBorder"]};return xe(i,ft,r)},YW=xt("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),QW=m.forwardRef(function(t,n){const r=De(),{children:o,className:i}=t,l=se(t,qW),a=ai(),c=be(a,kl),d=a.current.rootElementRef,f=Ct(d,n),p=y({},r,{density:c}),g=XW(p),[v,x]=m.useState(!1);return Mt(()=>{x(!0)},[]),v?S.jsxs(KW,y({ref:f,className:pe(i,g.root),ownerState:p},l,{children:[S.jsx(YW,{role:"presentation","data-id":"gridPanelAnchor"}),o]})):null}),JW=["className"],eU=e=>{const{classes:t}=e;return xe({root:["footerContainer","withBorderColor"]},ft,t)},tU=xt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),nU=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,JW),i=De(),l=eU(i);return S.jsx(tU,y({ref:n,className:pe(l.root,r),ownerState:i},o))}),rU=["className"],oU=e=>{const{classes:t}=e;return xe({root:["overlay"]},ft,t)},iU=xt("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),hb=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,rU),i=De(),l=oU(i);return S.jsx(iU,y({ref:n,className:pe(l.root,r),ownerState:i},o))}),sU=["className"],lU=e=>{const{classes:t}=e;return xe({root:["iconButtonContainer"]},ft,t)},aU=xt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),EM=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,sU),i=De(),l=lU(i);return S.jsx(aU,y({ref:n,className:pe(l.root,r),ownerState:i},o))}),uU=e=>{const{classes:t}=e;return xe({icon:["sortIcon"]},ft,t)};function cU(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?S.jsx(o,y({fontSize:"small",className:n},i)):null}function dU(e){var p;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,i=ut(),l=De(),a=y({},e,{classes:l.classes}),c=uU(a),d=cU(l.slots,t,c.icon,r);if(!d)return null;const f=S.jsx(l.slots.baseIconButton,y({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(p=l.slotProps)==null?void 0:p.baseIconButton,{children:d}));return S.jsxs(EM,{children:[n!=null&&S.jsx(AP,{badgeContent:n,color:"default",children:f}),n==null&&f]})}const fU=m.memo(dU),pU=e=>{const{classes:t,open:n}=e;return xe({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ft,t)},hU=m.memo(e=>{var p,g;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,l=ut(),a=De(),c=y({},e,{classes:a.classes}),d=pU(c),f=m.useCallback(v=>{v.preventDefault(),v.stopPropagation(),l.current.toggleColumnMenu(t.field)},[l,t.field]);return S.jsx("div",{className:d.root,children:S.jsx(a.slots.baseTooltip,y({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(p=a.slotProps)==null?void 0:p.baseTooltip,{children:S.jsx(a.slots.baseIconButton,y({ref:i,tabIndex:-1,className:d.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(g=a.slotProps)==null?void 0:g.baseIconButton,{children:S.jsx(a.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function mU({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:l,onExited:a}){const c=ut(),d=c.current.getColumn(o),f=at(p=>{p&&(p.stopPropagation(),l!=null&&l.contains(p.target))||c.current.hideColumnMenu()});return!l||!d?null:S.jsx(Uk,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:l,onClose:f,onExited:a,children:S.jsx(n,y({colDef:d,hideMenu:f,open:i,id:e,labelledby:t},r))})}const gU=["className"],vU=e=>{const{classes:t}=e;return xe({root:["columnHeaderTitle"]},ft,t)},yU=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),bU=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,gU),i=De(),l=vU(i);return S.jsx(yU,y({ref:n,className:pe(l.root,r),ownerState:i},o))});function _U(e){var c;const{label:t,description:n}=e,r=De(),o=m.useRef(null),[i,l]=m.useState(""),a=m.useCallback(()=>{if(!n&&(o!=null&&o.current)){const d=CW(o.current);l(d?t:"")}},[n,t]);return S.jsx(r.slots.baseTooltip,y({title:n||i},(c=r.slotProps)==null?void 0:c.baseTooltip,{children:S.jsx(bU,{onMouseOver:a,ref:o,children:t})}))}const CU=["resizable","resizing","height","side"];var mb=function(e){return e.Left="left",e.Right="right",e}(mb||{});const xU=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ce(o)}`],icon:["iconSeparator"]};return xe(i,ft,r)};function wU(e){const{height:t,side:n=mb.Right}=e,r=se(e,CU),o=De(),i=y({},e,{side:n,classes:o.classes}),l=xU(i),a=m.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return S.jsx("div",y({className:l.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:a,children:S.jsx(o.slots.columnResizeIcon,{className:l.icon})}))}const SU=m.memo(wU),PU=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],LM=m.forwardRef(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:l,sortDirection:a,hasFocus:c,tabIndex:d,separatorSide:f,isDraggable:p,headerComponent:g,description:v,width:x,columnMenuIconButton:_=null,columnMenu:k=null,columnTitleIconButtons:b=null,headerClassName:w,label:P,resizable:M,draggableContainerProps:E,columnHeaderSeparatorProps:$,style:T}=t,F=se(t,PU),B=ai(),H=De(),W=m.useRef(null),j=Ct(W,n);let D="none";return a!=null&&(D=a==="asc"?"ascending":"descending"),m.useLayoutEffect(()=>{var z;const R=B.current.state.columnMenu;if(c&&!R.open){const A=W.current.querySelector('[tabindex="0"]')||W.current;A==null||A.focus(),(z=B.current.columnHeadersContainerRef)!=null&&z.current&&(B.current.columnHeadersContainerRef.current.scrollLeft=0)}},[B,c]),S.jsxs("div",y({ref:j,className:pe(r.root,w),style:y({},T,{height:i,width:x,minWidth:x,maxWidth:x}),role:"columnheader",tabIndex:d,"aria-colindex":o+1,"aria-sort":D,"aria-label":g==null?P:void 0},F,{children:[S.jsxs("div",y({className:r.draggableContainer,draggable:p,role:"presentation"},E,{children:[S.jsxs("div",{className:r.titleContainer,role:"presentation",children:[S.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:S.jsx(_U,{label:P,description:v,columnWidth:x})}),b]}),_]})),S.jsx(SU,y({resizable:!H.disableColumnResize&&!!M,resizing:l,height:i,side:f},$)),k]}))}),kU=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:l,filterItemsCounter:a,pinnedPosition:c}=e,d=o!=null,f=a!=null&&a>0,p=t.type==="number",g={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",f&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c==="left"&&"columnHeader--pinnedLeft",c==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return xe(g,ft,n)};function MU(e){var oe,ge;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:l,sortDirection:a,sortIndex:c,filterItemsCounter:d,hasFocus:f,tabIndex:p,disableReorder:g,separatorSide:v,style:x,pinnedPosition:_,indexInSection:k,sectionLength:b,gridHasFiller:w}=e,P=ai(),M=De(),E=m.useRef(null),$=Ot(),T=Ot(),F=m.useRef(null),[B,H]=m.useState(n),W=m.useMemo(()=>!M.disableColumnReorder&&!g&&!t.disableReorder,[M.disableColumnReorder,g,t.disableReorder]);let j;t.renderHeader&&(j=t.renderHeader(P.current.getColumnHeaderParams(t.field)));const D=pb(_,k),R=fb(_,k,b,M.showCellVerticalBorder,w),z=y({},e,{classes:M.classes,showRightBorder:R,showLeftBorder:D}),O=kU(z),A=m.useCallback(ve=>ye=>{xc(ye)||P.current.publishEvent(ve,P.current.getColumnHeaderParams(t.field),ye)},[P,t.field]),N=m.useMemo(()=>({onClick:A("columnHeaderClick"),onDoubleClick:A("columnHeaderDoubleClick"),onMouseOver:A("columnHeaderOver"),onMouseOut:A("columnHeaderOut"),onMouseEnter:A("columnHeaderEnter"),onMouseLeave:A("columnHeaderLeave"),onKeyDown:A("columnHeaderKeyDown"),onFocus:A("columnHeaderFocus"),onBlur:A("columnHeaderBlur")}),[A]),G=m.useMemo(()=>W?{onDragStart:A("columnHeaderDragStart"),onDragEnter:A("columnHeaderDragEnter"),onDragOver:A("columnHeaderDragOver"),onDragEnd:A("columnHeaderDragEnd")}:{},[W,A]),U=m.useMemo(()=>({onMouseDown:A("columnSeparatorMouseDown"),onDoubleClick:A("columnSeparatorDoubleClick")}),[A]);m.useEffect(()=>{B||H(n)},[B,n]);const Z=m.useCallback(()=>{H(!1)},[]),Y=!M.disableColumnMenu&&!t.disableColumnMenu&&S.jsx(hU,{colDef:t,columnMenuId:$,columnMenuButtonId:T,open:B,iconButtonRef:F}),ee=S.jsx(mU,{columnMenuId:$,columnMenuButtonId:T,field:t.field,open:n,target:F.current,ContentComponent:M.slots.columnMenu,contentComponentProps:(oe=M.slotProps)==null?void 0:oe.columnMenu,onExited:Z}),Q=t.sortingOrder??M.sortingOrder,X=(t.sortable||a!=null)&&!t.hideSortIcons&&!M.disableColumnSorting,te=S.jsxs(m.Fragment,{children:[!M.disableColumnFilter&&S.jsx(M.slots.columnHeaderFilterIconButton,y({field:t.field,counter:d},(ge=M.slotProps)==null?void 0:ge.columnHeaderFilterIconButton)),X&&S.jsx(fU,{direction:a,index:c,sortingOrder:Q,disabled:!t.sortable})]});m.useLayoutEffect(()=>{var ye;const ve=P.current.state.columnMenu;if(f&&!ve.open){const $e=E.current.querySelector('[tabindex="0"]')||E.current;$e==null||$e.focus(),(ye=P.current.columnHeadersContainerRef)!=null&&ye.current&&(P.current.columnHeadersContainerRef.current.scrollLeft=0)}},[P,f]);const me=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,re=t.headerName??t.field;return S.jsx(LM,y({ref:E,classes:O,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:a,hasFocus:f,tabIndex:p,separatorSide:v,isDraggable:W,headerComponent:j,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:Y,columnTitleIconButtons:te,headerClassName:pe(me,l&&K["columnHeader--last"]),label:re,resizable:!M.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:ee,draggableContainerProps:G,columnHeaderSeparatorProps:U,style:x},N))}const IU=Yi(MU),EU=e=>{const{classes:t}=e;return xe({icon:["filterIcon"]},ft,t)};function LU(e){var x,_;const{counter:t,field:n,onClick:r}=e,o=ut(),i=De(),l=y({},e,{classes:i.classes}),a=EU(l),c=be(o,Qu),d=Ot(),f=Ot(),p=m.useCallback(k=>{k.preventDefault(),k.stopPropagation();const{open:b,openedPanelValue:w}=Qu(o.current.state);b&&w===ks.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,f,d),r&&r(o.current.getColumnHeaderParams(n),k)},[o,n,r,f,d]);if(!t)return null;const g=c.open&&c.labelId===d,v=S.jsx(i.slots.baseIconButton,y({id:d,onClick:p,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?f:void 0},(x=i.slotProps)==null?void 0:x.baseIconButton,{children:S.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return S.jsx(i.slots.baseTooltip,y({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(_=i.slotProps)==null?void 0:_.baseTooltip,{children:S.jsxs(EM,{children:[t>1&&S.jsx(AP,{badgeContent:t,color:"default",children:v}),t===1&&v]})}))}const kx=nt(S.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Mx=nt(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Ix=nt(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Ex=nt(S.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),TU=nt(S.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Lx=nt(S.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),OU=nt(S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");nt(S.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");nt(S.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const RU=nt(S.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),FU=nt(S.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),$U=nt(S.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),zU=nt(S.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),AU=nt(S.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),DU=nt(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Pm=nt(S.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"),Tx=nt(S.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),NU=nt(S.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),BU=nt(S.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Ox=nt(S.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),HU=nt(S.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),jU=nt(S.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),GU=nt(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),VU=nt(S.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),WU=nt(S.jsx("g",{children:S.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),UU=nt(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");nt(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const ZU=nt(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),KU=["hideMenu","colDef","id","labelledby","className","children","open"],qU=de(Fy)(()=>({minWidth:248})),XU=m.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:l,children:a,open:c}=t,d=se(t,KU),f=m.useCallback(p=>{fM(p.key)&&p.preventDefault(),qG(p.key)&&r(p)},[r]);return S.jsx(qU,y({id:o,ref:n,className:pe(K.menuList,l),"aria-labelledby":i,onKeyDown:f,autoFocus:c},d,{children:a}))}),YU=["displayOrder"],QU=e=>{const t=ai(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:l,colDef:a,addDividers:c=!0}=e,d=m.useMemo(()=>y({},n,o),[n,o]),f=m.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const v=y({},i);return Object.entries(r).forEach(([x,_])=>{v[x]=y({},_,i[x]||{})}),v},[r,i]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=m.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(x=>!v.includes(x))},[o,n]);return m.useMemo(()=>{const _=Array.from(new Set([...p,...g])).filter(k=>d[k]!=null).sort((k,b)=>{const w=f[k],P=f[b],M=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,E=Number.isFinite(P==null?void 0:P.displayOrder)?P.displayOrder:100;return M-E});return _.reduce((k,b,w)=>{let P={colDef:a,onClick:l};const M=f[b];if(M){const E=se(M,YU);P=y({},P,E)}return c&&w!==_.length-1?[...k,[d[b],P],[BP,{}]]:[...k,[d[b],P]]},[])},[c,a,p,l,d,f,g])};function JU(e){const{colDef:t,onClick:n}=e,r=ut(),o=De(),a=bn(r).filter(d=>d.disableColumnMenu!==!0).length===1,c=m.useCallback(d=>{a||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:S.jsxs(Lo,{onClick:c,disabled:a,children:[S.jsx(zl,{children:S.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),S.jsx(Al,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function e6(e){const{onClick:t}=e,n=ut(),r=De(),o=m.useCallback(i=>{t(i),n.current.showPreferences(ks.columns)},[n,t]);return r.disableColumnSelector?null:S.jsxs(Lo,{onClick:o,children:[S.jsx(zl,{children:S.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),S.jsx(Al,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function t6(e){return S.jsxs(m.Fragment,{children:[S.jsx(JU,y({},e)),S.jsx(e6,y({},e))]})}function n6(e){const{colDef:t,onClick:n}=e,r=ut(),o=De(),i=m.useCallback(l=>{n(l),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:S.jsxs(Lo,{onClick:i,children:[S.jsx(zl,{children:S.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),S.jsx(Al,{children:r.current.getLocaleText("columnMenuFilter")})]})}function r6(e){const{colDef:t,onClick:n}=e,r=ut(),o=be(r,Tr),i=De(),l=m.useMemo(()=>{if(!t)return null;const f=o.find(p=>p.field===t.field);return f==null?void 0:f.sort},[t,o]),a=t.sortingOrder??i.sortingOrder,c=m.useCallback(f=>{n(f);const p=f.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,p===l?null:p)},[r,t,n,l]);if(i.disableColumnSorting||!t||!t.sortable||!a.some(f=>!!f))return null;const d=f=>{const p=r.current.getLocaleText(f);return typeof p=="function"?p(t):p};return S.jsxs(m.Fragment,{children:[a.includes("asc")&&l!=="asc"?S.jsxs(Lo,{onClick:c,"data-value":"asc",children:[S.jsx(zl,{children:S.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),S.jsx(Al,{children:d("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?S.jsxs(Lo,{onClick:c,"data-value":"desc",children:[S.jsx(zl,{children:S.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),S.jsx(Al,{children:d("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?S.jsxs(Lo,{onClick:c,children:[S.jsx(zl,{}),S.jsx(Al,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const o6=["defaultSlots","defaultSlotProps","slots","slotProps"],i6={columnMenuSortItem:r6,columnMenuFilterItem:n6,columnMenuColumnsItem:t6},s6={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},l6=m.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}=t,a=se(t,o6),c=QU(y({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}));return S.jsx(XU,y({ref:n},a,{children:c.map(([d,f],p)=>S.jsx(d,y({},f),p))}))}),a6=m.forwardRef(function(t,n){return S.jsx(l6,y({},t,{ref:n,defaultSlots:i6,defaultSlotProps:s6}))}),u6=["className","slotProps"],c6=e=>{const{classes:t}=e;return xe({root:["panelWrapper"]},ft,t)},d6=de("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),f6=()=>!0,TM=m.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=se(t,u6),l=De(),a=c6(l);return S.jsx(vP,y({open:!0,disableEnforceFocus:!0,isEnabled:f6},o.TrapFocus,{children:S.jsx(d6,y({ref:n,tabIndex:-1,className:pe(r,a.root),ownerState:l},i))}))}),p6=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},h6=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,m6=e=>{const{classes:t}=e;return xe({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},ft,t)},Rx=new Intl.Collator;function OM(e){var D,R,z;const t=ut(),n=m.useRef(null),r=be(t,so),o=Ls(()=>Nr(t)).current,i=be(t,Nr),l=De(),[a,c]=m.useState(""),d=m6(l),{sort:f,searchPredicate:p=h6,autoFocusSearchField:g=!0,disableShowHideToggle:v=!1,disableResetButton:x=!1,toggleAllMode:_="all",getTogglableColumns:k}=e,b=m.useMemo(()=>p6(i,o),[i,o]),w=m.useMemo(()=>{switch(f){case"asc":return[...r].sort((O,A)=>Rx.compare(O.headerName||O.field,A.headerName||A.field));case"desc":return[...r].sort((O,A)=>-Rx.compare(O.headerName||O.field,A.headerName||A.field));default:return r}},[r,f]),P=O=>{const{name:A}=O.target;t.current.setColumnVisibility(A,i[A]===!1)},M=m.useMemo(()=>{const O=k?k(w):null,A=O?w.filter(({field:N})=>O.includes(N)):w;return a?A.filter(N=>p(N,a.toLowerCase())):A},[w,a,p,k]),E=m.useCallback(O=>{const A=Nr(t),N=y({},A),G=k?k(r):null;return(_==="filteredOnly"?M:r).forEach(U=>{U.hideable&&(G==null||G.includes(U.field))&&(O?delete N[U.field]:N[U.field]=!1)}),t.current.setColumnVisibilityModel(N)},[t,r,k,_,M]),$=m.useCallback(O=>{c(O.target.value)},[]),T=m.useMemo(()=>M.filter(O=>O.hideable),[M]),F=m.useMemo(()=>T.every(O=>i[O.field]==null||i[O.field]!==!1),[i,T]),B=m.useMemo(()=>T.every(O=>i[O.field]===!1),[i,T]),H=m.useRef(null);m.useEffect(()=>{g?n.current.focus():H.current&&typeof H.current.focus=="function"&&H.current.focus()},[g]);let W=!1;const j=O=>W===!1&&O.hideable!==!1?(W=!0,!0):!1;return S.jsxs(m.Fragment,{children:[S.jsx(v6,{className:d.header,ownerState:l,children:S.jsx(l.slots.baseTextField,y({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,value:a,onChange:$,variant:"outlined",size:"small",InputProps:{startAdornment:S.jsx(l.slots.baseInputAdornment,{position:"start",children:S.jsx(l.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(D=l.slotProps)==null?void 0:D.baseTextField))}),S.jsxs(g6,{className:d.root,ownerState:l,children:[M.map(O=>{var A;return S.jsx(PC,{className:d.row,control:S.jsx(l.slots.baseCheckbox,y({disabled:O.hideable===!1,checked:i[O.field]!==!1,onClick:P,name:O.field,sx:{p:.5},inputRef:j(O)?H:void 0},(A=l.slotProps)==null?void 0:A.baseCheckbox)),label:O.headerName||O.field},O.field)}),M.length===0&&S.jsx(b6,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!v||!x)&&M.length>0?S.jsxs(y6,{ownerState:l,className:d.footer,children:[v?S.jsx("span",{}):S.jsx(PC,{control:S.jsx(l.slots.baseCheckbox,y({disabled:T.length===0,checked:F,indeterminate:!F&&!B,onClick:()=>E(!F),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(R=l.slotProps)==null?void 0:R.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),x?null:S.jsx(l.slots.baseButton,y({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:b},(z=l.slotProps)==null?void 0:z.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const g6=de("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),v6=de("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),y6=de("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),b6=de("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function _6(e){var n;const t=De();return S.jsx(TM,y({},e,{children:S.jsx(OM,y({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const C6=["children","className","classes"],x6=Ue("MuiDataGrid",["panel","paper"]),w6=de(Ts,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),S6=de(Ui,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),P6=m.forwardRef((e,t)=>{const{children:n,className:r}=e,o=se(e,C6),i=ut(),l=De(),a=x6,[c,d]=m.useState(!1),f=m.useCallback(()=>{i.current.hidePreferences()},[i]),p=m.useCallback(_=>{$f(_.key)&&i.current.hidePreferences()},[i]),g=m.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}],[]),[v,x]=m.useState(null);return m.useEffect(()=>{var k,b;const _=(b=(k=i.current.rootElementRef)==null?void 0:k.current)==null?void 0:b.querySelector('[data-id="gridPanelAnchor"]');_&&x(_)},[i]),v?S.jsx(w6,y({ref:t,placement:"bottom-start",className:pe(r,a.panel),ownerState:l,anchorEl:v,modifiers:g},o,{children:S.jsx(gP,{mouseEvent:"onMouseUp",onClickAway:f,children:S.jsx(S6,{className:a.paper,ownerState:l,elevation:8,onKeyDown:p,children:c&&n})})})):null}),k6=["className"],M6=e=>{const{classes:t}=e;return xe({root:["panelContent"]},ft,t)},I6=xt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function E6(e){const{className:t}=e,n=se(e,k6),r=De(),o=M6(r);return S.jsx(I6,y({className:pe(t,o.root),ownerState:r},n))}const L6=["className"],T6=e=>{const{classes:t}=e;return xe({root:["panelFooter"]},ft,t)},O6=xt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function R6(e){const{className:t}=e,n=se(e,L6),r=De(),o=T6(r);return S.jsx(O6,y({className:pe(t,o.root),ownerState:r},n))}const F6=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],$6=["InputComponentProps"],z6=e=>{const{classes:t}=e;return xe({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ft,t)},A6=de("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),D6=de("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),N6=de("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),B6=de("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),H6=de("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),j6=de("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),G6=e=>{switch(e){case Bn.And:return"filterPanelOperatorAnd";case Bn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Za=e=>e.headerName||e.field,Fx=new Intl.Collator,$x=m.forwardRef(function(t,n){var we,Ce,Je,Ie,Ye,Ve,He,je,ze;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:l,showMultiFilterOperators:a,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:d,focusElementRef:f,logicOperators:p=[Bn.And,Bn.Or],columnsSort:g,filterColumns:v,deleteIconProps:x={},logicOperatorInputProps:_={},operatorInputProps:k={},columnInputProps:b={},valueInputProps:w={},readOnly:P}=t,M=se(t,F6),E=ut(),$=be(E,qi),T=be(E,Fk),F=be(E,vn),B=Ot(),H=Ot(),W=Ot(),j=Ot(),D=De(),R=z6(D),z=m.useRef(null),O=m.useRef(null),A=F.logicOperator??Bn.And,N=o&&p.length>0,G=((we=D.slotProps)==null?void 0:we.baseFormControl)||{},Z=(((Ce=D.slotProps)==null?void 0:Ce.baseSelect)||{}).native??!1,Y=((Je=D.slotProps)==null?void 0:Je.baseInputLabel)||{},ee=((Ie=D.slotProps)==null?void 0:Ie.baseSelectOption)||{},{InputComponentProps:Q}=w,X=se(w,$6),{filteredColumns:te,selectedField:me}=m.useMemo(()=>{let ke=r.field;const Ze=$[r.field].filterable===!1?$[r.field]:null;if(Ze)return{filteredColumns:[Ze],selectedField:ke};if(v===void 0||typeof v!="function")return{filteredColumns:T,selectedField:ke};const Ne=v({field:r.field,columns:T,currentFilters:(F==null?void 0:F.items)||[]});return{filteredColumns:T.filter(Le=>{const fe=Ne.includes(Le.field);return Le.field===r.field&&!fe&&(ke=void 0),fe}),selectedField:ke}},[v,F==null?void 0:F.items,T,r.field,$]),re=m.useMemo(()=>{switch(g){case"asc":return te.sort((ke,Ze)=>Fx.compare(Za(ke),Za(Ze)));case"desc":return te.sort((ke,Ze)=>-Fx.compare(Za(ke),Za(Ze)));default:return te}},[te,g]),oe=r.field?E.current.getColumn(r.field):null,ge=m.useMemo(()=>{var ke;return!r.operator||!oe?null:(ke=oe.filterOperators)==null?void 0:ke.find(Ze=>Ze.value===r.operator)},[r,oe]),ve=m.useCallback(ke=>{const Ze=ke.target.value,Ne=E.current.getColumn(Ze);if(Ne.field===oe.field)return;const Le=Ne.filterOperators.find(Pe=>Pe.value===r.operator)||Ne.filterOperators[0];let ae=!Le.InputComponent||Le.InputComponent!==(ge==null?void 0:ge.InputComponent)||Ne.type!==oe.type?void 0:r.value;if(Ne.type==="singleSelect"&&ae!==void 0){const Pe=Ne,st=Ps(Pe);Array.isArray(ae)?ae=ae.filter(ct=>Af(ct,st,Pe==null?void 0:Pe.getOptionValue)!==void 0):Af(r.value,st,Pe==null?void 0:Pe.getOptionValue)===void 0&&(ae=void 0)}l(y({},r,{field:Ze,operator:Le.value,value:ae}))},[E,l,r,oe,ge]),ye=m.useCallback(ke=>{const Ze=ke.target.value,Ne=oe==null?void 0:oe.filterOperators.find(fe=>fe.value===Ze),Le=!(Ne!=null&&Ne.InputComponent)||(Ne==null?void 0:Ne.InputComponent)!==(ge==null?void 0:ge.InputComponent);l(y({},r,{operator:Ze,value:Le?void 0:r.value}))},[l,r,oe,ge]),Ee=m.useCallback(ke=>{const Ze=ke.target.value===Bn.And.toString()?Bn.And:Bn.Or;d(Ze)},[d]),$e=()=>{D.disableMultipleColumnsFiltering?r.value===void 0?i(r):l(y({},r,{value:void 0})):i(r)};return m.useImperativeHandle(f,()=>({focus:()=>{var ke;ge!=null&&ge.InputComponent?(ke=z==null?void 0:z.current)==null||ke.focus():O.current.focus()}}),[ge]),S.jsxs(A6,y({ref:n,className:R.root,"data-id":r.id,ownerState:D},M,{children:[S.jsx(D6,y({variant:"standard",as:D.slots.baseFormControl},G,x,{className:pe(R.deleteIcon,G.className,x.className),ownerState:D,children:S.jsx(D.slots.baseIconButton,y({"aria-label":E.current.getLocaleText("filterPanelDeleteIconLabel"),title:E.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:$e,size:"small",disabled:P},(Ye=D.slotProps)==null?void 0:Ye.baseIconButton,{children:S.jsx(D.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),S.jsx(N6,y({variant:"standard",as:D.slots.baseFormControl},G,_,{sx:y({display:N?"flex":"none",visibility:a?"visible":"hidden"},G.sx||{},_.sx||{}),className:pe(R.logicOperatorInput,G.className,_.className),ownerState:D,children:S.jsx(D.slots.baseSelect,y({inputProps:{"aria-label":E.current.getLocaleText("filterPanelLogicOperator")},value:A??"",onChange:Ee,disabled:!!c||p.length===1,native:Z},(Ve=D.slotProps)==null?void 0:Ve.baseSelect,{children:p.map(ke=>m.createElement(D.slots.baseSelectOption,y({},ee,{native:Z,key:ke.toString(),value:ke.toString()}),E.current.getLocaleText(G6(ke))))}))})),S.jsxs(B6,y({variant:"standard",as:D.slots.baseFormControl},G,b,{className:pe(R.columnInput,G.className,b.className),ownerState:D,children:[S.jsx(D.slots.baseInputLabel,y({},Y,{htmlFor:B,id:H,children:E.current.getLocaleText("filterPanelColumns")})),S.jsx(D.slots.baseSelect,y({labelId:H,id:B,label:E.current.getLocaleText("filterPanelColumns"),value:me??"",onChange:ve,native:Z,disabled:P},(He=D.slotProps)==null?void 0:He.baseSelect,{children:re.map(ke=>m.createElement(D.slots.baseSelectOption,y({},ee,{native:Z,key:ke.field,value:ke.field}),Za(ke)))}))]})),S.jsxs(H6,y({variant:"standard",as:D.slots.baseFormControl},G,k,{className:pe(R.operatorInput,G.className,k.className),ownerState:D,children:[S.jsx(D.slots.baseInputLabel,y({},Y,{htmlFor:W,id:j,children:E.current.getLocaleText("filterPanelOperator")})),S.jsx(D.slots.baseSelect,y({labelId:j,label:E.current.getLocaleText("filterPanelOperator"),id:W,value:r.operator,onChange:ye,native:Z,inputRef:O,disabled:P},(je=D.slotProps)==null?void 0:je.baseSelect,{children:(ze=oe==null?void 0:oe.filterOperators)==null?void 0:ze.map(ke=>m.createElement(D.slots.baseSelectOption,y({},ee,{native:Z,key:ke.value,value:ke.value}),ke.label||E.current.getLocaleText(`filterOperator${ce(ke.value)}`)))}))]})),S.jsx(j6,y({variant:"standard",as:D.slots.baseFormControl},G,X,{className:pe(R.valueInput,G.className,X.className),ownerState:D,children:ge!=null&&ge.InputComponent?S.jsx(ge.InputComponent,y({apiRef:E,item:r,applyValue:l,focusElementRef:z,disabled:P},ge.InputComponentProps,Q),r.field):null}))]}))}),V6=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],zx=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),W6=m.forwardRef(function(t,n){var j,D;const r=ut(),o=De(),i=be(r,vn),l=be(r,Fk),a=be(r,e3),c=m.useRef(null),d=m.useRef(null),{logicOperators:f=[Bn.And,Bn.Or],columnsSort:p,filterFormProps:g,getColumnForNewFilter:v,disableAddFilterButton:x=!1,disableRemoveAllButton:_=!1}=t,k=se(t,V6),b=r.current.upsertFilterItem,w=m.useCallback(R=>{r.current.setFilterLogicOperator(R)},[r]),P=m.useCallback(()=>{let R;if(v&&typeof v=="function"){const z=v({currentFilters:(i==null?void 0:i.items)||[],columns:l});if(z===null)return null;R=l.find(({field:O})=>O===z)}else R=l.find(z=>{var O;return(O=z.filterOperators)==null?void 0:O.length});return R?zx(R):null},[i==null?void 0:i.items,l,v]),M=m.useCallback(()=>{if(v===void 0||typeof v!="function")return P();const R=i.items.length?i.items:[P()].filter(Boolean),z=v({currentFilters:R,columns:l});if(z===null)return null;const O=l.find(({field:A})=>A===z);return O?zx(O):null},[i.items,l,v,P]),E=m.useMemo(()=>i.items.length?i.items:(d.current||(d.current=P()),d.current?[d.current]:[]),[i.items,P]),$=E.length>1,{readOnlyFilters:T,validFilters:F}=m.useMemo(()=>E.reduce((R,z)=>(a[z.field]?R.validFilters.push(z):R.readOnlyFilters.push(z),R),{readOnlyFilters:[],validFilters:[]}),[E,a]),B=m.useCallback(()=>{const R=M();R&&r.current.upsertFilterItems([...E,R])},[r,M,E]),H=m.useCallback(R=>{const z=F.length===1;r.current.deleteFilterItem(R),z&&r.current.hideFilterPanel()},[r,F.length]),W=m.useCallback(()=>F.length===1&&F[0].value===void 0?(r.current.deleteFilterItem(F[0]),r.current.hideFilterPanel()):r.current.setFilterModel(y({},i,{items:T}),"removeAllFilterItems"),[r,T,i,F]);return m.useEffect(()=>{f.length>0&&i.logicOperator&&!f.includes(i.logicOperator)&&w(f[0])},[f,w,i.logicOperator]),m.useEffect(()=>{F.length>0&&c.current.focus()},[F.length]),S.jsxs(TM,y({ref:n},k,{children:[S.jsxs(E6,{children:[T.map((R,z)=>S.jsx($x,y({item:R,applyFilterChanges:b,deleteFilter:H,hasMultipleFilters:$,showMultiFilterOperators:z>0,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:f,columnsSort:p},g),R.id==null?z:R.id)),F.map((R,z)=>S.jsx($x,y({item:R,applyFilterChanges:b,deleteFilter:H,hasMultipleFilters:$,showMultiFilterOperators:T.length+z>0,disableMultiFilterOperator:T.length+z!==1,applyMultiFilterOperatorChanges:w,focusElementRef:z===F.length-1?c:null,logicOperators:f,columnsSort:p},g),R.id==null?z+T.length:R.id))]}),!o.disableMultipleColumnsFiltering&&!(x&&_)?S.jsxs(R6,{children:[x?S.jsx("span",{}):S.jsx(o.slots.baseButton,y({onClick:B,startIcon:S.jsx(o.slots.filterPanelAddIcon,{})},(j=o.slotProps)==null?void 0:j.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!_&&F.length>0?S.jsx(o.slots.baseButton,y({onClick:W,startIcon:S.jsx(o.slots.filterPanelRemoveAllIcon,{})},(D=o.slotProps)==null?void 0:D.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),U6=["hideMenu","options"],Z6=["hideMenu","options"];function K6(e){const t=ut(),{hideMenu:n,options:r}=e,o=se(e,U6);return S.jsx(Lo,y({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function q6(e){const t=ut(),{hideMenu:n,options:r}=e,o=se(e,Z6);return S.jsx(Lo,y({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const X6=["className","selectedRowCount"],Y6=e=>{const{classes:t}=e;return xe({root:["selectedRowCount"]},ft,t)},Q6=xt("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),J6=m.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=se(t,X6),l=ut(),a=De(),c=Y6(a),d=l.current.getLocaleText("footerRowSelected")(o);return S.jsx(Q6,y({ref:n,className:pe(c.root,r),ownerState:a},i,{children:d}))}),e8=m.forwardRef(function(t,n){var p,g;const r=ut(),o=De(),i=be(r,B3),l=be(r,mG),a=be(r,nM),c=!o.hideFooterSelectedRowCount&&l>0?S.jsx(J6,{selectedRowCount:l}):S.jsx("div",{}),d=!o.hideFooterRowCount&&!o.pagination?S.jsx(o.slots.footerRowCount,y({},(p=o.slotProps)==null?void 0:p.footerRowCount,{rowCount:i,visibleRowCount:a})):null,f=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&S.jsx(o.slots.pagination,y({},(g=o.slotProps)==null?void 0:g.pagination));return S.jsxs(nU,y({ref:n},t,{children:[c,d,f]}))}),t8=m.forwardRef(function(t,n){var c,d;const r=ut(),o=be(r,so),i=De(),l=be(r,Qu),a=r.current.unstable_applyPipeProcessors("preferencePanel",null,l.openedPanelValue??ks.filters);return S.jsx(i.slots.panel,y({ref:n,as:i.slots.basePopper,open:o.length>0&&l.open,id:l.panelId,"aria-labelledby":l.labelId},(c=i.slotProps)==null?void 0:c.panel,t,(d=i.slotProps)==null?void 0:d.basePopper,{children:a}))});function n8(){var t;const e=De();return S.jsxs(m.Fragment,{children:[S.jsx(t8,{}),e.slots.toolbar&&S.jsx(e.slots.toolbar,y({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const r8=m.forwardRef(function(t,n){return S.jsx(hb,y({ref:n},t,{children:S.jsx(NP,{})}))}),o8=m.forwardRef(function(t,n){const o=ut().current.getLocaleText("noRowsLabel");return S.jsx(hb,y({ref:n},t,{children:o}))}),i8=de(Rj)(({theme:e})=>({[`& .${vs.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${vs.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),s8=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),l8=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,a8=m.forwardRef(function(t,n){const r=ut(),o=De(),i=be(r,Nn),l=be(r,Ml),a=be(r,lM),{paginationMode:c,loading:d,estimatedRowCount:f}=o,p=m.useMemo(()=>l===-1&&c==="server"&&d?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[d,c,l]),g=m.useMemo(()=>Math.max(0,a-1),[a]),v=m.useMemo(()=>l===-1||i.page<=g?i.page:g,[g,i.page,l]),x=m.useCallback(M=>{const E=Number(M.target.value);r.current.setPageSize(E)},[r]),_=m.useCallback((M,E)=>{r.current.setPage(E)},[r]),b=(M=>{for(let E=0;E{const{classes:t}=e;return xe({root:["rowCount"]},ft,t)},d8=xt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),f8=m.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,l=se(t,u8),a=ut(),c=De(),d=c8(c);if(o===0)return null;const f=ie.editRows,gd={root:K.scrollbarFiller,header:K["scrollbarFiller--header"],borderTop:K["scrollbarFiller--borderTop"],pinnedRight:K["scrollbarFiller--pinnedRight"]};function RM({header:e,borderTop:t=!0,pinnedRight:n}){return S.jsx("div",{role:"presentation",className:pe(gd.root,e&&gd.header,t&&gd.borderTop,n&&gd.pinnedRight)})}const FM=(e,t,n,r,o)=>{const i=o.hasScrollY?o.scrollbarSize:0;let l;switch(e){case pn.LEFT:l=r[n];break;case pn.RIGHT:l=o.columnsTotalWidth-r[n]-t+i;break;default:l=0;break}return l},p8=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],h8=e=>{const{editable:t,editing:n,selected:r,isFirstVisible:o,isLastVisible:i,rowHeight:l,classes:a}=e;return xe({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--firstVisible",i&&"row--lastVisible",l==="auto"&&"row--dynamicHeight"]},ft,a)};function m8({width:e}){return e?S.jsx("div",{role:"presentation",className:pe(K.cell,K.cellEmpty),style:{"--width":`${e}px`}}):null}const g8=m.forwardRef(function(t,n){var Le;const{selected:r,rowId:o,row:i,index:l,style:a,rowHeight:c,className:d,visibleColumns:f,pinnedColumns:p,offsetLeft:g,dimensions:v,renderContext:x,focusedColumnIndex:_,isFirstVisible:k,isLastVisible:b,isNotVisible:w,onClick:P,onDoubleClick:M,onMouseEnter:E,onMouseLeave:$,onMouseOut:T,onMouseOver:F}=t,B=se(t,p8),H=ut(),W=m.useRef(null),j=De(),D=Ns(H,j),R=be(H,Tr),z=be(H,th),O=be(H,Cc),A=be(H,As),N=be(H,Rn),G=Ct(W,n),U=H.current.getRowNode(o),Z=v.hasScrollY?v.scrollbarSize:0,Y=v.columnsTotalWidth=p.left.length&&_=x.lastColumnIndex,te=l+O+2,me={selected:r,isFirstVisible:k,isLastVisible:b,classes:j.classes,editing:H.current.getRowMode(o)===Lt.Edit,editable:j.editMode===Fo.Row,rowHeight:c},re=h8(me);m.useLayoutEffect(()=>{c==="auto"&&W.current&&typeof ResizeObserver>"u"&&H.current.unstable_storeRowHeightMeasurement(o,W.current.clientHeight)},[H,c,o]),m.useLayoutEffect(()=>{if(D.range){const st=H.current.getRowIndexRelativeToVisibleRows(o);st!=null&&H.current.unstable_setLastMeasuredRowIndex(st)}const fe=W.current;if(!fe||c!=="auto"||typeof ResizeObserver>"u")return;const Pe=new ResizeObserver(st=>{const[ct]=st,Me=ct.borderBoxSize&&ct.borderBoxSize.length>0?ct.borderBoxSize[0].blockSize:ct.contentRect.height;H.current.unstable_storeRowHeightMeasurement(o,Me)});return Pe.observe(fe),()=>Pe.disconnect()},[H,D.range,l,c,o]);const oe=m.useCallback((fe,ae)=>Pe=>{xc(Pe)||H.current.getRow(o)&&(H.current.publishEvent(fe,H.current.getRowParams(o),Pe),ae&&ae(Pe))},[H,o]),ge=m.useCallback(fe=>{const ae=Df(fe.target,K.cell),Pe=ae==null?void 0:ae.getAttribute("data-field");if(Pe){if(Pe===ga.field||Pe===gb||Pe==="__reorder__"||H.current.getCellMode(o,Pe)===wt.Edit)return;const st=H.current.getColumn(Pe);if((st==null?void 0:st.type)===Jp)return}oe("rowClick",P)(fe)},[H,P,oe,o]),{slots:ve,slotProps:ye,disableColumnReorder:Ee}=j,$e=j.rowReordering,we=be(H,()=>y({},H.current.unstable_getRowInternalSizes(o)),Tk);let Ce=c;Ce==="auto"&&we&&(we.baseCenter??0)>0;const Je=m.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const fe=y({},a,{maxHeight:c==="auto"?"none":c,minHeight:Ce,"--height":typeof c=="number"?`${c}px`:c});if(we!=null&&we.spacingTop){const ae=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";fe[ae]=we.spacingTop}if(we!=null&&we.spacingBottom){const ae=j.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Pe=fe[ae];typeof Pe!="number"&&(Pe=parseInt(Pe||"0",10)),Pe+=we.spacingBottom,fe[ae]=Pe}return fe},[w,c,a,Ce,we,j.rowSpacingType]),Ie=H.current.unstable_applyPipeProcessors("rowClassName",[],o);if(typeof j.getRowClassName=="function"){const fe=l-(((Le=D.range)==null?void 0:Le.firstRowIndex)||0),ae=y({},H.current.getRowParams(o),{isFirstVisible:fe===0,isLastVisible:fe===D.rows.length-1,indexRelativeToCurrentPage:fe});Ie.push(j.getRowClassName(ae))}const Ye=(fe,ae,Pe,st,ct=Yn.NONE)=>{var wr;const Me=H.current.unstable_getCellColSpanInfo(o,Pe);if(Me!=null&&Me.spannedByColSpan)return null;const Ge=(Me==null?void 0:Me.cellProps.width)??fe.computedWidth,et=(Me==null?void 0:Me.cellProps.colSpan)??1,Et=FM(IM[ct],fe.computedWidth,Pe,A,v);if((U==null?void 0:U.type)==="skeletonRow")return S.jsx(ve.skeletonCell,{width:Ge,height:c,field:fe.field,align:fe.align??"left"},fe.field);const jt=((wr=N[o])==null?void 0:wr[fe.field])??null,sr=fe.field==="__reorder__",Xt=Object.keys(N).length>0,Yt=!(Ee||fe.disableReorder),rn=$e&&!R.length&&z<=1&&!Xt,Un=!(Yt||sr&&rn),Zn=ct===Yn.VIRTUAL;return S.jsx(ve.cell,y({column:fe,width:Ge,rowId:o,align:fe.align||"left",colIndex:Pe,colSpan:et,disableDragEvents:Un,editCellState:jt,isNotVisible:Zn,pinnedOffset:Et,pinnedPosition:ct,sectionIndex:ae,sectionLength:st,gridHasFiller:Y},ye==null?void 0:ye.cell),fe.field)};if(!U)return null;const Ve=p.left.map((fe,ae)=>Ye(fe,ae,ae,p.left.length,Yn.LEFT)),He=p.right.map((fe,ae)=>{const Pe=f.length-p.right.length+ae;return Ye(fe,ae,Pe,p.right.length,Yn.RIGHT)}),je=f.length-p.left.length-p.right.length,ze=[];Q&&ze.push(Ye(f[_],_-p.left.length,_,je,Yn.VIRTUAL));for(let fe=x.firstColumnIndex;fe0&&S.jsx(m8,{width:Ne}),He.length>0&&S.jsx("div",{role:"presentation",className:K.filler}),He,Z!==0&&S.jsx(RM,{pinnedRight:p.right.length>0})]}))}),v8=Yi(g8);function y8({privateApiRef:e,props:t,children:n}){const r=m.useRef(e.current.getPublicApi());return S.jsx(Ek.Provider,{value:t,children:S.jsx(yM.Provider,{value:e,children:S.jsx(Ik.Provider,{value:r,children:n})})})}const b8=e=>{const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r})},_8=e=>{const t=$o();e.current.state.theme||(e.current.state.theme=t);const n=m.useRef(!0);m.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>y({},r,{theme:t}))},[e,t])},C8=m3()&&window.localStorage.getItem("DEBUG")!=null,nu=()=>{},x8={debug:nu,info:nu,warn:nu,error:nu},Ax=["debug","info","warn","error"];function Dx(e,t,n=console){const r=Ax.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return Ax.reduce((i,l,a)=>(a>=r?i[l]=(...c)=>{const[d,...f]=c;n[l](`MUI X: ${e} - ${d}`,...f)}:i[l]=nu,i),{})}const w8=(e,t)=>{const n=m.useCallback(r=>C8?Dx(r,"debug",t.logger):t.logLevel?Dx(r,t.logLevel.toString(),t.logger):x8,[t.logLevel,t.logger]);tt(e,{getLogger:n},"private")};class vb{static create(t){return new vb(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class S8{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let l=o.length-1;l>=0;l-=1){const a=o[l];r.highPriority.has(a)&&a.apply(this,n)}for(let l=0;le.isPropagationStopped!==void 0;let Nx=0;function k8(e){var o;const t=(o=e.current)==null?void 0:o[$M];if(t)return t;const n={},r={state:n,store:vb.create(n),instanceId:{id:Nx}};return Nx+=1,r.getPublicApi=()=>e.current,r.register=(i,l)=>{Object.keys(l).forEach(a=>{const c=l[a],d=r[a];if((d==null?void 0:d.spying)===!0?d.target=c:r[a]=c,i==="public"){const f=e.current,p=f[a];(p==null?void 0:p.spying)===!0?p.target=c:f[a]=c}})},r.register("private",{caches:{},eventManager:new S8}),r}function M8(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[$M]:e.current}}function I8(e,t){var l;const n=m.useRef(),r=m.useRef();r.current||(r.current=k8(n)),n.current||(n.current=M8(r));const o=m.useCallback((...a)=>{const[c,d,f={}]=a;if(f.defaultMuiPrevented=!1,P8(f)&&f.isPropagationStopped())return;const p=t.signature===To.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(c,d,f,p)},[r,t.signature]),i=m.useCallback((a,c,d)=>{r.current.eventManager.on(a,c,d);const f=r.current;return()=>{f.eventManager.removeListener(a,c)}},[r]);return tt(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((l=e.current)!=null&&l.state)&&(e.current=n.current),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const E8=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},L8=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=m.useCallback((f,p,g)=>{t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}});const v=t.current[f];return v.processors.get(p)!==g&&(v.processors.set(p,g),v.processorsAsArray=Array.from(t.current[f].processors.values()),r(v)),()=>{t.current[f].processors.delete(p),t.current[f].processorsAsArray=Array.from(t.current[f].processors.values())}},[r]),i=m.useCallback((f,p,g)=>(t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[f].appliers[p]=g,()=>{const v=t.current[f].appliers,x=se(v,[p].map(Hu));t.current[f].appliers=x}),[]),l=m.useCallback(f=>{r(t.current[f])},[r]),a=m.useCallback((...f)=>{const[p,g,v]=f;if(!t.current[p])return g;const x=t.current[p].processorsAsArray;let _=g;for(let k=0;k{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);_c(()=>{i()});const l=m.useRef(!0);m.useEffect(()=>(l.current?l.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},yb=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);_c(()=>{i()});const l=m.useRef(!0);m.useEffect(()=>(l.current?l.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Nf=(e,t,n,r)=>{const o=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);_c(()=>{o()});const i=m.useRef(!0);m.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ms="none",Bx={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},T8=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((c,d,f)=>{const p=()=>{const x=n.current[d],_=se(x,[c].map(Hu));n.current[d]=_};n.current[d]||(n.current[d]={});const g=n.current[d],v=g[c];return g[c]=f,!v||v===f||c===e.current.getActiveStrategy(Bx[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),p},[e]),o=m.useCallback((c,d)=>{const f=e.current.getActiveStrategy(Bx[c]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[c];if(!p||!p[f])throw new Error(`No processor found for processor "${c}" on strategy "${f}"`);const g=p[f];return g(d)},[e]),i=m.useCallback(c=>{const f=Array.from(t.current.entries()).find(([,p])=>p.group!==c?!1:p.isAvailable());return(f==null?void 0:f[0])??Ms},[]),l=m.useCallback((c,d,f)=>{t.current.set(d,{group:c,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);tt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:l},"private")},O8=e=>{const t=m.useRef({}),[,n]=m.useState(),r=m.useCallback(d=>{t.current[d.stateId]=d},[]),o=m.useCallback((d,f)=>{let p;if(Dk(d)?p=d(e.current.state):p=d,e.current.state===p)return!1;let g=!1;const v=[];if(Object.keys(t.current).forEach(x=>{const _=t.current[x],k=_.stateSelector(e.current.state,e.current.instanceId),b=_.stateSelector(p,e.current.instanceId);b!==k&&(v.push({stateId:_.stateId,hasPropChanged:b!==_.propModel}),_.propModel!==void 0&&b!==_.propModel&&(g=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(x=>x.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=p,e.current.publishEvent&&e.current.publishEvent("stateChange",p),e.current.store.update(p)),v.length===1){const{stateId:x,hasPropChanged:_}=v[0],k=t.current[x],b=k.stateSelector(p,e.current.instanceId);k.propOnChange&&_&&k.propOnChange(b,{reason:f,api:e.current}),g||e.current.publishEvent(k.changeEvent,b,{reason:f})}return!g},[e]),i=m.useCallback((d,f,p)=>e.current.setState(g=>y({},g,{[d]:f(g[d])}),p),[e]),l=m.useCallback(()=>n(()=>e.current.state),[e]),a={setState:o,forceUpdate:l},c={updateControlState:i,registerControlState:r};tt(e,a,"public"),tt(e,c,"private")},R8=(e,t)=>{const n=I8(e,t);return b8(n),_8(n),w8(n,t),O8(n),L8(n),T8(n),E8(n,t),n.current.register("private",{rootProps:t}),n},Tn=(e,t,n)=>{const r=m.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function Xg(e,t){if(typeof e=="string"){if(t.shouldAppendQuotes||t.escapeFormulas){const n=e.replace(/"/g,'""');return[t.delimiter,` + ))`:fs(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),p=e.vars?a:Sm(o,a,l),g=e.vars?d:Sm(o,d,c),v=e.vars?a:Sm(g,a,l),x={backgroundColor:d,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:d}}};return y({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":i,"--DataGrid-containerBackground":r,"--DataGrid-pinnedBackground":o,"--DataGrid-rowBorderColor":t,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`.${K.main} > *:first-of-type`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${K.autoHeight}`]:{height:"auto"},[`&.${K.autosizing}`]:{[`& .${K.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${K.iconButtonContainer}`]:{width:"0 !important",visibility:"hidden !important"},[`& .${K.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${K.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${K.groupingCriteriaCell}`]:{width:"unset"},[`& .${K.treeDataGroupingCell}`]:{width:"unset"}},[`& .${K.columnHeader}, & .${K.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${K.columnHeader}:focus-within, & .${K.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:fs(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${K.columnHeader}:focus, & .${K.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${K.columnHeaderCheckbox}, & .${K.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${K.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${K["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${K["columnHeader--sorted"]} .${K.iconButtonContainer}, & .${K["columnHeader--filtered"]} .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}) .${K.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${K.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${K.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${K["columnHeader--filledGroup"]} .${K.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${K.sortIcon}, & .${K.filterIcon}`]:{fontSize:"inherit"},[`& .${K["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${K["columnHeader--alignCenter"]} .${K.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${K["columnHeader--alignRight"]} .${K.columnHeaderDraggableContainer}, & .${K["columnHeader--alignRight"]} .${K.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${K["columnHeader--alignCenter"]} .${K.menuIcon}, & .${K["columnHeader--alignRight"]} .${K.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${K["columnHeader--alignRight"]} .${K.menuIcon}, & .${K["columnHeader--alignRight"]} .${K.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${K["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${K["columnHeader--pinnedLeft"]}, & .${K["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:4,background:"var(--DataGrid-pinnedBackground)"},[`& .${K.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${K.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${K.columnHeaders}:hover`]:Sx,[`& .${K.columnHeader}:hover`]:Px,[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}):hover .${K.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${K.columnHeaders}`]:Sx,[`& .${K.columnHeader}`]:Px},[`& .${K["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${K["columnSeparator--sideRight"]}`]:{right:-12},[`& .${K["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${K["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${K.iconSeparator}`]:{color:"inherit"},[`& .${K.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${K.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${K.headerFilterRow}`]:{[`& .${K.columnHeader}`]:{boxSizing:"border-box",borderTop:"1px solid var(--DataGrid-rowBorderColor)"}},[`.${K.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${K["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":x},[`& .${K["container--top"]}, & .${K["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${K.cell}`]:{height:"var(--height)",minWidth:"var(--width)",maxWidth:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":x},[`& .${K["virtualScrollerContent--overflowed"]} .${K["row--lastVisible"]} .${K.cell}`]:{borderTopColor:"transparent"},[`&.${K["root--disableUserSelection"]} .${K.cell}`]:{userSelect:"none"},[`& .${K["row--dynamicHeight"]} > .${K.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${K.cellEmpty}`]:{padding:0,height:"unset"},[`& .${K.cell}.${K["cell--selectionMode"]}`]:{cursor:"default"},[`& .${K.cell}.${K["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${K["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${K["row--editing"]} .${K.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${K.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${K.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${K.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${K.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${K.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${K["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${K.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${K.withBorderColor}`]:{borderColor:t},[`& .${K["cell--withLeftBorder"]}, & .${K["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${K["cell--withRightBorder"]}, & .${K["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${K["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${K["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${K["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${K["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{position:"sticky",zIndex:3,background:"var(--DataGrid-pinnedBackground)"},[`& .${K.virtualScrollerContent} .${K.row}`]:{"&:hover":{[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:p}},"&.Mui-selected":{[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:g},"&:hover":{[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:v}}}},[`& .${K.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${K.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${K.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${K.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${K["columnHeader--dragging"]}, & .${K["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${K["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${K.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${K.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${K.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${K.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${K["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${K["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${K.filler}`]:{flex:1},[`& .${K["filler--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"}})});function Sm(e,t,n,r=1){const o=(c,d)=>Math.round((c**(1/r)*(1-n)+d**(1/r)*n)**r),i=Ql(e),l=Ql(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return Rp({type:"rgb",values:a})}const qW=["children","className"],XW=e=>{const{autoHeight:t,density:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",t&&"autoHeight",`root--density${ce(n)}`,"withBorderColor",o&&"withVerticalBorder"]};return xe(i,ft,r)},YW=xt("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0}),QW=m.forwardRef(function(t,n){const r=De(),{children:o,className:i}=t,l=se(t,qW),a=ai(),c=be(a,kl),d=a.current.rootElementRef,f=Ct(d,n),p=y({},r,{density:c}),g=XW(p),[v,x]=m.useState(!1);return Mt(()=>{x(!0)},[]),v?S.jsxs(KW,y({ref:f,className:pe(i,g.root),ownerState:p},l,{children:[S.jsx(YW,{role:"presentation","data-id":"gridPanelAnchor"}),o]})):null}),JW=["className"],eU=e=>{const{classes:t}=e;return xe({root:["footerContainer","withBorderColor"]},ft,t)},tU=xt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),nU=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,JW),i=De(),l=eU(i);return S.jsx(tU,y({ref:n,className:pe(l.root,r),ownerState:i},o))}),rU=["className"],oU=e=>{const{classes:t}=e;return xe({root:["overlay"]},ft,t)},iU=xt("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),hb=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,rU),i=De(),l=oU(i);return S.jsx(iU,y({ref:n,className:pe(l.root,r),ownerState:i},o))}),sU=["className"],lU=e=>{const{classes:t}=e;return xe({root:["iconButtonContainer"]},ft,t)},aU=xt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),EM=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,sU),i=De(),l=lU(i);return S.jsx(aU,y({ref:n,className:pe(l.root,r),ownerState:i},o))}),uU=e=>{const{classes:t}=e;return xe({icon:["sortIcon"]},ft,t)};function cU(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?S.jsx(o,y({fontSize:"small",className:n},i)):null}function dU(e){var p;const{direction:t,index:n,sortingOrder:r,disabled:o}=e,i=ut(),l=De(),a=y({},e,{classes:l.classes}),c=uU(a),d=cU(l.slots,t,c.icon,r);if(!d)return null;const f=S.jsx(l.slots.baseIconButton,y({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o},(p=l.slotProps)==null?void 0:p.baseIconButton,{children:d}));return S.jsxs(EM,{children:[n!=null&&S.jsx(AP,{badgeContent:n,color:"default",children:f}),n==null&&f]})}const fU=m.memo(dU),pU=e=>{const{classes:t,open:n}=e;return xe({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ft,t)},hU=m.memo(e=>{var p,g;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,l=ut(),a=De(),c=y({},e,{classes:a.classes}),d=pU(c),f=m.useCallback(v=>{v.preventDefault(),v.stopPropagation(),l.current.toggleColumnMenu(t.field)},[l,t.field]);return S.jsx("div",{className:d.root,children:S.jsx(a.slots.baseTooltip,y({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(p=a.slotProps)==null?void 0:p.baseTooltip,{children:S.jsx(a.slots.baseIconButton,y({ref:i,tabIndex:-1,className:d.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(g=a.slotProps)==null?void 0:g.baseIconButton,{children:S.jsx(a.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function mU({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:l,onExited:a}){const c=ut(),d=c.current.getColumn(o),f=at(p=>{p&&(p.stopPropagation(),l!=null&&l.contains(p.target))||c.current.hideColumnMenu()});return!l||!d?null:S.jsx(Uk,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:l,onClose:f,onExited:a,children:S.jsx(n,y({colDef:d,hideMenu:f,open:i,id:e,labelledby:t},r))})}const gU=["className"],vU=e=>{const{classes:t}=e;return xe({root:["columnHeaderTitle"]},ft,t)},yU=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),bU=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,gU),i=De(),l=vU(i);return S.jsx(yU,y({ref:n,className:pe(l.root,r),ownerState:i},o))});function _U(e){var c;const{label:t,description:n}=e,r=De(),o=m.useRef(null),[i,l]=m.useState(""),a=m.useCallback(()=>{if(!n&&(o!=null&&o.current)){const d=CW(o.current);l(d?t:"")}},[n,t]);return S.jsx(r.slots.baseTooltip,y({title:n||i},(c=r.slotProps)==null?void 0:c.baseTooltip,{children:S.jsx(bU,{onMouseOver:a,ref:o,children:t})}))}const CU=["resizable","resizing","height","side"];var mb=function(e){return e.Left="left",e.Right="right",e}(mb||{});const xU=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ce(o)}`],icon:["iconSeparator"]};return xe(i,ft,r)};function wU(e){const{height:t,side:n=mb.Right}=e,r=se(e,CU),o=De(),i=y({},e,{side:n,classes:o.classes}),l=xU(i),a=m.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return S.jsx("div",y({className:l.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:a,children:S.jsx(o.slots.columnResizeIcon,{className:l.icon})}))}const SU=m.memo(wU),PU=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],LM=m.forwardRef(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:l,sortDirection:a,hasFocus:c,tabIndex:d,separatorSide:f,isDraggable:p,headerComponent:g,description:v,width:x,columnMenuIconButton:_=null,columnMenu:k=null,columnTitleIconButtons:b=null,headerClassName:w,label:P,resizable:M,draggableContainerProps:E,columnHeaderSeparatorProps:$,style:T}=t,F=se(t,PU),B=ai(),H=De(),W=m.useRef(null),j=Ct(W,n);let D="none";return a!=null&&(D=a==="asc"?"ascending":"descending"),m.useLayoutEffect(()=>{var z;const R=B.current.state.columnMenu;if(c&&!R.open){const A=W.current.querySelector('[tabindex="0"]')||W.current;A==null||A.focus(),(z=B.current.columnHeadersContainerRef)!=null&&z.current&&(B.current.columnHeadersContainerRef.current.scrollLeft=0)}},[B,c]),S.jsxs("div",y({ref:j,className:pe(r.root,w),style:y({},T,{height:i,width:x,minWidth:x,maxWidth:x}),role:"columnheader",tabIndex:d,"aria-colindex":o+1,"aria-sort":D,"aria-label":g==null?P:void 0},F,{children:[S.jsxs("div",y({className:r.draggableContainer,draggable:p,role:"presentation"},E,{children:[S.jsxs("div",{className:r.titleContainer,role:"presentation",children:[S.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:S.jsx(_U,{label:P,description:v,columnWidth:x})}),b]}),_]})),S.jsx(SU,y({resizable:!H.disableColumnResize&&!!M,resizing:l,height:i,side:f},$)),k]}))}),kU=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:l,filterItemsCounter:a,pinnedPosition:c}=e,d=o!=null,f=a!=null&&a>0,p=t.type==="number",g={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",f&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c==="left"&&"columnHeader--pinnedLeft",c==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return xe(g,ft,n)};function MU(e){var oe,ge;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:l,sortDirection:a,sortIndex:c,filterItemsCounter:d,hasFocus:f,tabIndex:p,disableReorder:g,separatorSide:v,style:x,pinnedPosition:_,indexInSection:k,sectionLength:b,gridHasFiller:w}=e,P=ai(),M=De(),E=m.useRef(null),$=Ot(),T=Ot(),F=m.useRef(null),[B,H]=m.useState(n),W=m.useMemo(()=>!M.disableColumnReorder&&!g&&!t.disableReorder,[M.disableColumnReorder,g,t.disableReorder]);let j;t.renderHeader&&(j=t.renderHeader(P.current.getColumnHeaderParams(t.field)));const D=pb(_,k),R=fb(_,k,b,M.showCellVerticalBorder,w),z=y({},e,{classes:M.classes,showRightBorder:R,showLeftBorder:D}),O=kU(z),A=m.useCallback(ve=>ye=>{wc(ye)||P.current.publishEvent(ve,P.current.getColumnHeaderParams(t.field),ye)},[P,t.field]),N=m.useMemo(()=>({onClick:A("columnHeaderClick"),onDoubleClick:A("columnHeaderDoubleClick"),onMouseOver:A("columnHeaderOver"),onMouseOut:A("columnHeaderOut"),onMouseEnter:A("columnHeaderEnter"),onMouseLeave:A("columnHeaderLeave"),onKeyDown:A("columnHeaderKeyDown"),onFocus:A("columnHeaderFocus"),onBlur:A("columnHeaderBlur")}),[A]),G=m.useMemo(()=>W?{onDragStart:A("columnHeaderDragStart"),onDragEnter:A("columnHeaderDragEnter"),onDragOver:A("columnHeaderDragOver"),onDragEnd:A("columnHeaderDragEnd")}:{},[W,A]),U=m.useMemo(()=>({onMouseDown:A("columnSeparatorMouseDown"),onDoubleClick:A("columnSeparatorDoubleClick")}),[A]);m.useEffect(()=>{B||H(n)},[B,n]);const Z=m.useCallback(()=>{H(!1)},[]),Y=!M.disableColumnMenu&&!t.disableColumnMenu&&S.jsx(hU,{colDef:t,columnMenuId:$,columnMenuButtonId:T,open:B,iconButtonRef:F}),ee=S.jsx(mU,{columnMenuId:$,columnMenuButtonId:T,field:t.field,open:n,target:F.current,ContentComponent:M.slots.columnMenu,contentComponentProps:(oe=M.slotProps)==null?void 0:oe.columnMenu,onExited:Z}),Q=t.sortingOrder??M.sortingOrder,X=(t.sortable||a!=null)&&!t.hideSortIcons&&!M.disableColumnSorting,te=S.jsxs(m.Fragment,{children:[!M.disableColumnFilter&&S.jsx(M.slots.columnHeaderFilterIconButton,y({field:t.field,counter:d},(ge=M.slotProps)==null?void 0:ge.columnHeaderFilterIconButton)),X&&S.jsx(fU,{direction:a,index:c,sortingOrder:Q,disabled:!t.sortable})]});m.useLayoutEffect(()=>{var ye;const ve=P.current.state.columnMenu;if(f&&!ve.open){const $e=E.current.querySelector('[tabindex="0"]')||E.current;$e==null||$e.focus(),(ye=P.current.columnHeadersContainerRef)!=null&&ye.current&&(P.current.columnHeadersContainerRef.current.scrollLeft=0)}},[P,f]);const me=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,re=t.headerName??t.field;return S.jsx(LM,y({ref:E,classes:O,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:a,hasFocus:f,tabIndex:p,separatorSide:v,isDraggable:W,headerComponent:j,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:Y,columnTitleIconButtons:te,headerClassName:pe(me,l&&K["columnHeader--last"]),label:re,resizable:!M.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:ee,draggableContainerProps:G,columnHeaderSeparatorProps:U,style:x},N))}const IU=Yi(MU),EU=e=>{const{classes:t}=e;return xe({icon:["filterIcon"]},ft,t)};function LU(e){var x,_;const{counter:t,field:n,onClick:r}=e,o=ut(),i=De(),l=y({},e,{classes:i.classes}),a=EU(l),c=be(o,Ju),d=Ot(),f=Ot(),p=m.useCallback(k=>{k.preventDefault(),k.stopPropagation();const{open:b,openedPanelValue:w}=Ju(o.current.state);b&&w===ks.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,f,d),r&&r(o.current.getColumnHeaderParams(n),k)},[o,n,r,f,d]);if(!t)return null;const g=c.open&&c.labelId===d,v=S.jsx(i.slots.baseIconButton,y({id:d,onClick:p,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?f:void 0},(x=i.slotProps)==null?void 0:x.baseIconButton,{children:S.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return S.jsx(i.slots.baseTooltip,y({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(_=i.slotProps)==null?void 0:_.baseTooltip,{children:S.jsxs(EM,{children:[t>1&&S.jsx(AP,{badgeContent:t,color:"default",children:v}),t===1&&v]})}))}const kx=nt(S.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Mx=nt(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Ix=nt(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Ex=nt(S.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),TU=nt(S.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Lx=nt(S.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),OU=nt(S.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");nt(S.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");nt(S.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const RU=nt(S.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),FU=nt(S.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),$U=nt(S.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),zU=nt(S.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),AU=nt(S.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),DU=nt(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Pm=nt(S.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"),Tx=nt(S.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),NU=nt(S.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),BU=nt(S.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Ox=nt(S.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),HU=nt(S.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),jU=nt(S.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),GU=nt(S.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),VU=nt(S.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),WU=nt(S.jsx("g",{children:S.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),UU=nt(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");nt(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const ZU=nt(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),KU=["hideMenu","colDef","id","labelledby","className","children","open"],qU=de(Fy)(()=>({minWidth:248})),XU=m.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:l,children:a,open:c}=t,d=se(t,KU),f=m.useCallback(p=>{fM(p.key)&&p.preventDefault(),qG(p.key)&&r(p)},[r]);return S.jsx(qU,y({id:o,ref:n,className:pe(K.menuList,l),"aria-labelledby":i,onKeyDown:f,autoFocus:c},d,{children:a}))}),YU=["displayOrder"],QU=e=>{const t=ai(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:l,colDef:a,addDividers:c=!0}=e,d=m.useMemo(()=>y({},n,o),[n,o]),f=m.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const v=y({},i);return Object.entries(r).forEach(([x,_])=>{v[x]=y({},_,i[x]||{})}),v},[r,i]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),g=m.useMemo(()=>{const v=Object.keys(n);return Object.keys(o).filter(x=>!v.includes(x))},[o,n]);return m.useMemo(()=>{const _=Array.from(new Set([...p,...g])).filter(k=>d[k]!=null).sort((k,b)=>{const w=f[k],P=f[b],M=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,E=Number.isFinite(P==null?void 0:P.displayOrder)?P.displayOrder:100;return M-E});return _.reduce((k,b,w)=>{let P={colDef:a,onClick:l};const M=f[b];if(M){const E=se(M,YU);P=y({},P,E)}return c&&w!==_.length-1?[...k,[d[b],P],[BP,{}]]:[...k,[d[b],P]]},[])},[c,a,p,l,d,f,g])};function JU(e){const{colDef:t,onClick:n}=e,r=ut(),o=De(),a=bn(r).filter(d=>d.disableColumnMenu!==!0).length===1,c=m.useCallback(d=>{a||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:S.jsxs(Lo,{onClick:c,disabled:a,children:[S.jsx(zl,{children:S.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),S.jsx(Al,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function e6(e){const{onClick:t}=e,n=ut(),r=De(),o=m.useCallback(i=>{t(i),n.current.showPreferences(ks.columns)},[n,t]);return r.disableColumnSelector?null:S.jsxs(Lo,{onClick:o,children:[S.jsx(zl,{children:S.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),S.jsx(Al,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function t6(e){return S.jsxs(m.Fragment,{children:[S.jsx(JU,y({},e)),S.jsx(e6,y({},e))]})}function n6(e){const{colDef:t,onClick:n}=e,r=ut(),o=De(),i=m.useCallback(l=>{n(l),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:S.jsxs(Lo,{onClick:i,children:[S.jsx(zl,{children:S.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),S.jsx(Al,{children:r.current.getLocaleText("columnMenuFilter")})]})}function r6(e){const{colDef:t,onClick:n}=e,r=ut(),o=be(r,Tr),i=De(),l=m.useMemo(()=>{if(!t)return null;const f=o.find(p=>p.field===t.field);return f==null?void 0:f.sort},[t,o]),a=t.sortingOrder??i.sortingOrder,c=m.useCallback(f=>{n(f);const p=f.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,p===l?null:p)},[r,t,n,l]);if(i.disableColumnSorting||!t||!t.sortable||!a.some(f=>!!f))return null;const d=f=>{const p=r.current.getLocaleText(f);return typeof p=="function"?p(t):p};return S.jsxs(m.Fragment,{children:[a.includes("asc")&&l!=="asc"?S.jsxs(Lo,{onClick:c,"data-value":"asc",children:[S.jsx(zl,{children:S.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),S.jsx(Al,{children:d("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?S.jsxs(Lo,{onClick:c,"data-value":"desc",children:[S.jsx(zl,{children:S.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),S.jsx(Al,{children:d("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?S.jsxs(Lo,{onClick:c,children:[S.jsx(zl,{}),S.jsx(Al,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}const o6=["defaultSlots","defaultSlotProps","slots","slotProps"],i6={columnMenuSortItem:r6,columnMenuFilterItem:n6,columnMenuColumnsItem:t6},s6={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},l6=m.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}=t,a=se(t,o6),c=QU(y({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}));return S.jsx(XU,y({ref:n},a,{children:c.map(([d,f],p)=>S.jsx(d,y({},f),p))}))}),a6=m.forwardRef(function(t,n){return S.jsx(l6,y({},t,{ref:n,defaultSlots:i6,defaultSlotProps:s6}))}),u6=["className","slotProps"],c6=e=>{const{classes:t}=e;return xe({root:["panelWrapper"]},ft,t)},d6=de("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),f6=()=>!0,TM=m.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=se(t,u6),l=De(),a=c6(l);return S.jsx(vP,y({open:!0,disableEnforceFocus:!0,isEnabled:f6},o.TrapFocus,{children:S.jsx(d6,y({ref:n,tabIndex:-1,className:pe(r,a.root),ownerState:l},i))}))}),p6=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},h6=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,m6=e=>{const{classes:t}=e;return xe({root:["columnsManagement"],header:["columnsManagementHeader"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},ft,t)},Rx=new Intl.Collator;function OM(e){var D,R,z;const t=ut(),n=m.useRef(null),r=be(t,so),o=Ls(()=>Nr(t)).current,i=be(t,Nr),l=De(),[a,c]=m.useState(""),d=m6(l),{sort:f,searchPredicate:p=h6,autoFocusSearchField:g=!0,disableShowHideToggle:v=!1,disableResetButton:x=!1,toggleAllMode:_="all",getTogglableColumns:k}=e,b=m.useMemo(()=>p6(i,o),[i,o]),w=m.useMemo(()=>{switch(f){case"asc":return[...r].sort((O,A)=>Rx.compare(O.headerName||O.field,A.headerName||A.field));case"desc":return[...r].sort((O,A)=>-Rx.compare(O.headerName||O.field,A.headerName||A.field));default:return r}},[r,f]),P=O=>{const{name:A}=O.target;t.current.setColumnVisibility(A,i[A]===!1)},M=m.useMemo(()=>{const O=k?k(w):null,A=O?w.filter(({field:N})=>O.includes(N)):w;return a?A.filter(N=>p(N,a.toLowerCase())):A},[w,a,p,k]),E=m.useCallback(O=>{const A=Nr(t),N=y({},A),G=k?k(r):null;return(_==="filteredOnly"?M:r).forEach(U=>{U.hideable&&(G==null||G.includes(U.field))&&(O?delete N[U.field]:N[U.field]=!1)}),t.current.setColumnVisibilityModel(N)},[t,r,k,_,M]),$=m.useCallback(O=>{c(O.target.value)},[]),T=m.useMemo(()=>M.filter(O=>O.hideable),[M]),F=m.useMemo(()=>T.every(O=>i[O.field]==null||i[O.field]!==!1),[i,T]),B=m.useMemo(()=>T.every(O=>i[O.field]===!1),[i,T]),H=m.useRef(null);m.useEffect(()=>{g?n.current.focus():H.current&&typeof H.current.focus=="function"&&H.current.focus()},[g]);let W=!1;const j=O=>W===!1&&O.hideable!==!1?(W=!0,!0):!1;return S.jsxs(m.Fragment,{children:[S.jsx(v6,{className:d.header,ownerState:l,children:S.jsx(l.slots.baseTextField,y({placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,value:a,onChange:$,variant:"outlined",size:"small",InputProps:{startAdornment:S.jsx(l.slots.baseInputAdornment,{position:"start",children:S.jsx(l.slots.quickFilterIcon,{})}),sx:{pl:1.5}},fullWidth:!0},(D=l.slotProps)==null?void 0:D.baseTextField))}),S.jsxs(g6,{className:d.root,ownerState:l,children:[M.map(O=>{var A;return S.jsx(PC,{className:d.row,control:S.jsx(l.slots.baseCheckbox,y({disabled:O.hideable===!1,checked:i[O.field]!==!1,onClick:P,name:O.field,sx:{p:.5},inputRef:j(O)?H:void 0},(A=l.slotProps)==null?void 0:A.baseCheckbox)),label:O.headerName||O.field},O.field)}),M.length===0&&S.jsx(b6,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!v||!x)&&M.length>0?S.jsxs(y6,{ownerState:l,className:d.footer,children:[v?S.jsx("span",{}):S.jsx(PC,{control:S.jsx(l.slots.baseCheckbox,y({disabled:T.length===0,checked:F,indeterminate:!F&&!B,onClick:()=>E(!F),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(R=l.slotProps)==null?void 0:R.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),x?null:S.jsx(l.slots.baseButton,y({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:b},(z=l.slotProps)==null?void 0:z.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const g6=de("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),v6=de("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),y6=de("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),b6=de("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]}));function _6(e){var n;const t=De();return S.jsx(TM,y({},e,{children:S.jsx(OM,y({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const C6=["children","className","classes"],x6=Ue("MuiDataGrid",["panel","paper"]),w6=de(Ts,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),S6=de(Ui,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),P6=m.forwardRef((e,t)=>{const{children:n,className:r}=e,o=se(e,C6),i=ut(),l=De(),a=x6,[c,d]=m.useState(!1),f=m.useCallback(()=>{i.current.hidePreferences()},[i]),p=m.useCallback(_=>{$f(_.key)&&i.current.hidePreferences()},[i]),g=m.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}],[]),[v,x]=m.useState(null);return m.useEffect(()=>{var k,b;const _=(b=(k=i.current.rootElementRef)==null?void 0:k.current)==null?void 0:b.querySelector('[data-id="gridPanelAnchor"]');_&&x(_)},[i]),v?S.jsx(w6,y({ref:t,placement:"bottom-start",className:pe(r,a.panel),ownerState:l,anchorEl:v,modifiers:g},o,{children:S.jsx(gP,{mouseEvent:"onMouseUp",onClickAway:f,children:S.jsx(S6,{className:a.paper,ownerState:l,elevation:8,onKeyDown:p,children:c&&n})})})):null}),k6=["className"],M6=e=>{const{classes:t}=e;return xe({root:["panelContent"]},ft,t)},I6=xt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function E6(e){const{className:t}=e,n=se(e,k6),r=De(),o=M6(r);return S.jsx(I6,y({className:pe(t,o.root),ownerState:r},n))}const L6=["className"],T6=e=>{const{classes:t}=e;return xe({root:["panelFooter"]},ft,t)},O6=xt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function R6(e){const{className:t}=e,n=se(e,L6),r=De(),o=T6(r);return S.jsx(O6,y({className:pe(t,o.root),ownerState:r},n))}const F6=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],$6=["InputComponentProps"],z6=e=>{const{classes:t}=e;return xe({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ft,t)},A6=de("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),D6=de("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),N6=de("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),B6=de("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),H6=de("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),j6=de("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),G6=e=>{switch(e){case Bn.And:return"filterPanelOperatorAnd";case Bn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Za=e=>e.headerName||e.field,Fx=new Intl.Collator,$x=m.forwardRef(function(t,n){var we,Ce,Je,Ie,Ye,Ve,He,je,ze;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:l,showMultiFilterOperators:a,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:d,focusElementRef:f,logicOperators:p=[Bn.And,Bn.Or],columnsSort:g,filterColumns:v,deleteIconProps:x={},logicOperatorInputProps:_={},operatorInputProps:k={},columnInputProps:b={},valueInputProps:w={},readOnly:P}=t,M=se(t,F6),E=ut(),$=be(E,qi),T=be(E,Fk),F=be(E,vn),B=Ot(),H=Ot(),W=Ot(),j=Ot(),D=De(),R=z6(D),z=m.useRef(null),O=m.useRef(null),A=F.logicOperator??Bn.And,N=o&&p.length>0,G=((we=D.slotProps)==null?void 0:we.baseFormControl)||{},Z=(((Ce=D.slotProps)==null?void 0:Ce.baseSelect)||{}).native??!1,Y=((Je=D.slotProps)==null?void 0:Je.baseInputLabel)||{},ee=((Ie=D.slotProps)==null?void 0:Ie.baseSelectOption)||{},{InputComponentProps:Q}=w,X=se(w,$6),{filteredColumns:te,selectedField:me}=m.useMemo(()=>{let ke=r.field;const Ze=$[r.field].filterable===!1?$[r.field]:null;if(Ze)return{filteredColumns:[Ze],selectedField:ke};if(v===void 0||typeof v!="function")return{filteredColumns:T,selectedField:ke};const Ne=v({field:r.field,columns:T,currentFilters:(F==null?void 0:F.items)||[]});return{filteredColumns:T.filter(Le=>{const fe=Ne.includes(Le.field);return Le.field===r.field&&!fe&&(ke=void 0),fe}),selectedField:ke}},[v,F==null?void 0:F.items,T,r.field,$]),re=m.useMemo(()=>{switch(g){case"asc":return te.sort((ke,Ze)=>Fx.compare(Za(ke),Za(Ze)));case"desc":return te.sort((ke,Ze)=>-Fx.compare(Za(ke),Za(Ze)));default:return te}},[te,g]),oe=r.field?E.current.getColumn(r.field):null,ge=m.useMemo(()=>{var ke;return!r.operator||!oe?null:(ke=oe.filterOperators)==null?void 0:ke.find(Ze=>Ze.value===r.operator)},[r,oe]),ve=m.useCallback(ke=>{const Ze=ke.target.value,Ne=E.current.getColumn(Ze);if(Ne.field===oe.field)return;const Le=Ne.filterOperators.find(Pe=>Pe.value===r.operator)||Ne.filterOperators[0];let ae=!Le.InputComponent||Le.InputComponent!==(ge==null?void 0:ge.InputComponent)||Ne.type!==oe.type?void 0:r.value;if(Ne.type==="singleSelect"&&ae!==void 0){const Pe=Ne,st=Ps(Pe);Array.isArray(ae)?ae=ae.filter(ct=>Af(ct,st,Pe==null?void 0:Pe.getOptionValue)!==void 0):Af(r.value,st,Pe==null?void 0:Pe.getOptionValue)===void 0&&(ae=void 0)}l(y({},r,{field:Ze,operator:Le.value,value:ae}))},[E,l,r,oe,ge]),ye=m.useCallback(ke=>{const Ze=ke.target.value,Ne=oe==null?void 0:oe.filterOperators.find(fe=>fe.value===Ze),Le=!(Ne!=null&&Ne.InputComponent)||(Ne==null?void 0:Ne.InputComponent)!==(ge==null?void 0:ge.InputComponent);l(y({},r,{operator:Ze,value:Le?void 0:r.value}))},[l,r,oe,ge]),Ee=m.useCallback(ke=>{const Ze=ke.target.value===Bn.And.toString()?Bn.And:Bn.Or;d(Ze)},[d]),$e=()=>{D.disableMultipleColumnsFiltering?r.value===void 0?i(r):l(y({},r,{value:void 0})):i(r)};return m.useImperativeHandle(f,()=>({focus:()=>{var ke;ge!=null&&ge.InputComponent?(ke=z==null?void 0:z.current)==null||ke.focus():O.current.focus()}}),[ge]),S.jsxs(A6,y({ref:n,className:R.root,"data-id":r.id,ownerState:D},M,{children:[S.jsx(D6,y({variant:"standard",as:D.slots.baseFormControl},G,x,{className:pe(R.deleteIcon,G.className,x.className),ownerState:D,children:S.jsx(D.slots.baseIconButton,y({"aria-label":E.current.getLocaleText("filterPanelDeleteIconLabel"),title:E.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:$e,size:"small",disabled:P},(Ye=D.slotProps)==null?void 0:Ye.baseIconButton,{children:S.jsx(D.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),S.jsx(N6,y({variant:"standard",as:D.slots.baseFormControl},G,_,{sx:y({display:N?"flex":"none",visibility:a?"visible":"hidden"},G.sx||{},_.sx||{}),className:pe(R.logicOperatorInput,G.className,_.className),ownerState:D,children:S.jsx(D.slots.baseSelect,y({inputProps:{"aria-label":E.current.getLocaleText("filterPanelLogicOperator")},value:A??"",onChange:Ee,disabled:!!c||p.length===1,native:Z},(Ve=D.slotProps)==null?void 0:Ve.baseSelect,{children:p.map(ke=>m.createElement(D.slots.baseSelectOption,y({},ee,{native:Z,key:ke.toString(),value:ke.toString()}),E.current.getLocaleText(G6(ke))))}))})),S.jsxs(B6,y({variant:"standard",as:D.slots.baseFormControl},G,b,{className:pe(R.columnInput,G.className,b.className),ownerState:D,children:[S.jsx(D.slots.baseInputLabel,y({},Y,{htmlFor:B,id:H,children:E.current.getLocaleText("filterPanelColumns")})),S.jsx(D.slots.baseSelect,y({labelId:H,id:B,label:E.current.getLocaleText("filterPanelColumns"),value:me??"",onChange:ve,native:Z,disabled:P},(He=D.slotProps)==null?void 0:He.baseSelect,{children:re.map(ke=>m.createElement(D.slots.baseSelectOption,y({},ee,{native:Z,key:ke.field,value:ke.field}),Za(ke)))}))]})),S.jsxs(H6,y({variant:"standard",as:D.slots.baseFormControl},G,k,{className:pe(R.operatorInput,G.className,k.className),ownerState:D,children:[S.jsx(D.slots.baseInputLabel,y({},Y,{htmlFor:W,id:j,children:E.current.getLocaleText("filterPanelOperator")})),S.jsx(D.slots.baseSelect,y({labelId:j,label:E.current.getLocaleText("filterPanelOperator"),id:W,value:r.operator,onChange:ye,native:Z,inputRef:O,disabled:P},(je=D.slotProps)==null?void 0:je.baseSelect,{children:(ze=oe==null?void 0:oe.filterOperators)==null?void 0:ze.map(ke=>m.createElement(D.slots.baseSelectOption,y({},ee,{native:Z,key:ke.value,value:ke.value}),ke.label||E.current.getLocaleText(`filterOperator${ce(ke.value)}`)))}))]})),S.jsx(j6,y({variant:"standard",as:D.slots.baseFormControl},G,X,{className:pe(R.valueInput,G.className,X.className),ownerState:D,children:ge!=null&&ge.InputComponent?S.jsx(ge.InputComponent,y({apiRef:E,item:r,applyValue:l,focusElementRef:z,disabled:P},ge.InputComponentProps,Q),r.field):null}))]}))}),V6=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],zx=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),W6=m.forwardRef(function(t,n){var j,D;const r=ut(),o=De(),i=be(r,vn),l=be(r,Fk),a=be(r,e3),c=m.useRef(null),d=m.useRef(null),{logicOperators:f=[Bn.And,Bn.Or],columnsSort:p,filterFormProps:g,getColumnForNewFilter:v,disableAddFilterButton:x=!1,disableRemoveAllButton:_=!1}=t,k=se(t,V6),b=r.current.upsertFilterItem,w=m.useCallback(R=>{r.current.setFilterLogicOperator(R)},[r]),P=m.useCallback(()=>{let R;if(v&&typeof v=="function"){const z=v({currentFilters:(i==null?void 0:i.items)||[],columns:l});if(z===null)return null;R=l.find(({field:O})=>O===z)}else R=l.find(z=>{var O;return(O=z.filterOperators)==null?void 0:O.length});return R?zx(R):null},[i==null?void 0:i.items,l,v]),M=m.useCallback(()=>{if(v===void 0||typeof v!="function")return P();const R=i.items.length?i.items:[P()].filter(Boolean),z=v({currentFilters:R,columns:l});if(z===null)return null;const O=l.find(({field:A})=>A===z);return O?zx(O):null},[i.items,l,v,P]),E=m.useMemo(()=>i.items.length?i.items:(d.current||(d.current=P()),d.current?[d.current]:[]),[i.items,P]),$=E.length>1,{readOnlyFilters:T,validFilters:F}=m.useMemo(()=>E.reduce((R,z)=>(a[z.field]?R.validFilters.push(z):R.readOnlyFilters.push(z),R),{readOnlyFilters:[],validFilters:[]}),[E,a]),B=m.useCallback(()=>{const R=M();R&&r.current.upsertFilterItems([...E,R])},[r,M,E]),H=m.useCallback(R=>{const z=F.length===1;r.current.deleteFilterItem(R),z&&r.current.hideFilterPanel()},[r,F.length]),W=m.useCallback(()=>F.length===1&&F[0].value===void 0?(r.current.deleteFilterItem(F[0]),r.current.hideFilterPanel()):r.current.setFilterModel(y({},i,{items:T}),"removeAllFilterItems"),[r,T,i,F]);return m.useEffect(()=>{f.length>0&&i.logicOperator&&!f.includes(i.logicOperator)&&w(f[0])},[f,w,i.logicOperator]),m.useEffect(()=>{F.length>0&&c.current.focus()},[F.length]),S.jsxs(TM,y({ref:n},k,{children:[S.jsxs(E6,{children:[T.map((R,z)=>S.jsx($x,y({item:R,applyFilterChanges:b,deleteFilter:H,hasMultipleFilters:$,showMultiFilterOperators:z>0,disableMultiFilterOperator:z!==1,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:f,columnsSort:p},g),R.id==null?z:R.id)),F.map((R,z)=>S.jsx($x,y({item:R,applyFilterChanges:b,deleteFilter:H,hasMultipleFilters:$,showMultiFilterOperators:T.length+z>0,disableMultiFilterOperator:T.length+z!==1,applyMultiFilterOperatorChanges:w,focusElementRef:z===F.length-1?c:null,logicOperators:f,columnsSort:p},g),R.id==null?z+T.length:R.id))]}),!o.disableMultipleColumnsFiltering&&!(x&&_)?S.jsxs(R6,{children:[x?S.jsx("span",{}):S.jsx(o.slots.baseButton,y({onClick:B,startIcon:S.jsx(o.slots.filterPanelAddIcon,{})},(j=o.slotProps)==null?void 0:j.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!_&&F.length>0?S.jsx(o.slots.baseButton,y({onClick:W,startIcon:S.jsx(o.slots.filterPanelRemoveAllIcon,{})},(D=o.slotProps)==null?void 0:D.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),U6=["hideMenu","options"],Z6=["hideMenu","options"];function K6(e){const t=ut(),{hideMenu:n,options:r}=e,o=se(e,U6);return S.jsx(Lo,y({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function q6(e){const t=ut(),{hideMenu:n,options:r}=e,o=se(e,Z6);return S.jsx(Lo,y({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const X6=["className","selectedRowCount"],Y6=e=>{const{classes:t}=e;return xe({root:["selectedRowCount"]},ft,t)},Q6=xt("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),J6=m.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=se(t,X6),l=ut(),a=De(),c=Y6(a),d=l.current.getLocaleText("footerRowSelected")(o);return S.jsx(Q6,y({ref:n,className:pe(c.root,r),ownerState:a},i,{children:d}))}),e8=m.forwardRef(function(t,n){var p,g;const r=ut(),o=De(),i=be(r,B3),l=be(r,mG),a=be(r,nM),c=!o.hideFooterSelectedRowCount&&l>0?S.jsx(J6,{selectedRowCount:l}):S.jsx("div",{}),d=!o.hideFooterRowCount&&!o.pagination?S.jsx(o.slots.footerRowCount,y({},(p=o.slotProps)==null?void 0:p.footerRowCount,{rowCount:i,visibleRowCount:a})):null,f=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&S.jsx(o.slots.pagination,y({},(g=o.slotProps)==null?void 0:g.pagination));return S.jsxs(nU,y({ref:n},t,{children:[c,d,f]}))}),t8=m.forwardRef(function(t,n){var c,d;const r=ut(),o=be(r,so),i=De(),l=be(r,Ju),a=r.current.unstable_applyPipeProcessors("preferencePanel",null,l.openedPanelValue??ks.filters);return S.jsx(i.slots.panel,y({ref:n,as:i.slots.basePopper,open:o.length>0&&l.open,id:l.panelId,"aria-labelledby":l.labelId},(c=i.slotProps)==null?void 0:c.panel,t,(d=i.slotProps)==null?void 0:d.basePopper,{children:a}))});function n8(){var t;const e=De();return S.jsxs(m.Fragment,{children:[S.jsx(t8,{}),e.slots.toolbar&&S.jsx(e.slots.toolbar,y({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const r8=m.forwardRef(function(t,n){return S.jsx(hb,y({ref:n},t,{children:S.jsx(NP,{})}))}),o8=m.forwardRef(function(t,n){const o=ut().current.getLocaleText("noRowsLabel");return S.jsx(hb,y({ref:n},t,{children:o}))}),i8=de(Rj)(({theme:e})=>({[`& .${vs.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${vs.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),s8=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),l8=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,a8=m.forwardRef(function(t,n){const r=ut(),o=De(),i=be(r,Nn),l=be(r,Ml),a=be(r,lM),{paginationMode:c,loading:d,estimatedRowCount:f}=o,p=m.useMemo(()=>l===-1&&c==="server"&&d?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[d,c,l]),g=m.useMemo(()=>Math.max(0,a-1),[a]),v=m.useMemo(()=>l===-1||i.page<=g?i.page:g,[g,i.page,l]),x=m.useCallback(M=>{const E=Number(M.target.value);r.current.setPageSize(E)},[r]),_=m.useCallback((M,E)=>{r.current.setPage(E)},[r]),b=(M=>{for(let E=0;E{const{classes:t}=e;return xe({root:["rowCount"]},ft,t)},d8=xt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),f8=m.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,l=se(t,u8),a=ut(),c=De(),d=c8(c);if(o===0)return null;const f=ie.editRows,vd={root:K.scrollbarFiller,header:K["scrollbarFiller--header"],borderTop:K["scrollbarFiller--borderTop"],pinnedRight:K["scrollbarFiller--pinnedRight"]};function RM({header:e,borderTop:t=!0,pinnedRight:n}){return S.jsx("div",{role:"presentation",className:pe(vd.root,e&&vd.header,t&&vd.borderTop,n&&vd.pinnedRight)})}const FM=(e,t,n,r,o)=>{const i=o.hasScrollY?o.scrollbarSize:0;let l;switch(e){case pn.LEFT:l=r[n];break;case pn.RIGHT:l=o.columnsTotalWidth-r[n]-t+i;break;default:l=0;break}return l},p8=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],h8=e=>{const{editable:t,editing:n,selected:r,isFirstVisible:o,isLastVisible:i,rowHeight:l,classes:a}=e;return xe({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--firstVisible",i&&"row--lastVisible",l==="auto"&&"row--dynamicHeight"]},ft,a)};function m8({width:e}){return e?S.jsx("div",{role:"presentation",className:pe(K.cell,K.cellEmpty),style:{"--width":`${e}px`}}):null}const g8=m.forwardRef(function(t,n){var Le;const{selected:r,rowId:o,row:i,index:l,style:a,rowHeight:c,className:d,visibleColumns:f,pinnedColumns:p,offsetLeft:g,dimensions:v,renderContext:x,focusedColumnIndex:_,isFirstVisible:k,isLastVisible:b,isNotVisible:w,onClick:P,onDoubleClick:M,onMouseEnter:E,onMouseLeave:$,onMouseOut:T,onMouseOver:F}=t,B=se(t,p8),H=ut(),W=m.useRef(null),j=De(),D=Ns(H,j),R=be(H,Tr),z=be(H,th),O=be(H,xc),A=be(H,As),N=be(H,Rn),G=Ct(W,n),U=H.current.getRowNode(o),Z=v.hasScrollY?v.scrollbarSize:0,Y=v.columnsTotalWidth=p.left.length&&_=x.lastColumnIndex,te=l+O+2,me={selected:r,isFirstVisible:k,isLastVisible:b,classes:j.classes,editing:H.current.getRowMode(o)===Lt.Edit,editable:j.editMode===Fo.Row,rowHeight:c},re=h8(me);m.useLayoutEffect(()=>{c==="auto"&&W.current&&typeof ResizeObserver>"u"&&H.current.unstable_storeRowHeightMeasurement(o,W.current.clientHeight)},[H,c,o]),m.useLayoutEffect(()=>{if(D.range){const st=H.current.getRowIndexRelativeToVisibleRows(o);st!=null&&H.current.unstable_setLastMeasuredRowIndex(st)}const fe=W.current;if(!fe||c!=="auto"||typeof ResizeObserver>"u")return;const Pe=new ResizeObserver(st=>{const[ct]=st,Me=ct.borderBoxSize&&ct.borderBoxSize.length>0?ct.borderBoxSize[0].blockSize:ct.contentRect.height;H.current.unstable_storeRowHeightMeasurement(o,Me)});return Pe.observe(fe),()=>Pe.disconnect()},[H,D.range,l,c,o]);const oe=m.useCallback((fe,ae)=>Pe=>{wc(Pe)||H.current.getRow(o)&&(H.current.publishEvent(fe,H.current.getRowParams(o),Pe),ae&&ae(Pe))},[H,o]),ge=m.useCallback(fe=>{const ae=Df(fe.target,K.cell),Pe=ae==null?void 0:ae.getAttribute("data-field");if(Pe){if(Pe===ga.field||Pe===gb||Pe==="__reorder__"||H.current.getCellMode(o,Pe)===wt.Edit)return;const st=H.current.getColumn(Pe);if((st==null?void 0:st.type)===Jp)return}oe("rowClick",P)(fe)},[H,P,oe,o]),{slots:ve,slotProps:ye,disableColumnReorder:Ee}=j,$e=j.rowReordering,we=be(H,()=>y({},H.current.unstable_getRowInternalSizes(o)),Tk);let Ce=c;Ce==="auto"&&we&&(we.baseCenter??0)>0;const Je=m.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const fe=y({},a,{maxHeight:c==="auto"?"none":c,minHeight:Ce,"--height":typeof c=="number"?`${c}px`:c});if(we!=null&&we.spacingTop){const ae=j.rowSpacingType==="border"?"borderTopWidth":"marginTop";fe[ae]=we.spacingTop}if(we!=null&&we.spacingBottom){const ae=j.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Pe=fe[ae];typeof Pe!="number"&&(Pe=parseInt(Pe||"0",10)),Pe+=we.spacingBottom,fe[ae]=Pe}return fe},[w,c,a,Ce,we,j.rowSpacingType]),Ie=H.current.unstable_applyPipeProcessors("rowClassName",[],o);if(typeof j.getRowClassName=="function"){const fe=l-(((Le=D.range)==null?void 0:Le.firstRowIndex)||0),ae=y({},H.current.getRowParams(o),{isFirstVisible:fe===0,isLastVisible:fe===D.rows.length-1,indexRelativeToCurrentPage:fe});Ie.push(j.getRowClassName(ae))}const Ye=(fe,ae,Pe,st,ct=Yn.NONE)=>{var wr;const Me=H.current.unstable_getCellColSpanInfo(o,Pe);if(Me!=null&&Me.spannedByColSpan)return null;const Ge=(Me==null?void 0:Me.cellProps.width)??fe.computedWidth,et=(Me==null?void 0:Me.cellProps.colSpan)??1,Et=FM(IM[ct],fe.computedWidth,Pe,A,v);if((U==null?void 0:U.type)==="skeletonRow")return S.jsx(ve.skeletonCell,{width:Ge,height:c,field:fe.field,align:fe.align??"left"},fe.field);const jt=((wr=N[o])==null?void 0:wr[fe.field])??null,sr=fe.field==="__reorder__",Xt=Object.keys(N).length>0,Yt=!(Ee||fe.disableReorder),rn=$e&&!R.length&&z<=1&&!Xt,Un=!(Yt||sr&&rn),Zn=ct===Yn.VIRTUAL;return S.jsx(ve.cell,y({column:fe,width:Ge,rowId:o,align:fe.align||"left",colIndex:Pe,colSpan:et,disableDragEvents:Un,editCellState:jt,isNotVisible:Zn,pinnedOffset:Et,pinnedPosition:ct,sectionIndex:ae,sectionLength:st,gridHasFiller:Y},ye==null?void 0:ye.cell),fe.field)};if(!U)return null;const Ve=p.left.map((fe,ae)=>Ye(fe,ae,ae,p.left.length,Yn.LEFT)),He=p.right.map((fe,ae)=>{const Pe=f.length-p.right.length+ae;return Ye(fe,ae,Pe,p.right.length,Yn.RIGHT)}),je=f.length-p.left.length-p.right.length,ze=[];Q&&ze.push(Ye(f[_],_-p.left.length,_,je,Yn.VIRTUAL));for(let fe=x.firstColumnIndex;fe0&&S.jsx(m8,{width:Ne}),He.length>0&&S.jsx("div",{role:"presentation",className:K.filler}),He,Z!==0&&S.jsx(RM,{pinnedRight:p.right.length>0})]}))}),v8=Yi(g8);function y8({privateApiRef:e,props:t,children:n}){const r=m.useRef(e.current.getPublicApi());return S.jsx(Ek.Provider,{value:t,children:S.jsx(yM.Provider,{value:e,children:S.jsx(Ik.Provider,{value:r,children:n})})})}const b8=e=>{const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r})},_8=e=>{const t=$o();e.current.state.theme||(e.current.state.theme=t);const n=m.useRef(!0);m.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>y({},r,{theme:t}))},[e,t])},C8=m3()&&window.localStorage.getItem("DEBUG")!=null,nu=()=>{},x8={debug:nu,info:nu,warn:nu,error:nu},Ax=["debug","info","warn","error"];function Dx(e,t,n=console){const r=Ax.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return Ax.reduce((i,l,a)=>(a>=r?i[l]=(...c)=>{const[d,...f]=c;n[l](`MUI X: ${e} - ${d}`,...f)}:i[l]=nu,i),{})}const w8=(e,t)=>{const n=m.useCallback(r=>C8?Dx(r,"debug",t.logger):t.logLevel?Dx(r,t.logLevel.toString(),t.logger):x8,[t.logLevel,t.logger]);tt(e,{getLogger:n},"private")};class vb{static create(t){return new vb(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class S8{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let l=o.length-1;l>=0;l-=1){const a=o[l];r.highPriority.has(a)&&a.apply(this,n)}for(let l=0;le.isPropagationStopped!==void 0;let Nx=0;function k8(e){var o;const t=(o=e.current)==null?void 0:o[$M];if(t)return t;const n={},r={state:n,store:vb.create(n),instanceId:{id:Nx}};return Nx+=1,r.getPublicApi=()=>e.current,r.register=(i,l)=>{Object.keys(l).forEach(a=>{const c=l[a],d=r[a];if((d==null?void 0:d.spying)===!0?d.target=c:r[a]=c,i==="public"){const f=e.current,p=f[a];(p==null?void 0:p.spying)===!0?p.target=c:f[a]=c}})},r.register("private",{caches:{},eventManager:new S8}),r}function M8(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[$M]:e.current}}function I8(e,t){var l;const n=m.useRef(),r=m.useRef();r.current||(r.current=k8(n)),n.current||(n.current=M8(r));const o=m.useCallback((...a)=>{const[c,d,f={}]=a;if(f.defaultMuiPrevented=!1,P8(f)&&f.isPropagationStopped())return;const p=t.signature===To.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(c,d,f,p)},[r,t.signature]),i=m.useCallback((a,c,d)=>{r.current.eventManager.on(a,c,d);const f=r.current;return()=>{f.eventManager.removeListener(a,c)}},[r]);return tt(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((l=e.current)!=null&&l.state)&&(e.current=n.current),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const E8=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},L8=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=m.useCallback((f,p,g)=>{t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}});const v=t.current[f];return v.processors.get(p)!==g&&(v.processors.set(p,g),v.processorsAsArray=Array.from(t.current[f].processors.values()),r(v)),()=>{t.current[f].processors.delete(p),t.current[f].processorsAsArray=Array.from(t.current[f].processors.values())}},[r]),i=m.useCallback((f,p,g)=>(t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[f].appliers[p]=g,()=>{const v=t.current[f].appliers,x=se(v,[p].map(ju));t.current[f].appliers=x}),[]),l=m.useCallback(f=>{r(t.current[f])},[r]),a=m.useCallback((...f)=>{const[p,g,v]=f;if(!t.current[p])return g;const x=t.current[p].processorsAsArray;let _=g;for(let k=0;k{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Cc(()=>{i()});const l=m.useRef(!0);m.useEffect(()=>(l.current?l.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},yb=(e,t,n)=>{const r=m.useRef(),o=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Cc(()=>{i()});const l=m.useRef(!0);m.useEffect(()=>(l.current?l.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Nf=(e,t,n,r)=>{const o=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Cc(()=>{o()});const i=m.useRef(!0);m.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ms="none",Bx={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},T8=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((c,d,f)=>{const p=()=>{const x=n.current[d],_=se(x,[c].map(ju));n.current[d]=_};n.current[d]||(n.current[d]={});const g=n.current[d],v=g[c];return g[c]=f,!v||v===f||c===e.current.getActiveStrategy(Bx[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),p},[e]),o=m.useCallback((c,d)=>{const f=e.current.getActiveStrategy(Bx[c]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[c];if(!p||!p[f])throw new Error(`No processor found for processor "${c}" on strategy "${f}"`);const g=p[f];return g(d)},[e]),i=m.useCallback(c=>{const f=Array.from(t.current.entries()).find(([,p])=>p.group!==c?!1:p.isAvailable());return(f==null?void 0:f[0])??Ms},[]),l=m.useCallback((c,d,f)=>{t.current.set(d,{group:c,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);tt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:l},"private")},O8=e=>{const t=m.useRef({}),[,n]=m.useState(),r=m.useCallback(d=>{t.current[d.stateId]=d},[]),o=m.useCallback((d,f)=>{let p;if(Dk(d)?p=d(e.current.state):p=d,e.current.state===p)return!1;let g=!1;const v=[];if(Object.keys(t.current).forEach(x=>{const _=t.current[x],k=_.stateSelector(e.current.state,e.current.instanceId),b=_.stateSelector(p,e.current.instanceId);b!==k&&(v.push({stateId:_.stateId,hasPropChanged:b!==_.propModel}),_.propModel!==void 0&&b!==_.propModel&&(g=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(x=>x.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=p,e.current.publishEvent&&e.current.publishEvent("stateChange",p),e.current.store.update(p)),v.length===1){const{stateId:x,hasPropChanged:_}=v[0],k=t.current[x],b=k.stateSelector(p,e.current.instanceId);k.propOnChange&&_&&k.propOnChange(b,{reason:f,api:e.current}),g||e.current.publishEvent(k.changeEvent,b,{reason:f})}return!g},[e]),i=m.useCallback((d,f,p)=>e.current.setState(g=>y({},g,{[d]:f(g[d])}),p),[e]),l=m.useCallback(()=>n(()=>e.current.state),[e]),a={setState:o,forceUpdate:l},c={updateControlState:i,registerControlState:r};tt(e,a,"public"),tt(e,c,"private")},R8=(e,t)=>{const n=I8(e,t);return b8(n),_8(n),w8(n,t),O8(n),L8(n),T8(n),E8(n,t),n.current.register("private",{rootProps:t}),n},Tn=(e,t,n)=>{const r=m.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function Xg(e,t){if(typeof e=="string"){if(t.shouldAppendQuotes||t.escapeFormulas){const n=e.replace(/"/g,'""');return[t.delimiter,` `,"\r",'"'].some(r=>e.includes(r))?`"${n}"`:t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(n[0])?`'${n}`:n}return e}return e}const zM=(e,t)=>{var i,l;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Xg(o,n)};li(["MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Yg{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const F8=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new Yg({csvOptions:r});return t.forEach(l=>{const a=n(e,l.field);i.addValue(zM(a,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function $8(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,l=n.reduce((p,g)=>`${p}${F8({id:g,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r `,"").trim();if(!r.includeHeaders)return l;const a=t.filter(p=>p.field!==ga.field),c=[];if(r.includeColumnGroupsHeaders){const p=i.current.getAllGroupDetails();let g=0;const v=a.reduce((x,_)=>{const k=i.current.getColumnGroupPath(_.field);return x[_.field]=k,g=Math.max(g,k.length),x},{});for(let x=0;x{const b=(v[k.field]||[])[x],w=p[b];_.addValue(w?w.headerName||w.groupId:"")})}}const d=new Yg({csvOptions:r,sanitizeCellValue:Xg});return a.forEach(p=>{d.addValue(p.headerName||p.field)}),c.push(d),`${`${c.map(p=>p.getRowString()).join(`\r `)}\r -`}${l}`.trim()}function Hx(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function z8(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{Hx(e)}):Hx(e)}function A8(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const D8=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=m.useCallback(l=>{if(!((l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="c"&&!l.shiftKey&&!l.altKey)||A8(l.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const d=Er(e);if(d){const f=e.current.getCellParams(d.id,d.field);a=zM(f,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(z8(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);rM(e,e.current.rootElementRef,"keydown",i),Tt(e,"clipboardCopy",t.onClipboardCopy)},N8=e=>y({},e,{columnMenu:{open:!1}}),B8=e=>{const t=mn(e,"useGridColumnMenu"),n=m.useCallback(l=>{const a=Bd(e.current.state),c={open:!0,field:l};(c.open!==a.open||c.field!==a.field)&&(e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===l?f:(t.debug("Opening Column Menu"),y({},f,{columnMenu:{open:!0,field:l}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=m.useCallback(()=>{const l=Bd(e.current.state);if(l.field){const d=qi(e),f=Nr(e),p=qo(e);let g=l.field;if(d[g]||(g=p[0]),f[g]===!1){const v=p.filter(_=>_===g?!0:f[_]!==!1),x=v.indexOf(g);g=v[x+1]||v[x-1]}e.current.setColumnHeaderFocus(g)}const a={open:!1,field:void 0};(a.open!==l.open||a.field!==l.field)&&(e.current.setState(d=>(t.debug("Hiding Column Menu"),y({},d,{columnMenu:a}))),e.current.forceUpdate())},[e,t]),o=m.useCallback(l=>{t.debug("Toggle Column Menu");const a=Bd(e.current.state);!a.open||a.field!==l?n(l):r()},[e,t,n,r]);tt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Re(e,"columnResizeStart",r),Re(e,"virtualScrollerWheel",e.current.hideColumnMenu),Re(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},H8=(e,t,n)=>{var o,i,l;const r=cl({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((l=(i=t.initialState)==null?void 0:i.columns)==null?void 0:l.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return y({},e,{columns:r,pinnedColumns:e.pinnedColumns??Wg})};function j8(e,t){var H,W;const n=mn(e,"useGridColumns"),r=m.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Nr,changeEvent:"columnVisibilityModelChange"});const o=m.useCallback(j=>{var D,R;n.debug("Updating columns state."),e.current.setState(jx(j)),e.current.publishEvent("columnsChange",j.orderedFields),(R=(D=e.current).updateRenderContext)==null||R.call(D),e.current.forceUpdate()},[n,e]),i=m.useCallback(j=>qi(e)[j],[e]),l=m.useCallback(()=>so(e),[e]),a=m.useCallback(()=>bn(e),[e]),c=m.useCallback((j,D=!0)=>(D?bn(e):so(e)).findIndex(z=>z.field===j),[e]),d=m.useCallback(j=>{const D=c(j);return As(e)[D]},[e,c]),f=m.useCallback(j=>{var R,z;Nr(e)!==j&&(e.current.setState(O=>y({},O,{columns:cl({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),(z=(R=e.current).updateRenderContext)==null||z.call(R),e.current.forceUpdate())},[e]),p=m.useCallback(j=>{const D=cl({apiRef:e,columnsToUpsert:j,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(D)},[e,o]),g=m.useCallback((j,D)=>{const R=Nr(e),z=R[j]??!0;if(D!==z){const O=y({},R,{[j]:D});e.current.setColumnVisibilityModel(O)}},[e]),v=m.useCallback(j=>qo(e).findIndex(R=>R===j),[e]),x=m.useCallback((j,D)=>{const R=qo(e),z=v(j);if(z===D)return;n.debug(`Moving column ${j} to index ${D}`);const O=[...R],A=O.splice(z,1)[0];O.splice(D,0,A),o(y({},Oo(e.current.state),{orderedFields:O}));const N={column:e.current.getColumn(j),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(j),oldIndex:z};e.current.publishEvent("columnIndexChange",N)},[e,n,o,v]),_=m.useCallback((j,D)=>{n.debug(`Updating column ${j} width to ${D}`);const R=Oo(e.current.state),z=R.lookup[j],O=y({},z,{width:D,hasBeenResized:!0});o(Zg(y({},R,{lookup:y({},R.lookup,{[j]:O})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:O,width:D})},[e,n,o]),k={getColumn:i,getAllColumns:l,getColumnIndex:c,getColumnPosition:d,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:v,updateColumns:p,setColumnVisibilityModel:f,setColumnVisibility:g,setColumnWidth:_},b={setColumnIndex:x};tt(e,k,"public"),tt(e,b,t.signature===To.DataGrid?"private":"public");const w=m.useCallback((j,D)=>{var G,U;const R={},z=Nr(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((U=(G=t.initialState)==null?void 0:G.columns)==null?void 0:U.columnVisibilityModel)??{}).length>0||Object.keys(z).length>0)&&(R.columnVisibilityModel=z),R.orderedFields=qo(e);const A=so(e),N={};return A.forEach(Z=>{if(Z.hasBeenResized){const Y={};vM.forEach(ee=>{let Q=Z[ee];Q===1/0&&(Q=-1),Y[ee]=Q}),N[Z.field]=Y}}),Object.keys(N).length>0&&(R.dimensions=N),y({},j,{columns:R})},[e,t.columnVisibilityModel,(H=t.initialState)==null?void 0:H.columns]),P=m.useCallback((j,D)=>{var A;const R=(A=D.stateToRestore.columns)==null?void 0:A.columnVisibilityModel,z=D.stateToRestore.columns;if(R==null&&z==null)return j;const O=cl({apiRef:e,columnsToUpsert:[],initialState:z,columnVisibilityModel:R,keepOnlyColumnsToUpsert:!1});return e.current.setState(jx(O)),z!=null&&e.current.publishEvent("columnsChange",O.orderedFields),j},[e]),M=m.useCallback((j,D)=>{var R;if(D===ks.columns){const z=t.slots.columnsPanel;return S.jsx(z,y({},(R=t.slotProps)==null?void 0:R.columnsPanel))}return j},[t.slots.columnsPanel,(W=t.slotProps)==null?void 0:W.columnsPanel]),E=m.useCallback(j=>t.disableColumnSelector?j:[...j,"columnMenuColumnsItem"],[t.disableColumnSelector]);Nt(e,"columnMenu",E),Nt(e,"exportState",w),Nt(e,"restoreState",P),Nt(e,"preferencePanel",M);const $=m.useRef(null);Re(e,"viewportInnerSizeChange",j=>{$.current!==j.width&&($.current=j.width,o(Zg(Oo(e.current.state),e.current.getRootDimensions())))});const F=m.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const j=cl({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(j)},[e,n,o]);yb(e,"hydrateColumns",F);const B=m.useRef(!0);m.useEffect(()=>{if(B.current){B.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const j=cl({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(j)},[n,e,o,t.columns]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function jx(e){return t=>y({},t,{columns:e})}const G8=(e,t)=>{var n;return y({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},V8=(e,t)=>{var a;const n=mn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:kl,changeEvent:"densityChange"});const o={setDensity:at(c=>{kl(e.current.state)!==c&&(n.debug(`Set grid density to ${c}`),e.current.setState(f=>y({},f,{density:c})))})};tt(e,o,"public");const i=m.useCallback((c,d)=>{var g;const f=kl(e.current.state);return!d.exportOnlyDirtyModels||t.density!=null||((g=t.initialState)==null?void 0:g.density)!=null?y({},c,{density:f}):c},[e,t.density,(a=t.initialState)==null?void 0:a.density]),l=m.useCallback((c,d)=>{var p;const f=(p=d.stateToRestore)!=null&&p.density?d.stateToRestore.density:kl(e.current.state);return e.current.setState(g=>y({},g,{density:f})),c},[e]);Nt(e,"exportState",i),Nt(e,"restoreState",l),m.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function W8(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const AM=({apiRef:e,options:t})=>{const n=so(e);return t.fields?t.fields.reduce((o,i)=>{const l=n.find(a=>a.field===i);return l&&o.push(l),o},[]):(t.allColumns?n:bn(e)).filter(o=>!o.disableExport)},DM=({apiRef:e})=>{var c,d;const t=_G(e),n=zr(e),r=e.current.getSelectedRows(),o=t.filter(f=>n[f].type!=="footer"),i=Ds(e),l=((c=i==null?void 0:i.top)==null?void 0:c.map(f=>f.id))||[],a=((d=i==null?void 0:i.bottom)==null?void 0:d.map(f=>f.id))||[];return o.unshift(...l),o.push(...a),r.size>0?o.filter(f=>r.has(f)):o},U8=(e,t)=>{const n=mn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=m.useCallback((d={})=>{n.debug("Get data as CSV");const f=AM({apiRef:e,options:d}),g=(d.getRowsToExport??DM)({apiRef:e});return $8({columns:f,rowIds:g,csvOptions:{delimiter:d.delimiter||",",shouldAppendQuotes:d.shouldAppendQuotes??!0,includeHeaders:d.includeHeaders??!0,includeColumnGroupsHeaders:d.includeColumnGroupsHeaders??!0,escapeFormulas:d.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),l=m.useCallback(d=>{n.debug("Export data as CSV");const f=i(d),p=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});W8(p,"csv",d==null?void 0:d.fileName)},[n,i]);tt(e,{getDataAsCsv:i,exportDataAsCsv:l},"public");const c=m.useCallback((d,f)=>{var p;return(p=f.csvOptions)!=null&&p.disableToolbarButton?d:[...d,{component:S.jsx(K6,{options:f.csvOptions}),componentName:"csvExport"}]},[]);Nt(e,"exportMenu",c)},jd=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,l=(n==null?void 0:n.page)??r.page,a=oM(o,i,l);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const c=EG(r.page,a);return c!==r.page&&(r=y({},r,{page:c})),sM(r.pageSize,t),r},Z8=(e,t)=>{var x,_;const n=mn(e,"useGridPaginationModel"),r=be(e,yc),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Nn,changeEvent:"paginationModelChange"});const i=m.useCallback(k=>{const b=Nn(e);k!==b.page&&(n.debug(`Setting page to ${k}`),e.current.setPaginationModel({page:k,pageSize:b.pageSize}))},[e,n]),l=m.useCallback(k=>{const b=Nn(e);k!==b.pageSize&&(n.debug(`Setting page size to ${k}`),e.current.setPaginationModel({pageSize:k,page:b.page}))},[e,n]),a=m.useCallback(k=>{const b=Nn(e);k!==b&&(n.debug("Setting 'paginationModel' to",k),e.current.setState(w=>y({},w,{pagination:y({},w.pagination,{paginationModel:jd(w.pagination,t.signature,k)})})))},[e,n,t.signature]);tt(e,{setPage:i,setPageSize:l,setPaginationModel:a},"public");const d=m.useCallback((k,b)=>{var M,E;const w=Nn(e);return!b.exportOnlyDirtyModels||t.paginationModel!=null||((E=(M=t.initialState)==null?void 0:M.pagination)==null?void 0:E.paginationModel)!=null||w.page!==0&&w.pageSize!==IG(t.autoPageSize)?y({},k,{pagination:y({},k.pagination,{paginationModel:w})}):k},[e,t.paginationModel,(_=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:_.paginationModel,t.autoPageSize]),f=m.useCallback((k,b)=>{var P,M;const w=(P=b.stateToRestore.pagination)!=null&&P.paginationModel?y({},iM(t.autoPageSize),(M=b.stateToRestore.pagination)==null?void 0:M.paginationModel):Nn(e);return e.current.setState(E=>y({},E,{pagination:y({},E.pagination,{paginationModel:jd(E.pagination,t.signature,w)})})),k},[e,t.autoPageSize,t.signature]);Nt(e,"exportState",d),Nt(e,"restoreState",f);const p=()=>{var b;const k=Nn(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:k.page*k.pageSize})},g=m.useCallback(()=>{if(!t.autoPageSize)return;const k=e.current.getRootDimensions(),b=Math.floor(k.viewportInnerSize.height/o);e.current.setPageSize(b)},[e,t.autoPageSize,o]),v=m.useCallback(k=>{if(k==null)return;const b=Nn(e),w=lM(e);b.page>w-1&&e.current.setPage(Math.max(0,w-1))},[e]);Re(e,"viewportInnerSizeChange",g),Re(e,"paginationModelChange",p),Re(e,"rowCountChange",v),m.useEffect(()=>{e.current.setState(k=>y({},k,{pagination:y({},k.pagination,{paginationModel:jd(k.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),m.useEffect(g,[g])};function K8(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function q8(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const X8=(e,t)=>{const n=mn(e,"useGridPrintExport"),r=m.useRef(null),o=m.useRef(null),i=m.useRef({}),l=m.useRef([]),a=m.useRef();m.useEffect(()=>{r.current=zt(e.current.rootElementRef.current)},[e]);const c=m.useCallback((_,k,b)=>new Promise(w=>{const P=AM({apiRef:e,options:{fields:_,allColumns:k}}).map($=>$.field),M=so(e),E={};M.forEach($=>{E[$.field]=P.includes($.field)}),b&&(E[ga.field]=!0),e.current.setColumnVisibilityModel(E),w()}),[e]),d=m.useCallback(_=>{const b=_({apiRef:e}).reduce((w,P)=>{const M=e.current.getRow(P);return M[Bl]||w.push(M),w},[]);e.current.setRows(b)},[e]),f=m.useCallback((_,k)=>{var R,z,O,A;const b=y({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},k),w=_.contentDocument;if(!w)return;const P=va(e.current.state),M=e.current.rootElementRef.current,E=M.cloneNode(!0),$=E.querySelector(`.${K.main}`);$.style.overflow="visible",E.style.contain="size";let T=((R=M.querySelector(`.${K.toolbarContainer}`))==null?void 0:R.offsetHeight)||0,F=((z=M.querySelector(`.${K.footerContainer}`))==null?void 0:z.offsetHeight)||0;b.hideToolbar&&((O=E.querySelector(`.${K.toolbarContainer}`))==null||O.remove(),T=0),b.hideFooter&&((A=E.querySelector(`.${K.footerContainer}`))==null||A.remove(),F=0);const B=P.currentPageTotalHeight+ab(e,t)+T+F;E.style.height=`${B}px`,E.style.boxSizing="content-box";const H=E.querySelector(`.${K.footerContainer}`);H.style.position="absolute",H.style.width="100%",H.style.top=`${B-F}px`;const W=document.createElement("div");W.appendChild(E),w.body.style.marginTop="0px",w.body.innerHTML=W.innerHTML;const j=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof j=="string"){const N=w.createElement("style");N.appendChild(w.createTextNode(j)),w.head.appendChild(N)}b.bodyClassName&&w.body.classList.add(...b.bodyClassName.split(" "));const D=[];if(b.copyStyles){const N=M.getRootNode(),U=(N.constructor.name==="ShadowRoot"?N:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let Z=0;Z{ee.addEventListener("load",()=>Q())})),w.head.appendChild(ee)}}}Promise.all(D).then(()=>{_.contentWindow.print()})},[e,r,t]),p=m.useCallback(_=>{var k,b;r.current.body.removeChild(_),e.current.restoreState(o.current||{}),(b=(k=o.current)==null?void 0:k.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.setState(w=>y({},w,{virtualization:a.current})),e.current.setRows(l.current),o.current=null,i.current={},l.current=[]},[e]),v={exportDataAsPrint:m.useCallback(async _=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(o.current=e.current.exportState(),i.current=Nr(e),l.current=e.current.getSortedRows().filter(b=>!b[Bl]),t.pagination){const w={page:0,pageSize:tM(e)};e.current.setState(P=>y({},P,{pagination:y({},P.pagination,{paginationModel:jd(P.pagination,"DataGridPro",w)})}))}a.current=e.current.state.virtualization,e.current.setState(b=>y({},b,{virtualization:y({},b.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(_==null?void 0:_.fields,_==null?void 0:_.allColumns,_==null?void 0:_.includeCheckboxes),d((_==null?void 0:_.getRowsToExport)??DM),await K8();const k=q8(_==null?void 0:_.fileName);k.onload=()=>{f(k,_),k.contentWindow.matchMedia("print").addEventListener("change",w=>{w.matches===!1&&p(k)})},r.current.body.appendChild(k)},[t,n,e,f,p,c,d])};tt(e,v,"public");const x=m.useCallback((_,k)=>{var b;return(b=k.printOptions)!=null&&b.disableToolbarButton?_:[..._,{component:S.jsx(q6,{options:k.printOptions}),componentName:"printExport"}]},[]);Nt(e,"exportMenu",x)},Y8=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??qu();return y({},e,{filter:{filterModel:Gk(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Q8=e=>e.filteredRowsLookup;function Gx(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function J8(){return Ok(Object.values)}const e9=(e,t)=>{var F,B,H;const n=mn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:vn,changeEvent:"filterModelChange"});const r=m.useCallback(()=>{e.current.setState(W=>{const j=vn(W,e.current.instanceId),D=t.filterMode==="client"?P3(j,e,t.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:D,filterModel:j??qu()}),z=y({},W,{filter:y({},W.filter,R)}),O=Gx(e,z);return y({},z,{visibleRowsLookup:O})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),o=m.useCallback((W,j)=>j==null||j.filterable===!1||t.disableColumnFilter?W:[...W,"columnMenuFilterItem"],[t.disableColumnFilter]),i=m.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),l=m.useCallback(W=>{const j=vn(e),D=[...j.items],R=D.findIndex(z=>z.id===W.id);R===-1?D.push(W):D[R]=W,e.current.setFilterModel(y({},j,{items:D}),"upsertFilterItem")},[e]),a=m.useCallback(W=>{const j=vn(e),D=[...j.items];W.forEach(R=>{const z=D.findIndex(O=>O.id===R.id);z===-1?D.push(R):D[z]=R}),e.current.setFilterModel(y({},j,{items:D}),"upsertFilterItems")},[e]),c=m.useCallback(W=>{const j=vn(e),D=j.items.filter(R=>R.id!==W.id);D.length!==j.items.length&&e.current.setFilterModel(y({},j,{items:D}),"deleteFilterItem")},[e]),d=m.useCallback((W,j,D)=>{if(n.debug("Displaying filter panel"),W){const R=vn(e),z=R.items.filter(G=>{var ee;if(G.value!==void 0)return!(Array.isArray(G.value)&&G.value.length===0);const Z=(ee=e.current.getColumn(G.field).filterOperators)==null?void 0:ee.find(Q=>Q.value===G.operator);return!(typeof(Z==null?void 0:Z.requiresFilterValue)>"u"?!0:Z==null?void 0:Z.requiresFilterValue)});let O;const A=z.find(G=>G.field===W),N=e.current.getColumn(W);A?O=z:t.disableMultipleColumnsFiltering?O=[Ug({field:W,operator:N.filterOperators[0].value},e)]:O=[...z,Ug({field:W,operator:N.filterOperators[0].value},e)],e.current.setFilterModel(y({},R,{items:O}))}e.current.showPreferences(ks.filters,j,D)},[e,n,t.disableMultipleColumnsFiltering]),f=m.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),p=m.useCallback(W=>{const j=vn(e);j.logicOperator!==W&&e.current.setFilterModel(y({},j,{logicOperator:W}),"changeLogicOperator")},[e]),g=m.useCallback(W=>{const j=vn(e);Nl(j.quickFilterValues,W)||e.current.setFilterModel(y({},j,{quickFilterValues:[...W]}))},[e]),v=m.useCallback((W,j)=>{vn(e)!==W&&(n.debug("Setting filter model"),e.current.updateControlState("filter",cx(W,t.disableMultipleColumnsFiltering,e),j),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),x={setFilterLogicOperator:p,unstable_applyFilters:i,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:a,setFilterModel:v,showFilterPanel:d,hideFilterPanel:f,setQuickFilterValues:g,ignoreDiacritics:t.ignoreDiacritics};tt(e,x,"public");const _=m.useCallback((W,j)=>{var z,O;const D=vn(e);return!j.exportOnlyDirtyModels||t.filterModel!=null||((O=(z=t.initialState)==null?void 0:z.filter)==null?void 0:O.filterModel)!=null||!Nl(D,qu())?y({},W,{filter:{filterModel:D}}):W},[e,t.filterModel,(B=(F=t.initialState)==null?void 0:F.filter)==null?void 0:B.filterModel]),k=m.useCallback((W,j)=>{var R;const D=(R=j.stateToRestore.filter)==null?void 0:R.filterModel;return D==null?W:(e.current.updateControlState("filter",cx(D,t.disableMultipleColumnsFiltering,e),"restoreState"),y({},W,{callbacks:[...W.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),b=m.useCallback((W,j)=>{var D;if(j===ks.filters){const R=t.slots.filterPanel;return S.jsx(R,y({},(D=t.slotProps)==null?void 0:D.filterPanel))}return W},[t.slots.filterPanel,(H=t.slotProps)==null?void 0:H.filterPanel]),{getRowId:w}=t,P=Ls(J8),M=m.useCallback(W=>{if(t.filterMode!=="client"||!W.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const j=Mi(e),D={},{isRowMatchingFilters:R}=W,z={},O={passingFilterItems:null,passingQuickFilterValues:null},A=P.current(e.current.state.rows.dataRowIdToModelLookup);for(let U=0;U{n.debug("onColUpdated - GridColumns changed, applying filters");const W=vn(e),j=qi(e),D=W.items.filter(R=>R.field&&j[R.field]);D.length{W==="filtering"&&e.current.unstable_applyFilters()},[e]),T=m.useCallback(()=>{e.current.setState(W=>y({},W,{visibleRowsLookup:Gx(e,W)})),e.current.forceUpdate()},[e]);Re(e,"rowsSet",r),Re(e,"columnsChange",E),Re(e,"activeStrategyProcessorChange",$),Re(e,"rowExpansionChange",T),Re(e,"columnVisibilityModelChange",()=>{const W=vn(e);W.quickFilterValues&&Wk(W)&&e.current.unstable_applyFilters()}),_c(()=>{e.current.unstable_applyFilters()}),Mt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},t9=e=>y({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),n9=(e,t)=>{const n=mn(e,"useGridFocus"),r=m.useRef(null),o=m.useCallback((T,F)=>{T&&e.current.getRow(T.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(T.id,T.field),F)},[e]),i=m.useCallback((T,F)=>{const B=Er(e);(B==null?void 0:B.id)===T&&(B==null?void 0:B.field)===F||(e.current.setState(H=>(n.debug(`Focusing on cell with id=${T} and field=${F}`),y({},H,{tabIndex:{cell:{id:T,field:F},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:T,field:F},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(T)&&(B&&o(B,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(T,F))))},[e,n,o]),l=m.useCallback((T,F={})=>{const B=Er(e);o(B,F),e.current.setState(H=>(n.debug(`Focusing on column header with colIndex=${T}`),y({},H,{tabIndex:{columnHeader:{field:T},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:T},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=m.useCallback((T,F={})=>{const B=Er(e);o(B,F),e.current.setState(H=>(n.debug(`Focusing on column header filter with colIndex=${T}`),y({},H,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:T},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:T},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),c=m.useCallback((T,F,B={})=>{const H=Er(e);H&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(H.id,H.field),B),e.current.setState(W=>y({},W,{tabIndex:{columnGroupHeader:{field:T,depth:F},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:T,depth:F},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=m.useCallback(()=>Rf(e),[e]),f=m.useCallback((T,F,B)=>{let H=e.current.getColumnIndex(F);const W=bn(e),j=Yu(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=Ds(e),R=[].concat(D.top||[],j.rows,D.bottom||[]);let z=R.findIndex(G=>G.id===T);B==="right"?H+=1:B==="left"?H-=1:z+=1,H>=W.length?(z+=1,z=0&&(H=W.length-1)),z=oi(z,0,R.length-1);const O=R[z];if(!O)return;const A=e.current.unstable_getCellColSpanInfo(O.id,H);A&&A.spannedByColSpan&&(B==="left"||B==="below"?H=A.leftVisibleCellIndex:B==="right"&&(H=A.rightVisibleCellIndex)),H=oi(H,0,W.length-1);const N=W[H];e.current.setCellFocus(O.id,N.field)},[e,t.pagination,t.paginationMode]),p=m.useCallback(({id:T,field:F})=>{e.current.setCellFocus(T,F)},[e]),g=m.useCallback((T,F)=>{F.key==="Enter"||F.key==="Tab"||F.key==="Shift"||zf(F.key)||e.current.setCellFocus(T.id,T.field)},[e]),v=m.useCallback(({field:T},F)=>{F.target===F.currentTarget&&e.current.setColumnHeaderFocus(T,F)},[e]),x=m.useCallback(({fields:T,depth:F},B)=>{if(B.target!==B.currentTarget)return;const H=Rf(e);H!==null&&H.depth===F&&T.includes(H.field)||e.current.setColumnGroupHeaderFocus(T[0],F,B)},[e]),_=m.useCallback((T,F)=>{var B,H;(H=(B=F.relatedTarget)==null?void 0:B.getAttribute("class"))!=null&&H.includes(K.columnHeader)||(n.debug("Clearing focus"),e.current.setState(W=>y({},W,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),k=m.useCallback(T=>{r.current=T},[]),b=m.useCallback(T=>{const F=r.current;r.current=null;const B=Er(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:T,cell:F}))return;if(!B){F&&e.current.setCellFocus(F.id,F.field);return}if((F==null?void 0:F.id)===B.id&&(F==null?void 0:F.field)===B.field)return;const W=e.current.getCellElement(B.id,B.field);W!=null&&W.contains(T.target)||(F?e.current.setCellFocus(F.id,F.field):(e.current.setState(j=>y({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(B,T)))},[e,o]),w=m.useCallback(T=>{if(T.cellMode==="view")return;const F=Er(e);((F==null?void 0:F.id)!==T.id||(F==null?void 0:F.field)!==T.field)&&e.current.setCellFocus(T.id,T.field)},[e]),P=m.useCallback(()=>{const T=Er(e);T&&!e.current.getRow(T.id)&&e.current.setState(F=>y({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),M=at(()=>{const T=Er(e);if(!T)return;const F=Yu(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(F.rows.find(W=>W.id===T.id))return;const H=bn(e);e.current.setState(W=>y({},W,{tabIndex:{cell:{id:F.rows[0].id,field:H[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),E={setCellFocus:i,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:a},$={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:d};tt(e,E,"public"),tt(e,$,"private"),m.useEffect(()=>{const T=zt(e.current.rootElementRef.current);return T.addEventListener("mouseup",b),()=>{T.removeEventListener("mouseup",b)}},[e,b]),Re(e,"columnHeaderBlur",_),Re(e,"cellDoubleClick",p),Re(e,"cellMouseDown",k),Re(e,"cellKeyDown",g),Re(e,"cellModeChange",w),Re(e,"columnHeaderFocus",v),Re(e,"columnGroupHeaderFocus",x),Re(e,"rowsSet",P),Re(e,"paginationModelChange",M)};function r9(e,t){const n=Ds(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const km=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},Mm=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=mn(e,"useGridKeyboardNavigation"),r=Ns(e,t).rows,o=$o(),i=m.useMemo(()=>r9(e,r),[e,r]),l=t.signature!=="DataGrid"&&t.headerFilters,a=m.useCallback((b,w,P="left")=>{const M=Xi(e),E=e.current.unstable_getCellColSpanInfo(w,b);E&&E.spannedByColSpan&&(P==="left"?b=E.leftVisibleCellIndex:P==="right"&&(b=E.rightVisibleCellIndex));const $=M.findIndex(F=>F.id===w);n.debug(`Navigating to cell row ${$}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:$});const T=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(w,T)},[e,n]),c=m.useCallback((b,w)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const P=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(P,w)},[e,n]),d=m.useCallback((b,w)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const P=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(P,w)},[e,n]),f=m.useCallback((b,w,P)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:M}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(M,w,P)},[e,n]),p=m.useCallback(b=>{var w;return(w=i[b])==null?void 0:w.id},[i]),g=m.useCallback((b,w)=>{const P=w.currentTarget.querySelector(`.${K.columnHeaderTitleContainerContent}`);if(!!P&&P.contains(w.target)&&b.field!==ga.field)return;const E=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,T=i.length>0?0:null,F=i.length-1,B=0,H=bn(e).length-1,W=Cc(e);let j=!0;switch(w.key){case"ArrowDown":{T!==null&&(l?d($,w):a($,p(T)));break}case"ArrowRight":{const D=Mm({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});D!==null&&c(D,w);break}case"ArrowLeft":{const D=km({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});D!==null&&c(D,w);break}case"ArrowUp":{W>0&&f($,W-1,w);break}case"PageDown":{T!==null&&F!==null&&a($,p(Math.min(T+E,F)));break}case"Home":{c(B,w);break}case"End":{c(H,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:j=!1}j&&w.preventDefault()},[e,i.length,l,d,a,p,o.direction,c,f]),v=m.useCallback((b,w)=>{const P=mV(e)===b.field,M=gV(e)===b.field;if(P||M||!zf(w.key))return;const E=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,T=0,F=i.length-1,B=0,H=bn(e).length-1;let W=!0;switch(w.key){case"ArrowDown":{const j=p(T);j!=null&&a($,j);break}case"ArrowRight":{const j=Mm({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});j!==null&&d(j,w);break}case"ArrowLeft":{const j=km({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});j!==null?d(j,w):e.current.setColumnHeaderFilterFocus(b.field,w);break}case"ArrowUp":{c($,w);break}case"PageDown":{F!==null&&a($,p(Math.min(T+E,F)));break}case"Home":{d(B,w);break}case"End":{d(H,w);break}case" ":break;default:W=!1}W&&w.preventDefault()},[e,i.length,d,o.direction,c,a,p]),x=m.useCallback((b,w)=>{const P=Rf(e);if(P===null)return;const{field:M,depth:E}=P,{fields:$,depth:T,maxDepth:F}=b,B=e.current.getViewportPageSize(),H=e.current.getColumnIndex(M),W=M?e.current.getColumnIndex(M):0,j=0,D=i.length-1,R=0,z=bn(e).length-1;let O=!0;switch(w.key){case"ArrowDown":{T===F-1?c(H,w):f(H,E+1,w);break}case"ArrowUp":{T>0&&f(H,E-1,w);break}case"ArrowRight":{const A=$.length-$.indexOf(M)-1;H+A+1<=z&&f(H+A+1,E,w);break}case"ArrowLeft":{const A=$.indexOf(M);H-A-1>=R&&f(H-A-1,E,w);break}case"PageDown":{D!==null&&a(W,p(Math.min(j+B,D)));break}case"Home":{f(R,E,w);break}case"End":{f(z,E,w);break}case" ":break;default:O=!1}O&&w.preventDefault()},[e,i.length,c,f,a,p]),_=m.useCallback((b,w)=>{if(xc(w))return;const P=e.current.getCellParams(b.id,b.field);if(P.cellMode===wt.Edit||!zf(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:P})||i.length===0)return;const E=o.direction,$=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,F=i.findIndex(R=>R.id===b.id),B=0,H=i.length-1,W=0,j=bn(e).length-1;let D=!0;switch(w.key){case"ArrowDown":{FB?a(T,p(F-1)):l?d(T,w):c(T,w);break}case"ArrowRight":{const R=Mm({currentColIndex:T,firstColIndex:W,lastColIndex:j,direction:E});R!==null&&a(R,p(F),E==="rtl"?"left":"right");break}case"ArrowLeft":{const R=km({currentColIndex:T,firstColIndex:W,lastColIndex:j,direction:E});R!==null&&a(R,p(F),E==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&T>W?a(T-1,p(F),"left"):!w.shiftKey&&T=B?a(T,p(R)):c(T,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?a(W,p(B)):a(W,p(F));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?a(j,p(H)):a(j,p(F));break}default:D=!1}D&&w.preventDefault()},[e,i,o.direction,a,p,l,d,c]),k=m.useCallback((b,{event:w})=>w.key===" "?!1:b,[]);Nt(e,"canStartEditing",k),Re(e,"columnHeaderKeyDown",g),Re(e,"headerFilterKeyDown",v),Re(e,"columnGroupHeaderKeyDown",x),Re(e,"cellKeyDown",_)},i9=(e,t)=>{var x,_;const n=mn(e,"useGridRowCount"),r=be(e,nM),o=be(e,Ml),i=be(e,tu),l=be(e,Nn),a=Ls(()=>Nn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Ml,changeEvent:"rowCountChange"});const d={setRowCount:m.useCallback(k=>{o!==k&&(n.debug("Setting 'rowCount' to",k),e.current.setState(b=>y({},b,{pagination:y({},b.pagination,{rowCount:k})})))},[e,n,o])};tt(e,d,"public");const f=m.useCallback((k,b)=>{var M,E;const w=Ml(e);return!b.exportOnlyDirtyModels||t.rowCount!=null||((E=(M=t.initialState)==null?void 0:M.pagination)==null?void 0:E.rowCount)!=null?y({},k,{pagination:y({},k.pagination,{rowCount:w})}):k},[e,t.rowCount,(_=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:_.rowCount]),p=m.useCallback((k,b)=>{var P;const w=(P=b.stateToRestore.pagination)!=null&&P.rowCount?b.stateToRestore.pagination.rowCount:Ml(e);return e.current.setState(M=>y({},M,{pagination:y({},M.pagination,{rowCount:w})})),k},[e]);Nt(e,"exportState",f),Nt(e,"restoreState",p);const g=m.useCallback(k=>{t.paginationMode==="client"||!a.current||k.pageSize!==a.current&&(a.current=k.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Re(e,"paginationModelChange",g),m.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const v=i.hasNextPage===!1;m.useEffect(()=>{v&&o===-1&&e.current.setRowCount(l.pageSize*l.page+r)},[e,r,v,o,l])},s9=(e,t)=>{var c,d;const n=mn(e,"useGridPaginationMeta"),r=be(e,tu);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:tu,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:m.useCallback(f=>{r!==f&&(n.debug("Setting 'paginationMeta' to",f),e.current.setState(p=>y({},p,{pagination:y({},p.pagination,{meta:f})})))},[e,n,r])};tt(e,i,"public");const l=m.useCallback((f,p)=>{var x,_;const g=tu(e);return!p.exportOnlyDirtyModels||t.paginationMeta!=null||((_=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:_.meta)!=null?y({},f,{pagination:y({},f.pagination,{meta:g})}):f},[e,t.paginationMeta,(d=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:d.meta]),a=m.useCallback((f,p)=>{var v;const g=(v=p.stateToRestore.pagination)!=null&&v.meta?p.stateToRestore.pagination.meta:tu(e);return e.current.setState(x=>y({},x,{pagination:y({},x.pagination,{meta:g})})),f},[e]);Nt(e,"exportState",l),Nt(e,"restoreState",a),m.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},l9=(e,t)=>{var i,l,a,c,d,f;const n=y({},iM(t.autoPageSize),t.paginationModel??((l=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:l.paginationModel));sM(n.pageSize,t.signature);const r=t.rowCount??((c=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:c.rowCount),o=t.paginationMeta??((f=(d=t.initialState)==null?void 0:d.pagination)==null?void 0:f.meta)??{};return y({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},a9=(e,t)=>{s9(e,t),Z8(e,t),i9(e,t)},u9=(e,t)=>{var n;return y({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},c9=(e,t)=>{var p;const n=mn(e,"useGridPreferencesPanel"),r=m.useRef(),o=m.useRef(),i=m.useCallback(()=>{n.debug("Hiding Preferences Panel");const g=Qu(e.current.state);g.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:g.openedPanelValue}),e.current.setState(v=>y({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),l=m.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),a=m.useCallback(()=>{r.current=setTimeout(i,100)},[i]),c=m.useCallback((g,v,x)=>{n.debug("Opening Preferences Panel"),l(),e.current.setState(_=>y({},_,{preferencePanel:y({},_.preferencePanel,{open:!0,openedPanelValue:g,panelId:v,labelId:x})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:g}),e.current.forceUpdate()},[n,l,e]);tt(e,{showPreferences:c,hidePreferences:a},"public");const d=m.useCallback((g,v)=>{var k;const x=Qu(e.current.state);return!v.exportOnlyDirtyModels||((k=t.initialState)==null?void 0:k.preferencePanel)!=null||x.open?y({},g,{preferencePanel:x}):g},[e,(p=t.initialState)==null?void 0:p.preferencePanel]),f=m.useCallback((g,v)=>{const x=v.stateToRestore.preferencePanel;return x!=null&&e.current.setState(_=>y({},_,{preferencePanel:x})),g},[e]);Nt(e,"exportState",d),Nt(e,"restoreState",f),m.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},d9=["id","field"],f9=["id","field"];li(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example ` ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error");const p9=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d}=t,f=z=>(...O)=>{t.editMode===Fo.Cell&&z(...O)},p=m.useCallback((z,O)=>{const A=e.current.getCellParams(z,O);if(!e.current.isCellEditable(A))throw new Error(`MUI X: The cell with id=${z} and field=${O} is not editable.`)},[e]),g=m.useCallback((z,O,A)=>{if(e.current.getCellMode(z,O)!==A)throw new Error(`MUI X: The cell with id=${z} and field=${O} is not in ${A} mode.`)},[e]),v=m.useCallback((z,O)=>{if(!z.isEditable||z.cellMode===wt.Edit)return;const A=y({},z,{reason:jo.cellDoubleClick});e.current.publishEvent("cellEditStart",A,O)},[e]),x=m.useCallback((z,O)=>{if(z.cellMode===wt.View||e.current.getCellMode(z.id,z.field)===wt.View)return;const A=y({},z,{reason:to.cellFocusOut});e.current.publishEvent("cellEditStop",A,O)},[e]),_=m.useCallback((z,O)=>{if(z.cellMode===wt.Edit){if(O.which===229)return;let A;if(O.key==="Escape"?A=to.escapeKeyDown:O.key==="Enter"?A=to.enterKeyDown:O.key==="Tab"&&(A=O.shiftKey?to.shiftTabKeyDown:to.tabKeyDown,O.preventDefault()),A){const N=y({},z,{reason:A});e.current.publishEvent("cellEditStop",N,O)}}else if(z.isEditable){let A;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:O,cellParams:z,editMode:"cell"}))return;if(pM(O)?A=jo.printableKeyDown:hM(O)?A=jo.pasteKeyDown:O.key==="Enter"?A=jo.enterKeyDown:(O.key==="Backspace"||O.key==="Delete")&&(A=jo.deleteKeyDown),A){const G=y({},z,{reason:A,key:O.key});e.current.publishEvent("cellEditStart",G,O)}}},[e]),k=m.useCallback(z=>{const{id:O,field:A,reason:N}=z,G={id:O,field:A};(N===jo.printableKeyDown||N===jo.deleteKeyDown||N===jo.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),b=m.useCallback(z=>{const{id:O,field:A,reason:N}=z;e.current.runPendingEditCellValueMutation(O,A);let G;N===to.enterKeyDown?G="below":N===to.tabKeyDown?G="right":N===to.shiftTabKeyDown&&(G="left");const U=N==="escapeKeyDown";e.current.stopCellEditMode({id:O,field:A,ignoreModifications:U,cellToFocusAfter:G})},[e]),w=z=>async(...O)=>{var A;if(z){const{id:N,field:G}=O[0];((A=e.current.state.editRows[N][G])==null?void 0:A.error)||z(...O)}};Re(e,"cellDoubleClick",f(v)),Re(e,"cellFocusOut",f(x)),Re(e,"cellKeyDown",f(_)),Re(e,"cellEditStart",f(k)),Re(e,"cellEditStop",f(b)),Tt(e,"cellEditStart",t.onCellEditStart),Tt(e,"cellEditStop",w(t.onCellEditStop));const P=m.useCallback((z,O)=>{const A=Rn(e.current.state);return A[z]&&A[z][O]?wt.Edit:wt.View},[e]),M=at(z=>{const O=z!==t.cellModesModel;d&&O&&d(z,{api:e.current}),!(t.cellModesModel&&O)&&(r(z),o.current=z,e.current.publishEvent("cellModesModelChange",z))}),E=m.useCallback((z,O,A)=>{const N=y({},o.current);if(A!==null)N[z]=y({},N[z],{[O]:y({},A)});else{const G=N[z],U=se(G,[O].map(Hu));N[z]=U,Object.keys(N[z]).length===0&&delete N[z]}M(N)},[M]),$=m.useCallback((z,O,A)=>{e.current.setState(N=>{const G=y({},N.editRows);return A!==null?G[z]=y({},G[z],{[O]:y({},A)}):(delete G[z][O],Object.keys(G[z]).length===0&&delete G[z]),y({},N,{editRows:G})}),e.current.forceUpdate()},[e]),T=m.useCallback(z=>{const{id:O,field:A}=z,N=se(z,d9);p(O,A),g(O,A,wt.View),E(O,A,y({mode:wt.Edit},N))},[p,g,E]),F=at(z=>{const{id:O,field:A,deleteValue:N,initialValue:G}=z;let U=e.current.getCellValue(O,A);if(N)switch(e.current.getColumn(A).type){case"boolean":U=!1;break;case"date":case"dateTime":case"number":U=void 0;break;case"singleSelect":U=null;break;case"string":default:U="";break}else G&&(U=G);$(O,A,{value:U,error:!1,isProcessingProps:!1}),e.current.setCellFocus(O,A)}),B=m.useCallback(z=>{const{id:O,field:A}=z,N=se(z,f9);g(O,A,wt.Edit),E(O,A,y({mode:wt.View},N))},[g,E]),H=at(async z=>{const{id:O,field:A,ignoreModifications:N,cellToFocusAfter:G="none"}=z;g(O,A,wt.Edit),e.current.runPendingEditCellValueMutation(O,A);const U=()=>{$(O,A,null),E(O,A,null),G!=="none"&&e.current.moveFocusToRelativeCell(O,A,G)};if(N){U();return}const Z=Rn(e.current.state),{error:Y,isProcessingProps:ee}=Z[O][A];if(Y||ee){i.current[O][A].mode=wt.Edit,E(O,A,{mode:wt.Edit});return}const Q=e.current.getRowWithUpdatedValuesFromCellEditing(O,A);if(l){const X=te=>{i.current[O][A].mode=wt.Edit,E(O,A,{mode:wt.Edit}),a&&a(te)};try{const te=e.current.getRow(O);Promise.resolve(l(Q,te)).then(me=>{e.current.updateRows([me]),U()}).catch(X)}catch(te){X(te)}}else e.current.updateRows([Q]),U()}),W=m.useCallback(async z=>{var te,me;const{id:O,field:A,value:N,debounceMs:G,unstable_skipValueParser:U}=z;p(O,A),g(O,A,wt.Edit);const Z=e.current.getColumn(A),Y=e.current.getRow(O);let ee=N;Z.valueParser&&!U&&(ee=Z.valueParser(N,Y,Z,e));let Q=Rn(e.current.state),X=y({},Q[O][A],{value:ee,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if(Z.preProcessEditCellProps){const re=N!==Q[O][A].value;X=y({},X,{isProcessingProps:!0}),$(O,A,X),X=await Promise.resolve(Z.preProcessEditCellProps({id:O,row:Y,props:X,hasChanged:re}))}return e.current.getCellMode(O,A)===wt.View?!1:(Q=Rn(e.current.state),X=y({},X,{isProcessingProps:!1}),X.value=Z.preProcessEditCellProps?Q[O][A].value:ee,$(O,A,X),Q=Rn(e.current.state),!((me=(te=Q[O])==null?void 0:te[A])!=null&&me.error))},[e,p,g,$]),j=m.useCallback((z,O)=>{const A=e.current.getColumn(O),N=Rn(e.current.state),G=e.current.getRow(z);if(!N[z]||!N[z][O])return e.current.getRow(z);const{value:U}=N[z][O];return A.valueSetter?A.valueSetter(U,G,A,e):y({},G,{[O]:U})},[e]),D={getCellMode:P,startCellEditMode:T,stopCellEditMode:B},R={setCellEditingEditCellValue:W,getRowWithUpdatedValuesFromCellEditing:j};tt(e,D,"public"),tt(e,R,"private"),m.useEffect(()=>{c&&M(c)},[c,M]),Mt(()=>{const z=Tf(e),O=i.current;i.current=Nk(n),Object.entries(n).forEach(([A,N])=>{Object.entries(N).forEach(([G,U])=>{var ee,Q;const Z=((Q=(ee=O[A])==null?void 0:ee[G])==null?void 0:Q.mode)||wt.View,Y=z[A]??A;U.mode===wt.Edit&&Z===wt.View?F(y({id:Y,field:G},U)):U.mode===wt.View&&Z===wt.Edit&&H(y({id:Y,field:G},U))})})},[e,n,F,H])},h9=["id"],m9=["id"];li(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example ` ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error");const g9=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),l=m.useRef(),a=m.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:f,onRowModesModelChange:p}=t,g=G=>(...U)=>{t.editMode===Fo.Row&&G(...U)},v=m.useCallback((G,U)=>{const Z=e.current.getCellParams(G,U);if(!e.current.isCellEditable(Z))throw new Error(`MUI X: The cell with id=${G} and field=${U} is not editable.`)},[e]),x=m.useCallback((G,U)=>{if(e.current.getRowMode(G)!==U)throw new Error(`MUI X: The row with id=${G} is not in ${U} mode.`)},[e]),_=m.useCallback(G=>{const U=Rn(e.current.state);return Object.values(U[G]).some(Z=>Z.error)},[e]),k=m.useCallback((G,U)=>{if(!G.isEditable||e.current.getRowMode(G.id)===Lt.Edit)return;const Z=e.current.getRowParams(G.id),Y=y({},Z,{field:G.field,reason:mi.cellDoubleClick});e.current.publishEvent("rowEditStart",Y,U)},[e]),b=m.useCallback(G=>{a.current=G},[]),w=m.useCallback((G,U)=>{G.isEditable&&e.current.getRowMode(G.id)!==Lt.View&&(a.current=null,l.current=setTimeout(()=>{var Z;if(((Z=a.current)==null?void 0:Z.id)!==G.id){if(!e.current.getRow(G.id)||e.current.getRowMode(G.id)===Lt.View||_(G.id))return;const Y=e.current.getRowParams(G.id),ee=y({},Y,{field:G.field,reason:vo.rowFocusOut});e.current.publishEvent("rowEditStop",ee,U)}}))},[e,_]);m.useEffect(()=>()=>{clearTimeout(l.current)},[]);const P=m.useCallback((G,U)=>{if(G.cellMode===Lt.Edit){if(U.which===229)return;let Z;if(U.key==="Escape")Z=vo.escapeKeyDown;else if(U.key==="Enter")Z=vo.enterKeyDown;else if(U.key==="Tab"){const Y=bc(e).filter(ee=>e.current.getColumn(ee).type===Jp?!0:e.current.isCellEditable(e.current.getCellParams(G.id,ee)));if(U.shiftKey?G.field===Y[0]&&(Z=vo.shiftTabKeyDown):G.field===Y[Y.length-1]&&(Z=vo.tabKeyDown),U.preventDefault(),!Z){const ee=Y.findIndex(X=>X===G.field),Q=Y[U.shiftKey?ee-1:ee+1];e.current.setCellFocus(G.id,Q)}}if(Z){if(Z!==vo.escapeKeyDown&&_(G.id))return;const Y=y({},e.current.getRowParams(G.id),{reason:Z,field:G.field});e.current.publishEvent("rowEditStop",Y,U)}}else if(G.isEditable){let Z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:U,cellParams:G,editMode:"row"}))return;if(pM(U)||hM(U)?Z=mi.printableKeyDown:U.key==="Enter"?Z=mi.enterKeyDown:(U.key==="Backspace"||U.key==="Delete")&&(Z=mi.deleteKeyDown),Z){const ee=e.current.getRowParams(G.id),Q=y({},ee,{field:G.field,reason:Z});e.current.publishEvent("rowEditStart",Q,U)}}},[e,_]),M=m.useCallback(G=>{const{id:U,field:Z,reason:Y}=G,ee={id:U,fieldToFocus:Z};(Y===mi.printableKeyDown||Y===mi.deleteKeyDown)&&(ee.deleteValue=!!Z),e.current.startRowEditMode(ee)},[e]),E=m.useCallback(G=>{const{id:U,reason:Z,field:Y}=G;e.current.runPendingEditCellValueMutation(U);let ee;Z===vo.enterKeyDown?ee="below":Z===vo.tabKeyDown?ee="right":Z===vo.shiftTabKeyDown&&(ee="left");const Q=Z==="escapeKeyDown";e.current.stopRowEditMode({id:U,ignoreModifications:Q,field:Y,cellToFocusAfter:ee})},[e]);Re(e,"cellDoubleClick",g(k)),Re(e,"cellFocusIn",g(b)),Re(e,"cellFocusOut",g(w)),Re(e,"cellKeyDown",g(P)),Re(e,"rowEditStart",g(M)),Re(e,"rowEditStop",g(E)),Tt(e,"rowEditStart",t.onRowEditStart),Tt(e,"rowEditStop",t.onRowEditStop);const $=m.useCallback(G=>{if(t.editMode===Fo.Cell)return Lt.View;const U=Rn(e.current.state);return U[G]&&Object.keys(U[G]).length>0?Lt.Edit:Lt.View},[e,t.editMode]),T=at(G=>{const U=G!==t.rowModesModel;p&&U&&p(G,{api:e.current}),!(t.rowModesModel&&U)&&(r(G),o.current=G,e.current.publishEvent("rowModesModelChange",G))}),F=m.useCallback((G,U)=>{const Z=y({},o.current);U!==null?Z[G]=y({},U):delete Z[G],T(Z)},[T]),B=m.useCallback((G,U)=>{e.current.setState(Z=>{const Y=y({},Z.editRows);return U!==null?Y[G]=U:delete Y[G],y({},Z,{editRows:Y})}),e.current.forceUpdate()},[e]),H=m.useCallback((G,U,Z)=>{e.current.setState(Y=>{const ee=y({},Y.editRows);return Z!==null?ee[G]=y({},ee[G],{[U]:y({},Z)}):(delete ee[G][U],Object.keys(ee[G]).length===0&&delete ee[G]),y({},Y,{editRows:ee})}),e.current.forceUpdate()},[e]),W=m.useCallback(G=>{const{id:U}=G,Z=se(G,h9);x(U,Lt.View),F(U,y({mode:Lt.Edit},Z))},[x,F]),j=at(G=>{const{id:U,fieldToFocus:Z,deleteValue:Y,initialValue:ee}=G,X=qo(e).reduce((te,me)=>{if(!e.current.getCellParams(U,me).isEditable)return te;let oe=e.current.getCellValue(U,me);return Z===me&&(Y||ee)&&(oe=Y?"":ee),te[me]={value:oe,error:!1,isProcessingProps:!1},te},{});B(U,X),Z&&e.current.setCellFocus(U,Z)}),D=m.useCallback(G=>{const{id:U}=G,Z=se(G,m9);x(U,Lt.Edit),F(U,y({mode:Lt.View},Z))},[x,F]),R=at(G=>{const{id:U,ignoreModifications:Z,field:Y,cellToFocusAfter:ee="none"}=G;e.current.runPendingEditCellValueMutation(U);const Q=()=>{ee!=="none"&&Y&&e.current.moveFocusToRelativeCell(U,Y,ee),B(U,null),F(U,null)};if(Z){Q();return}const X=Rn(e.current.state),te=e.current.getRow(U);if(Object.values(X[U]).some(oe=>oe.isProcessingProps)){i.current[U].mode=Lt.Edit;return}if(_(U)){i.current[U].mode=Lt.Edit,F(U,{mode:Lt.Edit});return}const re=e.current.getRowWithUpdatedValuesFromRowEditing(U);if(c){const oe=ge=>{i.current[U].mode=Lt.Edit,F(U,{mode:Lt.Edit}),d&&d(ge)};try{Promise.resolve(c(re,te)).then(ge=>{e.current.updateRows([ge]),Q()}).catch(oe)}catch(ge){oe(ge)}}else e.current.updateRows([re]),Q()}),z=m.useCallback(G=>{const{id:U,field:Z,value:Y,debounceMs:ee,unstable_skipValueParser:Q}=G;v(U,Z);const X=e.current.getColumn(Z),te=e.current.getRow(U);let me=Y;X.valueParser&&!Q&&(me=X.valueParser(Y,te,X,e));let re=Rn(e.current.state),oe=y({},re[U][Z],{value:me,changeReason:ee?"debouncedSetEditCellValue":"setEditCellValue"});return X.preProcessEditCellProps||H(U,Z,oe),new Promise(ge=>{const ve=[];if(X.preProcessEditCellProps){const ye=oe.value!==re[U][Z].value;oe=y({},oe,{isProcessingProps:!0}),H(U,Z,oe);const Ee=re[U],$e=se(Ee,[Z].map(Hu)),we=Promise.resolve(X.preProcessEditCellProps({id:U,row:te,props:oe,hasChanged:ye,otherFieldsProps:$e})).then(Ce=>{if(e.current.getRowMode(U)===Lt.View){ge(!1);return}re=Rn(e.current.state),Ce=y({},Ce,{isProcessingProps:!1}),Ce.value=X.preProcessEditCellProps?re[U][Z].value:me,H(U,Z,Ce)});ve.push(we)}Object.entries(re[U]).forEach(([ye,Ee])=>{if(ye===Z)return;const $e=e.current.getColumn(ye);if(!$e.preProcessEditCellProps)return;Ee=y({},Ee,{isProcessingProps:!0}),H(U,ye,Ee),re=Rn(e.current.state);const we=re[U],Ce=se(we,[ye].map(Hu)),Je=Promise.resolve($e.preProcessEditCellProps({id:U,row:te,props:Ee,hasChanged:!1,otherFieldsProps:Ce})).then(Ie=>{if(e.current.getRowMode(U)===Lt.View){ge(!1);return}Ie=y({},Ie,{isProcessingProps:!1}),H(U,ye,Ie)});ve.push(Je)}),Promise.all(ve).then(()=>{e.current.getRowMode(U)===Lt.Edit?(re=Rn(e.current.state),ge(!re[U][Z].error)):ge(!1)})})},[e,v,H]),O=m.useCallback(G=>{const U=Rn(e.current.state),Z=e.current.getRow(G);if(!U[G])return e.current.getRow(G);let Y=y({},Z);return Object.entries(U[G]).forEach(([ee,Q])=>{const X=e.current.getColumn(ee);X.valueSetter?Y=X.valueSetter(Q.value,Y,X,e):Y[ee]=Q.value}),Y},[e]),A={getRowMode:$,startRowEditMode:W,stopRowEditMode:D},N={setRowEditingEditCellValue:z,getRowWithUpdatedValuesFromRowEditing:O};tt(e,A,"public"),tt(e,N,"private"),m.useEffect(()=>{f&&T(f)},[f,T]),Mt(()=>{const G=Tf(e),U=i.current;i.current=Nk(n);const Z=new Set([...Object.keys(n),...Object.keys(U)]);Array.from(Z).forEach(Y=>{var te;const ee=n[Y]??{mode:Lt.View},Q=((te=U[Y])==null?void 0:te.mode)||Lt.View,X=G[Y]??Y;ee.mode===Lt.Edit&&Q===Lt.View?j(y({id:X},ee)):ee.mode===Lt.View&&Q===Lt.Edit&&R(y({id:X},ee))})},[e,n,j,R])},v9=e=>y({},e,{editRows:{}}),y9=(e,t)=>{p9(e,t),g9(e,t);const n=m.useRef({}),{isCellEditable:r}=t,o=m.useCallback(g=>oa(g.rowNode)||!g.colDef.editable||!g.colDef.renderEditCell?!1:r?r(g):!0,[r]),i=(g,v,x,_)=>{if(!x){_();return}if(n.current[g]||(n.current[g]={}),n.current[g][v]){const[w]=n.current[g][v];clearTimeout(w)}const k=()=>{const[w]=n.current[g][v];clearTimeout(w),_(),delete n.current[g][v]},b=setTimeout(()=>{_(),delete n.current[g][v]},x);n.current[g][v]=[b,k]};m.useEffect(()=>{const g=n.current;return()=>{Object.entries(g).forEach(([v,x])=>{Object.keys(x).forEach(_=>{const[k]=g[v][_];clearTimeout(k),delete g[v][_]})})}},[]);const l=m.useCallback((g,v)=>{if(n.current[g]){if(!v)Object.keys(n.current[g]).forEach(x=>{const[,_]=n.current[g][x];_()});else if(n.current[g][v]){const[,x]=n.current[g][v];x()}}},[]),a=m.useCallback(g=>{const{id:v,field:x,debounceMs:_}=g;return new Promise(k=>{i(v,x,_,async()=>{const b=t.editMode===Fo.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(v,x)===wt.Edit){const w=await b(g);k(w)}})})},[e,t.editMode]),c=m.useCallback((g,v)=>t.editMode===Fo.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,v):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),d=m.useCallback((g,v)=>{var _;return((_=Rn(e.current.state)[g])==null?void 0:_[v])??null},[e]),f={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:d},p={runPendingEditCellValueMutation:l};tt(e,f,"public"),tt(e,p,"private")},b9=(e,t,n)=>(n.current.caches.rows=Nd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),y({},e,{rows:Kk({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),_9=(e,t)=>{const n=mn(e,"useGridRows"),r=Ns(e,t),o=m.useRef(Date.now()),i=m.useRef(t.rowCount),l=Dr(),a=m.useCallback(R=>{const z=Mi(e)[R];if(z)return z;const O=e.current.getRowNode(R);return O&&oa(O)?{[Bl]:R}:null},[e]),c=t.getRowId,d=m.useCallback(R=>Bl in R?R[Bl]:c?c(R):R.id,[c]),f=m.useMemo(()=>r.rows.reduce((R,{id:z},O)=>(R[z]=O,R),{}),[r.rows]),p=m.useCallback(({cache:R,throttle:z})=>{const O=()=>{o.current=Date.now(),e.current.setState(N=>y({},N,{rows:Kk({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:zr(e),previousTreeDepths:px(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.clear(),e.current.caches.rows=R,!z){O();return}const A=t.throttleRowsMs-(Date.now()-o.current);if(A>0){l.start(A,O);return}O()},[t.throttleRowsMs,t.rowCount,t.loading,e,l]),g=m.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`);const z=Nd({rows:R,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),O=e.current.caches.rows;z.rowsBeforePartialUpdates=O.rowsBeforePartialUpdates,p({cache:z,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,p,e]),v=m.useCallback(R=>{if(t.signature===To.DataGrid&&R.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));const z=[];R.forEach(A=>{const N=Of(A,t.getRowId,"A row was provided without id when calling updateRows():"),G=e.current.getRowNode(N);if((G==null?void 0:G.type)==="pinnedRow"){const U=e.current.caches.pinnedRows,Z=U.idLookup[N];Z&&(U.idLookup[N]=y({},Z,A))}else z.push(A)});const O=U3({updates:z,getRowId:t.getRowId,previousCache:e.current.caches.rows});p({cache:O,throttle:!0})},[t.signature,t.getRowId,p,e]),x=m.useCallback(()=>{const R=md(e),z=Mi(e);return new Map(R.map(O=>[O,z[O]??{}]))},[e]),_=m.useCallback(()=>eh(e),[e]),k=m.useCallback(()=>md(e),[e]),b=m.useCallback(R=>f[R],[f]),w=m.useCallback((R,z)=>{const O=e.current.getRowNode(R);if(!O)throw new Error(`MUI X: No row with id #${R} found.`);if(O.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const A=y({},O,{childrenExpanded:z});e.current.setState(N=>y({},N,{rows:y({},N.rows,{tree:y({},N.rows.tree,{[R]:A})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",A)},[e]),P=m.useCallback(R=>zr(e)[R]??null,[e]),M=m.useCallback(({skipAutoGeneratedRows:R=!0,groupId:z,applySorting:O,applyFiltering:A})=>{const N=zr(e);let G;if(O){const U=N[z];if(!U)return[];const Z=rb(e);G=[];const Y=Z.findIndex(ee=>ee===z)+1;for(let ee=Y;eeU.depth;ee+=1){const Q=Z[ee];(!R||!oa(N[Q]))&&G.push(Q)}}else G=eb(N,z,R);if(A){const U=Jk(e);G=G.filter(Z=>U[Z]!==!1)}return G},[e]),E=m.useCallback((R,z)=>{const O=e.current.getRowNode(R);if(!O)throw new Error(`MUI X: No row with id #${R} found.`);if(O.parent!==Hn)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(O.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(A=>{const N=zr(A,e.current.instanceId)[Hn],G=N.children,U=G.findIndex(Y=>Y===R);if(U===-1||U===z)return A;n.debug(`Moving row ${R} to index ${z}`);const Z=[...G];return Z.splice(z,0,Z.splice(U,1)[0]),y({},A,{rows:y({},A.rows,{tree:y({},A.rows.tree,{[Hn]:y({},N,{children:Z})})})})}),e.current.publishEvent("rowsSet")},[e,n]),$=m.useCallback((R,z)=>{if(t.signature===To.DataGrid&&z.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` -`));if(z.length===0)return;if(th(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const A=y({},zr(e)),N=y({},Mi(e)),G=y({},Tf(e)),U=A[Hn],Z=[...U.children],Y=new Set;for(let Q=0;Q{var X;return((X=A[Q])==null?void 0:X.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=N,e.current.caches.rows.dataRowIdToIdLookup=G,e.current.setState(Q=>y({},Q,{rows:y({},Q.rows,{dataRowIdToModelLookup:N,dataRowIdToIdLookup:G,dataRowIds:ee,tree:A})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),T={getRow:a,getRowId:d,getRowModels:x,getRowsCount:_,getAllRowIds:k,setRows:g,updateRows:v,getRowNode:P,getRowIndexRelativeToVisibleRows:b,unstable_replaceRows:$},F={setRowIndex:E,setRowChildrenExpansion:w,getRowGroupChildren:M},B=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?R=y({},e.current.caches.rows,{updates:{type:"full",rows:md(e)}}):R=Nd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),p({cache:R,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,p]),H=m.useCallback(R=>{R==="rowTreeCreation"&&B()},[B]),W=m.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==H3(e)&&B()},[e,B]);Re(e,"activeStrategyProcessorChange",H),Re(e,"strategyAvailabilityChange",W);const j=m.useCallback(()=>{e.current.setState(R=>{const z=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:zr(R,e.current.instanceId),treeDepths:px(R,e.current.instanceId),dataRowIds:md(R,e.current.instanceId),dataRowIdToModelLookup:Mi(R,e.current.instanceId),dataRowIdToIdLookup:Tf(R,e.current.instanceId)});return y({},R,{rows:y({},R.rows,z,{totalTopLevelRowCount:Zk({tree:z.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);yb(e,"hydrateRows",j),tt(e,T,"public"),tt(e,F,t.signature===To.DataGrid?"private":"public");const D=m.useRef(!0);m.useEffect(()=>{if(D.current){D.current=!1;return}let R=!1;t.rowCount!==i.current&&(R=!0,i.current=t.rowCount);const z=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,A=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;z&&(O||(e.current.setState(N=>y({},N,{rows:y({},N.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),A||(e.current.setState(N=>y({},N,{rows:y({},N.rows,{totalRowCount:Math.max(t.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!R)||(n.debug(`Updating all rows, new length ${t.rows.length}`),p({cache:Nd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,p,e])},C9=e=>{const t={[Hn]:y({},V3(),{children:e})};for(let n=0;n{const n=y({},e),r={};for(let l=0;l!r[l])),n[Hn]=y({},o,{children:i}),{groupingName:Ms,tree:n,treeDepths:{0:i.length},dataRowIds:i}},w9=e=>e.updates.type==="full"?C9(e.updates.rows):x9({previousTree:e.previousTree,actions:e.updates.actions}),S9=e=>{Nf(e,Ms,"rowTreeCreation",w9)},NM=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],P9=(e,t)=>y({},e,{rowSelection:t.rowSelection?NM(t.rowSelectionModel)??[]:[]}),k9=(e,t)=>{const n=mn(e,"useGridSelection"),r=D=>(...R)=>{t.rowSelection&&D(...R)},o=m.useMemo(()=>NM(t.rowSelectionModel,Lr(e.current.state)),[e,t.rowSelectionModel]),i=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Lr,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:a,isRowSelectable:c}=t,d=tb(t),f=Ns(e,t),p=m.useCallback(D=>{let R=D;const z=i.current??D,O=e.current.isRowSelected(D);if(O){const A=vu(e),N=A.findIndex(U=>U===z),G=A.findIndex(U=>U===R);if(N===G)return;N>G?R=A[G+1]:R=A[G-1]}i.current=D,e.current.selectRowRange({startId:z,endId:R},!O)},[e]),g=m.useCallback(D=>{if(t.signature===To.DataGrid&&!d&&Array.isArray(D)&&D.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` -`));Lr(e.current.state)!==D&&(n.debug("Setting selection model"),e.current.setState(z=>y({},z,{rowSelection:t.rowSelection?D:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),v=m.useCallback(D=>Lr(e.current.state).includes(D),[e]),x=m.useCallback(D=>{if(c&&!c(e.current.getRowParams(D)))return!1;const R=e.current.getRowNode(D);return!((R==null?void 0:R.type)==="footer"||(R==null?void 0:R.type)==="pinnedRow")},[e,c]),_=m.useCallback(()=>gG(e),[e]),k=m.useCallback((D,R=!0,z=!1)=>{if(e.current.isRowSelectable(D))if(i.current=D,z)n.debug(`Setting selection for row ${D}`),e.current.setRowSelectionModel(R?[D]:[]);else{n.debug(`Toggling selection for row ${D}`);const A=Lr(e.current.state).filter(G=>G!==D);R&&A.push(D),(A.length<2||d)&&e.current.setRowSelectionModel(A)}},[e,n,d]),b=m.useCallback((D,R=!0,z=!1)=>{n.debug("Setting selection for several rows");const O=D.filter(G=>e.current.isRowSelectable(G));let A;if(z)A=R?O:[];else{const G=y({},Ff(e));O.forEach(U=>{R?G[U]=U:delete G[U]}),A=Object.values(G)}(A.length<2||d)&&e.current.setRowSelectionModel(A)},[e,n,d]),w=m.useCallback(({startId:D,endId:R},z=!0,O=!1)=>{if(!e.current.getRow(D)||!e.current.getRow(R))return;n.debug(`Expanding selection from row ${D} to row ${R}`);const A=vu(e),N=A.indexOf(D),G=A.indexOf(R),[U,Z]=N>G?[G,N]:[N,G],Y=A.slice(U,Z+1);e.current.selectRows(Y,z,O)},[e,n]),P={selectRow:k,setRowSelectionModel:g,getSelectedRows:_,isRowSelected:v,isRowSelectable:x},M={selectRows:b,selectRowRange:w};tt(e,P,"public"),tt(e,M,t.signature===To.DataGrid?"private":"public");const E=m.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const D=Lr(e.current.state),R=Mi(e),z=y({},Ff(e));let O=!1;D.forEach(A=>{R[A]||(delete z[A],O=!0)}),O&&e.current.setRowSelectionModel(Object.values(z))},[e,t.keepNonExistentRowsSelected]),$=m.useCallback((D,R)=>{const z=R.metaKey||R.ctrlKey,O=!l&&!z&&!KG(R),A=!d||O,N=e.current.isRowSelected(D);A?e.current.selectRow(D,O?!0:!N,!0):e.current.selectRow(D,!N,!1)},[e,d,l]),T=m.useCallback((D,R)=>{var A;if(a)return;const z=(A=R.target.closest(`.${K.cell}`))==null?void 0:A.getAttribute("data-field");if(z===ga.field||z===gb)return;if(z){const N=e.current.getColumn(z);if((N==null?void 0:N.type)===Jp)return}e.current.getRowNode(D.id).type!=="pinnedRow"&&(R.shiftKey&&d?p(D.id):$(D.id,R))},[a,d,e,p,$]),F=m.useCallback((D,R)=>{var z;d&&R.shiftKey&&((z=window.getSelection())==null||z.removeAllRanges())},[d]),B=m.useCallback((D,R)=>{d&&R.nativeEvent.shiftKey?p(D.id):e.current.selectRow(D.id,D.value,!d)},[e,p,d]),H=m.useCallback(D=>{const z=t.checkboxSelectionVisibleOnly&&t.pagination?aM(e):vu(e),O=vn(e);e.current.selectRows(z,D.value,(O==null?void 0:O.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),W=m.useCallback((D,R)=>{if(e.current.getCellMode(D.id,D.field)!==wt.Edit&&!xc(R)){if(zf(R.key)&&R.shiftKey){const z=Er(e);if(z&&z.id!==D.id){R.preventDefault();const O=e.current.isRowSelected(z.id);if(!d){e.current.selectRow(z.id,!O,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(z.id),N=e.current.getRowIndexRelativeToVisibleRows(D.id);let G,U;A>N?O?(G=N,U=A-1):(G=N,U=A):O?(G=A+1,U=N):(G=A,U=N);const Z=f.rows.slice(G,U+1).map(Y=>Y.id);e.current.selectRows(Z,!O);return}}if(R.key===" "&&R.shiftKey){R.preventDefault(),$(D.id,R);return}R.key==="a"&&(R.ctrlKey||R.metaKey)&&(R.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,$,b,f.rows,d]);Re(e,"sortedRowsSet",r(E)),Re(e,"rowClick",r(T)),Re(e,"rowSelectionCheckboxChange",r(B)),Re(e,"headerSelectionCheckboxChange",H),Re(e,"cellMouseDown",r(F)),Re(e,"cellKeyDown",r(W)),m.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),m.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const j=o!=null;m.useEffect(()=>{if(j||!t.rowSelection)return;const D=Lr(e.current.state);if(x){const R=D.filter(z=>x(z));R.length{if(!t.rowSelection||j)return;const D=Lr(e.current.state);!d&&D.length>1&&e.current.setRowSelectionModel([])},[e,d,l,j,t.rowSelection])},M9=e=>{const{classes:t}=e;return m.useMemo(()=>xe({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ft,t),[t])},I9=(e,t)=>{const n={classes:t.classes},r=M9(n),o=m.useCallback(i=>{const l=y({},ga,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[gi]!=null;return a&&!c?(i.lookup[gi]=l,i.orderedFields=[gi,...i.orderedFields]):!a&&c?(delete i.lookup[gi],i.orderedFields=i.orderedFields.filter(d=>d!==gi)):a&&c&&(i.lookup[gi]=y({},l,i.lookup[gi])),i},[e,r,t.checkboxSelection]);Nt(e,"hydrateColumns",o)},E9=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return y({},e,{sorting:{sortModel:$k(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},L9=(e,t)=>{var E,$;const n=mn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Tr,changeEvent:"sortModelChange"});const r=m.useCallback((T,F)=>{const B=Tr(e),H=B.findIndex(j=>j.field===T);let W=[...B];return H>-1?(F==null?void 0:F.sort)==null?W.splice(H,1):W.splice(H,1,F):W=[...B,F],W},[e]),o=m.useCallback((T,F)=>{const H=Tr(e).find(W=>W.field===T.field);if(H){const W=F===void 0?ax(T.sortingOrder??t.sortingOrder,H.sort):F;return W===void 0?void 0:y({},H,{sort:W})}return{field:T.field,sort:F===void 0?ax(T.sortingOrder??t.sortingOrder):F}},[e,t.sortingOrder]),i=m.useCallback((T,F)=>F==null||F.sortable===!1||t.disableColumnSorting?T:(F.sortingOrder||t.sortingOrder).some(H=>!!H)?[...T,"columnMenuSortItem"]:T,[t.sortingOrder,t.disableColumnSorting]),l=m.useCallback(()=>{e.current.setState(T=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),y({},T,{sorting:y({},T.sorting,{sortedRows:eb(zr(e),Hn,!1)})});const F=Tr(T,e.current.instanceId),B=c3(F,e),H=e.current.applyStrategyProcessor("sorting",{sortRowList:B});return y({},T,{sorting:y({},T.sorting,{sortedRows:H})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=m.useCallback(T=>{Tr(e)!==T&&(n.debug("Setting sort model"),e.current.setState(lx(T,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=m.useCallback((T,F,B)=>{const H=e.current.getColumn(T),W=o(H,F);let j;!B||t.disableMultipleColumnsSorting?j=(W==null?void 0:W.sort)==null?[]:[W]:j=r(H.field,W),e.current.setSortModel(j)},[e,r,o,t.disableMultipleColumnsSorting]),d=m.useCallback(()=>Tr(e),[e]),f=m.useCallback(()=>ob(e).map(F=>F.model),[e]),p=m.useCallback(()=>rb(e),[e]),g=m.useCallback(T=>e.current.getSortedRowIds()[T],[e]);tt(e,{getSortModel:d,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:g,setSortModel:a,sortColumn:c,applySorting:l},"public");const x=m.useCallback((T,F)=>{var W,j;const B=Tr(e);return!F.exportOnlyDirtyModels||t.sortModel!=null||((j=(W=t.initialState)==null?void 0:W.sorting)==null?void 0:j.sortModel)!=null||B.length>0?y({},T,{sorting:{sortModel:B}}):T},[e,t.sortModel,($=(E=t.initialState)==null?void 0:E.sorting)==null?void 0:$.sortModel]),_=m.useCallback((T,F)=>{var H;const B=(H=F.stateToRestore.sorting)==null?void 0:H.sortModel;return B==null?T:(e.current.setState(lx(B,t.disableMultipleColumnsSorting)),y({},T,{callbacks:[...T.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),k=m.useCallback(T=>{const F=zr(e),B=F[Hn],H=T.sortRowList?T.sortRowList(B.children.map(W=>F[W])):[...B.children];return B.footerId!=null&&H.push(B.footerId),H},[e]);Nt(e,"exportState",x),Nt(e,"restoreState",_),Nf(e,Ms,"sorting",k);const b=m.useCallback(({field:T,colDef:F},B)=>{if(!F.sortable||t.disableColumnSorting)return;const H=B.shiftKey||B.metaKey||B.ctrlKey;c(T,void 0,H)},[c,t.disableColumnSorting]),w=m.useCallback(({field:T,colDef:F},B)=>{!F.sortable||t.disableColumnSorting||B.key==="Enter"&&!B.ctrlKey&&!B.metaKey&&c(T,void 0,B.shiftKey)},[c,t.disableColumnSorting]),P=m.useCallback(()=>{const T=Tr(e),F=qi(e);if(T.length>0){const B=T.filter(H=>F[H.field]);B.length{T==="sorting"&&e.current.applySorting()},[e]);Nt(e,"columnMenu",i),Re(e,"columnHeaderClick",b),Re(e,"columnHeaderKeyDown",w),Re(e,"rowsSet",e.current.applySorting),Re(e,"columnsChange",P),Re(e,"activeStrategyProcessorChange",M),_c(()=>{e.current.applySorting()}),Mt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function Vx(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=$o(),r=mn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,l=be(e,Xi),a=m.useCallback(p=>{var b;const g=co(e.current.state),v=eh(e),x=bn(e);if(!(p.rowIndex==null)&&v===0||x.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let k={};if(p.colIndex!==void 0){const w=As(e);let P;if(typeof p.rowIndex<"u"){const M=(b=l[p.rowIndex])==null?void 0:b.id,E=e.current.unstable_getCellColSpanInfo(M,p.colIndex);E&&!E.spannedByColSpan&&(P=E.cellProps.width)}typeof P>"u"&&(P=x[p.colIndex].computedWidth),k.left=Vx({clientHeight:g.viewportInnerSize.width,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:P,offsetTop:w[p.colIndex]})}if(p.rowIndex!==void 0){const w=va(e.current.state),P=LG(e),M=TG(e),E=t.pagination?p.rowIndex-P*M:p.rowIndex,$=w.positions[E+1]?w.positions[E+1]-w.positions[E]:w.currentPageTotalHeight-w.positions[E];k.top=Vx({clientHeight:g.viewportInnerSize.height,scrollTop:i.current.scrollTop,offsetHeight:$,offsetTop:w.positions[E]})}return k=e.current.unstable_applyPipeProcessors("scrollToIndexes",k,p),typeof k.left!==void 0||typeof k.top!==void 0?(e.current.scroll(k),!0):!1},[r,e,i,t.pagination,l]),c=m.useCallback(p=>{if(i.current&&p.left!==void 0&&o.current){const g=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,i.current.scrollLeft=g*p.left,r.debug(`Scrolling left: ${p.left}`)}i.current&&p.top!==void 0&&(i.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),d=m.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);tt(e,{scroll:c,scrollToIndexes:a,getScrollPosition:d},"public")};function O9(e,t){Tt(e,"columnHeaderClick",t.onColumnHeaderClick),Tt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Tt(e,"columnHeaderOver",t.onColumnHeaderOver),Tt(e,"columnHeaderOut",t.onColumnHeaderOut),Tt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Tt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Tt(e,"cellClick",t.onCellClick),Tt(e,"cellDoubleClick",t.onCellDoubleClick),Tt(e,"cellKeyDown",t.onCellKeyDown),Tt(e,"preferencePanelClose",t.onPreferencePanelClose),Tt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Tt(e,"menuOpen",t.onMenuOpen),Tt(e,"menuClose",t.onMenuClose),Tt(e,"rowDoubleClick",t.onRowDoubleClick),Tt(e,"rowClick",t.onRowClick),Tt(e,"stateChange",t.onStateChange)}function R9(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const dl={width:0,height:0},F9={isReady:!1,root:dl,viewportOuterSize:dl,viewportInnerSize:dl,contentSize:dl,minimumSize:dl,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},$9=e=>y({},e,{dimensions:F9});function z9(e,t){const n=mn(e,"useResizeContainer"),r=m.useRef(!1),o=m.useRef(dl),i=be(e,va),l=be(e,Qp),a=be(e,yc),c=Math.floor(t.rowHeight*a),d=Math.floor(t.columnHeaderHeight*a),f=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*a),p=D9(Rk(e),6),g=ab(e,t),v=l.left.reduce((R,z)=>R+z.computedWidth,0),x=l.right.reduce((R,z)=>R+z.computedWidth,0),[_,k]=m.useState(),b=m.useMemo(()=>R9(k,t.resizeThrottleMs),[t.resizeThrottleMs]),w=m.useRef(),P=()=>e.current.state.dimensions,M=at(R=>{e.current.setState(z=>y({},z,{dimensions:R}))}),E=m.useCallback(()=>{var U,Z;const R=e.current.mainElementRef.current;if(!R)return;const z=ti(R).getComputedStyle(R),O=parseFloat(z.height)||0,A=parseFloat(z.width)||0,N=O!==((U=w.current)==null?void 0:U.height),G=A!==((Z=w.current)==null?void 0:Z.width);if(!w.current||N||G){const Y={width:A,height:O};e.current.publishEvent("resize",Y),w.current=Y}},[e]),$=m.useCallback(()=>{const R=co(e.current.state);if(!R.isReady)return 0;const z=Yu(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const A=db(e),N=A.lastRowIndex-A.firstRowIndex;return Math.min(N-1,z.rows.length)}const O=Math.floor(R.viewportInnerSize.height/c);return Math.min(O,z.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,c]),T=m.useCallback(()=>{var oe,ge;const R=e.current.rootElementRef.current,z=Z3(e),O=A9(R,p,t.scrollbarSize),A=g+z.top,N=z.bottom,U={width:p-v-x,height:i.currentPageTotalHeight};let Z,Y,ee=!1,Q=!1;if(t.autoHeight)Q=!1,ee=Math.round(p)>Math.round(o.current.width),Z={width:o.current.width,height:A+N+U.height},Y={width:Math.max(0,Z.width-(Q?O:0)),height:Math.max(0,Z.height-(ee?O:0))};else{Z={width:o.current.width,height:o.current.height},Y={width:Math.max(0,Z.width-v-x),height:Math.max(0,Z.height-A-N)};const ve=U,ye=Y,Ee=ve.width>ye.width,$e=ve.height>ye.height;(Ee||$e)&&(Q=$e,ee=ve.width+(Q?O:0)>ye.width,ee&&(Q=ve.height+O>ye.height)),Q&&(Y.width-=O),ee&&(Y.height-=O)}const X=Math.max(Z.width,p+(Q?O:0)),te={width:p,height:A+U.height+N},me={isReady:!0,root:o.current,viewportOuterSize:Z,viewportInnerSize:Y,contentSize:U,minimumSize:te,hasScrollX:ee,hasScrollY:Q,scrollbarSize:O,headerHeight:d,headerFilterHeight:f,rowWidth:X,rowHeight:c,columnsTotalWidth:p,leftPinnedWidth:v,rightPinnedWidth:x,headersTotalHeight:g,topContainerHeight:A,bottomContainerHeight:N},re=e.current.state.dimensions;M(me),(me.viewportInnerSize.width!==re.viewportInnerSize.width||me.viewportInnerSize.height!==re.viewportInnerSize.height)&&e.current.publishEvent("viewportInnerSizeChange",me.viewportInnerSize),(ge=(oe=e.current).updateRenderContext)==null||ge.call(oe)},[e,M,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,c,d,f,p,g,v,x]),F={resize:E,getRootDimensions:P},B={updateDimensions:T,getViewportPageSize:$};tt(e,F,"public"),tt(e,B,"private"),Mt(()=>{_&&(T(),e.current.publishEvent("debouncedResize",o.current))},[e,_,T]);const H=e.current.rootElementRef.current,W=e.current.state.dimensions;Mt(()=>{if(!H)return;const R=(z,O)=>H.style.setProperty(z,O);R("--DataGrid-width",`${W.viewportOuterSize.width}px`),R("--DataGrid-hasScrollX",`${Number(W.hasScrollX)}`),R("--DataGrid-hasScrollY",`${Number(W.hasScrollY)}`),R("--DataGrid-scrollbarSize",`${W.scrollbarSize}px`),R("--DataGrid-rowWidth",`${W.rowWidth}px`),R("--DataGrid-columnsTotalWidth",`${W.columnsTotalWidth}px`),R("--DataGrid-leftPinnedWidth",`${W.leftPinnedWidth}px`),R("--DataGrid-rightPinnedWidth",`${W.rightPinnedWidth}px`),R("--DataGrid-headerHeight",`${W.headerHeight}px`),R("--DataGrid-headersTotalHeight",`${W.headersTotalHeight}px`),R("--DataGrid-topContainerHeight",`${W.topContainerHeight}px`),R("--DataGrid-bottomContainerHeight",`${W.bottomContainerHeight}px`),R("--height",`${W.rowHeight}px`)},[H,W]);const j=m.useRef(!0),D=m.useCallback(R=>{o.current=R;const z=/jsdom/.test(window.navigator.userAgent);if(R.height===0&&!r.current&&!t.autoHeight&&!z&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` +`}${l}`.trim()}function Hx(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function z8(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{Hx(e)}):Hx(e)}function A8(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const D8=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=m.useCallback(l=>{if(!((l.ctrlKey||l.metaKey)&&l.key.toLowerCase()==="c"&&!l.shiftKey&&!l.altKey)||A8(l.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const d=Er(e);if(d){const f=e.current.getCellParams(d.id,d.field);a=zM(f,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(z8(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);rM(e,e.current.rootElementRef,"keydown",i),Tt(e,"clipboardCopy",t.onClipboardCopy)},N8=e=>y({},e,{columnMenu:{open:!1}}),B8=e=>{const t=mn(e,"useGridColumnMenu"),n=m.useCallback(l=>{const a=Hd(e.current.state),c={open:!0,field:l};(c.open!==a.open||c.field!==a.field)&&(e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===l?f:(t.debug("Opening Column Menu"),y({},f,{columnMenu:{open:!0,field:l}}))),e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=m.useCallback(()=>{const l=Hd(e.current.state);if(l.field){const d=qi(e),f=Nr(e),p=qo(e);let g=l.field;if(d[g]||(g=p[0]),f[g]===!1){const v=p.filter(_=>_===g?!0:f[_]!==!1),x=v.indexOf(g);g=v[x+1]||v[x-1]}e.current.setColumnHeaderFocus(g)}const a={open:!1,field:void 0};(a.open!==l.open||a.field!==l.field)&&(e.current.setState(d=>(t.debug("Hiding Column Menu"),y({},d,{columnMenu:a}))),e.current.forceUpdate())},[e,t]),o=m.useCallback(l=>{t.debug("Toggle Column Menu");const a=Hd(e.current.state);!a.open||a.field!==l?n(l):r()},[e,t,n,r]);tt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Re(e,"columnResizeStart",r),Re(e,"virtualScrollerWheel",e.current.hideColumnMenu),Re(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},H8=(e,t,n)=>{var o,i,l;const r=cl({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((l=(i=t.initialState)==null?void 0:i.columns)==null?void 0:l.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return y({},e,{columns:r,pinnedColumns:e.pinnedColumns??Wg})};function j8(e,t){var H,W;const n=mn(e,"useGridColumns"),r=m.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Nr,changeEvent:"columnVisibilityModelChange"});const o=m.useCallback(j=>{var D,R;n.debug("Updating columns state."),e.current.setState(jx(j)),e.current.publishEvent("columnsChange",j.orderedFields),(R=(D=e.current).updateRenderContext)==null||R.call(D),e.current.forceUpdate()},[n,e]),i=m.useCallback(j=>qi(e)[j],[e]),l=m.useCallback(()=>so(e),[e]),a=m.useCallback(()=>bn(e),[e]),c=m.useCallback((j,D=!0)=>(D?bn(e):so(e)).findIndex(z=>z.field===j),[e]),d=m.useCallback(j=>{const D=c(j);return As(e)[D]},[e,c]),f=m.useCallback(j=>{var R,z;Nr(e)!==j&&(e.current.setState(O=>y({},O,{columns:cl({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),(z=(R=e.current).updateRenderContext)==null||z.call(R),e.current.forceUpdate())},[e]),p=m.useCallback(j=>{const D=cl({apiRef:e,columnsToUpsert:j,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(D)},[e,o]),g=m.useCallback((j,D)=>{const R=Nr(e),z=R[j]??!0;if(D!==z){const O=y({},R,{[j]:D});e.current.setColumnVisibilityModel(O)}},[e]),v=m.useCallback(j=>qo(e).findIndex(R=>R===j),[e]),x=m.useCallback((j,D)=>{const R=qo(e),z=v(j);if(z===D)return;n.debug(`Moving column ${j} to index ${D}`);const O=[...R],A=O.splice(z,1)[0];O.splice(D,0,A),o(y({},Oo(e.current.state),{orderedFields:O}));const N={column:e.current.getColumn(j),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(j),oldIndex:z};e.current.publishEvent("columnIndexChange",N)},[e,n,o,v]),_=m.useCallback((j,D)=>{n.debug(`Updating column ${j} width to ${D}`);const R=Oo(e.current.state),z=R.lookup[j],O=y({},z,{width:D,hasBeenResized:!0});o(Zg(y({},R,{lookup:y({},R.lookup,{[j]:O})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:O,width:D})},[e,n,o]),k={getColumn:i,getAllColumns:l,getColumnIndex:c,getColumnPosition:d,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:v,updateColumns:p,setColumnVisibilityModel:f,setColumnVisibility:g,setColumnWidth:_},b={setColumnIndex:x};tt(e,k,"public"),tt(e,b,t.signature===To.DataGrid?"private":"public");const w=m.useCallback((j,D)=>{var G,U;const R={},z=Nr(e);(!D.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((U=(G=t.initialState)==null?void 0:G.columns)==null?void 0:U.columnVisibilityModel)??{}).length>0||Object.keys(z).length>0)&&(R.columnVisibilityModel=z),R.orderedFields=qo(e);const A=so(e),N={};return A.forEach(Z=>{if(Z.hasBeenResized){const Y={};vM.forEach(ee=>{let Q=Z[ee];Q===1/0&&(Q=-1),Y[ee]=Q}),N[Z.field]=Y}}),Object.keys(N).length>0&&(R.dimensions=N),y({},j,{columns:R})},[e,t.columnVisibilityModel,(H=t.initialState)==null?void 0:H.columns]),P=m.useCallback((j,D)=>{var A;const R=(A=D.stateToRestore.columns)==null?void 0:A.columnVisibilityModel,z=D.stateToRestore.columns;if(R==null&&z==null)return j;const O=cl({apiRef:e,columnsToUpsert:[],initialState:z,columnVisibilityModel:R,keepOnlyColumnsToUpsert:!1});return e.current.setState(jx(O)),z!=null&&e.current.publishEvent("columnsChange",O.orderedFields),j},[e]),M=m.useCallback((j,D)=>{var R;if(D===ks.columns){const z=t.slots.columnsPanel;return S.jsx(z,y({},(R=t.slotProps)==null?void 0:R.columnsPanel))}return j},[t.slots.columnsPanel,(W=t.slotProps)==null?void 0:W.columnsPanel]),E=m.useCallback(j=>t.disableColumnSelector?j:[...j,"columnMenuColumnsItem"],[t.disableColumnSelector]);Nt(e,"columnMenu",E),Nt(e,"exportState",w),Nt(e,"restoreState",P),Nt(e,"preferencePanel",M);const $=m.useRef(null);Re(e,"viewportInnerSizeChange",j=>{$.current!==j.width&&($.current=j.width,o(Zg(Oo(e.current.state),e.current.getRootDimensions())))});const F=m.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const j=cl({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(j)},[e,n,o]);yb(e,"hydrateColumns",F);const B=m.useRef(!0);m.useEffect(()=>{if(B.current){B.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const j=cl({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(j)},[n,e,o,t.columns]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function jx(e){return t=>y({},t,{columns:e})}const G8=(e,t)=>{var n;return y({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},V8=(e,t)=>{var a;const n=mn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:kl,changeEvent:"densityChange"});const o={setDensity:at(c=>{kl(e.current.state)!==c&&(n.debug(`Set grid density to ${c}`),e.current.setState(f=>y({},f,{density:c})))})};tt(e,o,"public");const i=m.useCallback((c,d)=>{var g;const f=kl(e.current.state);return!d.exportOnlyDirtyModels||t.density!=null||((g=t.initialState)==null?void 0:g.density)!=null?y({},c,{density:f}):c},[e,t.density,(a=t.initialState)==null?void 0:a.density]),l=m.useCallback((c,d)=>{var p;const f=(p=d.stateToRestore)!=null&&p.density?d.stateToRestore.density:kl(e.current.state);return e.current.setState(g=>y({},g,{density:f})),c},[e]);Nt(e,"exportState",i),Nt(e,"restoreState",l),m.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function W8(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const AM=({apiRef:e,options:t})=>{const n=so(e);return t.fields?t.fields.reduce((o,i)=>{const l=n.find(a=>a.field===i);return l&&o.push(l),o},[]):(t.allColumns?n:bn(e)).filter(o=>!o.disableExport)},DM=({apiRef:e})=>{var c,d;const t=_G(e),n=zr(e),r=e.current.getSelectedRows(),o=t.filter(f=>n[f].type!=="footer"),i=Ds(e),l=((c=i==null?void 0:i.top)==null?void 0:c.map(f=>f.id))||[],a=((d=i==null?void 0:i.bottom)==null?void 0:d.map(f=>f.id))||[];return o.unshift(...l),o.push(...a),r.size>0?o.filter(f=>r.has(f)):o},U8=(e,t)=>{const n=mn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=m.useCallback((d={})=>{n.debug("Get data as CSV");const f=AM({apiRef:e,options:d}),g=(d.getRowsToExport??DM)({apiRef:e});return $8({columns:f,rowIds:g,csvOptions:{delimiter:d.delimiter||",",shouldAppendQuotes:d.shouldAppendQuotes??!0,includeHeaders:d.includeHeaders??!0,includeColumnGroupsHeaders:d.includeColumnGroupsHeaders??!0,escapeFormulas:d.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),l=m.useCallback(d=>{n.debug("Export data as CSV");const f=i(d),p=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});W8(p,"csv",d==null?void 0:d.fileName)},[n,i]);tt(e,{getDataAsCsv:i,exportDataAsCsv:l},"public");const c=m.useCallback((d,f)=>{var p;return(p=f.csvOptions)!=null&&p.disableToolbarButton?d:[...d,{component:S.jsx(K6,{options:f.csvOptions}),componentName:"csvExport"}]},[]);Nt(e,"exportMenu",c)},Gd=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,l=(n==null?void 0:n.page)??r.page,a=oM(o,i,l);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const c=EG(r.page,a);return c!==r.page&&(r=y({},r,{page:c})),sM(r.pageSize,t),r},Z8=(e,t)=>{var x,_;const n=mn(e,"useGridPaginationModel"),r=be(e,bc),o=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Nn,changeEvent:"paginationModelChange"});const i=m.useCallback(k=>{const b=Nn(e);k!==b.page&&(n.debug(`Setting page to ${k}`),e.current.setPaginationModel({page:k,pageSize:b.pageSize}))},[e,n]),l=m.useCallback(k=>{const b=Nn(e);k!==b.pageSize&&(n.debug(`Setting page size to ${k}`),e.current.setPaginationModel({pageSize:k,page:b.page}))},[e,n]),a=m.useCallback(k=>{const b=Nn(e);k!==b&&(n.debug("Setting 'paginationModel' to",k),e.current.setState(w=>y({},w,{pagination:y({},w.pagination,{paginationModel:Gd(w.pagination,t.signature,k)})})))},[e,n,t.signature]);tt(e,{setPage:i,setPageSize:l,setPaginationModel:a},"public");const d=m.useCallback((k,b)=>{var M,E;const w=Nn(e);return!b.exportOnlyDirtyModels||t.paginationModel!=null||((E=(M=t.initialState)==null?void 0:M.pagination)==null?void 0:E.paginationModel)!=null||w.page!==0&&w.pageSize!==IG(t.autoPageSize)?y({},k,{pagination:y({},k.pagination,{paginationModel:w})}):k},[e,t.paginationModel,(_=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:_.paginationModel,t.autoPageSize]),f=m.useCallback((k,b)=>{var P,M;const w=(P=b.stateToRestore.pagination)!=null&&P.paginationModel?y({},iM(t.autoPageSize),(M=b.stateToRestore.pagination)==null?void 0:M.paginationModel):Nn(e);return e.current.setState(E=>y({},E,{pagination:y({},E.pagination,{paginationModel:Gd(E.pagination,t.signature,w)})})),k},[e,t.autoPageSize,t.signature]);Nt(e,"exportState",d),Nt(e,"restoreState",f);const p=()=>{var b;const k=Nn(e);(b=e.current.virtualScrollerRef)!=null&&b.current&&e.current.scrollToIndexes({rowIndex:k.page*k.pageSize})},g=m.useCallback(()=>{if(!t.autoPageSize)return;const k=e.current.getRootDimensions(),b=Math.floor(k.viewportInnerSize.height/o);e.current.setPageSize(b)},[e,t.autoPageSize,o]),v=m.useCallback(k=>{if(k==null)return;const b=Nn(e),w=lM(e);b.page>w-1&&e.current.setPage(Math.max(0,w-1))},[e]);Re(e,"viewportInnerSizeChange",g),Re(e,"paginationModelChange",p),Re(e,"rowCountChange",v),m.useEffect(()=>{e.current.setState(k=>y({},k,{pagination:y({},k.pagination,{paginationModel:Gd(k.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.paginationMode,t.signature]),m.useEffect(g,[g])};function K8(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function q8(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const X8=(e,t)=>{const n=mn(e,"useGridPrintExport"),r=m.useRef(null),o=m.useRef(null),i=m.useRef({}),l=m.useRef([]),a=m.useRef();m.useEffect(()=>{r.current=zt(e.current.rootElementRef.current)},[e]);const c=m.useCallback((_,k,b)=>new Promise(w=>{const P=AM({apiRef:e,options:{fields:_,allColumns:k}}).map($=>$.field),M=so(e),E={};M.forEach($=>{E[$.field]=P.includes($.field)}),b&&(E[ga.field]=!0),e.current.setColumnVisibilityModel(E),w()}),[e]),d=m.useCallback(_=>{const b=_({apiRef:e}).reduce((w,P)=>{const M=e.current.getRow(P);return M[Bl]||w.push(M),w},[]);e.current.setRows(b)},[e]),f=m.useCallback((_,k)=>{var R,z,O,A;const b=y({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},k),w=_.contentDocument;if(!w)return;const P=va(e.current.state),M=e.current.rootElementRef.current,E=M.cloneNode(!0),$=E.querySelector(`.${K.main}`);$.style.overflow="visible",E.style.contain="size";let T=((R=M.querySelector(`.${K.toolbarContainer}`))==null?void 0:R.offsetHeight)||0,F=((z=M.querySelector(`.${K.footerContainer}`))==null?void 0:z.offsetHeight)||0;b.hideToolbar&&((O=E.querySelector(`.${K.toolbarContainer}`))==null||O.remove(),T=0),b.hideFooter&&((A=E.querySelector(`.${K.footerContainer}`))==null||A.remove(),F=0);const B=P.currentPageTotalHeight+ab(e,t)+T+F;E.style.height=`${B}px`,E.style.boxSizing="content-box";const H=E.querySelector(`.${K.footerContainer}`);H.style.position="absolute",H.style.width="100%",H.style.top=`${B-F}px`;const W=document.createElement("div");W.appendChild(E),w.body.style.marginTop="0px",w.body.innerHTML=W.innerHTML;const j=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof j=="string"){const N=w.createElement("style");N.appendChild(w.createTextNode(j)),w.head.appendChild(N)}b.bodyClassName&&w.body.classList.add(...b.bodyClassName.split(" "));const D=[];if(b.copyStyles){const N=M.getRootNode(),U=(N.constructor.name==="ShadowRoot"?N:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let Z=0;Z{ee.addEventListener("load",()=>Q())})),w.head.appendChild(ee)}}}Promise.all(D).then(()=>{_.contentWindow.print()})},[e,r,t]),p=m.useCallback(_=>{var k,b;r.current.body.removeChild(_),e.current.restoreState(o.current||{}),(b=(k=o.current)==null?void 0:k.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.setState(w=>y({},w,{virtualization:a.current})),e.current.setRows(l.current),o.current=null,i.current={},l.current=[]},[e]),v={exportDataAsPrint:m.useCallback(async _=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(o.current=e.current.exportState(),i.current=Nr(e),l.current=e.current.getSortedRows().filter(b=>!b[Bl]),t.pagination){const w={page:0,pageSize:tM(e)};e.current.setState(P=>y({},P,{pagination:y({},P.pagination,{paginationModel:Gd(P.pagination,"DataGridPro",w)})}))}a.current=e.current.state.virtualization,e.current.setState(b=>y({},b,{virtualization:y({},b.virtualization,{enabled:!1,enabledForColumns:!1})})),await c(_==null?void 0:_.fields,_==null?void 0:_.allColumns,_==null?void 0:_.includeCheckboxes),d((_==null?void 0:_.getRowsToExport)??DM),await K8();const k=q8(_==null?void 0:_.fileName);k.onload=()=>{f(k,_),k.contentWindow.matchMedia("print").addEventListener("change",w=>{w.matches===!1&&p(k)})},r.current.body.appendChild(k)},[t,n,e,f,p,c,d])};tt(e,v,"public");const x=m.useCallback((_,k)=>{var b;return(b=k.printOptions)!=null&&b.disableToolbarButton?_:[..._,{component:S.jsx(q6,{options:k.printOptions}),componentName:"printExport"}]},[]);Nt(e,"exportMenu",x)},Y8=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??Xu();return y({},e,{filter:{filterModel:Gk(r,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Q8=e=>e.filteredRowsLookup;function Gx(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function J8(){return Ok(Object.values)}const e9=(e,t)=>{var F,B,H;const n=mn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:vn,changeEvent:"filterModelChange"});const r=m.useCallback(()=>{e.current.setState(W=>{const j=vn(W,e.current.instanceId),D=t.filterMode==="client"?P3(j,e,t.disableEval):null,R=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:D,filterModel:j??Xu()}),z=y({},W,{filter:y({},W.filter,R)}),O=Gx(e,z);return y({},z,{visibleRowsLookup:O})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),o=m.useCallback((W,j)=>j==null||j.filterable===!1||t.disableColumnFilter?W:[...W,"columnMenuFilterItem"],[t.disableColumnFilter]),i=m.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),l=m.useCallback(W=>{const j=vn(e),D=[...j.items],R=D.findIndex(z=>z.id===W.id);R===-1?D.push(W):D[R]=W,e.current.setFilterModel(y({},j,{items:D}),"upsertFilterItem")},[e]),a=m.useCallback(W=>{const j=vn(e),D=[...j.items];W.forEach(R=>{const z=D.findIndex(O=>O.id===R.id);z===-1?D.push(R):D[z]=R}),e.current.setFilterModel(y({},j,{items:D}),"upsertFilterItems")},[e]),c=m.useCallback(W=>{const j=vn(e),D=j.items.filter(R=>R.id!==W.id);D.length!==j.items.length&&e.current.setFilterModel(y({},j,{items:D}),"deleteFilterItem")},[e]),d=m.useCallback((W,j,D)=>{if(n.debug("Displaying filter panel"),W){const R=vn(e),z=R.items.filter(G=>{var ee;if(G.value!==void 0)return!(Array.isArray(G.value)&&G.value.length===0);const Z=(ee=e.current.getColumn(G.field).filterOperators)==null?void 0:ee.find(Q=>Q.value===G.operator);return!(typeof(Z==null?void 0:Z.requiresFilterValue)>"u"?!0:Z==null?void 0:Z.requiresFilterValue)});let O;const A=z.find(G=>G.field===W),N=e.current.getColumn(W);A?O=z:t.disableMultipleColumnsFiltering?O=[Ug({field:W,operator:N.filterOperators[0].value},e)]:O=[...z,Ug({field:W,operator:N.filterOperators[0].value},e)],e.current.setFilterModel(y({},R,{items:O}))}e.current.showPreferences(ks.filters,j,D)},[e,n,t.disableMultipleColumnsFiltering]),f=m.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),p=m.useCallback(W=>{const j=vn(e);j.logicOperator!==W&&e.current.setFilterModel(y({},j,{logicOperator:W}),"changeLogicOperator")},[e]),g=m.useCallback(W=>{const j=vn(e);Nl(j.quickFilterValues,W)||e.current.setFilterModel(y({},j,{quickFilterValues:[...W]}))},[e]),v=m.useCallback((W,j)=>{vn(e)!==W&&(n.debug("Setting filter model"),e.current.updateControlState("filter",cx(W,t.disableMultipleColumnsFiltering,e),j),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),x={setFilterLogicOperator:p,unstable_applyFilters:i,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:a,setFilterModel:v,showFilterPanel:d,hideFilterPanel:f,setQuickFilterValues:g,ignoreDiacritics:t.ignoreDiacritics};tt(e,x,"public");const _=m.useCallback((W,j)=>{var z,O;const D=vn(e);return!j.exportOnlyDirtyModels||t.filterModel!=null||((O=(z=t.initialState)==null?void 0:z.filter)==null?void 0:O.filterModel)!=null||!Nl(D,Xu())?y({},W,{filter:{filterModel:D}}):W},[e,t.filterModel,(B=(F=t.initialState)==null?void 0:F.filter)==null?void 0:B.filterModel]),k=m.useCallback((W,j)=>{var R;const D=(R=j.stateToRestore.filter)==null?void 0:R.filterModel;return D==null?W:(e.current.updateControlState("filter",cx(D,t.disableMultipleColumnsFiltering,e),"restoreState"),y({},W,{callbacks:[...W.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),b=m.useCallback((W,j)=>{var D;if(j===ks.filters){const R=t.slots.filterPanel;return S.jsx(R,y({},(D=t.slotProps)==null?void 0:D.filterPanel))}return W},[t.slots.filterPanel,(H=t.slotProps)==null?void 0:H.filterPanel]),{getRowId:w}=t,P=Ls(J8),M=m.useCallback(W=>{if(t.filterMode!=="client"||!W.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const j=Mi(e),D={},{isRowMatchingFilters:R}=W,z={},O={passingFilterItems:null,passingQuickFilterValues:null},A=P.current(e.current.state.rows.dataRowIdToModelLookup);for(let U=0;U{n.debug("onColUpdated - GridColumns changed, applying filters");const W=vn(e),j=qi(e),D=W.items.filter(R=>R.field&&j[R.field]);D.length{W==="filtering"&&e.current.unstable_applyFilters()},[e]),T=m.useCallback(()=>{e.current.setState(W=>y({},W,{visibleRowsLookup:Gx(e,W)})),e.current.forceUpdate()},[e]);Re(e,"rowsSet",r),Re(e,"columnsChange",E),Re(e,"activeStrategyProcessorChange",$),Re(e,"rowExpansionChange",T),Re(e,"columnVisibilityModelChange",()=>{const W=vn(e);W.quickFilterValues&&Wk(W)&&e.current.unstable_applyFilters()}),Cc(()=>{e.current.unstable_applyFilters()}),Mt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},t9=e=>y({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),n9=(e,t)=>{const n=mn(e,"useGridFocus"),r=m.useRef(null),o=m.useCallback((T,F)=>{T&&e.current.getRow(T.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(T.id,T.field),F)},[e]),i=m.useCallback((T,F)=>{const B=Er(e);(B==null?void 0:B.id)===T&&(B==null?void 0:B.field)===F||(e.current.setState(H=>(n.debug(`Focusing on cell with id=${T} and field=${F}`),y({},H,{tabIndex:{cell:{id:T,field:F},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:T,field:F},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(T)&&(B&&o(B,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(T,F))))},[e,n,o]),l=m.useCallback((T,F={})=>{const B=Er(e);o(B,F),e.current.setState(H=>(n.debug(`Focusing on column header with colIndex=${T}`),y({},H,{tabIndex:{columnHeader:{field:T},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:T},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=m.useCallback((T,F={})=>{const B=Er(e);o(B,F),e.current.setState(H=>(n.debug(`Focusing on column header filter with colIndex=${T}`),y({},H,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:T},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:T},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),c=m.useCallback((T,F,B={})=>{const H=Er(e);H&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(H.id,H.field),B),e.current.setState(W=>y({},W,{tabIndex:{columnGroupHeader:{field:T,depth:F},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:T,depth:F},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=m.useCallback(()=>Rf(e),[e]),f=m.useCallback((T,F,B)=>{let H=e.current.getColumnIndex(F);const W=bn(e),j=Qu(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=Ds(e),R=[].concat(D.top||[],j.rows,D.bottom||[]);let z=R.findIndex(G=>G.id===T);B==="right"?H+=1:B==="left"?H-=1:z+=1,H>=W.length?(z+=1,z=0&&(H=W.length-1)),z=oi(z,0,R.length-1);const O=R[z];if(!O)return;const A=e.current.unstable_getCellColSpanInfo(O.id,H);A&&A.spannedByColSpan&&(B==="left"||B==="below"?H=A.leftVisibleCellIndex:B==="right"&&(H=A.rightVisibleCellIndex)),H=oi(H,0,W.length-1);const N=W[H];e.current.setCellFocus(O.id,N.field)},[e,t.pagination,t.paginationMode]),p=m.useCallback(({id:T,field:F})=>{e.current.setCellFocus(T,F)},[e]),g=m.useCallback((T,F)=>{F.key==="Enter"||F.key==="Tab"||F.key==="Shift"||zf(F.key)||e.current.setCellFocus(T.id,T.field)},[e]),v=m.useCallback(({field:T},F)=>{F.target===F.currentTarget&&e.current.setColumnHeaderFocus(T,F)},[e]),x=m.useCallback(({fields:T,depth:F},B)=>{if(B.target!==B.currentTarget)return;const H=Rf(e);H!==null&&H.depth===F&&T.includes(H.field)||e.current.setColumnGroupHeaderFocus(T[0],F,B)},[e]),_=m.useCallback((T,F)=>{var B,H;(H=(B=F.relatedTarget)==null?void 0:B.getAttribute("class"))!=null&&H.includes(K.columnHeader)||(n.debug("Clearing focus"),e.current.setState(W=>y({},W,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),k=m.useCallback(T=>{r.current=T},[]),b=m.useCallback(T=>{const F=r.current;r.current=null;const B=Er(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:T,cell:F}))return;if(!B){F&&e.current.setCellFocus(F.id,F.field);return}if((F==null?void 0:F.id)===B.id&&(F==null?void 0:F.field)===B.field)return;const W=e.current.getCellElement(B.id,B.field);W!=null&&W.contains(T.target)||(F?e.current.setCellFocus(F.id,F.field):(e.current.setState(j=>y({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(B,T)))},[e,o]),w=m.useCallback(T=>{if(T.cellMode==="view")return;const F=Er(e);((F==null?void 0:F.id)!==T.id||(F==null?void 0:F.field)!==T.field)&&e.current.setCellFocus(T.id,T.field)},[e]),P=m.useCallback(()=>{const T=Er(e);T&&!e.current.getRow(T.id)&&e.current.setState(F=>y({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),M=at(()=>{const T=Er(e);if(!T)return;const F=Qu(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(F.rows.find(W=>W.id===T.id))return;const H=bn(e);e.current.setState(W=>y({},W,{tabIndex:{cell:{id:F.rows[0].id,field:H[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),E={setCellFocus:i,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:a},$={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:d};tt(e,E,"public"),tt(e,$,"private"),m.useEffect(()=>{const T=zt(e.current.rootElementRef.current);return T.addEventListener("mouseup",b),()=>{T.removeEventListener("mouseup",b)}},[e,b]),Re(e,"columnHeaderBlur",_),Re(e,"cellDoubleClick",p),Re(e,"cellMouseDown",k),Re(e,"cellKeyDown",g),Re(e,"cellModeChange",w),Re(e,"columnHeaderFocus",v),Re(e,"columnGroupHeaderFocus",x),Re(e,"rowsSet",P),Re(e,"paginationModelChange",M)};function r9(e,t){const n=Ds(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const km=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(et)return e-1;return null},Mm=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e{const n=mn(e,"useGridKeyboardNavigation"),r=Ns(e,t).rows,o=$o(),i=m.useMemo(()=>r9(e,r),[e,r]),l=t.signature!=="DataGrid"&&t.headerFilters,a=m.useCallback((b,w,P="left")=>{const M=Xi(e),E=e.current.unstable_getCellColSpanInfo(w,b);E&&E.spannedByColSpan&&(P==="left"?b=E.leftVisibleCellIndex:P==="right"&&(b=E.rightVisibleCellIndex));const $=M.findIndex(F=>F.id===w);n.debug(`Navigating to cell row ${$}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:$});const T=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(w,T)},[e,n]),c=m.useCallback((b,w)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const P=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(P,w)},[e,n]),d=m.useCallback((b,w)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const P=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(P,w)},[e,n]),f=m.useCallback((b,w,P)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:M}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(M,w,P)},[e,n]),p=m.useCallback(b=>{var w;return(w=i[b])==null?void 0:w.id},[i]),g=m.useCallback((b,w)=>{const P=w.currentTarget.querySelector(`.${K.columnHeaderTitleContainerContent}`);if(!!P&&P.contains(w.target)&&b.field!==ga.field)return;const E=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,T=i.length>0?0:null,F=i.length-1,B=0,H=bn(e).length-1,W=xc(e);let j=!0;switch(w.key){case"ArrowDown":{T!==null&&(l?d($,w):a($,p(T)));break}case"ArrowRight":{const D=Mm({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});D!==null&&c(D,w);break}case"ArrowLeft":{const D=km({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});D!==null&&c(D,w);break}case"ArrowUp":{W>0&&f($,W-1,w);break}case"PageDown":{T!==null&&F!==null&&a($,p(Math.min(T+E,F)));break}case"Home":{c(B,w);break}case"End":{c(H,w);break}case"Enter":{(w.ctrlKey||w.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:j=!1}j&&w.preventDefault()},[e,i.length,l,d,a,p,o.direction,c,f]),v=m.useCallback((b,w)=>{const P=mV(e)===b.field,M=gV(e)===b.field;if(P||M||!zf(w.key))return;const E=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,T=0,F=i.length-1,B=0,H=bn(e).length-1;let W=!0;switch(w.key){case"ArrowDown":{const j=p(T);j!=null&&a($,j);break}case"ArrowRight":{const j=Mm({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});j!==null&&d(j,w);break}case"ArrowLeft":{const j=km({currentColIndex:$,firstColIndex:B,lastColIndex:H,direction:o.direction});j!==null?d(j,w):e.current.setColumnHeaderFilterFocus(b.field,w);break}case"ArrowUp":{c($,w);break}case"PageDown":{F!==null&&a($,p(Math.min(T+E,F)));break}case"Home":{d(B,w);break}case"End":{d(H,w);break}case" ":break;default:W=!1}W&&w.preventDefault()},[e,i.length,d,o.direction,c,a,p]),x=m.useCallback((b,w)=>{const P=Rf(e);if(P===null)return;const{field:M,depth:E}=P,{fields:$,depth:T,maxDepth:F}=b,B=e.current.getViewportPageSize(),H=e.current.getColumnIndex(M),W=M?e.current.getColumnIndex(M):0,j=0,D=i.length-1,R=0,z=bn(e).length-1;let O=!0;switch(w.key){case"ArrowDown":{T===F-1?c(H,w):f(H,E+1,w);break}case"ArrowUp":{T>0&&f(H,E-1,w);break}case"ArrowRight":{const A=$.length-$.indexOf(M)-1;H+A+1<=z&&f(H+A+1,E,w);break}case"ArrowLeft":{const A=$.indexOf(M);H-A-1>=R&&f(H-A-1,E,w);break}case"PageDown":{D!==null&&a(W,p(Math.min(j+B,D)));break}case"Home":{f(R,E,w);break}case"End":{f(z,E,w);break}case" ":break;default:O=!1}O&&w.preventDefault()},[e,i.length,c,f,a,p]),_=m.useCallback((b,w)=>{if(wc(w))return;const P=e.current.getCellParams(b.id,b.field);if(P.cellMode===wt.Edit||!zf(w.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:w,cell:P})||i.length===0)return;const E=o.direction,$=e.current.getViewportPageSize(),T=b.field?e.current.getColumnIndex(b.field):0,F=i.findIndex(R=>R.id===b.id),B=0,H=i.length-1,W=0,j=bn(e).length-1;let D=!0;switch(w.key){case"ArrowDown":{FB?a(T,p(F-1)):l?d(T,w):c(T,w);break}case"ArrowRight":{const R=Mm({currentColIndex:T,firstColIndex:W,lastColIndex:j,direction:E});R!==null&&a(R,p(F),E==="rtl"?"left":"right");break}case"ArrowLeft":{const R=km({currentColIndex:T,firstColIndex:W,lastColIndex:j,direction:E});R!==null&&a(R,p(F),E==="rtl"?"right":"left");break}case"Tab":{w.shiftKey&&T>W?a(T-1,p(F),"left"):!w.shiftKey&&T=B?a(T,p(R)):c(T,w);break}case"Home":{w.ctrlKey||w.metaKey||w.shiftKey?a(W,p(B)):a(W,p(F));break}case"End":{w.ctrlKey||w.metaKey||w.shiftKey?a(j,p(H)):a(j,p(F));break}default:D=!1}D&&w.preventDefault()},[e,i,o.direction,a,p,l,d,c]),k=m.useCallback((b,{event:w})=>w.key===" "?!1:b,[]);Nt(e,"canStartEditing",k),Re(e,"columnHeaderKeyDown",g),Re(e,"headerFilterKeyDown",v),Re(e,"columnGroupHeaderKeyDown",x),Re(e,"cellKeyDown",_)},i9=(e,t)=>{var x,_;const n=mn(e,"useGridRowCount"),r=be(e,nM),o=be(e,Ml),i=be(e,tu),l=be(e,Nn),a=Ls(()=>Nn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Ml,changeEvent:"rowCountChange"});const d={setRowCount:m.useCallback(k=>{o!==k&&(n.debug("Setting 'rowCount' to",k),e.current.setState(b=>y({},b,{pagination:y({},b.pagination,{rowCount:k})})))},[e,n,o])};tt(e,d,"public");const f=m.useCallback((k,b)=>{var M,E;const w=Ml(e);return!b.exportOnlyDirtyModels||t.rowCount!=null||((E=(M=t.initialState)==null?void 0:M.pagination)==null?void 0:E.rowCount)!=null?y({},k,{pagination:y({},k.pagination,{rowCount:w})}):k},[e,t.rowCount,(_=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:_.rowCount]),p=m.useCallback((k,b)=>{var P;const w=(P=b.stateToRestore.pagination)!=null&&P.rowCount?b.stateToRestore.pagination.rowCount:Ml(e);return e.current.setState(M=>y({},M,{pagination:y({},M.pagination,{rowCount:w})})),k},[e]);Nt(e,"exportState",f),Nt(e,"restoreState",p);const g=m.useCallback(k=>{t.paginationMode==="client"||!a.current||k.pageSize!==a.current&&(a.current=k.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Re(e,"paginationModelChange",g),m.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const v=i.hasNextPage===!1;m.useEffect(()=>{v&&o===-1&&e.current.setRowCount(l.pageSize*l.page+r)},[e,r,v,o,l])},s9=(e,t)=>{var c,d;const n=mn(e,"useGridPaginationMeta"),r=be(e,tu);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:tu,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:m.useCallback(f=>{r!==f&&(n.debug("Setting 'paginationMeta' to",f),e.current.setState(p=>y({},p,{pagination:y({},p.pagination,{meta:f})})))},[e,n,r])};tt(e,i,"public");const l=m.useCallback((f,p)=>{var x,_;const g=tu(e);return!p.exportOnlyDirtyModels||t.paginationMeta!=null||((_=(x=t.initialState)==null?void 0:x.pagination)==null?void 0:_.meta)!=null?y({},f,{pagination:y({},f.pagination,{meta:g})}):f},[e,t.paginationMeta,(d=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:d.meta]),a=m.useCallback((f,p)=>{var v;const g=(v=p.stateToRestore.pagination)!=null&&v.meta?p.stateToRestore.pagination.meta:tu(e);return e.current.setState(x=>y({},x,{pagination:y({},x.pagination,{meta:g})})),f},[e]);Nt(e,"exportState",l),Nt(e,"restoreState",a),m.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},l9=(e,t)=>{var i,l,a,c,d,f;const n=y({},iM(t.autoPageSize),t.paginationModel??((l=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:l.paginationModel));sM(n.pageSize,t.signature);const r=t.rowCount??((c=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:c.rowCount),o=t.paginationMeta??((f=(d=t.initialState)==null?void 0:d.pagination)==null?void 0:f.meta)??{};return y({},e,{pagination:{paginationModel:n,rowCount:r,meta:o}})},a9=(e,t)=>{s9(e,t),Z8(e,t),i9(e,t)},u9=(e,t)=>{var n;return y({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},c9=(e,t)=>{var p;const n=mn(e,"useGridPreferencesPanel"),r=m.useRef(),o=m.useRef(),i=m.useCallback(()=>{n.debug("Hiding Preferences Panel");const g=Ju(e.current.state);g.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:g.openedPanelValue}),e.current.setState(v=>y({},v,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,n]),l=m.useCallback(()=>{o.current=setTimeout(()=>clearTimeout(r.current),0)},[]),a=m.useCallback(()=>{r.current=setTimeout(i,100)},[i]),c=m.useCallback((g,v,x)=>{n.debug("Opening Preferences Panel"),l(),e.current.setState(_=>y({},_,{preferencePanel:y({},_.preferencePanel,{open:!0,openedPanelValue:g,panelId:v,labelId:x})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:g}),e.current.forceUpdate()},[n,l,e]);tt(e,{showPreferences:c,hidePreferences:a},"public");const d=m.useCallback((g,v)=>{var k;const x=Ju(e.current.state);return!v.exportOnlyDirtyModels||((k=t.initialState)==null?void 0:k.preferencePanel)!=null||x.open?y({},g,{preferencePanel:x}):g},[e,(p=t.initialState)==null?void 0:p.preferencePanel]),f=m.useCallback((g,v)=>{const x=v.stateToRestore.preferencePanel;return x!=null&&e.current.setState(_=>y({},_,{preferencePanel:x})),g},[e]);Nt(e,"exportState",d),Nt(e,"restoreState",f),m.useEffect(()=>()=>{clearTimeout(r.current),clearTimeout(o.current)},[])},d9=["id","field"],f9=["id","field"];li(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example ` ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error");const p9=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d}=t,f=z=>(...O)=>{t.editMode===Fo.Cell&&z(...O)},p=m.useCallback((z,O)=>{const A=e.current.getCellParams(z,O);if(!e.current.isCellEditable(A))throw new Error(`MUI X: The cell with id=${z} and field=${O} is not editable.`)},[e]),g=m.useCallback((z,O,A)=>{if(e.current.getCellMode(z,O)!==A)throw new Error(`MUI X: The cell with id=${z} and field=${O} is not in ${A} mode.`)},[e]),v=m.useCallback((z,O)=>{if(!z.isEditable||z.cellMode===wt.Edit)return;const A=y({},z,{reason:jo.cellDoubleClick});e.current.publishEvent("cellEditStart",A,O)},[e]),x=m.useCallback((z,O)=>{if(z.cellMode===wt.View||e.current.getCellMode(z.id,z.field)===wt.View)return;const A=y({},z,{reason:to.cellFocusOut});e.current.publishEvent("cellEditStop",A,O)},[e]),_=m.useCallback((z,O)=>{if(z.cellMode===wt.Edit){if(O.which===229)return;let A;if(O.key==="Escape"?A=to.escapeKeyDown:O.key==="Enter"?A=to.enterKeyDown:O.key==="Tab"&&(A=O.shiftKey?to.shiftTabKeyDown:to.tabKeyDown,O.preventDefault()),A){const N=y({},z,{reason:A});e.current.publishEvent("cellEditStop",N,O)}}else if(z.isEditable){let A;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:O,cellParams:z,editMode:"cell"}))return;if(pM(O)?A=jo.printableKeyDown:hM(O)?A=jo.pasteKeyDown:O.key==="Enter"?A=jo.enterKeyDown:(O.key==="Backspace"||O.key==="Delete")&&(A=jo.deleteKeyDown),A){const G=y({},z,{reason:A,key:O.key});e.current.publishEvent("cellEditStart",G,O)}}},[e]),k=m.useCallback(z=>{const{id:O,field:A,reason:N}=z,G={id:O,field:A};(N===jo.printableKeyDown||N===jo.deleteKeyDown||N===jo.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),b=m.useCallback(z=>{const{id:O,field:A,reason:N}=z;e.current.runPendingEditCellValueMutation(O,A);let G;N===to.enterKeyDown?G="below":N===to.tabKeyDown?G="right":N===to.shiftTabKeyDown&&(G="left");const U=N==="escapeKeyDown";e.current.stopCellEditMode({id:O,field:A,ignoreModifications:U,cellToFocusAfter:G})},[e]),w=z=>async(...O)=>{var A;if(z){const{id:N,field:G}=O[0];((A=e.current.state.editRows[N][G])==null?void 0:A.error)||z(...O)}};Re(e,"cellDoubleClick",f(v)),Re(e,"cellFocusOut",f(x)),Re(e,"cellKeyDown",f(_)),Re(e,"cellEditStart",f(k)),Re(e,"cellEditStop",f(b)),Tt(e,"cellEditStart",t.onCellEditStart),Tt(e,"cellEditStop",w(t.onCellEditStop));const P=m.useCallback((z,O)=>{const A=Rn(e.current.state);return A[z]&&A[z][O]?wt.Edit:wt.View},[e]),M=at(z=>{const O=z!==t.cellModesModel;d&&O&&d(z,{api:e.current}),!(t.cellModesModel&&O)&&(r(z),o.current=z,e.current.publishEvent("cellModesModelChange",z))}),E=m.useCallback((z,O,A)=>{const N=y({},o.current);if(A!==null)N[z]=y({},N[z],{[O]:y({},A)});else{const G=N[z],U=se(G,[O].map(ju));N[z]=U,Object.keys(N[z]).length===0&&delete N[z]}M(N)},[M]),$=m.useCallback((z,O,A)=>{e.current.setState(N=>{const G=y({},N.editRows);return A!==null?G[z]=y({},G[z],{[O]:y({},A)}):(delete G[z][O],Object.keys(G[z]).length===0&&delete G[z]),y({},N,{editRows:G})}),e.current.forceUpdate()},[e]),T=m.useCallback(z=>{const{id:O,field:A}=z,N=se(z,d9);p(O,A),g(O,A,wt.View),E(O,A,y({mode:wt.Edit},N))},[p,g,E]),F=at(z=>{const{id:O,field:A,deleteValue:N,initialValue:G}=z;let U=e.current.getCellValue(O,A);if(N)switch(e.current.getColumn(A).type){case"boolean":U=!1;break;case"date":case"dateTime":case"number":U=void 0;break;case"singleSelect":U=null;break;case"string":default:U="";break}else G&&(U=G);$(O,A,{value:U,error:!1,isProcessingProps:!1}),e.current.setCellFocus(O,A)}),B=m.useCallback(z=>{const{id:O,field:A}=z,N=se(z,f9);g(O,A,wt.Edit),E(O,A,y({mode:wt.View},N))},[g,E]),H=at(async z=>{const{id:O,field:A,ignoreModifications:N,cellToFocusAfter:G="none"}=z;g(O,A,wt.Edit),e.current.runPendingEditCellValueMutation(O,A);const U=()=>{$(O,A,null),E(O,A,null),G!=="none"&&e.current.moveFocusToRelativeCell(O,A,G)};if(N){U();return}const Z=Rn(e.current.state),{error:Y,isProcessingProps:ee}=Z[O][A];if(Y||ee){i.current[O][A].mode=wt.Edit,E(O,A,{mode:wt.Edit});return}const Q=e.current.getRowWithUpdatedValuesFromCellEditing(O,A);if(l){const X=te=>{i.current[O][A].mode=wt.Edit,E(O,A,{mode:wt.Edit}),a&&a(te)};try{const te=e.current.getRow(O);Promise.resolve(l(Q,te)).then(me=>{e.current.updateRows([me]),U()}).catch(X)}catch(te){X(te)}}else e.current.updateRows([Q]),U()}),W=m.useCallback(async z=>{var te,me;const{id:O,field:A,value:N,debounceMs:G,unstable_skipValueParser:U}=z;p(O,A),g(O,A,wt.Edit);const Z=e.current.getColumn(A),Y=e.current.getRow(O);let ee=N;Z.valueParser&&!U&&(ee=Z.valueParser(N,Y,Z,e));let Q=Rn(e.current.state),X=y({},Q[O][A],{value:ee,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if(Z.preProcessEditCellProps){const re=N!==Q[O][A].value;X=y({},X,{isProcessingProps:!0}),$(O,A,X),X=await Promise.resolve(Z.preProcessEditCellProps({id:O,row:Y,props:X,hasChanged:re}))}return e.current.getCellMode(O,A)===wt.View?!1:(Q=Rn(e.current.state),X=y({},X,{isProcessingProps:!1}),X.value=Z.preProcessEditCellProps?Q[O][A].value:ee,$(O,A,X),Q=Rn(e.current.state),!((me=(te=Q[O])==null?void 0:te[A])!=null&&me.error))},[e,p,g,$]),j=m.useCallback((z,O)=>{const A=e.current.getColumn(O),N=Rn(e.current.state),G=e.current.getRow(z);if(!N[z]||!N[z][O])return e.current.getRow(z);const{value:U}=N[z][O];return A.valueSetter?A.valueSetter(U,G,A,e):y({},G,{[O]:U})},[e]),D={getCellMode:P,startCellEditMode:T,stopCellEditMode:B},R={setCellEditingEditCellValue:W,getRowWithUpdatedValuesFromCellEditing:j};tt(e,D,"public"),tt(e,R,"private"),m.useEffect(()=>{c&&M(c)},[c,M]),Mt(()=>{const z=Tf(e),O=i.current;i.current=Nk(n),Object.entries(n).forEach(([A,N])=>{Object.entries(N).forEach(([G,U])=>{var ee,Q;const Z=((Q=(ee=O[A])==null?void 0:ee[G])==null?void 0:Q.mode)||wt.View,Y=z[A]??A;U.mode===wt.Edit&&Z===wt.View?F(y({id:Y,field:G},U)):U.mode===wt.View&&Z===wt.Edit&&H(y({id:Y,field:G},U))})})},[e,n,F,H])},h9=["id"],m9=["id"];li(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example ` ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error");const g9=(e,t)=>{const[n,r]=m.useState({}),o=m.useRef(n),i=m.useRef({}),l=m.useRef(),a=m.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:f,onRowModesModelChange:p}=t,g=G=>(...U)=>{t.editMode===Fo.Row&&G(...U)},v=m.useCallback((G,U)=>{const Z=e.current.getCellParams(G,U);if(!e.current.isCellEditable(Z))throw new Error(`MUI X: The cell with id=${G} and field=${U} is not editable.`)},[e]),x=m.useCallback((G,U)=>{if(e.current.getRowMode(G)!==U)throw new Error(`MUI X: The row with id=${G} is not in ${U} mode.`)},[e]),_=m.useCallback(G=>{const U=Rn(e.current.state);return Object.values(U[G]).some(Z=>Z.error)},[e]),k=m.useCallback((G,U)=>{if(!G.isEditable||e.current.getRowMode(G.id)===Lt.Edit)return;const Z=e.current.getRowParams(G.id),Y=y({},Z,{field:G.field,reason:mi.cellDoubleClick});e.current.publishEvent("rowEditStart",Y,U)},[e]),b=m.useCallback(G=>{a.current=G},[]),w=m.useCallback((G,U)=>{G.isEditable&&e.current.getRowMode(G.id)!==Lt.View&&(a.current=null,l.current=setTimeout(()=>{var Z;if(((Z=a.current)==null?void 0:Z.id)!==G.id){if(!e.current.getRow(G.id)||e.current.getRowMode(G.id)===Lt.View||_(G.id))return;const Y=e.current.getRowParams(G.id),ee=y({},Y,{field:G.field,reason:vo.rowFocusOut});e.current.publishEvent("rowEditStop",ee,U)}}))},[e,_]);m.useEffect(()=>()=>{clearTimeout(l.current)},[]);const P=m.useCallback((G,U)=>{if(G.cellMode===Lt.Edit){if(U.which===229)return;let Z;if(U.key==="Escape")Z=vo.escapeKeyDown;else if(U.key==="Enter")Z=vo.enterKeyDown;else if(U.key==="Tab"){const Y=_c(e).filter(ee=>e.current.getColumn(ee).type===Jp?!0:e.current.isCellEditable(e.current.getCellParams(G.id,ee)));if(U.shiftKey?G.field===Y[0]&&(Z=vo.shiftTabKeyDown):G.field===Y[Y.length-1]&&(Z=vo.tabKeyDown),U.preventDefault(),!Z){const ee=Y.findIndex(X=>X===G.field),Q=Y[U.shiftKey?ee-1:ee+1];e.current.setCellFocus(G.id,Q)}}if(Z){if(Z!==vo.escapeKeyDown&&_(G.id))return;const Y=y({},e.current.getRowParams(G.id),{reason:Z,field:G.field});e.current.publishEvent("rowEditStop",Y,U)}}else if(G.isEditable){let Z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:U,cellParams:G,editMode:"row"}))return;if(pM(U)||hM(U)?Z=mi.printableKeyDown:U.key==="Enter"?Z=mi.enterKeyDown:(U.key==="Backspace"||U.key==="Delete")&&(Z=mi.deleteKeyDown),Z){const ee=e.current.getRowParams(G.id),Q=y({},ee,{field:G.field,reason:Z});e.current.publishEvent("rowEditStart",Q,U)}}},[e,_]),M=m.useCallback(G=>{const{id:U,field:Z,reason:Y}=G,ee={id:U,fieldToFocus:Z};(Y===mi.printableKeyDown||Y===mi.deleteKeyDown)&&(ee.deleteValue=!!Z),e.current.startRowEditMode(ee)},[e]),E=m.useCallback(G=>{const{id:U,reason:Z,field:Y}=G;e.current.runPendingEditCellValueMutation(U);let ee;Z===vo.enterKeyDown?ee="below":Z===vo.tabKeyDown?ee="right":Z===vo.shiftTabKeyDown&&(ee="left");const Q=Z==="escapeKeyDown";e.current.stopRowEditMode({id:U,ignoreModifications:Q,field:Y,cellToFocusAfter:ee})},[e]);Re(e,"cellDoubleClick",g(k)),Re(e,"cellFocusIn",g(b)),Re(e,"cellFocusOut",g(w)),Re(e,"cellKeyDown",g(P)),Re(e,"rowEditStart",g(M)),Re(e,"rowEditStop",g(E)),Tt(e,"rowEditStart",t.onRowEditStart),Tt(e,"rowEditStop",t.onRowEditStop);const $=m.useCallback(G=>{if(t.editMode===Fo.Cell)return Lt.View;const U=Rn(e.current.state);return U[G]&&Object.keys(U[G]).length>0?Lt.Edit:Lt.View},[e,t.editMode]),T=at(G=>{const U=G!==t.rowModesModel;p&&U&&p(G,{api:e.current}),!(t.rowModesModel&&U)&&(r(G),o.current=G,e.current.publishEvent("rowModesModelChange",G))}),F=m.useCallback((G,U)=>{const Z=y({},o.current);U!==null?Z[G]=y({},U):delete Z[G],T(Z)},[T]),B=m.useCallback((G,U)=>{e.current.setState(Z=>{const Y=y({},Z.editRows);return U!==null?Y[G]=U:delete Y[G],y({},Z,{editRows:Y})}),e.current.forceUpdate()},[e]),H=m.useCallback((G,U,Z)=>{e.current.setState(Y=>{const ee=y({},Y.editRows);return Z!==null?ee[G]=y({},ee[G],{[U]:y({},Z)}):(delete ee[G][U],Object.keys(ee[G]).length===0&&delete ee[G]),y({},Y,{editRows:ee})}),e.current.forceUpdate()},[e]),W=m.useCallback(G=>{const{id:U}=G,Z=se(G,h9);x(U,Lt.View),F(U,y({mode:Lt.Edit},Z))},[x,F]),j=at(G=>{const{id:U,fieldToFocus:Z,deleteValue:Y,initialValue:ee}=G,X=qo(e).reduce((te,me)=>{if(!e.current.getCellParams(U,me).isEditable)return te;let oe=e.current.getCellValue(U,me);return Z===me&&(Y||ee)&&(oe=Y?"":ee),te[me]={value:oe,error:!1,isProcessingProps:!1},te},{});B(U,X),Z&&e.current.setCellFocus(U,Z)}),D=m.useCallback(G=>{const{id:U}=G,Z=se(G,m9);x(U,Lt.Edit),F(U,y({mode:Lt.View},Z))},[x,F]),R=at(G=>{const{id:U,ignoreModifications:Z,field:Y,cellToFocusAfter:ee="none"}=G;e.current.runPendingEditCellValueMutation(U);const Q=()=>{ee!=="none"&&Y&&e.current.moveFocusToRelativeCell(U,Y,ee),B(U,null),F(U,null)};if(Z){Q();return}const X=Rn(e.current.state),te=e.current.getRow(U);if(Object.values(X[U]).some(oe=>oe.isProcessingProps)){i.current[U].mode=Lt.Edit;return}if(_(U)){i.current[U].mode=Lt.Edit,F(U,{mode:Lt.Edit});return}const re=e.current.getRowWithUpdatedValuesFromRowEditing(U);if(c){const oe=ge=>{i.current[U].mode=Lt.Edit,F(U,{mode:Lt.Edit}),d&&d(ge)};try{Promise.resolve(c(re,te)).then(ge=>{e.current.updateRows([ge]),Q()}).catch(oe)}catch(ge){oe(ge)}}else e.current.updateRows([re]),Q()}),z=m.useCallback(G=>{const{id:U,field:Z,value:Y,debounceMs:ee,unstable_skipValueParser:Q}=G;v(U,Z);const X=e.current.getColumn(Z),te=e.current.getRow(U);let me=Y;X.valueParser&&!Q&&(me=X.valueParser(Y,te,X,e));let re=Rn(e.current.state),oe=y({},re[U][Z],{value:me,changeReason:ee?"debouncedSetEditCellValue":"setEditCellValue"});return X.preProcessEditCellProps||H(U,Z,oe),new Promise(ge=>{const ve=[];if(X.preProcessEditCellProps){const ye=oe.value!==re[U][Z].value;oe=y({},oe,{isProcessingProps:!0}),H(U,Z,oe);const Ee=re[U],$e=se(Ee,[Z].map(ju)),we=Promise.resolve(X.preProcessEditCellProps({id:U,row:te,props:oe,hasChanged:ye,otherFieldsProps:$e})).then(Ce=>{if(e.current.getRowMode(U)===Lt.View){ge(!1);return}re=Rn(e.current.state),Ce=y({},Ce,{isProcessingProps:!1}),Ce.value=X.preProcessEditCellProps?re[U][Z].value:me,H(U,Z,Ce)});ve.push(we)}Object.entries(re[U]).forEach(([ye,Ee])=>{if(ye===Z)return;const $e=e.current.getColumn(ye);if(!$e.preProcessEditCellProps)return;Ee=y({},Ee,{isProcessingProps:!0}),H(U,ye,Ee),re=Rn(e.current.state);const we=re[U],Ce=se(we,[ye].map(ju)),Je=Promise.resolve($e.preProcessEditCellProps({id:U,row:te,props:Ee,hasChanged:!1,otherFieldsProps:Ce})).then(Ie=>{if(e.current.getRowMode(U)===Lt.View){ge(!1);return}Ie=y({},Ie,{isProcessingProps:!1}),H(U,ye,Ie)});ve.push(Je)}),Promise.all(ve).then(()=>{e.current.getRowMode(U)===Lt.Edit?(re=Rn(e.current.state),ge(!re[U][Z].error)):ge(!1)})})},[e,v,H]),O=m.useCallback(G=>{const U=Rn(e.current.state),Z=e.current.getRow(G);if(!U[G])return e.current.getRow(G);let Y=y({},Z);return Object.entries(U[G]).forEach(([ee,Q])=>{const X=e.current.getColumn(ee);X.valueSetter?Y=X.valueSetter(Q.value,Y,X,e):Y[ee]=Q.value}),Y},[e]),A={getRowMode:$,startRowEditMode:W,stopRowEditMode:D},N={setRowEditingEditCellValue:z,getRowWithUpdatedValuesFromRowEditing:O};tt(e,A,"public"),tt(e,N,"private"),m.useEffect(()=>{f&&T(f)},[f,T]),Mt(()=>{const G=Tf(e),U=i.current;i.current=Nk(n);const Z=new Set([...Object.keys(n),...Object.keys(U)]);Array.from(Z).forEach(Y=>{var te;const ee=n[Y]??{mode:Lt.View},Q=((te=U[Y])==null?void 0:te.mode)||Lt.View,X=G[Y]??Y;ee.mode===Lt.Edit&&Q===Lt.View?j(y({id:X},ee)):ee.mode===Lt.View&&Q===Lt.Edit&&R(y({id:X},ee))})},[e,n,j,R])},v9=e=>y({},e,{editRows:{}}),y9=(e,t)=>{p9(e,t),g9(e,t);const n=m.useRef({}),{isCellEditable:r}=t,o=m.useCallback(g=>oa(g.rowNode)||!g.colDef.editable||!g.colDef.renderEditCell?!1:r?r(g):!0,[r]),i=(g,v,x,_)=>{if(!x){_();return}if(n.current[g]||(n.current[g]={}),n.current[g][v]){const[w]=n.current[g][v];clearTimeout(w)}const k=()=>{const[w]=n.current[g][v];clearTimeout(w),_(),delete n.current[g][v]},b=setTimeout(()=>{_(),delete n.current[g][v]},x);n.current[g][v]=[b,k]};m.useEffect(()=>{const g=n.current;return()=>{Object.entries(g).forEach(([v,x])=>{Object.keys(x).forEach(_=>{const[k]=g[v][_];clearTimeout(k),delete g[v][_]})})}},[]);const l=m.useCallback((g,v)=>{if(n.current[g]){if(!v)Object.keys(n.current[g]).forEach(x=>{const[,_]=n.current[g][x];_()});else if(n.current[g][v]){const[,x]=n.current[g][v];x()}}},[]),a=m.useCallback(g=>{const{id:v,field:x,debounceMs:_}=g;return new Promise(k=>{i(v,x,_,async()=>{const b=t.editMode===Fo.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(v,x)===wt.Edit){const w=await b(g);k(w)}})})},[e,t.editMode]),c=m.useCallback((g,v)=>t.editMode===Fo.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,v):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),d=m.useCallback((g,v)=>{var _;return((_=Rn(e.current.state)[g])==null?void 0:_[v])??null},[e]),f={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:d},p={runPendingEditCellValueMutation:l};tt(e,f,"public"),tt(e,p,"private")},b9=(e,t,n)=>(n.current.caches.rows=Bd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),y({},e,{rows:Kk({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),_9=(e,t)=>{const n=mn(e,"useGridRows"),r=Ns(e,t),o=m.useRef(Date.now()),i=m.useRef(t.rowCount),l=Dr(),a=m.useCallback(R=>{const z=Mi(e)[R];if(z)return z;const O=e.current.getRowNode(R);return O&&oa(O)?{[Bl]:R}:null},[e]),c=t.getRowId,d=m.useCallback(R=>Bl in R?R[Bl]:c?c(R):R.id,[c]),f=m.useMemo(()=>r.rows.reduce((R,{id:z},O)=>(R[z]=O,R),{}),[r.rows]),p=m.useCallback(({cache:R,throttle:z})=>{const O=()=>{o.current=Date.now(),e.current.setState(N=>y({},N,{rows:Kk({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:zr(e),previousTreeDepths:px(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.clear(),e.current.caches.rows=R,!z){O();return}const A=t.throttleRowsMs-(Date.now()-o.current);if(A>0){l.start(A,O);return}O()},[t.throttleRowsMs,t.rowCount,t.loading,e,l]),g=m.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`);const z=Bd({rows:R,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),O=e.current.caches.rows;z.rowsBeforePartialUpdates=O.rowsBeforePartialUpdates,p({cache:z,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,p,e]),v=m.useCallback(R=>{if(t.signature===To.DataGrid&&R.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));const z=[];R.forEach(A=>{const N=Of(A,t.getRowId,"A row was provided without id when calling updateRows():"),G=e.current.getRowNode(N);if((G==null?void 0:G.type)==="pinnedRow"){const U=e.current.caches.pinnedRows,Z=U.idLookup[N];Z&&(U.idLookup[N]=y({},Z,A))}else z.push(A)});const O=U3({updates:z,getRowId:t.getRowId,previousCache:e.current.caches.rows});p({cache:O,throttle:!0})},[t.signature,t.getRowId,p,e]),x=m.useCallback(()=>{const R=gd(e),z=Mi(e);return new Map(R.map(O=>[O,z[O]??{}]))},[e]),_=m.useCallback(()=>eh(e),[e]),k=m.useCallback(()=>gd(e),[e]),b=m.useCallback(R=>f[R],[f]),w=m.useCallback((R,z)=>{const O=e.current.getRowNode(R);if(!O)throw new Error(`MUI X: No row with id #${R} found.`);if(O.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const A=y({},O,{childrenExpanded:z});e.current.setState(N=>y({},N,{rows:y({},N.rows,{tree:y({},N.rows.tree,{[R]:A})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",A)},[e]),P=m.useCallback(R=>zr(e)[R]??null,[e]),M=m.useCallback(({skipAutoGeneratedRows:R=!0,groupId:z,applySorting:O,applyFiltering:A})=>{const N=zr(e);let G;if(O){const U=N[z];if(!U)return[];const Z=rb(e);G=[];const Y=Z.findIndex(ee=>ee===z)+1;for(let ee=Y;eeU.depth;ee+=1){const Q=Z[ee];(!R||!oa(N[Q]))&&G.push(Q)}}else G=eb(N,z,R);if(A){const U=Jk(e);G=G.filter(Z=>U[Z]!==!1)}return G},[e]),E=m.useCallback((R,z)=>{const O=e.current.getRowNode(R);if(!O)throw new Error(`MUI X: No row with id #${R} found.`);if(O.parent!==Hn)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(O.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(A=>{const N=zr(A,e.current.instanceId)[Hn],G=N.children,U=G.findIndex(Y=>Y===R);if(U===-1||U===z)return A;n.debug(`Moving row ${R} to index ${z}`);const Z=[...G];return Z.splice(z,0,Z.splice(U,1)[0]),y({},A,{rows:y({},A.rows,{tree:y({},A.rows.tree,{[Hn]:y({},N,{children:Z})})})})}),e.current.publishEvent("rowsSet")},[e,n]),$=m.useCallback((R,z)=>{if(t.signature===To.DataGrid&&z.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` +`));if(z.length===0)return;if(th(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const A=y({},zr(e)),N=y({},Mi(e)),G=y({},Tf(e)),U=A[Hn],Z=[...U.children],Y=new Set;for(let Q=0;Q{var X;return((X=A[Q])==null?void 0:X.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=N,e.current.caches.rows.dataRowIdToIdLookup=G,e.current.setState(Q=>y({},Q,{rows:y({},Q.rows,{dataRowIdToModelLookup:N,dataRowIdToIdLookup:G,dataRowIds:ee,tree:A})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),T={getRow:a,getRowId:d,getRowModels:x,getRowsCount:_,getAllRowIds:k,setRows:g,updateRows:v,getRowNode:P,getRowIndexRelativeToVisibleRows:b,unstable_replaceRows:$},F={setRowIndex:E,setRowChildrenExpansion:w,getRowGroupChildren:M},B=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?R=y({},e.current.caches.rows,{updates:{type:"full",rows:gd(e)}}):R=Bd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),p({cache:R,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,p]),H=m.useCallback(R=>{R==="rowTreeCreation"&&B()},[B]),W=m.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==H3(e)&&B()},[e,B]);Re(e,"activeStrategyProcessorChange",H),Re(e,"strategyAvailabilityChange",W);const j=m.useCallback(()=>{e.current.setState(R=>{const z=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:zr(R,e.current.instanceId),treeDepths:px(R,e.current.instanceId),dataRowIds:gd(R,e.current.instanceId),dataRowIdToModelLookup:Mi(R,e.current.instanceId),dataRowIdToIdLookup:Tf(R,e.current.instanceId)});return y({},R,{rows:y({},R.rows,z,{totalTopLevelRowCount:Zk({tree:z.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);yb(e,"hydrateRows",j),tt(e,T,"public"),tt(e,F,t.signature===To.DataGrid?"private":"public");const D=m.useRef(!0);m.useEffect(()=>{if(D.current){D.current=!1;return}let R=!1;t.rowCount!==i.current&&(R=!0,i.current=t.rowCount);const z=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,O=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,A=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;z&&(O||(e.current.setState(N=>y({},N,{rows:y({},N.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),A||(e.current.setState(N=>y({},N,{rows:y({},N.rows,{totalRowCount:Math.max(t.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!R)||(n.debug(`Updating all rows, new length ${t.rows.length}`),p({cache:Bd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,p,e])},C9=e=>{const t={[Hn]:y({},V3(),{children:e})};for(let n=0;n{const n=y({},e),r={};for(let l=0;l!r[l])),n[Hn]=y({},o,{children:i}),{groupingName:Ms,tree:n,treeDepths:{0:i.length},dataRowIds:i}},w9=e=>e.updates.type==="full"?C9(e.updates.rows):x9({previousTree:e.previousTree,actions:e.updates.actions}),S9=e=>{Nf(e,Ms,"rowTreeCreation",w9)},NM=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],P9=(e,t)=>y({},e,{rowSelection:t.rowSelection?NM(t.rowSelectionModel)??[]:[]}),k9=(e,t)=>{const n=mn(e,"useGridSelection"),r=D=>(...R)=>{t.rowSelection&&D(...R)},o=m.useMemo(()=>NM(t.rowSelectionModel,Lr(e.current.state)),[e,t.rowSelectionModel]),i=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Lr,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:a,isRowSelectable:c}=t,d=tb(t),f=Ns(e,t),p=m.useCallback(D=>{let R=D;const z=i.current??D,O=e.current.isRowSelected(D);if(O){const A=yu(e),N=A.findIndex(U=>U===z),G=A.findIndex(U=>U===R);if(N===G)return;N>G?R=A[G+1]:R=A[G-1]}i.current=D,e.current.selectRowRange({startId:z,endId:R},!O)},[e]),g=m.useCallback(D=>{if(t.signature===To.DataGrid&&!d&&Array.isArray(D)&&D.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` +`));Lr(e.current.state)!==D&&(n.debug("Setting selection model"),e.current.setState(z=>y({},z,{rowSelection:t.rowSelection?D:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),v=m.useCallback(D=>Lr(e.current.state).includes(D),[e]),x=m.useCallback(D=>{if(c&&!c(e.current.getRowParams(D)))return!1;const R=e.current.getRowNode(D);return!((R==null?void 0:R.type)==="footer"||(R==null?void 0:R.type)==="pinnedRow")},[e,c]),_=m.useCallback(()=>gG(e),[e]),k=m.useCallback((D,R=!0,z=!1)=>{if(e.current.isRowSelectable(D))if(i.current=D,z)n.debug(`Setting selection for row ${D}`),e.current.setRowSelectionModel(R?[D]:[]);else{n.debug(`Toggling selection for row ${D}`);const A=Lr(e.current.state).filter(G=>G!==D);R&&A.push(D),(A.length<2||d)&&e.current.setRowSelectionModel(A)}},[e,n,d]),b=m.useCallback((D,R=!0,z=!1)=>{n.debug("Setting selection for several rows");const O=D.filter(G=>e.current.isRowSelectable(G));let A;if(z)A=R?O:[];else{const G=y({},Ff(e));O.forEach(U=>{R?G[U]=U:delete G[U]}),A=Object.values(G)}(A.length<2||d)&&e.current.setRowSelectionModel(A)},[e,n,d]),w=m.useCallback(({startId:D,endId:R},z=!0,O=!1)=>{if(!e.current.getRow(D)||!e.current.getRow(R))return;n.debug(`Expanding selection from row ${D} to row ${R}`);const A=yu(e),N=A.indexOf(D),G=A.indexOf(R),[U,Z]=N>G?[G,N]:[N,G],Y=A.slice(U,Z+1);e.current.selectRows(Y,z,O)},[e,n]),P={selectRow:k,setRowSelectionModel:g,getSelectedRows:_,isRowSelected:v,isRowSelectable:x},M={selectRows:b,selectRowRange:w};tt(e,P,"public"),tt(e,M,t.signature===To.DataGrid?"private":"public");const E=m.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const D=Lr(e.current.state),R=Mi(e),z=y({},Ff(e));let O=!1;D.forEach(A=>{R[A]||(delete z[A],O=!0)}),O&&e.current.setRowSelectionModel(Object.values(z))},[e,t.keepNonExistentRowsSelected]),$=m.useCallback((D,R)=>{const z=R.metaKey||R.ctrlKey,O=!l&&!z&&!KG(R),A=!d||O,N=e.current.isRowSelected(D);A?e.current.selectRow(D,O?!0:!N,!0):e.current.selectRow(D,!N,!1)},[e,d,l]),T=m.useCallback((D,R)=>{var A;if(a)return;const z=(A=R.target.closest(`.${K.cell}`))==null?void 0:A.getAttribute("data-field");if(z===ga.field||z===gb)return;if(z){const N=e.current.getColumn(z);if((N==null?void 0:N.type)===Jp)return}e.current.getRowNode(D.id).type!=="pinnedRow"&&(R.shiftKey&&d?p(D.id):$(D.id,R))},[a,d,e,p,$]),F=m.useCallback((D,R)=>{var z;d&&R.shiftKey&&((z=window.getSelection())==null||z.removeAllRanges())},[d]),B=m.useCallback((D,R)=>{d&&R.nativeEvent.shiftKey?p(D.id):e.current.selectRow(D.id,D.value,!d)},[e,p,d]),H=m.useCallback(D=>{const z=t.checkboxSelectionVisibleOnly&&t.pagination?aM(e):yu(e),O=vn(e);e.current.selectRows(z,D.value,(O==null?void 0:O.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),W=m.useCallback((D,R)=>{if(e.current.getCellMode(D.id,D.field)!==wt.Edit&&!wc(R)){if(zf(R.key)&&R.shiftKey){const z=Er(e);if(z&&z.id!==D.id){R.preventDefault();const O=e.current.isRowSelected(z.id);if(!d){e.current.selectRow(z.id,!O,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(z.id),N=e.current.getRowIndexRelativeToVisibleRows(D.id);let G,U;A>N?O?(G=N,U=A-1):(G=N,U=A):O?(G=A+1,U=N):(G=A,U=N);const Z=f.rows.slice(G,U+1).map(Y=>Y.id);e.current.selectRows(Z,!O);return}}if(R.key===" "&&R.shiftKey){R.preventDefault(),$(D.id,R);return}R.key==="a"&&(R.ctrlKey||R.metaKey)&&(R.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,$,b,f.rows,d]);Re(e,"sortedRowsSet",r(E)),Re(e,"rowClick",r(T)),Re(e,"rowSelectionCheckboxChange",r(B)),Re(e,"headerSelectionCheckboxChange",H),Re(e,"cellMouseDown",r(F)),Re(e,"cellKeyDown",r(W)),m.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),m.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const j=o!=null;m.useEffect(()=>{if(j||!t.rowSelection)return;const D=Lr(e.current.state);if(x){const R=D.filter(z=>x(z));R.length{if(!t.rowSelection||j)return;const D=Lr(e.current.state);!d&&D.length>1&&e.current.setRowSelectionModel([])},[e,d,l,j,t.rowSelection])},M9=e=>{const{classes:t}=e;return m.useMemo(()=>xe({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ft,t),[t])},I9=(e,t)=>{const n={classes:t.classes},r=M9(n),o=m.useCallback(i=>{const l=y({},ga,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[gi]!=null;return a&&!c?(i.lookup[gi]=l,i.orderedFields=[gi,...i.orderedFields]):!a&&c?(delete i.lookup[gi],i.orderedFields=i.orderedFields.filter(d=>d!==gi)):a&&c&&(i.lookup[gi]=y({},l,i.lookup[gi])),i},[e,r,t.checkboxSelection]);Nt(e,"hydrateColumns",o)},E9=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return y({},e,{sorting:{sortModel:$k(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},L9=(e,t)=>{var E,$;const n=mn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Tr,changeEvent:"sortModelChange"});const r=m.useCallback((T,F)=>{const B=Tr(e),H=B.findIndex(j=>j.field===T);let W=[...B];return H>-1?(F==null?void 0:F.sort)==null?W.splice(H,1):W.splice(H,1,F):W=[...B,F],W},[e]),o=m.useCallback((T,F)=>{const H=Tr(e).find(W=>W.field===T.field);if(H){const W=F===void 0?ax(T.sortingOrder??t.sortingOrder,H.sort):F;return W===void 0?void 0:y({},H,{sort:W})}return{field:T.field,sort:F===void 0?ax(T.sortingOrder??t.sortingOrder):F}},[e,t.sortingOrder]),i=m.useCallback((T,F)=>F==null||F.sortable===!1||t.disableColumnSorting?T:(F.sortingOrder||t.sortingOrder).some(H=>!!H)?[...T,"columnMenuSortItem"]:T,[t.sortingOrder,t.disableColumnSorting]),l=m.useCallback(()=>{e.current.setState(T=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),y({},T,{sorting:y({},T.sorting,{sortedRows:eb(zr(e),Hn,!1)})});const F=Tr(T,e.current.instanceId),B=c3(F,e),H=e.current.applyStrategyProcessor("sorting",{sortRowList:B});return y({},T,{sorting:y({},T.sorting,{sortedRows:H})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=m.useCallback(T=>{Tr(e)!==T&&(n.debug("Setting sort model"),e.current.setState(lx(T,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=m.useCallback((T,F,B)=>{const H=e.current.getColumn(T),W=o(H,F);let j;!B||t.disableMultipleColumnsSorting?j=(W==null?void 0:W.sort)==null?[]:[W]:j=r(H.field,W),e.current.setSortModel(j)},[e,r,o,t.disableMultipleColumnsSorting]),d=m.useCallback(()=>Tr(e),[e]),f=m.useCallback(()=>ob(e).map(F=>F.model),[e]),p=m.useCallback(()=>rb(e),[e]),g=m.useCallback(T=>e.current.getSortedRowIds()[T],[e]);tt(e,{getSortModel:d,getSortedRows:f,getSortedRowIds:p,getRowIdFromRowIndex:g,setSortModel:a,sortColumn:c,applySorting:l},"public");const x=m.useCallback((T,F)=>{var W,j;const B=Tr(e);return!F.exportOnlyDirtyModels||t.sortModel!=null||((j=(W=t.initialState)==null?void 0:W.sorting)==null?void 0:j.sortModel)!=null||B.length>0?y({},T,{sorting:{sortModel:B}}):T},[e,t.sortModel,($=(E=t.initialState)==null?void 0:E.sorting)==null?void 0:$.sortModel]),_=m.useCallback((T,F)=>{var H;const B=(H=F.stateToRestore.sorting)==null?void 0:H.sortModel;return B==null?T:(e.current.setState(lx(B,t.disableMultipleColumnsSorting)),y({},T,{callbacks:[...T.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),k=m.useCallback(T=>{const F=zr(e),B=F[Hn],H=T.sortRowList?T.sortRowList(B.children.map(W=>F[W])):[...B.children];return B.footerId!=null&&H.push(B.footerId),H},[e]);Nt(e,"exportState",x),Nt(e,"restoreState",_),Nf(e,Ms,"sorting",k);const b=m.useCallback(({field:T,colDef:F},B)=>{if(!F.sortable||t.disableColumnSorting)return;const H=B.shiftKey||B.metaKey||B.ctrlKey;c(T,void 0,H)},[c,t.disableColumnSorting]),w=m.useCallback(({field:T,colDef:F},B)=>{!F.sortable||t.disableColumnSorting||B.key==="Enter"&&!B.ctrlKey&&!B.metaKey&&c(T,void 0,B.shiftKey)},[c,t.disableColumnSorting]),P=m.useCallback(()=>{const T=Tr(e),F=qi(e);if(T.length>0){const B=T.filter(H=>F[H.field]);B.length{T==="sorting"&&e.current.applySorting()},[e]);Nt(e,"columnMenu",i),Re(e,"columnHeaderClick",b),Re(e,"columnHeaderKeyDown",w),Re(e,"rowsSet",e.current.applySorting),Re(e,"columnsChange",P),Re(e,"activeStrategyProcessorChange",M),Cc(()=>{e.current.applySorting()}),Mt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function Vx(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o{const n=$o(),r=mn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,l=be(e,Xi),a=m.useCallback(p=>{var b;const g=co(e.current.state),v=eh(e),x=bn(e);if(!(p.rowIndex==null)&&v===0||x.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let k={};if(p.colIndex!==void 0){const w=As(e);let P;if(typeof p.rowIndex<"u"){const M=(b=l[p.rowIndex])==null?void 0:b.id,E=e.current.unstable_getCellColSpanInfo(M,p.colIndex);E&&!E.spannedByColSpan&&(P=E.cellProps.width)}typeof P>"u"&&(P=x[p.colIndex].computedWidth),k.left=Vx({clientHeight:g.viewportInnerSize.width,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:P,offsetTop:w[p.colIndex]})}if(p.rowIndex!==void 0){const w=va(e.current.state),P=LG(e),M=TG(e),E=t.pagination?p.rowIndex-P*M:p.rowIndex,$=w.positions[E+1]?w.positions[E+1]-w.positions[E]:w.currentPageTotalHeight-w.positions[E];k.top=Vx({clientHeight:g.viewportInnerSize.height,scrollTop:i.current.scrollTop,offsetHeight:$,offsetTop:w.positions[E]})}return k=e.current.unstable_applyPipeProcessors("scrollToIndexes",k,p),typeof k.left!==void 0||typeof k.top!==void 0?(e.current.scroll(k),!0):!1},[r,e,i,t.pagination,l]),c=m.useCallback(p=>{if(i.current&&p.left!==void 0&&o.current){const g=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,i.current.scrollLeft=g*p.left,r.debug(`Scrolling left: ${p.left}`)}i.current&&p.top!==void 0&&(i.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),d=m.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);tt(e,{scroll:c,scrollToIndexes:a,getScrollPosition:d},"public")};function O9(e,t){Tt(e,"columnHeaderClick",t.onColumnHeaderClick),Tt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Tt(e,"columnHeaderOver",t.onColumnHeaderOver),Tt(e,"columnHeaderOut",t.onColumnHeaderOut),Tt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Tt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Tt(e,"cellClick",t.onCellClick),Tt(e,"cellDoubleClick",t.onCellDoubleClick),Tt(e,"cellKeyDown",t.onCellKeyDown),Tt(e,"preferencePanelClose",t.onPreferencePanelClose),Tt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Tt(e,"menuOpen",t.onMenuOpen),Tt(e,"menuClose",t.onMenuClose),Tt(e,"rowDoubleClick",t.onRowDoubleClick),Tt(e,"rowClick",t.onRowClick),Tt(e,"stateChange",t.onStateChange)}function R9(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const dl={width:0,height:0},F9={isReady:!1,root:dl,viewportOuterSize:dl,viewportInnerSize:dl,contentSize:dl,minimumSize:dl,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},$9=e=>y({},e,{dimensions:F9});function z9(e,t){const n=mn(e,"useResizeContainer"),r=m.useRef(!1),o=m.useRef(dl),i=be(e,va),l=be(e,Qp),a=be(e,bc),c=Math.floor(t.rowHeight*a),d=Math.floor(t.columnHeaderHeight*a),f=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*a),p=D9(Rk(e),6),g=ab(e,t),v=l.left.reduce((R,z)=>R+z.computedWidth,0),x=l.right.reduce((R,z)=>R+z.computedWidth,0),[_,k]=m.useState(),b=m.useMemo(()=>R9(k,t.resizeThrottleMs),[t.resizeThrottleMs]),w=m.useRef(),P=()=>e.current.state.dimensions,M=at(R=>{e.current.setState(z=>y({},z,{dimensions:R}))}),E=m.useCallback(()=>{var U,Z;const R=e.current.mainElementRef.current;if(!R)return;const z=ti(R).getComputedStyle(R),O=parseFloat(z.height)||0,A=parseFloat(z.width)||0,N=O!==((U=w.current)==null?void 0:U.height),G=A!==((Z=w.current)==null?void 0:Z.width);if(!w.current||N||G){const Y={width:A,height:O};e.current.publishEvent("resize",Y),w.current=Y}},[e]),$=m.useCallback(()=>{const R=co(e.current.state);if(!R.isReady)return 0;const z=Qu(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const A=db(e),N=A.lastRowIndex-A.firstRowIndex;return Math.min(N-1,z.rows.length)}const O=Math.floor(R.viewportInnerSize.height/c);return Math.min(O,z.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,c]),T=m.useCallback(()=>{var oe,ge;const R=e.current.rootElementRef.current,z=Z3(e),O=A9(R,p,t.scrollbarSize),A=g+z.top,N=z.bottom,U={width:p-v-x,height:i.currentPageTotalHeight};let Z,Y,ee=!1,Q=!1;if(t.autoHeight)Q=!1,ee=Math.round(p)>Math.round(o.current.width),Z={width:o.current.width,height:A+N+U.height},Y={width:Math.max(0,Z.width-(Q?O:0)),height:Math.max(0,Z.height-(ee?O:0))};else{Z={width:o.current.width,height:o.current.height},Y={width:Math.max(0,Z.width-v-x),height:Math.max(0,Z.height-A-N)};const ve=U,ye=Y,Ee=ve.width>ye.width,$e=ve.height>ye.height;(Ee||$e)&&(Q=$e,ee=ve.width+(Q?O:0)>ye.width,ee&&(Q=ve.height+O>ye.height)),Q&&(Y.width-=O),ee&&(Y.height-=O)}const X=Math.max(Z.width,p+(Q?O:0)),te={width:p,height:A+U.height+N},me={isReady:!0,root:o.current,viewportOuterSize:Z,viewportInnerSize:Y,contentSize:U,minimumSize:te,hasScrollX:ee,hasScrollY:Q,scrollbarSize:O,headerHeight:d,headerFilterHeight:f,rowWidth:X,rowHeight:c,columnsTotalWidth:p,leftPinnedWidth:v,rightPinnedWidth:x,headersTotalHeight:g,topContainerHeight:A,bottomContainerHeight:N},re=e.current.state.dimensions;M(me),(me.viewportInnerSize.width!==re.viewportInnerSize.width||me.viewportInnerSize.height!==re.viewportInnerSize.height)&&e.current.publishEvent("viewportInnerSizeChange",me.viewportInnerSize),(ge=(oe=e.current).updateRenderContext)==null||ge.call(oe)},[e,M,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,c,d,f,p,g,v,x]),F={resize:E,getRootDimensions:P},B={updateDimensions:T,getViewportPageSize:$};tt(e,F,"public"),tt(e,B,"private"),Mt(()=>{_&&(T(),e.current.publishEvent("debouncedResize",o.current))},[e,_,T]);const H=e.current.rootElementRef.current,W=e.current.state.dimensions;Mt(()=>{if(!H)return;const R=(z,O)=>H.style.setProperty(z,O);R("--DataGrid-width",`${W.viewportOuterSize.width}px`),R("--DataGrid-hasScrollX",`${Number(W.hasScrollX)}`),R("--DataGrid-hasScrollY",`${Number(W.hasScrollY)}`),R("--DataGrid-scrollbarSize",`${W.scrollbarSize}px`),R("--DataGrid-rowWidth",`${W.rowWidth}px`),R("--DataGrid-columnsTotalWidth",`${W.columnsTotalWidth}px`),R("--DataGrid-leftPinnedWidth",`${W.leftPinnedWidth}px`),R("--DataGrid-rightPinnedWidth",`${W.rightPinnedWidth}px`),R("--DataGrid-headerHeight",`${W.headerHeight}px`),R("--DataGrid-headersTotalHeight",`${W.headersTotalHeight}px`),R("--DataGrid-topContainerHeight",`${W.topContainerHeight}px`),R("--DataGrid-bottomContainerHeight",`${W.bottomContainerHeight}px`),R("--height",`${W.rowHeight}px`)},[H,W]);const j=m.useRef(!0),D=m.useCallback(R=>{o.current=R;const z=/jsdom/.test(window.navigator.userAgent);if(R.height===0&&!r.current&&!t.autoHeight&&!z&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` `)),r.current=!0),R.width===0&&!r.current&&!z&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` -`)),r.current=!0),j.current){k(R),j.current=!1;return}b(R)},[t.autoHeight,b,n]);Mt(T,[T]),Tt(e,"sortedRowsSet",T),Tt(e,"paginationModelChange",T),Tt(e,"columnsChange",T),Re(e,"resize",D),Tt(e,"debouncedResize",t.onResize)}function A9(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=zt(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),i}function D9(e,t){return Math.round(e*10**t)/10**t}const N9=e=>{const{classes:t,headerAlign:n,isDragging:r,showLeftBorder:o,showRightBorder:i,groupId:l,pinnedPosition:a}=e;return xe({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--withRightBorder",o&&"columnHeader--withLeftBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",a==="left"&&"columnHeader--pinnedLeft",a==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ft,t)};function B9(e){var Z;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:l,colIndex:a,hasFocus:c,tabIndex:d,isLastColumn:f,pinnedPosition:p,style:g,indexInSection:v,sectionLength:x,gridHasFiller:_}=e,k=De(),b=m.useRef(null),w=ut(),P=be(w,gM),M=t?P[t]:{},{headerName:E=t??"",description:$="",headerAlign:T=void 0}=M;let F;const B=t&&((Z=P[t])==null?void 0:Z.renderHeaderGroup),H=m.useMemo(()=>({groupId:t,headerName:E,description:$,depth:r,maxDepth:o,fields:i,colIndex:a,isLastColumn:f}),[t,E,$,r,o,i,a,f]);t&&B&&(F=B(H));const W=pb(p,v),j=fb(p,v,x,k.showCellVerticalBorder,_),D=y({},e,{classes:k.classes,showLeftBorder:W,showRightBorder:j,headerAlign:T,depth:r,isDragging:!1}),R=E??t,z=Ot(),O=t===null?`empty-group-cell-${z}`:t,A=N9(D);m.useLayoutEffect(()=>{if(c){const ee=b.current.querySelector('[tabindex="0"]')||b.current;ee==null||ee.focus()}},[w,c]);const N=m.useCallback(Y=>ee=>{xc(ee)||w.current.publishEvent(Y,H,ee)},[w,H]),G=m.useMemo(()=>({onKeyDown:N("columnGroupHeaderKeyDown"),onFocus:N("columnGroupHeaderFocus"),onBlur:N("columnGroupHeaderBlur")}),[N]),U=typeof M.headerClassName=="function"?M.headerClassName(H):M.headerClassName;return S.jsx(LM,y({ref:b,classes:A,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:F,headerClassName:U,description:$,elementId:O,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!0,label:R,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:g},G))}const Wx=de("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),H9=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:g}=e,[v,x]=m.useState(""),[_,k]=m.useState(""),b=ai(),w=$o(),P=De(),M=be(b,co),E=be(b,cb),$=be(b,mM),T=be(b,As),F=be(b,kV),B=be(b,Qp),H=_M(T,F,w.direction,B.left.length),W=M.columnsTotalWidth{b.current.columnHeadersContainerRef.current.scrollLeft=0},[b]);const j=m.useCallback(X=>k(X.field),[]),D=m.useCallback(()=>k(""),[]),R=m.useCallback(X=>x(X.field),[]),z=m.useCallback(()=>x(""),[]),O=m.useMemo(()=>B.left.length?{firstColumnIndex:0,lastColumnIndex:B.left.length}:null,[B.left.length]),A=m.useMemo(()=>B.right.length?{firstColumnIndex:t.length-B.right.length,lastColumnIndex:t.length}:null,[B.right.length,t.length]);Re(b,"columnResizeStart",j),Re(b,"columnResizeStop",D),Re(b,"columnHeaderDragStart",R),Re(b,"columnHeaderDragEnd",z);const N=X=>{const{renderContext:te=F,maxLastColumn:me=t.length}=X||{},re=E?te.firstColumnIndex:0,oe=E?te.lastColumnIndex:me;return{renderedColumns:t.slice(re,oe),firstColumnToRender:re,lastColumnToRender:oe}},G=(X,te,me,re=!1)=>{const oe=(X==null?void 0:X.position)===pn.RIGHT,ge=(X==null?void 0:X.position)===void 0,ve=B.right.length>0&&oe||B.right.length===0&&ge,ye=H-me;return S.jsxs(m.Fragment,{children:[ge&&S.jsx("div",{role:"presentation",style:{width:ye}}),te,ge&&S.jsx("div",{role:"presentation",className:pe(K.filler,re&&K["filler--borderTop"])}),ve&&S.jsx(RM,{header:!0,borderTop:re,pinnedRight:oe})]})},U=({pinnedPosition:X,columnIndex:te,computedWidth:me})=>{let re;if(X==="left"||X==="right"){const oe=FM(X,me,te,T,M);X==="left"&&(re={left:oe}),X==="right"&&(re={right:oe})}return re},Z=(X,te={})=>{const{renderedColumns:me,firstColumnToRender:re}=N(X),oe=[];for(let ge=0;geS.jsxs(Wx,{role:"row","aria-rowindex":c+1,ownerState:P,children:[O&&Z({position:pn.LEFT,renderContext:O,minFirstColumn:O.firstColumnIndex,maxLastColumn:O.lastColumnIndex},{disableReorder:!0}),Z({renderContext:F,minFirstColumn:B.left.length,maxLastColumn:t.length-B.right.length}),A&&Z({position:pn.RIGHT,renderContext:A,minFirstColumn:A.firstColumnIndex,maxLastColumn:A.lastColumnIndex},{disableReorder:!0,separatorSide:mb.Left})]}),ee=({depth:X,params:te})=>{var ke,Ze;const me=N(te);if(me.renderedColumns.length===0)return null;const{renderedColumns:re,firstColumnToRender:oe,lastColumnToRender:ge}=me,ve=p[X],ye=t[oe].field,Ee=((ke=$[ye])==null?void 0:ke[X])??null,$e=ve.findIndex(({groupId:Ne,columnFields:Le})=>Ne===Ee&&Le.includes(ye)),we=t[ge-1].field,Ce=((Ze=$[we])==null?void 0:Ze[X])??null,Je=ve.findIndex(({groupId:Ne,columnFields:Le})=>Ne===Ce&&Le.includes(we)),Ie=ve.slice($e,Je+1).map(Ne=>y({},Ne,{columnFields:Ne.columnFields.filter(Le=>f[Le]!==!1)})).filter(Ne=>Ne.columnFields.length>0),Ye=Ie[0].columnFields.indexOf(ye),He=Ie[0].columnFields.slice(0,Ye).reduce((Ne,Le)=>{const fe=b.current.getColumn(Le);return Ne+(fe.computedWidth??0)},0);let je=oe;const ze=Ie.map(({groupId:Ne,columnFields:Le},fe)=>{const ae=a!==null&&a.depth===X&&Le.includes(a.field),Pe=i!==null&&i.depth===X&&Le.includes(i.field)?0:-1,st={groupId:Ne,width:Le.reduce((et,Et)=>et+b.current.getColumn(Et).computedWidth,0),fields:Le,colIndex:je,hasFocus:ae,tabIndex:Pe},ct=te.position,Me=U({pinnedPosition:ct,columnIndex:je,computedWidth:st.width});je+=Le.length;let Ge=fe;return ct==="left"&&(Ge=je-1),S.jsx(B9,{groupId:Ne,width:st.width,fields:st.fields,colIndex:st.colIndex,depth:X,isLastColumn:st.colIndex===t.length-st.fields.length,maxDepth:c,height:M.headerHeight,hasFocus:ae,tabIndex:Pe,pinnedPosition:ct,style:Me,indexInSection:Ge,sectionLength:re.length,gridHasFiller:W},fe)});return G(te,ze,He)};return{renderContext:F,leftRenderContext:O,rightRenderContext:A,pinnedColumns:B,visibleColumns:t,getCellOffsetStyle:U,getFillers:G,getColumnHeadersRow:Y,getColumnsToRender:N,getColumnGroupHeadersRows:()=>{if(c===0)return null;const X=[];for(let te=0;te({role:"rowgroup"})}},j9=["className"],G9=e=>{const{classes:t}=e;return xe({root:["columnHeaders"]},ft,t)},V9=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),W9=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,j9),i=De(),l=G9(i);return S.jsx(V9,y({ref:n,className:pe(r,l.root),ownerState:i},o,{role:"presentation"}))}),U9=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Z9=m.forwardRef(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:x}=t,_=se(t,U9),{getInnerProps:k,getColumnHeadersRow:b,getColumnGroupHeadersRows:w}=H9({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:x});return S.jsxs(W9,y({ref:n},_,k(),{children:[w(),b()]}))}),K9=Yi(Z9);function q9(e){return null}function X9(e){return null}const Y9=m.forwardRef(function(t,n){const o=ut().current.getLocaleText("noResultsOverlayLabel");return S.jsx(hb,y({ref:n},t,{children:o}))}),Q9=["sortingOrder"],J9=m.memo(function(t){const{sortingOrder:n}=t,r=se(t,Q9),o=De(),[i]=n,l=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?S.jsx(l,y({},r)):null}),e7=["native"];function t7(e){let{native:t}=e,n=se(e,e7);return t?S.jsx("option",y({},n)):S.jsx(Lo,y({},n))}const n7={booleanCellTrueIcon:jU,booleanCellFalseIcon:Pm,columnMenuIcon:DU,openFilterButtonIcon:TU,filterPanelDeleteIcon:Pm,columnFilteredIcon:Lx,columnSelectorIcon:RU,columnUnsortedIcon:J9,columnSortedAscendingIcon:kx,columnSortedDescendingIcon:Mx,columnResizeIcon:FU,densityCompactIcon:$U,densityStandardIcon:zU,densityComfortableIcon:AU,exportIcon:HU,moreActionsIcon:GU,treeDataCollapseIcon:Ex,treeDataExpandIcon:Ix,groupingCriteriaCollapseIcon:Ex,groupingCriteriaExpandIcon:Ix,detailPanelExpandIcon:Tx,detailPanelCollapseIcon:NU,rowReorderIcon:Ox,quickFilterIcon:OU,quickFilterClearIcon:Pm,columnMenuHideIcon:VU,columnMenuSortAscendingIcon:kx,columnMenuSortDescendingIcon:Mx,columnMenuFilterIcon:Lx,columnMenuManageColumnsIcon:WU,columnMenuClearIcon:UU,loadIcon:BU,filterPanelAddIcon:Tx,filterPanelRemoveAllIcon:ZU,columnReorderIcon:Ox},r7=y({},n7,{baseCheckbox:iN,baseTextField:Vj,baseFormControl:HP,baseSelect:qp,baseButton:Zp,baseIconButton:So,baseInputAdornment:fB,baseTooltip:Dg,basePopper:Ts,baseInputLabel:jP,baseSelectOption:t7,baseChip:RP}),o7=y({},r7,{cell:HW,skeletonCell:UW,columnHeaderFilterIconButton:LU,columnMenu:a6,columnHeaders:K9,detailPanels:q9,footer:e8,footerRowCount:f8,toolbar:null,pinnedRows:X9,loadingOverlay:r8,noResultsOverlay:Y9,noRowsOverlay:o8,pagination:a8,filterPanel:W6,columnsPanel:_6,columnsManagement:OM,panel:P6,row:v8});function i7({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=y({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function s7(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function l7(e){const t=Object.keys(e);if(!t.some(o=>o.startsWith("aria-")||o.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let o=0;o{const t=y({},(s7(e),e));return l7(t)},[e])}const u7={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},BM={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBufferPx:150,rowBufferPx:150,rows:[],rowSelection:!0,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableColumnSorting:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Fo.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,resizeThrottleMs:60,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166,autosizeOnMount:!1,disableAutosize:!1},c7=o7,d7=e=>{const t=a7(Xe({props:e,name:"MuiDataGrid"})),n=m.useMemo(()=>y({},L4,t.localeText),[t.localeText]),r=m.useMemo(()=>i7({defaultSlots:c7,slots:t.slots}),[t.slots]);return m.useMemo(()=>y({},BM,t,{localeText:n,slots:r},u7),[t,n,r])},f7=e=>y({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Ux=(e,t,n)=>typeof e=="number"&&e>0?e:t,p7=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=m.useRef(Object.create(null)),l=m.useRef(-1),a=m.useRef(!1),c=be(e,yc),d=be(e,vn),f=be(e,oh),p=be(e,Tr),g=Ns(e,t),v=be(e,Ds),x=Ux(t.rowHeight,BM.rowHeight),_=Math.floor(x*c),k=m.useCallback(()=>{var z,O;a.current=!1;const j=A=>{i.current[A.id]||(i.current[A.id]={sizes:{baseCenter:_},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:N,needsFirstMeasurement:G,sizes:U}=i.current[A.id];let Z=typeof _=="number"&&_>0?_:52;const Y=U.baseCenter;if(N)Z=Y;else if(n){const X=n(y({},A,{densityFactor:c}));X==="auto"?(G?Z=(o?o(y({},A,{densityFactor:c})):_)??_:Z=Y,a.current=!0,i.current[A.id].autoHeight=!0):(Z=Ux(X,_),i.current[A.id].needsFirstMeasurement=!1,i.current[A.id].autoHeight=!1)}else i.current[A.id].needsFirstMeasurement=!1;const ee={baseCenter:Z};if(r){const X=e.current.getRowIndexRelativeToVisibleRows(A.id),te=r(y({},A,{isFirstVisible:X===0,isLastVisible:X===g.rows.length-1,indexRelativeToCurrentPage:X}));ee.spacingTop=te.top??0,ee.spacingBottom=te.bottom??0}const Q=e.current.unstable_applyPipeProcessors("rowHeight",ee,A);return i.current[A.id].sizes=Q,Q},D=[],R=g.rows.reduce((A,N)=>{D.push(A);let G=0;const U=j(N);for(const Z in U){const Y=U[Z];Z!=="baseCenter"&&(G+=Y)}return A+U.baseCenter+G},0);(z=v==null?void 0:v.top)==null||z.forEach(A=>{j(A)}),(O=v==null?void 0:v.bottom)==null||O.forEach(A=>{j(A)}),e.current.setState(A=>y({},A,{rowsMeta:{currentPageTotalHeight:R,positions:D}})),a.current||(l.current=1/0),e.current.forceUpdate()},[e,g.rows,_,n,r,o,v,c]),b=m.useCallback(j=>{const D=i.current[j];return D?D.sizes.baseCenter:_},[_]),w=j=>{var D;return(D=i.current[j])==null?void 0:D.sizes},P=m.useCallback((j,D)=>{i.current[j].sizes.baseCenter=D,i.current[j].isResized=!0,i.current[j].needsFirstMeasurement=!1,k()},[k]),M=m.useMemo(()=>Fp(k,t.rowPositionsDebounceMs),[k,t.rowPositionsDebounceMs]),E=m.useCallback((j,D)=>{if(!i.current[j]||!i.current[j].autoHeight)return;const R=i.current[j].sizes.baseCenter!==D;i.current[j].needsFirstMeasurement=!1,i.current[j].sizes.baseCenter=D,R&&M()},[M]),$=m.useCallback(j=>{var D;return((D=i.current[j])==null?void 0:D.autoHeight)||!1},[]),T=m.useCallback(()=>l.current,[]),F=m.useCallback(j=>{a.current&&j>l.current&&(l.current=j)},[]),B=m.useCallback(()=>{i.current={},k()},[k]);m.useEffect(()=>{k()},[_,d,f,p,k]),yb(e,"rowHeight",k);const H={unstable_setLastMeasuredRowIndex:F,unstable_getRowHeight:b,unstable_getRowInternalSizes:w,unstable_setRowHeight:P,unstable_storeRowHeightMeasurement:E,resetRowHeights:B},W={getLastMeasuredRowIndex:T,rowHasAutoHeight:$};tt(e,H,"public"),tt(e,W,"private")},h7=e=>{const t=m.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=m.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);tt(e,{exportState:t,restoreState:n},"public")},m7=e=>{const t=m.useRef({}),n=(a,c)=>{var d;return(d=t.current[a])==null?void 0:d[c]},r=()=>{t.current={}},o=m.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:d,columns:f})=>{for(let p=c;p1&&(p+=g.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};tt(e,i,"public"),tt(e,l,"private"),Re(e,"columnOrderChange",r)};function g7(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,c=a.length,d=a[r],f=t.current.getRow(o),p=t.current.getRowValue(f,d),g=typeof d.colSpan=="function"?d.colSpan(p,f,d,t):d.colSpan;if(!g||g===1)return Im(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:d.computedWidth}}),{colSpan:1};let v=d.computedWidth;for(let x=1;x=i&&_{if(Hk(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` -`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{HM(i,[...t,r],n)})},Qg=e=>{if(!e)return{};const t={};return e.forEach(n=>{HM(n,[],t)}),t},Jg=(e,t,n)=>{const r=c=>t[c]??[],o=[],i=Math.max(...e.map(c=>r(c).length)),l=(c,d,f)=>Nl(r(c).slice(0,f+1),r(d).slice(0,f+1)),a=(c,d)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(d)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(d));for(let c=0;c{const g=r(p)[c]??null;if(f.length===0)return[{columnFields:[p],groupId:g}];const v=f[f.length-1],x=v.columnFields[v.columnFields.length-1];return v.groupId!==g||!l(x,p,c)||a(x,p)?[...f,{columnFields:[p],groupId:g}]:[...f.slice(0,f.length-1),{columnFields:[...v.columnFields,p],groupId:g}]},[]);o.push(d)}return o},v7=["groupId","children"],bb=e=>{let t={};return e.forEach(n=>{if(Hk(n))return;const{groupId:r,children:o}=n,i=se(n,v7);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const l=y({},i,{groupId:r}),a=bb(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=y({},t,a,{[r]:l})}),y({},t)},y7=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=qo(n),o=bc(n),i=bb(t.columnGroupingModel??[]),l=Qg(t.columnGroupingModel??[]),a=Jg(r,l,n.current.state.pinnedColumns??{}),c=o.length===0?0:Math.max(...o.map(d=>{var f;return((f=l[d])==null?void 0:f.length)??0}));return y({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},b7=(e,t)=>{const n=m.useCallback(a=>mM(e)[a]??[],[e]),r=m.useCallback(()=>gM(e),[e]);tt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=m.useCallback(()=>{const a=Qg(t.columnGroupingModel??[]);e.current.setState(c=>{var g;const d=((g=c.columns)==null?void 0:g.orderedFields)??[],f=c.pinnedColumns??{},p=Jg(d,a,f);return y({},c,{columnGrouping:y({},c.columnGrouping,{headerStructure:p})})})},[e,t.columnGroupingModel]),l=m.useCallback(a=>{var _,k;const c=((k=(_=e.current).getPinnedColumns)==null?void 0:k.call(_))??{},d=qo(e),f=bc(e),p=bb(a??[]),g=Qg(a??[]),v=Jg(d,g,c),x=f.length===0?0:Math.max(...f.map(b=>{var w;return((w=g[b])==null?void 0:w.length)??0}));e.current.setState(b=>y({},b,{columnGrouping:{lookup:p,unwrappedGroupingModel:g,headerStructure:v,maxDepth:x}}))},[e]);Re(e,"columnIndexChange",i),Re(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Re(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),m.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function _7(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Zx(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;ncb(e),r=be(e,n);return m.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=_7()}return t.current}}function P7(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,l=i<5?5:i*t;return n.filter(a=>a>r-l&&a{const a=$W(e.current,i.field).map(x=>x.getBoundingClientRect().width??0),c=t.includeOutliers?a:P7(a,t.outliersFactor);if(t.includeHeaders){const x=FW(e.current,i.field);if(x){const _=x.querySelector(`.${K.columnHeaderTitle}`),k=x.querySelector(`.${K.columnHeaderTitleContainerContent}`),b=x.querySelector(`.${K.iconButtonContainer}`),w=x.querySelector(`.${K.menuIcon}`),P=_??k,M=window.getComputedStyle(x,null),E=parseInt(M.paddingLeft,10)+parseInt(M.paddingRight,10),T=P.scrollWidth+1+E+((b==null?void 0:b.clientWidth)??0)+((w==null?void 0:w.clientWidth)??0);c.push(T)}}const d=i.minWidth!==-1/0&&i.minWidth!==void 0,f=i.maxWidth!==1/0&&i.maxWidth!==void 0,p=d?i.minWidth:0,g=f?i.maxWidth:1/0,v=c.length===0?0:Math.max(...c);r[i.field]=oi(v,p,g)}),o.classList.remove(K.autosizing),r}const M7=e=>y({},e,{columnResize:{resizingColumnField:""}});function I7(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const E7=(e,t)=>{const n=$o(),r=mn(e,"useGridColumnResize"),o=Ls(I7).current,i=m.useRef(),l=m.useRef(),a=Dr(),c=m.useRef(),d=B=>{var O,A;r.debug(`Updating width to ${B} for col ${o.colDef.field}`);const H=o.columnHeaderElement.offsetWidth,W=B-H,j=B-o.initialColWidth,D=o.initialTotalWidth+j;(A=(O=e.current.rootElementRef)==null?void 0:O.current)==null||A.style.setProperty("--DataGrid-rowWidth",`${D}px`),o.colDef.computedWidth=B,o.colDef.width=B,o.colDef.flex=0,o.columnHeaderElement.style.width=`${B}px`,o.columnHeaderElement.style.minWidth=`${B}px`,o.columnHeaderElement.style.maxWidth=`${B}px`;const R=o.headerFilterElement;R&&(R.style.width=`${B}px`,R.style.minWidth=`${B}px`,R.style.maxWidth=`${B}px`),o.groupHeaderElements.forEach(N=>{const G=N;let U;G.getAttribute("aria-colspan")==="1"?U=`${B}px`:U=`${G.offsetWidth+W}px`,G.style.width=U,G.style.minWidth=U,G.style.maxWidth=U}),o.cellElements.forEach(N=>{const G=N;let U;G.getAttribute("aria-colspan")==="1"?U=`${B}px`:U=`${G.offsetWidth+W}px`,G.style.setProperty("--width",U)});const z=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);z===pn.LEFT&&(sl(o.fillerLeft,"width",W),o.leftPinnedCellsAfter.forEach(N=>{sl(N,"left",W)}),o.leftPinnedHeadersAfter.forEach(N=>{sl(N,"left",W)})),z===pn.RIGHT&&(sl(o.fillerRight,"width",W),o.rightPinnedCellsBefore.forEach(N=>{sl(N,"right",W)}),o.rightPinnedHeadersBefore.forEach(N=>{sl(N,"right",W)}))},f=B=>{if(b(),o.previousMouseClickEvent){const H=o.previousMouseClickEvent,W=H.timeStamp,j=H.clientX,D=H.clientY;if(B.timeStamp-W<300&&B.clientX===j&&B.clientY===D){o.previousMouseClickEvent=void 0;return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const H=Oo(e.current.state);o.groupHeaderElements.forEach(W=>{const j=MW(W),D=W,z=`${j.reduce((O,A)=>H.columnVisibilityModel[A]!==!1?O+H.lookup[A].computedWidth:O,0)}px`;D.style.width=z,D.style.minWidth=z,D.style.maxWidth=z})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,B)})},p=(B,H,W)=>{var z;const j=e.current.rootElementRef.current;o.initialColWidth=B.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=B,o.columnHeaderElement=kW(e.current.columnHeadersContainerRef.current,B.field);const D=j.querySelector(`.${K.headerFilterRow} [data-field="${Qi(B.field)}"]`);D&&(o.headerFilterElement=D),o.groupHeaderElements=IW((z=e.current.columnHeadersContainerRef)==null?void 0:z.current,B.field),o.cellElements=EW(o.columnHeaderElement,e.current),o.fillerLeft=xx(e.current,"filler--pinnedLeft"),o.fillerRight=xx(e.current,"filler--pinnedRight");const R=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=R!==pn.LEFT?[]:LW(e.current,o.columnHeaderElement),o.rightPinnedCellsBefore=R!==pn.RIGHT?[]:TW(e.current,o.columnHeaderElement),o.leftPinnedHeadersAfter=R!==pn.LEFT?[]:OW(e.current,o.columnHeaderElement),o.rightPinnedHeadersBefore=R!==pn.RIGHT?[]:RW(e.current,o.columnHeaderElement),l.current=w7(H,n.direction),i.current=C7(W,o.columnHeaderElement.getBoundingClientRect(),l.current)},g=at(f),v=at(B=>{if(B.buttons===0){g(B);return}let H=Kx(i.current,B.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);H=oi(H,o.colDef.minWidth,o.colDef.maxWidth),d(H);const W={element:o.columnHeaderElement,colDef:o.colDef,width:H};e.current.publishEvent("columnResize",W,B)}),x=at(B=>{Zx(B,c.current)&&f(B)}),_=at(B=>{const H=Zx(B,c.current);if(!H)return;if(B.type==="mousemove"&&B.buttons===0){x(B);return}let W=Kx(i.current,H.x,o.columnHeaderElement.getBoundingClientRect(),l.current);W=oi(W,o.colDef.minWidth,o.colDef.maxWidth),d(W);const j={element:o.columnHeaderElement,colDef:o.colDef,width:W};e.current.publishEvent("columnResize",j,B)}),k=at(B=>{const H=Df(B.target,K["columnSeparator--resizable"]);if(!H)return;const W=B.changedTouches[0];W!=null&&(c.current=W.identifier);const j=Df(B.target,K.columnHeader),D=PW(j),R=e.current.getColumn(D);r.debug(`Start Resize on col ${R.field}`),e.current.publishEvent("columnResizeStart",{field:D},B),p(R,H,W.clientX);const z=zt(B.currentTarget);z.addEventListener("touchmove",_),z.addEventListener("touchend",x)}),b=m.useCallback(()=>{const B=zt(e.current.rootElementRef.current);B.body.style.removeProperty("cursor"),B.removeEventListener("mousemove",v),B.removeEventListener("mouseup",g),B.removeEventListener("touchmove",_),B.removeEventListener("touchend",x),setTimeout(()=>{B.removeEventListener("click",qx,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,v,g,_,x]),w=m.useCallback(({field:B})=>{e.current.setState(H=>y({},H,{columnResize:y({},H.columnResize,{resizingColumnField:B})})),e.current.forceUpdate()},[e]),P=m.useCallback(()=>{e.current.setState(B=>y({},B,{columnResize:y({},B.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),M=at(({colDef:B},H)=>{if(H.button!==0||!H.currentTarget.classList.contains(K["columnSeparator--resizable"]))return;H.preventDefault(),r.debug(`Start Resize on col ${B.field}`),e.current.publishEvent("columnResizeStart",{field:B.field},H),p(B,H.currentTarget,H.clientX);const W=zt(e.current.rootElementRef.current);W.body.style.cursor="col-resize",o.previousMouseClickEvent=H.nativeEvent,W.addEventListener("mousemove",v),W.addEventListener("mouseup",g),W.addEventListener("click",qx,!0)}),E=at((B,H)=>{if(t.disableAutosize||H.button!==0)return;const W=e.current.state.columns.lookup[B.field];W.resizable!==!1&&e.current.autosizeColumns(y({},t.autosizeOptions,{columns:[W.field]}))}),$=S7(e),T=m.useRef(!1),F=m.useCallback(async B=>{var R;if(!((R=e.current.rootElementRef)==null?void 0:R.current)||T.current)return;T.current=!0;const W=Oo(e.current.state),j=y({},dW,B,{columns:(B==null?void 0:B.columns)??W.orderedFields});j.columns=j.columns.filter(z=>W.columnVisibilityModel[z]!==!1);const D=j.columns.map(z=>e.current.state.columns.lookup[z]);try{e.current.unstable_setColumnVirtualization(!1),await $();const z=k7(e,j,D),O=D.map(A=>y({},A,{width:z[A.field],computedWidth:z[A.field]}));if(j.expand){const N=W.orderedFields.map(Z=>W.lookup[Z]).filter(Z=>W.columnVisibilityModel[Z.field]!==!1).reduce((Z,Y)=>Z+(z[Y.field]??Y.computedWidth??Y.width),0),U=e.current.getRootDimensions().viewportInnerSize.width-N;if(U>0){const Z=U/(O.length||1);O.forEach(Y=>{Y.width+=Z,Y.computedWidth+=Z})}}e.current.updateColumns(O),O.forEach((A,N)=>{if(A.width!==D[N].width){const G=A.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(A.field),colDef:A,width:G})}})}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,$]);m.useEffect(()=>b,[b]),$p(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),rM(e,()=>{var B;return(B=e.current.columnHeadersContainerRef)==null?void 0:B.current},"touchstart",k,{passive:!0}),tt(e,{autosizeColumns:F},"public"),Re(e,"columnResizeStop",P),Re(e,"columnResizeStart",w),Re(e,"columnSeparatorMouseDown",M),Re(e,"columnSeparatorDoubleClick",E),Tt(e,"columnResize",t.onColumnResize),Tt(e,"columnWidthChange",t.onColumnWidthChange)};function sl(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}const L7=(e,t)=>{const n=R8(e,t);return I9(n,t),S9(n),Tn($9,n,t),Tn(P9,n,t),Tn(H8,n,t),Tn(b9,n,t),Tn(v9,n,t),Tn(t9,n,t),Tn(E9,n,t),Tn(u9,n,t),Tn(Y8,n,t),Tn(G8,n,t),Tn(M7,n,t),Tn(l9,n,t),Tn(f7,n,t),Tn(N8,n,t),Tn(y7,n,t),Tn(MV,n,t),o9(n,t),k9(n,t),j8(n,t),_9(n,t),zW(n),m7(n),b7(n,t),y9(n,t),n9(n,t),c9(n,t),e9(n,t),L9(n,t),V8(n,t),E7(n,t),a9(n,t),p7(n,t),T9(n,t),B8(n),U8(n,t),X8(n,t),D8(n,t),z9(n,t),O9(n,t),h7(n),IV(n,t),n},jM=m.forwardRef(function(t,n){const r=d7(t),o=L7(r.apiRef,r);return S.jsx(y8,{privateApiRef:o,props:r,children:S.jsxs(QW,y({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[S.jsx(n8,{}),S.jsx(yW,{}),S.jsx(bW,{})]}))})}),T7=m.memo(jM);jM.propTypes={apiRef:J.shape({current:J.object.isRequired}),"aria-label":J.string,"aria-labelledby":J.string,autoHeight:J.bool,autoPageSize:J.bool,autosizeOnMount:J.bool,autosizeOptions:J.shape({columns:J.arrayOf(J.string),expand:J.bool,includeHeaders:J.bool,includeOutliers:J.bool,outliersFactor:J.number}),cellModesModel:J.object,checkboxSelection:J.bool,classes:J.object,clipboardCopyCellDelimiter:J.string,columnBufferPx:J.number,columnGroupingModel:J.arrayOf(J.object),columnHeaderHeight:J.number,columns:J.arrayOf(J.object).isRequired,columnVisibilityModel:J.object,density:J.oneOf(["comfortable","compact","standard"]),disableAutosize:J.bool,disableColumnFilter:J.bool,disableColumnMenu:J.bool,disableColumnResize:J.bool,disableColumnSelector:J.bool,disableColumnSorting:J.bool,disableDensitySelector:J.bool,disableEval:J.bool,disableMultipleRowSelection:J.bool,disableRowSelectionOnClick:J.bool,disableVirtualization:J.bool,editMode:J.oneOf(["cell","row"]),estimatedRowCount:J.number,experimentalFeatures:J.shape({warnIfFocusStateIsNotSynced:J.bool}),filterDebounceMs:J.number,filterMode:J.oneOf(["client","server"]),filterModel:J.shape({items:J.arrayOf(J.shape({field:J.string.isRequired,id:J.oneOfType([J.number,J.string]),operator:J.string.isRequired,value:J.any})).isRequired,logicOperator:J.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:J.bool,quickFilterLogicOperator:J.oneOf(["and","or"]),quickFilterValues:J.array}),forwardedProps:J.object,getCellClassName:J.func,getDetailPanelContent:J.func,getEstimatedRowHeight:J.func,getRowClassName:J.func,getRowHeight:J.func,getRowId:J.func,getRowSpacing:J.func,hideFooter:J.bool,hideFooterPagination:J.bool,hideFooterSelectedRowCount:J.bool,ignoreDiacritics:J.bool,ignoreValueFormatterDuringExport:J.oneOfType([J.shape({clipboardExport:J.bool,csvExport:J.bool}),J.bool]),initialState:J.object,isCellEditable:J.func,isRowSelectable:J.func,keepNonExistentRowsSelected:J.bool,loading:J.bool,localeText:J.object,logger:J.shape({debug:J.func.isRequired,error:J.func.isRequired,info:J.func.isRequired,warn:J.func.isRequired}),logLevel:J.oneOf(["debug","error","info","warn",!1]),nonce:J.string,onCellClick:J.func,onCellDoubleClick:J.func,onCellEditStart:J.func,onCellEditStop:J.func,onCellKeyDown:J.func,onCellModesModelChange:J.func,onClipboardCopy:J.func,onColumnHeaderClick:J.func,onColumnHeaderDoubleClick:J.func,onColumnHeaderEnter:J.func,onColumnHeaderLeave:J.func,onColumnHeaderOut:J.func,onColumnHeaderOver:J.func,onColumnOrderChange:J.func,onColumnResize:J.func,onColumnVisibilityModelChange:J.func,onColumnWidthChange:J.func,onDensityChange:J.func,onFilterModelChange:J.func,onMenuClose:J.func,onMenuOpen:J.func,onPaginationMetaChange:J.func,onPaginationModelChange:J.func,onPreferencePanelClose:J.func,onPreferencePanelOpen:J.func,onProcessRowUpdateError:J.func,onResize:J.func,onRowClick:J.func,onRowCountChange:J.func,onRowDoubleClick:J.func,onRowEditStart:J.func,onRowEditStop:J.func,onRowModesModelChange:J.func,onRowSelectionModelChange:J.func,onSortModelChange:J.func,onStateChange:J.func,pageSizeOptions:J.arrayOf(J.oneOfType([J.number,J.shape({label:J.string.isRequired,value:J.number.isRequired})]).isRequired),pagination:J.oneOf([!0]),paginationMeta:J.shape({hasNextPage:J.bool}),paginationMode:J.oneOf(["client","server"]),paginationModel:J.shape({page:J.number.isRequired,pageSize:J.number.isRequired}),processRowUpdate:J.func,resizeThrottleMs:J.number,rowBufferPx:J.number,rowCount:J.number,rowHeight:J.number,rowModesModel:J.object,rowPositionsDebounceMs:J.number,rows:J.arrayOf(J.object),rowSelection:J.bool,rowSelectionModel:J.oneOfType([J.arrayOf(J.oneOfType([J.number,J.string]).isRequired),J.number,J.string]),rowSpacingType:J.oneOf(["border","margin"]),scrollbarSize:J.number,showCellVerticalBorder:J.bool,showColumnVerticalBorder:J.bool,slotProps:J.object,slots:J.object,sortingMode:J.oneOf(["client","server"]),sortingOrder:J.arrayOf(J.oneOf(["asc","desc"])),sortModel:J.arrayOf(J.shape({field:J.string.isRequired,sort:J.oneOf(["asc","desc"])})),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])};const Em=({colour:e,mainStat:t,subStat:n,label:r})=>S.jsxs(Ui,{elevation:8,className:"big-number",children:[S.jsx("main",{style:{color:e},children:t}),S.jsxs("aside",{children:[S.jsx("span",{children:r}),n]})]}),ev=".osmPatch.geo.json",O7={n:"node",w:"way",r:"relation"},GM=e=>`https://openstreetmap.org/${O7[e[0]]}/${e.slice(1)}`;function R7(e,t){const n=new Blob([t],{type:"text/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.style.display="none",o.href=r,o.download=e,document.body.append(o),o.click(),URL.revokeObjectURL(r)}const{format:Gd}=new Intl.NumberFormat("en-NZ"),VM={addCount:0,editCount:0,okayCount:0},Hl=e=>e.addCount+e.editCount+e.okayCount,Lm=({stats:e})=>{const t=+(e.okayCount/Hl(e)*100).toFixed(3),n=+(e.editCount/Hl(e)*100).toFixed(3),r=+(e.addCount/Hl(e)*100).toFixed(3);return S.jsxs("div",{className:"progress-bar",children:[S.jsx("div",{style:{width:`${t}%`},children:Gd(e.okayCount)}),S.jsx("div",{style:{width:`${n}%`},children:Gd(e.editCount)}),S.jsx("div",{style:{width:`${r}%`},children:Gd(e.addCount)})]})},vd=({tags:e,renderBraces:t})=>{const n=Object.keys(e).length>1;return S.jsxs(S.Fragment,{children:[t&&n&&"(",Object.entries(e).map(([r,o],i)=>S.jsxs(m.Fragment,{children:[!!i&&" + ",S.jsxs("code",{children:[S.jsx("a",{href:`https://osm.wiki/Key:${r}`,children:r}),"=",S.jsx("a",{href:`https://osm.wiki/Tag:${r}=${o}`,children:o})]})]},r)),t&&n&&")"]})},Xx=({type:e,data:t,acceptTags:n})=>{var o;const r=t.__hack__.presets[e];return typeof r=="symbol"?null:n?(o=r.acceptTags)==null?void 0:o.flatMap((i,l)=>[l?" or ":"",S.jsx(vd,{tags:i,renderBraces:!0},l)]):"tags"in r?S.jsx(vd,{tags:{...r.tags,...r.addTags}}):S.jsxs(S.Fragment,{children:[S.jsx(vd,{tags:r.onLandTags,renderBraces:!0}),"or ",S.jsx(vd,{tags:r.subseaTags,renderBraces:!0})]})},WM=e=>{const t={...VM};for(const n of Object.values(e.stats))if(n)for(const r in n){const o=r;t[o]+=n[o]}return t},F7=()=>{const e=m.useContext(zs),t=Object.entries(e.stats).sort(([,o],[,i])=>(i?Hl(i):0)-(o?Hl(o):0)),n=m.useMemo(()=>WM(e),[e]),r={...VM};for(const o in e.stats){const i=o,l=e.stats[i];if(l){const a=l.addCount+l.editCount;a===0?r.okayCount+=1:a/(l.okayCount+a)<.1?r.editCount+=1:r.addCount+=1}}return S.jsxs("main",{style:{margin:16},children:[S.jsxs("div",{className:"summary",children:["Total: ",S.jsx(Lm,{stats:n}),"Layers: ",S.jsx(Lm,{stats:r})]}),S.jsxs("table",{className:"layers",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("td",{children:"Progress"}),S.jsx("td",{children:"Type"}),S.jsx("td",{children:"Count"}),S.jsx("td",{children:"Tagging"}),S.jsx("td",{children:"Alternative Tags"})]})}),S.jsx("tbody",{children:t.map(([o,i])=>{const l=o;return S.jsxs("tr",{children:[S.jsx("td",{children:i?S.jsx(Lm,{stats:i}):S.jsx("em",{children:"Skipped"})}),S.jsx("td",{children:l}),S.jsx("td",{children:i&&Gd(Hl(i))}),S.jsx("td",{children:S.jsx(Xx,{type:l,data:e})}),S.jsx("td",{children:S.jsx(Xx,{type:l,data:e,acceptTags:!0})})]},l)})})]})]})},$7=S.jsx("span",{className:"red",children:"Add"}),z7=S.jsx("span",{className:"yellow",children:"Edit"}),A7=[{field:"nzgb",headerName:"NZGB ID",width:130,valueGetter:(e,t)=>t.__hack__.ref,renderCell:e=>S.jsx(Pf,{href:`https://gazetteer.linz.govt.nz/place/${e.value}`,target:"_blank",rel:"noreferrer",children:e.value})},{field:"id",headerName:"OSM ID",width:120,valueGetter:(e,t)=>t.properties.__action?t.id:"",renderCell:e=>S.jsx(Pf,{href:GM(e.value),target:"_blank",rel:"noreferrer",children:e.value})},{field:"type",headerName:"Type",width:50,valueGetter:(e,t)=>!!t.properties.__action,renderCell:e=>e.value?z7:$7},{field:"layer",headerName:"Layer",width:120,valueGetter:(e,t)=>t.__hack__.layer},{field:"properties",headerName:"Suggested Changes",width:700,sortable:!1,renderCell:e=>Object.entries(e.value).filter(([t])=>!t.startsWith("__")).map(([t,n],r)=>S.jsxs("span",{children:[r?" + ":"",S.jsxs("code",{children:[t,"=",n]})]},t))}],UM=m.memo(({onSelect:e})=>{const t=m.useContext(zs),n=m.useMemo(()=>{const r=WM(t),o=Object.values(r).reduce((l,a)=>l+a,0),i={...r};for(const l in i)i[l]=`${(i[l]/o*100).toFixed(2)}%`;return{totals:r,percent:i}},[t]);return S.jsxs("div",{style:{width:"50vw"},children:[S.jsxs("div",{className:"flex",children:[S.jsx(Em,{colour:"#cc3232",mainStat:n.totals.addCount,subStat:n.percent.addCount,label:"Missing"}),S.jsx(Em,{colour:"#e7b416",mainStat:n.totals.editCount,subStat:n.percent.editCount,label:"Errors"}),S.jsx(Em,{colour:"#2dc937",mainStat:n.totals.okayCount,subStat:n.percent.okayCount,label:"Perfect"})]}),S.jsx(T7,{rows:t.features,columns:A7,initialState:{pagination:{paginationModel:{pageSize:20}}},onRowSelectionModelChange:e,pageSizeOptions:[20,50,100,500],checkboxSelection:!0,disableRowSelectionOnClick:!0,autoHeight:!1,style:{height:"calc(100vh - 69px - 120px)"}})]})});UM.displayName="LeftSide";const D7=({feature:e})=>{const t=e.__hack__.ref,n=e.__hack__.layer,r=!!e.properties.__action;return S.jsxs(S.Fragment,{children:[n," |"," ",S.jsx(Pf,{href:`https://gazetteer.linz.govt.nz/place/${t}`,target:"_blank",rel:"noreferrer",children:t})," ","|"," ",r?S.jsx(Pf,{href:GM(e.id),target:"_blank",rel:"noreferrer",children:e.id}):S.jsx("span",{className:"red",children:"Not in OSM"}),S.jsx("pre",{children:Object.entries(e.properties).filter(([o])=>!o.startsWith("__")).map(([o,i])=>{const l=i;return S.jsxs("div",{children:[o==="name"&&r?S.jsx("span",{className:"red",children:o}):o,"=",o.endsWith("wikidata")?S.jsx("a",{href:`https://www.wikidata.org/wiki/${l}`,target:"_blank",rel:"noreferrer",children:l}):l]},o)})})]})},N7=()=>{const e=m.useContext(zs),[t,n]=m.useState([]),r=m.useMemo(()=>e.features.filter(i=>t.includes(i.id)),[e,t]),o=m.useCallback(()=>{const i=structuredClone(e);delete i.stats,delete i.__hack__;const l=`export-${Math.round(Math.random()*1e5)}`;R7(l+ev,JSON.stringify({...i,features:r.map(a=>{const c=structuredClone(a);return delete c.__hack__,c})},null,2))},[e,r]);return S.jsxs("div",{className:"flex",children:[t.length?S.jsx("div",{className:"over-map",children:S.jsxs(Zp,{variant:"contained",onClick:o,children:["Export ",t.length," features"]})}):S.jsx(pP,{severity:"info",className:"over-map",children:"First select some data in the table"}),S.jsx(UM,{onSelect:n}),S.jsxs(u4,{zoom:6,center:[-40.905,173.167],scrollWheelZoom:!0,zoomSnap:0,zoomDelta:.2,maxZoom:23,style:{width:"50vw",height:"calc(100vh - 69px)"},children:[S.jsx(f4,{url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",maxNativeZoom:19,maxZoom:23,attribution:'© OpenStreetMap contributors'}),S.jsx(E4,{children:r.map(i=>{const[l,a]=i.geometry.type==="Point"?i.geometry.coordinates:[0,0];return S.jsx(c4,{position:[a,l],children:S.jsx(d4,{children:S.jsx(D7,{feature:i})})},i.id)})})]})]})},B7=()=>{const e=m.useContext(zs);return S.jsxs("article",{style:{margin:16},children:["This page contains any other"," ",S.jsx("a",{href:"https://github.com/osm-nz/linz-address-import/blob/main/SPEC.md",target:"_blank",rel:"noreferrer",children:"osmPatch files"})," ","generated by the conflation process. You can use import this data using any editor that supports ",S.jsx("code",{children:ev})," files.",S.jsx("br",{}),S.jsx("br",{}),S.jsx(tj,{children:S.jsx(lj,{children:Object.entries(e.__hack__.childPatchFiles).map(([t,n])=>S.jsxs(Dj,{children:[S.jsx(Dl,{children:S.jsx("strong",{children:t})}),S.jsxs(Dl,{children:[n.features.length," Features"]}),S.jsx(Dl,{children:S.jsx(Zp,{variant:"contained",component:"a",download:t+ev,href:URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/json"})),disabled:!n.features.length,children:"Download"})})]},t))})})]})};var tv=(e=>(e[e.CUSTOM_MERGE=0]="CUSTOM_MERGE",e[e.NON_REDIRECT_WIKIDATA_ERROR=1]="NON_REDIRECT_WIKIDATA_ERROR",e))(tv||{});const H7={[tv.CUSTOM_MERGE]:"Custom Merge",[tv.NON_REDIRECT_WIKIDATA_ERROR]:"Non-Redirect Wikidata Error"},j7=()=>{const e=m.useContext(zs),{warnings:t}=e.__hack__;return S.jsxs("article",{style:{margin:16},children:["This page contains internal warnings generated by the conflation process.",Object.entries(H7).map(([n,r])=>{var o;return S.jsxs("div",{children:[S.jsx(Po,{variant:"h5",children:r}),S.jsx("ul",{children:(o=t[n])==null?void 0:o.map(i=>S.jsx("li",{children:i},i))})]},n)})]})},G7=localStorage.dev?"http://localhost:3000":"https://linz-addr-cdn.kyle.kiwi",V7=()=>{const[e,t]=m.useState(),[n,r]=m.useState();return m.useEffect(()=>{fetch(`${G7}/place-names.osmPatch.geo.json`).then(o=>o.json()).then(t).catch(r)},[]),n?S.jsx(pP,{severity:"error",style:{margin:32},children:"Failed to load data."}):e?S.jsx(m.StrictMode,{children:S.jsx(B5,{children:S.jsxs(zs.Provider,{value:e,children:[S.jsx(yN,{}),S.jsx(t4,{}),S.jsx("main",{style:{height:"calc(100vh - 69px)",overflowY:"auto"},children:S.jsxs(R5,{children:[S.jsx(eu,{path:"/",element:S.jsx(N7,{})}),S.jsx(eu,{path:"/other",element:S.jsx(B7,{})}),S.jsx(eu,{path:"/warnings",element:S.jsx(j7,{})}),S.jsx(eu,{path:"/layers",element:S.jsx(F7,{})})]})})]})})}):S.jsx(NP,{style:{margin:32}})};lS(document.querySelector("main")).render(m.createElement(V7)); +`)),r.current=!0),j.current){k(R),j.current=!1;return}b(R)},[t.autoHeight,b,n]);Mt(T,[T]),Tt(e,"sortedRowsSet",T),Tt(e,"paginationModelChange",T),Tt(e,"columnsChange",T),Re(e,"resize",D),Tt(e,"debouncedResize",t.onResize)}function A9(e,t,n){if(n!==void 0)return n;if(e===null||t===0)return 0;const o=zt(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),i}function D9(e,t){return Math.round(e*10**t)/10**t}const N9=e=>{const{classes:t,headerAlign:n,isDragging:r,showLeftBorder:o,showRightBorder:i,groupId:l,pinnedPosition:a}=e;return xe({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--withRightBorder",o&&"columnHeader--withLeftBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",a==="left"&&"columnHeader--pinnedLeft",a==="right"&&"columnHeader--pinnedRight"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ft,t)};function B9(e){var Z;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:l,colIndex:a,hasFocus:c,tabIndex:d,isLastColumn:f,pinnedPosition:p,style:g,indexInSection:v,sectionLength:x,gridHasFiller:_}=e,k=De(),b=m.useRef(null),w=ut(),P=be(w,gM),M=t?P[t]:{},{headerName:E=t??"",description:$="",headerAlign:T=void 0}=M;let F;const B=t&&((Z=P[t])==null?void 0:Z.renderHeaderGroup),H=m.useMemo(()=>({groupId:t,headerName:E,description:$,depth:r,maxDepth:o,fields:i,colIndex:a,isLastColumn:f}),[t,E,$,r,o,i,a,f]);t&&B&&(F=B(H));const W=pb(p,v),j=fb(p,v,x,k.showCellVerticalBorder,_),D=y({},e,{classes:k.classes,showLeftBorder:W,showRightBorder:j,headerAlign:T,depth:r,isDragging:!1}),R=E??t,z=Ot(),O=t===null?`empty-group-cell-${z}`:t,A=N9(D);m.useLayoutEffect(()=>{if(c){const ee=b.current.querySelector('[tabindex="0"]')||b.current;ee==null||ee.focus()}},[w,c]);const N=m.useCallback(Y=>ee=>{wc(ee)||w.current.publishEvent(Y,H,ee)},[w,H]),G=m.useMemo(()=>({onKeyDown:N("columnGroupHeaderKeyDown"),onFocus:N("columnGroupHeaderFocus"),onBlur:N("columnGroupHeaderBlur")}),[N]),U=typeof M.headerClassName=="function"?M.headerClassName(H):M.headerClassName;return S.jsx(LM,y({ref:b,classes:A,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:F,headerClassName:U,description:$,elementId:O,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!0,label:R,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:g},G))}const Wx=de("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),H9=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:g}=e,[v,x]=m.useState(""),[_,k]=m.useState(""),b=ai(),w=$o(),P=De(),M=be(b,co),E=be(b,cb),$=be(b,mM),T=be(b,As),F=be(b,kV),B=be(b,Qp),H=_M(T,F,w.direction,B.left.length),W=M.columnsTotalWidth{b.current.columnHeadersContainerRef.current.scrollLeft=0},[b]);const j=m.useCallback(X=>k(X.field),[]),D=m.useCallback(()=>k(""),[]),R=m.useCallback(X=>x(X.field),[]),z=m.useCallback(()=>x(""),[]),O=m.useMemo(()=>B.left.length?{firstColumnIndex:0,lastColumnIndex:B.left.length}:null,[B.left.length]),A=m.useMemo(()=>B.right.length?{firstColumnIndex:t.length-B.right.length,lastColumnIndex:t.length}:null,[B.right.length,t.length]);Re(b,"columnResizeStart",j),Re(b,"columnResizeStop",D),Re(b,"columnHeaderDragStart",R),Re(b,"columnHeaderDragEnd",z);const N=X=>{const{renderContext:te=F,maxLastColumn:me=t.length}=X||{},re=E?te.firstColumnIndex:0,oe=E?te.lastColumnIndex:me;return{renderedColumns:t.slice(re,oe),firstColumnToRender:re,lastColumnToRender:oe}},G=(X,te,me,re=!1)=>{const oe=(X==null?void 0:X.position)===pn.RIGHT,ge=(X==null?void 0:X.position)===void 0,ve=B.right.length>0&&oe||B.right.length===0&&ge,ye=H-me;return S.jsxs(m.Fragment,{children:[ge&&S.jsx("div",{role:"presentation",style:{width:ye}}),te,ge&&S.jsx("div",{role:"presentation",className:pe(K.filler,re&&K["filler--borderTop"])}),ve&&S.jsx(RM,{header:!0,borderTop:re,pinnedRight:oe})]})},U=({pinnedPosition:X,columnIndex:te,computedWidth:me})=>{let re;if(X==="left"||X==="right"){const oe=FM(X,me,te,T,M);X==="left"&&(re={left:oe}),X==="right"&&(re={right:oe})}return re},Z=(X,te={})=>{const{renderedColumns:me,firstColumnToRender:re}=N(X),oe=[];for(let ge=0;geS.jsxs(Wx,{role:"row","aria-rowindex":c+1,ownerState:P,children:[O&&Z({position:pn.LEFT,renderContext:O,minFirstColumn:O.firstColumnIndex,maxLastColumn:O.lastColumnIndex},{disableReorder:!0}),Z({renderContext:F,minFirstColumn:B.left.length,maxLastColumn:t.length-B.right.length}),A&&Z({position:pn.RIGHT,renderContext:A,minFirstColumn:A.firstColumnIndex,maxLastColumn:A.lastColumnIndex},{disableReorder:!0,separatorSide:mb.Left})]}),ee=({depth:X,params:te})=>{var ke,Ze;const me=N(te);if(me.renderedColumns.length===0)return null;const{renderedColumns:re,firstColumnToRender:oe,lastColumnToRender:ge}=me,ve=p[X],ye=t[oe].field,Ee=((ke=$[ye])==null?void 0:ke[X])??null,$e=ve.findIndex(({groupId:Ne,columnFields:Le})=>Ne===Ee&&Le.includes(ye)),we=t[ge-1].field,Ce=((Ze=$[we])==null?void 0:Ze[X])??null,Je=ve.findIndex(({groupId:Ne,columnFields:Le})=>Ne===Ce&&Le.includes(we)),Ie=ve.slice($e,Je+1).map(Ne=>y({},Ne,{columnFields:Ne.columnFields.filter(Le=>f[Le]!==!1)})).filter(Ne=>Ne.columnFields.length>0),Ye=Ie[0].columnFields.indexOf(ye),He=Ie[0].columnFields.slice(0,Ye).reduce((Ne,Le)=>{const fe=b.current.getColumn(Le);return Ne+(fe.computedWidth??0)},0);let je=oe;const ze=Ie.map(({groupId:Ne,columnFields:Le},fe)=>{const ae=a!==null&&a.depth===X&&Le.includes(a.field),Pe=i!==null&&i.depth===X&&Le.includes(i.field)?0:-1,st={groupId:Ne,width:Le.reduce((et,Et)=>et+b.current.getColumn(Et).computedWidth,0),fields:Le,colIndex:je,hasFocus:ae,tabIndex:Pe},ct=te.position,Me=U({pinnedPosition:ct,columnIndex:je,computedWidth:st.width});je+=Le.length;let Ge=fe;return ct==="left"&&(Ge=je-1),S.jsx(B9,{groupId:Ne,width:st.width,fields:st.fields,colIndex:st.colIndex,depth:X,isLastColumn:st.colIndex===t.length-st.fields.length,maxDepth:c,height:M.headerHeight,hasFocus:ae,tabIndex:Pe,pinnedPosition:ct,style:Me,indexInSection:Ge,sectionLength:re.length,gridHasFiller:W},fe)});return G(te,ze,He)};return{renderContext:F,leftRenderContext:O,rightRenderContext:A,pinnedColumns:B,visibleColumns:t,getCellOffsetStyle:U,getFillers:G,getColumnHeadersRow:Y,getColumnsToRender:N,getColumnGroupHeadersRows:()=>{if(c===0)return null;const X=[];for(let te=0;te({role:"rowgroup"})}},j9=["className"],G9=e=>{const{classes:t}=e;return xe({root:["columnHeaders"]},ft,t)},V9=xt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),W9=m.forwardRef(function(t,n){const{className:r}=t,o=se(t,j9),i=De(),l=G9(i);return S.jsx(V9,y({ref:n,className:pe(r,l.root),ownerState:i},o,{role:"presentation"}))}),U9=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Z9=m.forwardRef(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:x}=t,_=se(t,U9),{getInnerProps:k,getColumnHeadersRow:b,getColumnGroupHeadersRows:w}=H9({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:p,columnVisibility:g,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:x});return S.jsxs(W9,y({ref:n},_,k(),{children:[w(),b()]}))}),K9=Yi(Z9);function q9(e){return null}function X9(e){return null}const Y9=m.forwardRef(function(t,n){const o=ut().current.getLocaleText("noResultsOverlayLabel");return S.jsx(hb,y({ref:n},t,{children:o}))}),Q9=["sortingOrder"],J9=m.memo(function(t){const{sortingOrder:n}=t,r=se(t,Q9),o=De(),[i]=n,l=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?S.jsx(l,y({},r)):null}),e7=["native"];function t7(e){let{native:t}=e,n=se(e,e7);return t?S.jsx("option",y({},n)):S.jsx(Lo,y({},n))}const n7={booleanCellTrueIcon:jU,booleanCellFalseIcon:Pm,columnMenuIcon:DU,openFilterButtonIcon:TU,filterPanelDeleteIcon:Pm,columnFilteredIcon:Lx,columnSelectorIcon:RU,columnUnsortedIcon:J9,columnSortedAscendingIcon:kx,columnSortedDescendingIcon:Mx,columnResizeIcon:FU,densityCompactIcon:$U,densityStandardIcon:zU,densityComfortableIcon:AU,exportIcon:HU,moreActionsIcon:GU,treeDataCollapseIcon:Ex,treeDataExpandIcon:Ix,groupingCriteriaCollapseIcon:Ex,groupingCriteriaExpandIcon:Ix,detailPanelExpandIcon:Tx,detailPanelCollapseIcon:NU,rowReorderIcon:Ox,quickFilterIcon:OU,quickFilterClearIcon:Pm,columnMenuHideIcon:VU,columnMenuSortAscendingIcon:kx,columnMenuSortDescendingIcon:Mx,columnMenuFilterIcon:Lx,columnMenuManageColumnsIcon:WU,columnMenuClearIcon:UU,loadIcon:BU,filterPanelAddIcon:Tx,filterPanelRemoveAllIcon:ZU,columnReorderIcon:Ox},r7=y({},n7,{baseCheckbox:iN,baseTextField:Vj,baseFormControl:HP,baseSelect:qp,baseButton:Zp,baseIconButton:So,baseInputAdornment:fB,baseTooltip:Dg,basePopper:Ts,baseInputLabel:jP,baseSelectOption:t7,baseChip:RP}),o7=y({},r7,{cell:HW,skeletonCell:UW,columnHeaderFilterIconButton:LU,columnMenu:a6,columnHeaders:K9,detailPanels:q9,footer:e8,footerRowCount:f8,toolbar:null,pinnedRows:X9,loadingOverlay:r8,noResultsOverlay:Y9,noRowsOverlay:o8,pagination:a8,filterPanel:W6,columnsPanel:_6,columnsManagement:OM,panel:P6,row:v8});function i7({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=y({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function s7(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function l7(e){const t=Object.keys(e);if(!t.some(o=>o.startsWith("aria-")||o.startsWith("data-")))return e;const n={},r=e.forwardedProps??{};for(let o=0;o{const t=y({},(s7(e),e));return l7(t)},[e])}const u7={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},BM={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBufferPx:150,rowBufferPx:150,rows:[],rowSelection:!0,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableColumnSorting:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Fo.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,resizeThrottleMs:60,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166,autosizeOnMount:!1,disableAutosize:!1},c7=o7,d7=e=>{const t=a7(Xe({props:e,name:"MuiDataGrid"})),n=m.useMemo(()=>y({},L4,t.localeText),[t.localeText]),r=m.useMemo(()=>i7({defaultSlots:c7,slots:t.slots}),[t.slots]);return m.useMemo(()=>y({},BM,t,{localeText:n,slots:r},u7),[t,n,r])},f7=e=>y({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Ux=(e,t,n)=>typeof e=="number"&&e>0?e:t,p7=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=m.useRef(Object.create(null)),l=m.useRef(-1),a=m.useRef(!1),c=be(e,bc),d=be(e,vn),f=be(e,oh),p=be(e,Tr),g=Ns(e,t),v=be(e,Ds),x=Ux(t.rowHeight,BM.rowHeight),_=Math.floor(x*c),k=m.useCallback(()=>{var z,O;a.current=!1;const j=A=>{i.current[A.id]||(i.current[A.id]={sizes:{baseCenter:_},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:N,needsFirstMeasurement:G,sizes:U}=i.current[A.id];let Z=typeof _=="number"&&_>0?_:52;const Y=U.baseCenter;if(N)Z=Y;else if(n){const X=n(y({},A,{densityFactor:c}));X==="auto"?(G?Z=(o?o(y({},A,{densityFactor:c})):_)??_:Z=Y,a.current=!0,i.current[A.id].autoHeight=!0):(Z=Ux(X,_),i.current[A.id].needsFirstMeasurement=!1,i.current[A.id].autoHeight=!1)}else i.current[A.id].needsFirstMeasurement=!1;const ee={baseCenter:Z};if(r){const X=e.current.getRowIndexRelativeToVisibleRows(A.id),te=r(y({},A,{isFirstVisible:X===0,isLastVisible:X===g.rows.length-1,indexRelativeToCurrentPage:X}));ee.spacingTop=te.top??0,ee.spacingBottom=te.bottom??0}const Q=e.current.unstable_applyPipeProcessors("rowHeight",ee,A);return i.current[A.id].sizes=Q,Q},D=[],R=g.rows.reduce((A,N)=>{D.push(A);let G=0;const U=j(N);for(const Z in U){const Y=U[Z];Z!=="baseCenter"&&(G+=Y)}return A+U.baseCenter+G},0);(z=v==null?void 0:v.top)==null||z.forEach(A=>{j(A)}),(O=v==null?void 0:v.bottom)==null||O.forEach(A=>{j(A)}),e.current.setState(A=>y({},A,{rowsMeta:{currentPageTotalHeight:R,positions:D}})),a.current||(l.current=1/0),e.current.forceUpdate()},[e,g.rows,_,n,r,o,v,c]),b=m.useCallback(j=>{const D=i.current[j];return D?D.sizes.baseCenter:_},[_]),w=j=>{var D;return(D=i.current[j])==null?void 0:D.sizes},P=m.useCallback((j,D)=>{i.current[j].sizes.baseCenter=D,i.current[j].isResized=!0,i.current[j].needsFirstMeasurement=!1,k()},[k]),M=m.useMemo(()=>Fp(k,t.rowPositionsDebounceMs),[k,t.rowPositionsDebounceMs]),E=m.useCallback((j,D)=>{if(!i.current[j]||!i.current[j].autoHeight)return;const R=i.current[j].sizes.baseCenter!==D;i.current[j].needsFirstMeasurement=!1,i.current[j].sizes.baseCenter=D,R&&M()},[M]),$=m.useCallback(j=>{var D;return((D=i.current[j])==null?void 0:D.autoHeight)||!1},[]),T=m.useCallback(()=>l.current,[]),F=m.useCallback(j=>{a.current&&j>l.current&&(l.current=j)},[]),B=m.useCallback(()=>{i.current={},k()},[k]);m.useEffect(()=>{k()},[_,d,f,p,k]),yb(e,"rowHeight",k);const H={unstable_setLastMeasuredRowIndex:F,unstable_getRowHeight:b,unstable_getRowInternalSizes:w,unstable_setRowHeight:P,unstable_storeRowHeightMeasurement:E,resetRowHeights:B},W={getLastMeasuredRowIndex:T,rowHasAutoHeight:$};tt(e,H,"public"),tt(e,W,"private")},h7=e=>{const t=m.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=m.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);tt(e,{exportState:t,restoreState:n},"public")},m7=e=>{const t=m.useRef({}),n=(a,c)=>{var d;return(d=t.current[a])==null?void 0:d[c]},r=()=>{t.current={}},o=m.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:d,columns:f})=>{for(let p=c;p1&&(p+=g.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};tt(e,i,"public"),tt(e,l,"private"),Re(e,"columnOrderChange",r)};function g7(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,c=a.length,d=a[r],f=t.current.getRow(o),p=t.current.getRowValue(f,d),g=typeof d.colSpan=="function"?d.colSpan(p,f,d,t):d.colSpan;if(!g||g===1)return Im(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:d.computedWidth}}),{colSpan:1};let v=d.computedWidth;for(let x=1;x=i&&_{if(Hk(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` +`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{HM(i,[...t,r],n)})},Qg=e=>{if(!e)return{};const t={};return e.forEach(n=>{HM(n,[],t)}),t},Jg=(e,t,n)=>{const r=c=>t[c]??[],o=[],i=Math.max(...e.map(c=>r(c).length)),l=(c,d,f)=>Nl(r(c).slice(0,f+1),r(d).slice(0,f+1)),a=(c,d)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(d)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(d));for(let c=0;c{const g=r(p)[c]??null;if(f.length===0)return[{columnFields:[p],groupId:g}];const v=f[f.length-1],x=v.columnFields[v.columnFields.length-1];return v.groupId!==g||!l(x,p,c)||a(x,p)?[...f,{columnFields:[p],groupId:g}]:[...f.slice(0,f.length-1),{columnFields:[...v.columnFields,p],groupId:g}]},[]);o.push(d)}return o},v7=["groupId","children"],bb=e=>{let t={};return e.forEach(n=>{if(Hk(n))return;const{groupId:r,children:o}=n,i=se(n,v7);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const l=y({},i,{groupId:r}),a=bb(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=y({},t,a,{[r]:l})}),y({},t)},y7=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=qo(n),o=_c(n),i=bb(t.columnGroupingModel??[]),l=Qg(t.columnGroupingModel??[]),a=Jg(r,l,n.current.state.pinnedColumns??{}),c=o.length===0?0:Math.max(...o.map(d=>{var f;return((f=l[d])==null?void 0:f.length)??0}));return y({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},b7=(e,t)=>{const n=m.useCallback(a=>mM(e)[a]??[],[e]),r=m.useCallback(()=>gM(e),[e]);tt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=m.useCallback(()=>{const a=Qg(t.columnGroupingModel??[]);e.current.setState(c=>{var g;const d=((g=c.columns)==null?void 0:g.orderedFields)??[],f=c.pinnedColumns??{},p=Jg(d,a,f);return y({},c,{columnGrouping:y({},c.columnGrouping,{headerStructure:p})})})},[e,t.columnGroupingModel]),l=m.useCallback(a=>{var _,k;const c=((k=(_=e.current).getPinnedColumns)==null?void 0:k.call(_))??{},d=qo(e),f=_c(e),p=bb(a??[]),g=Qg(a??[]),v=Jg(d,g,c),x=f.length===0?0:Math.max(...f.map(b=>{var w;return((w=g[b])==null?void 0:w.length)??0}));e.current.setState(b=>y({},b,{columnGrouping:{lookup:p,unwrappedGroupingModel:g,headerStructure:v,maxDepth:x}}))},[e]);Re(e,"columnIndexChange",i),Re(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Re(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),m.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function _7(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Zx(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;ncb(e),r=be(e,n);return m.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=_7()}return t.current}}function P7(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,l=i<5?5:i*t;return n.filter(a=>a>r-l&&a{const a=$W(e.current,i.field).map(x=>x.getBoundingClientRect().width??0),c=t.includeOutliers?a:P7(a,t.outliersFactor);if(t.includeHeaders){const x=FW(e.current,i.field);if(x){const _=x.querySelector(`.${K.columnHeaderTitle}`),k=x.querySelector(`.${K.columnHeaderTitleContainerContent}`),b=x.querySelector(`.${K.iconButtonContainer}`),w=x.querySelector(`.${K.menuIcon}`),P=_??k,M=window.getComputedStyle(x,null),E=parseInt(M.paddingLeft,10)+parseInt(M.paddingRight,10),T=P.scrollWidth+1+E+((b==null?void 0:b.clientWidth)??0)+((w==null?void 0:w.clientWidth)??0);c.push(T)}}const d=i.minWidth!==-1/0&&i.minWidth!==void 0,f=i.maxWidth!==1/0&&i.maxWidth!==void 0,p=d?i.minWidth:0,g=f?i.maxWidth:1/0,v=c.length===0?0:Math.max(...c);r[i.field]=oi(v,p,g)}),o.classList.remove(K.autosizing),r}const M7=e=>y({},e,{columnResize:{resizingColumnField:""}});function I7(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const E7=(e,t)=>{const n=$o(),r=mn(e,"useGridColumnResize"),o=Ls(I7).current,i=m.useRef(),l=m.useRef(),a=Dr(),c=m.useRef(),d=B=>{var O,A;r.debug(`Updating width to ${B} for col ${o.colDef.field}`);const H=o.columnHeaderElement.offsetWidth,W=B-H,j=B-o.initialColWidth,D=o.initialTotalWidth+j;(A=(O=e.current.rootElementRef)==null?void 0:O.current)==null||A.style.setProperty("--DataGrid-rowWidth",`${D}px`),o.colDef.computedWidth=B,o.colDef.width=B,o.colDef.flex=0,o.columnHeaderElement.style.width=`${B}px`,o.columnHeaderElement.style.minWidth=`${B}px`,o.columnHeaderElement.style.maxWidth=`${B}px`;const R=o.headerFilterElement;R&&(R.style.width=`${B}px`,R.style.minWidth=`${B}px`,R.style.maxWidth=`${B}px`),o.groupHeaderElements.forEach(N=>{const G=N;let U;G.getAttribute("aria-colspan")==="1"?U=`${B}px`:U=`${G.offsetWidth+W}px`,G.style.width=U,G.style.minWidth=U,G.style.maxWidth=U}),o.cellElements.forEach(N=>{const G=N;let U;G.getAttribute("aria-colspan")==="1"?U=`${B}px`:U=`${G.offsetWidth+W}px`,G.style.setProperty("--width",U)});const z=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);z===pn.LEFT&&(sl(o.fillerLeft,"width",W),o.leftPinnedCellsAfter.forEach(N=>{sl(N,"left",W)}),o.leftPinnedHeadersAfter.forEach(N=>{sl(N,"left",W)})),z===pn.RIGHT&&(sl(o.fillerRight,"width",W),o.rightPinnedCellsBefore.forEach(N=>{sl(N,"right",W)}),o.rightPinnedHeadersBefore.forEach(N=>{sl(N,"right",W)}))},f=B=>{if(b(),o.previousMouseClickEvent){const H=o.previousMouseClickEvent,W=H.timeStamp,j=H.clientX,D=H.clientY;if(B.timeStamp-W<300&&B.clientX===j&&B.clientY===D){o.previousMouseClickEvent=void 0;return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const H=Oo(e.current.state);o.groupHeaderElements.forEach(W=>{const j=MW(W),D=W,z=`${j.reduce((O,A)=>H.columnVisibilityModel[A]!==!1?O+H.lookup[A].computedWidth:O,0)}px`;D.style.width=z,D.style.minWidth=z,D.style.maxWidth=z})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,B)})},p=(B,H,W)=>{var z;const j=e.current.rootElementRef.current;o.initialColWidth=B.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=B,o.columnHeaderElement=kW(e.current.columnHeadersContainerRef.current,B.field);const D=j.querySelector(`.${K.headerFilterRow} [data-field="${Qi(B.field)}"]`);D&&(o.headerFilterElement=D),o.groupHeaderElements=IW((z=e.current.columnHeadersContainerRef)==null?void 0:z.current,B.field),o.cellElements=EW(o.columnHeaderElement,e.current),o.fillerLeft=xx(e.current,"filler--pinnedLeft"),o.fillerRight=xx(e.current,"filler--pinnedRight");const R=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=R!==pn.LEFT?[]:LW(e.current,o.columnHeaderElement),o.rightPinnedCellsBefore=R!==pn.RIGHT?[]:TW(e.current,o.columnHeaderElement),o.leftPinnedHeadersAfter=R!==pn.LEFT?[]:OW(e.current,o.columnHeaderElement),o.rightPinnedHeadersBefore=R!==pn.RIGHT?[]:RW(e.current,o.columnHeaderElement),l.current=w7(H,n.direction),i.current=C7(W,o.columnHeaderElement.getBoundingClientRect(),l.current)},g=at(f),v=at(B=>{if(B.buttons===0){g(B);return}let H=Kx(i.current,B.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);H=oi(H,o.colDef.minWidth,o.colDef.maxWidth),d(H);const W={element:o.columnHeaderElement,colDef:o.colDef,width:H};e.current.publishEvent("columnResize",W,B)}),x=at(B=>{Zx(B,c.current)&&f(B)}),_=at(B=>{const H=Zx(B,c.current);if(!H)return;if(B.type==="mousemove"&&B.buttons===0){x(B);return}let W=Kx(i.current,H.x,o.columnHeaderElement.getBoundingClientRect(),l.current);W=oi(W,o.colDef.minWidth,o.colDef.maxWidth),d(W);const j={element:o.columnHeaderElement,colDef:o.colDef,width:W};e.current.publishEvent("columnResize",j,B)}),k=at(B=>{const H=Df(B.target,K["columnSeparator--resizable"]);if(!H)return;const W=B.changedTouches[0];W!=null&&(c.current=W.identifier);const j=Df(B.target,K.columnHeader),D=PW(j),R=e.current.getColumn(D);r.debug(`Start Resize on col ${R.field}`),e.current.publishEvent("columnResizeStart",{field:D},B),p(R,H,W.clientX);const z=zt(B.currentTarget);z.addEventListener("touchmove",_),z.addEventListener("touchend",x)}),b=m.useCallback(()=>{const B=zt(e.current.rootElementRef.current);B.body.style.removeProperty("cursor"),B.removeEventListener("mousemove",v),B.removeEventListener("mouseup",g),B.removeEventListener("touchmove",_),B.removeEventListener("touchend",x),setTimeout(()=>{B.removeEventListener("click",qx,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,v,g,_,x]),w=m.useCallback(({field:B})=>{e.current.setState(H=>y({},H,{columnResize:y({},H.columnResize,{resizingColumnField:B})})),e.current.forceUpdate()},[e]),P=m.useCallback(()=>{e.current.setState(B=>y({},B,{columnResize:y({},B.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),M=at(({colDef:B},H)=>{if(H.button!==0||!H.currentTarget.classList.contains(K["columnSeparator--resizable"]))return;H.preventDefault(),r.debug(`Start Resize on col ${B.field}`),e.current.publishEvent("columnResizeStart",{field:B.field},H),p(B,H.currentTarget,H.clientX);const W=zt(e.current.rootElementRef.current);W.body.style.cursor="col-resize",o.previousMouseClickEvent=H.nativeEvent,W.addEventListener("mousemove",v),W.addEventListener("mouseup",g),W.addEventListener("click",qx,!0)}),E=at((B,H)=>{if(t.disableAutosize||H.button!==0)return;const W=e.current.state.columns.lookup[B.field];W.resizable!==!1&&e.current.autosizeColumns(y({},t.autosizeOptions,{columns:[W.field]}))}),$=S7(e),T=m.useRef(!1),F=m.useCallback(async B=>{var R;if(!((R=e.current.rootElementRef)==null?void 0:R.current)||T.current)return;T.current=!0;const W=Oo(e.current.state),j=y({},dW,B,{columns:(B==null?void 0:B.columns)??W.orderedFields});j.columns=j.columns.filter(z=>W.columnVisibilityModel[z]!==!1);const D=j.columns.map(z=>e.current.state.columns.lookup[z]);try{e.current.unstable_setColumnVirtualization(!1),await $();const z=k7(e,j,D),O=D.map(A=>y({},A,{width:z[A.field],computedWidth:z[A.field]}));if(j.expand){const N=W.orderedFields.map(Z=>W.lookup[Z]).filter(Z=>W.columnVisibilityModel[Z.field]!==!1).reduce((Z,Y)=>Z+(z[Y.field]??Y.computedWidth??Y.width),0),U=e.current.getRootDimensions().viewportInnerSize.width-N;if(U>0){const Z=U/(O.length||1);O.forEach(Y=>{Y.width+=Z,Y.computedWidth+=Z})}}e.current.updateColumns(O),O.forEach((A,N)=>{if(A.width!==D[N].width){const G=A.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(A.field),colDef:A,width:G})}})}finally{e.current.unstable_setColumnVirtualization(!0),T.current=!1}},[e,$]);m.useEffect(()=>b,[b]),$p(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),rM(e,()=>{var B;return(B=e.current.columnHeadersContainerRef)==null?void 0:B.current},"touchstart",k,{passive:!0}),tt(e,{autosizeColumns:F},"public"),Re(e,"columnResizeStop",P),Re(e,"columnResizeStart",w),Re(e,"columnSeparatorMouseDown",M),Re(e,"columnSeparatorDoubleClick",E),Tt(e,"columnResize",t.onColumnResize),Tt(e,"columnWidthChange",t.onColumnWidthChange)};function sl(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}const L7=(e,t)=>{const n=R8(e,t);return I9(n,t),S9(n),Tn($9,n,t),Tn(P9,n,t),Tn(H8,n,t),Tn(b9,n,t),Tn(v9,n,t),Tn(t9,n,t),Tn(E9,n,t),Tn(u9,n,t),Tn(Y8,n,t),Tn(G8,n,t),Tn(M7,n,t),Tn(l9,n,t),Tn(f7,n,t),Tn(N8,n,t),Tn(y7,n,t),Tn(MV,n,t),o9(n,t),k9(n,t),j8(n,t),_9(n,t),zW(n),m7(n),b7(n,t),y9(n,t),n9(n,t),c9(n,t),e9(n,t),L9(n,t),V8(n,t),E7(n,t),a9(n,t),p7(n,t),T9(n,t),B8(n),U8(n,t),X8(n,t),D8(n,t),z9(n,t),O9(n,t),h7(n),IV(n,t),n},jM=m.forwardRef(function(t,n){const r=d7(t),o=L7(r.apiRef,r);return S.jsx(y8,{privateApiRef:o,props:r,children:S.jsxs(QW,y({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[S.jsx(n8,{}),S.jsx(yW,{}),S.jsx(bW,{})]}))})}),T7=m.memo(jM);jM.propTypes={apiRef:J.shape({current:J.object.isRequired}),"aria-label":J.string,"aria-labelledby":J.string,autoHeight:J.bool,autoPageSize:J.bool,autosizeOnMount:J.bool,autosizeOptions:J.shape({columns:J.arrayOf(J.string),expand:J.bool,includeHeaders:J.bool,includeOutliers:J.bool,outliersFactor:J.number}),cellModesModel:J.object,checkboxSelection:J.bool,classes:J.object,clipboardCopyCellDelimiter:J.string,columnBufferPx:J.number,columnGroupingModel:J.arrayOf(J.object),columnHeaderHeight:J.number,columns:J.arrayOf(J.object).isRequired,columnVisibilityModel:J.object,density:J.oneOf(["comfortable","compact","standard"]),disableAutosize:J.bool,disableColumnFilter:J.bool,disableColumnMenu:J.bool,disableColumnResize:J.bool,disableColumnSelector:J.bool,disableColumnSorting:J.bool,disableDensitySelector:J.bool,disableEval:J.bool,disableMultipleRowSelection:J.bool,disableRowSelectionOnClick:J.bool,disableVirtualization:J.bool,editMode:J.oneOf(["cell","row"]),estimatedRowCount:J.number,experimentalFeatures:J.shape({warnIfFocusStateIsNotSynced:J.bool}),filterDebounceMs:J.number,filterMode:J.oneOf(["client","server"]),filterModel:J.shape({items:J.arrayOf(J.shape({field:J.string.isRequired,id:J.oneOfType([J.number,J.string]),operator:J.string.isRequired,value:J.any})).isRequired,logicOperator:J.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:J.bool,quickFilterLogicOperator:J.oneOf(["and","or"]),quickFilterValues:J.array}),forwardedProps:J.object,getCellClassName:J.func,getDetailPanelContent:J.func,getEstimatedRowHeight:J.func,getRowClassName:J.func,getRowHeight:J.func,getRowId:J.func,getRowSpacing:J.func,hideFooter:J.bool,hideFooterPagination:J.bool,hideFooterSelectedRowCount:J.bool,ignoreDiacritics:J.bool,ignoreValueFormatterDuringExport:J.oneOfType([J.shape({clipboardExport:J.bool,csvExport:J.bool}),J.bool]),initialState:J.object,isCellEditable:J.func,isRowSelectable:J.func,keepNonExistentRowsSelected:J.bool,loading:J.bool,localeText:J.object,logger:J.shape({debug:J.func.isRequired,error:J.func.isRequired,info:J.func.isRequired,warn:J.func.isRequired}),logLevel:J.oneOf(["debug","error","info","warn",!1]),nonce:J.string,onCellClick:J.func,onCellDoubleClick:J.func,onCellEditStart:J.func,onCellEditStop:J.func,onCellKeyDown:J.func,onCellModesModelChange:J.func,onClipboardCopy:J.func,onColumnHeaderClick:J.func,onColumnHeaderDoubleClick:J.func,onColumnHeaderEnter:J.func,onColumnHeaderLeave:J.func,onColumnHeaderOut:J.func,onColumnHeaderOver:J.func,onColumnOrderChange:J.func,onColumnResize:J.func,onColumnVisibilityModelChange:J.func,onColumnWidthChange:J.func,onDensityChange:J.func,onFilterModelChange:J.func,onMenuClose:J.func,onMenuOpen:J.func,onPaginationMetaChange:J.func,onPaginationModelChange:J.func,onPreferencePanelClose:J.func,onPreferencePanelOpen:J.func,onProcessRowUpdateError:J.func,onResize:J.func,onRowClick:J.func,onRowCountChange:J.func,onRowDoubleClick:J.func,onRowEditStart:J.func,onRowEditStop:J.func,onRowModesModelChange:J.func,onRowSelectionModelChange:J.func,onSortModelChange:J.func,onStateChange:J.func,pageSizeOptions:J.arrayOf(J.oneOfType([J.number,J.shape({label:J.string.isRequired,value:J.number.isRequired})]).isRequired),pagination:J.oneOf([!0]),paginationMeta:J.shape({hasNextPage:J.bool}),paginationMode:J.oneOf(["client","server"]),paginationModel:J.shape({page:J.number.isRequired,pageSize:J.number.isRequired}),processRowUpdate:J.func,resizeThrottleMs:J.number,rowBufferPx:J.number,rowCount:J.number,rowHeight:J.number,rowModesModel:J.object,rowPositionsDebounceMs:J.number,rows:J.arrayOf(J.object),rowSelection:J.bool,rowSelectionModel:J.oneOfType([J.arrayOf(J.oneOfType([J.number,J.string]).isRequired),J.number,J.string]),rowSpacingType:J.oneOf(["border","margin"]),scrollbarSize:J.number,showCellVerticalBorder:J.bool,showColumnVerticalBorder:J.bool,slotProps:J.object,slots:J.object,sortingMode:J.oneOf(["client","server"]),sortingOrder:J.arrayOf(J.oneOf(["asc","desc"])),sortModel:J.arrayOf(J.shape({field:J.string.isRequired,sort:J.oneOf(["asc","desc"])})),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])};const Em=({colour:e,mainStat:t,subStat:n,label:r})=>S.jsxs(Ui,{elevation:8,className:"big-number",children:[S.jsx("main",{style:{color:e},children:t}),S.jsxs("aside",{children:[S.jsx("span",{children:r}),n]})]}),ev=".osmPatch.geo.json",O7={n:"node",w:"way",r:"relation"},GM=e=>`https://openstreetmap.org/${O7[e[0]]}/${e.slice(1)}`;function R7(e,t){const n=new Blob([t],{type:"text/json"}),r=URL.createObjectURL(n),o=document.createElement("a");o.style.display="none",o.href=r,o.download=e,document.body.append(o),o.click(),URL.revokeObjectURL(r)}const{format:Vd}=new Intl.NumberFormat("en-NZ"),VM={addCount:0,editCount:0,okayCount:0},Hl=e=>e.addCount+e.editCount+e.okayCount,Lm=({stats:e})=>{const t=+(e.okayCount/Hl(e)*100).toFixed(3),n=+(e.editCount/Hl(e)*100).toFixed(3),r=+(e.addCount/Hl(e)*100).toFixed(3);return S.jsxs("div",{className:"progress-bar",children:[S.jsx("div",{style:{width:`${t}%`},children:Vd(e.okayCount)}),S.jsx("div",{style:{width:`${n}%`},children:Vd(e.editCount)}),S.jsx("div",{style:{width:`${r}%`},children:Vd(e.addCount)})]})},yd=({tags:e,renderBraces:t})=>{const n=Object.keys(e).length>1;return S.jsxs(S.Fragment,{children:[t&&n&&"(",Object.entries(e).map(([r,o],i)=>S.jsxs(m.Fragment,{children:[!!i&&" + ",S.jsxs("code",{children:[S.jsx("a",{href:`https://osm.wiki/Key:${r}`,children:r}),"=",S.jsx("a",{href:`https://osm.wiki/Tag:${r}=${o}`,children:o})]})]},r)),t&&n&&")"]})},Xx=({type:e,data:t,acceptTags:n})=>{var o;const r=t.__hack__.presets[e];return typeof r=="symbol"?null:n?(o=r.acceptTags)==null?void 0:o.flatMap((i,l)=>[l?" or ":"",S.jsx(yd,{tags:i,renderBraces:!0},l)]):"tags"in r?S.jsx(yd,{tags:{...r.tags,...r.addTags}}):S.jsxs(S.Fragment,{children:[S.jsx(yd,{tags:r.onLandTags,renderBraces:!0}),"or ",S.jsx(yd,{tags:r.subseaTags,renderBraces:!0})]})},WM=e=>{const t={...VM};for(const n of Object.values(e.stats))if(n)for(const r in n){const o=r;t[o]+=n[o]}return t},F7=()=>{const e=m.useContext(zs),t=Object.entries(e.stats).sort(([,o],[,i])=>(i?Hl(i):0)-(o?Hl(o):0)),n=m.useMemo(()=>WM(e),[e]),r={...VM};for(const o in e.stats){const i=o,l=e.stats[i];if(l){const a=l.addCount+l.editCount;a===0?r.okayCount+=1:a/(l.okayCount+a)<.1?r.editCount+=1:r.addCount+=1}}return S.jsxs("main",{style:{margin:16},children:[S.jsxs("div",{className:"summary",children:["Total: ",S.jsx(Lm,{stats:n}),"Layers: ",S.jsx(Lm,{stats:r})]}),S.jsxs("table",{className:"layers",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("td",{children:"Progress"}),S.jsx("td",{children:"Type"}),S.jsx("td",{children:"Count"}),S.jsx("td",{children:"Tagging"}),S.jsx("td",{children:"Alternative Tags"})]})}),S.jsx("tbody",{children:t.map(([o,i])=>{const l=o;return S.jsxs("tr",{children:[S.jsx("td",{children:i?S.jsx(Lm,{stats:i}):S.jsx("em",{children:"Skipped"})}),S.jsx("td",{children:l}),S.jsx("td",{children:i&&Vd(Hl(i))}),S.jsx("td",{children:S.jsx(Xx,{type:l,data:e})}),S.jsx("td",{children:S.jsx(Xx,{type:l,data:e,acceptTags:!0})})]},l)})})]})]})},$7=S.jsx("span",{className:"red",children:"Add"}),z7=S.jsx("span",{className:"yellow",children:"Edit"}),A7=[{field:"nzgb",headerName:"NZGB ID",width:130,valueGetter:(e,t)=>t.__hack__.ref,renderCell:e=>S.jsx(vu,{href:`https://gazetteer.linz.govt.nz/place/${e.value}`,target:"_blank",rel:"noreferrer",children:e.value})},{field:"id",headerName:"OSM ID",width:120,valueGetter:(e,t)=>t.properties.__action?t.id:"",renderCell:e=>S.jsx(vu,{href:GM(e.value),target:"_blank",rel:"noreferrer",children:e.value})},{field:"type",headerName:"Type",width:50,valueGetter:(e,t)=>!!t.properties.__action,renderCell:e=>e.value?z7:$7},{field:"layer",headerName:"Layer",width:120,valueGetter:(e,t)=>t.__hack__.layer},{field:"properties",headerName:"Suggested Changes",width:700,sortable:!1,renderCell:e=>Object.entries(e.value).filter(([t])=>!t.startsWith("__")).map(([t,n],r)=>S.jsxs("span",{children:[r?" + ":"",S.jsxs("code",{children:[t,"=",n]})]},t))}],UM=m.memo(({onSelect:e})=>{const t=m.useContext(zs),n=m.useMemo(()=>{const r=WM(t),o=Object.values(r).reduce((l,a)=>l+a,0),i={...r};for(const l in i)i[l]=`${(i[l]/o*100).toFixed(2)}%`;return{totals:r,percent:i}},[t]);return S.jsxs("div",{style:{width:"50vw"},children:[S.jsxs("div",{className:"flex",children:[S.jsx(Em,{colour:"#cc3232",mainStat:n.totals.addCount,subStat:n.percent.addCount,label:"Missing"}),S.jsx(Em,{colour:"#e7b416",mainStat:n.totals.editCount,subStat:n.percent.editCount,label:"Errors"}),S.jsx(Em,{colour:"#2dc937",mainStat:n.totals.okayCount,subStat:n.percent.okayCount,label:"Perfect"})]}),S.jsx(T7,{rows:t.features,columns:A7,initialState:{pagination:{paginationModel:{pageSize:20}}},onRowSelectionModelChange:e,pageSizeOptions:[20,50,100,500],checkboxSelection:!0,disableRowSelectionOnClick:!0,autoHeight:!1,style:{height:"calc(100vh - 69px - 120px)"}})]})});UM.displayName="LeftSide";const D7=({feature:e,lat:t,lng:n})=>{const r=e.__hack__.ref,o=e.__hack__.layer,i=!!e.properties.__action;return S.jsxs(S.Fragment,{children:[o," |"," ",S.jsx(vu,{href:`https://gazetteer.linz.govt.nz/place/${r}`,target:"_blank",rel:"noreferrer",children:r})," ","|"," ",i?S.jsx(vu,{href:GM(e.id),target:"_blank",rel:"noreferrer",children:e.id}):S.jsx(vu,{href:`https://kyle.kiwi/iD/#map=18/${t}/${n}`,target:"_blank",rel:"noreferrer",children:S.jsx("span",{className:"red",children:"Not in OSM"})}),S.jsx("pre",{children:Object.entries(e.properties).filter(([l])=>!l.startsWith("__")).map(([l,a])=>{const c=a;return S.jsxs("div",{children:[l==="name"&&i?S.jsx("span",{className:"red",children:l}):l,"=",l.endsWith("wikidata")?S.jsx("a",{href:`https://www.wikidata.org/wiki/${c}`,target:"_blank",rel:"noreferrer",children:c}):c]},l)})})]})},N7=()=>{const e=m.useContext(zs),[t,n]=m.useState([]),r=m.useMemo(()=>e.features.filter(i=>t.includes(i.id)),[e,t]),o=m.useCallback(()=>{const i=structuredClone(e);delete i.stats,delete i.__hack__;const l=`export-${Math.round(Math.random()*1e5)}`;R7(l+ev,JSON.stringify({...i,features:r.map(a=>{const c=structuredClone(a);return delete c.__hack__,c})},null,2))},[e,r]);return S.jsxs("div",{className:"flex",children:[t.length?S.jsx("div",{className:"over-map",children:S.jsxs(Zp,{variant:"contained",onClick:o,children:["Export ",t.length," features"]})}):S.jsx(pP,{severity:"info",className:"over-map",children:"First select some data in the table"}),S.jsx(UM,{onSelect:n}),S.jsxs(u4,{zoom:6,center:[-40.905,173.167],scrollWheelZoom:!0,zoomSnap:0,zoomDelta:.2,maxZoom:23,style:{width:"50vw",height:"calc(100vh - 69px)"},children:[S.jsx(f4,{url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",maxNativeZoom:19,maxZoom:23,attribution:'© OpenStreetMap contributors'}),S.jsx(E4,{children:r.map(i=>{const[l,a]=i.geometry.type==="Point"?i.geometry.coordinates:[0,0];return S.jsx(c4,{position:[a,l],children:S.jsx(d4,{children:S.jsx(D7,{feature:i,lat:a,lng:l})})},i.id)})})]})]})},B7=()=>{const e=m.useContext(zs);return S.jsxs("article",{style:{margin:16},children:["This page contains any other"," ",S.jsx("a",{href:"https://github.com/osm-nz/linz-address-import/blob/main/SPEC.md",target:"_blank",rel:"noreferrer",children:"osmPatch files"})," ","generated by the conflation process. You can use import this data using any editor that supports ",S.jsx("code",{children:ev})," files.",S.jsx("br",{}),S.jsx("br",{}),S.jsx(tj,{children:S.jsx(lj,{children:Object.entries(e.__hack__.childPatchFiles).map(([t,n])=>S.jsxs(Dj,{children:[S.jsx(Dl,{children:S.jsx("strong",{children:t})}),S.jsxs(Dl,{children:[n.features.length," Features"]}),S.jsx(Dl,{children:S.jsx(Zp,{variant:"contained",component:"a",download:t+ev,href:URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/json"})),disabled:!n.features.length,children:"Download"})})]},t))})})]})};var tv=(e=>(e[e.CUSTOM_MERGE=0]="CUSTOM_MERGE",e[e.NON_REDIRECT_WIKIDATA_ERROR=1]="NON_REDIRECT_WIKIDATA_ERROR",e))(tv||{});const H7={[tv.CUSTOM_MERGE]:"Custom Merge",[tv.NON_REDIRECT_WIKIDATA_ERROR]:"Non-Redirect Wikidata Error"},j7=()=>{const e=m.useContext(zs),{warnings:t}=e.__hack__;return S.jsxs("article",{style:{margin:16},children:["This page contains internal warnings generated by the conflation process.",Object.entries(H7).map(([n,r])=>{var o;return S.jsxs("div",{children:[S.jsx(Po,{variant:"h5",children:r}),S.jsx("ul",{children:(o=t[n])==null?void 0:o.map(i=>S.jsx("li",{children:i},i))})]},n)})]})},G7=localStorage.dev?"http://localhost:3000":"https://linz-addr-cdn.kyle.kiwi",V7=()=>{const[e,t]=m.useState(),[n,r]=m.useState();return m.useEffect(()=>{fetch(`${G7}/place-names.osmPatch.geo.json`).then(o=>o.json()).then(t).catch(r)},[]),n?S.jsx(pP,{severity:"error",style:{margin:32},children:"Failed to load data."}):e?S.jsx(m.StrictMode,{children:S.jsx(B5,{children:S.jsxs(zs.Provider,{value:e,children:[S.jsx(yN,{}),S.jsx(t4,{}),S.jsx("main",{style:{height:"calc(100vh - 69px)",overflowY:"auto"},children:S.jsxs(R5,{children:[S.jsx(eu,{path:"/",element:S.jsx(N7,{})}),S.jsx(eu,{path:"/other",element:S.jsx(B7,{})}),S.jsx(eu,{path:"/warnings",element:S.jsx(j7,{})}),S.jsx(eu,{path:"/layers",element:S.jsx(F7,{})})]})})]})})}):S.jsx(NP,{style:{margin:32}})};lS(document.querySelector("main")).render(m.createElement(V7)); diff --git a/index.html b/index.html index 29fee7d..3014fa7 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Place Name Conflation - +