diff --git a/dist/assets/index-B-th_Rjx.js b/dist/assets/index-Db8TXoDW.js similarity index 83% rename from dist/assets/index-B-th_Rjx.js rename to dist/assets/index-Db8TXoDW.js index 458e18c..575c8ff 100644 --- a/dist/assets/index-B-th_Rjx.js +++ b/dist/assets/index-Db8TXoDW.js @@ -1,4 +1,4 @@ -var KO=e=>{throw TypeError(e)};var Wy=(e,t,r)=>t.has(e)||KO("Cannot "+r);var q=(e,t,r)=>(Wy(e,t,"read from private field"),r?r.call(e):t.get(e)),nt=(e,t,r)=>t.has(e)?KO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ze=(e,t,r,n)=>(Wy(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ct=(e,t,r)=>(Wy(e,t,"access private method"),r);var _p=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return q(e,t,n)}});function BT(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var zT={exports:{}},jm={},UT={exports:{}},vt={};/** +var KO=e=>{throw TypeError(e)};var Wy=(e,t,r)=>t.has(e)||KO("Cannot "+r);var q=(e,t,r)=>(Wy(e,t,"read from private field"),r?r.call(e):t.get(e)),nt=(e,t,r)=>t.has(e)?KO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ze=(e,t,r,n)=>(Wy(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ct=(e,t,r)=>(Wy(e,t,"access private method"),r);var _p=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return q(e,t,n)}});function BT(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var zT={exports:{}},Tm={},UT={exports:{}},vt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var KO=e=>{throw TypeError(e)};var Wy=(e,t,r)=>t.has(e)||KO("Cannot "+r);var q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Uf=Symbol.for("react.element"),IN=Symbol.for("react.portal"),AN=Symbol.for("react.fragment"),MN=Symbol.for("react.strict_mode"),FN=Symbol.for("react.profiler"),LN=Symbol.for("react.provider"),NN=Symbol.for("react.context"),DN=Symbol.for("react.forward_ref"),BN=Symbol.for("react.suspense"),zN=Symbol.for("react.memo"),UN=Symbol.for("react.lazy"),GO=Symbol.iterator;function VN(e){return e===null||typeof e!="object"?null:(e=GO&&e[GO]||e["@@iterator"],typeof e=="function"?e:null)}var VT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},WT=Object.assign,HT={};function cc(e,t,r){this.props=e,this.context=t,this.refs=HT,this.updater=r||VT}cc.prototype.isReactComponent={};cc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qT(){}qT.prototype=cc.prototype;function qw(e,t,r){this.props=e,this.context=t,this.refs=HT,this.updater=r||VT}var Kw=qw.prototype=new qT;Kw.constructor=qw;WT(Kw,cc.prototype);Kw.isPureReactComponent=!0;var QO=Array.isArray,KT=Object.prototype.hasOwnProperty,Gw={current:null},GT={key:!0,ref:!0,__self:!0,__source:!0};function QT(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)KT.call(t,n)&&!GT.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1{throw TypeError(e)};var Wy=(e,t,r)=>t.has(e)||KO("Cannot "+r);var q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var GN=f,QN=Symbol.for("react.element"),XN=Symbol.for("react.fragment"),YN=Object.prototype.hasOwnProperty,JN=GN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZN={key:!0,ref:!0,__self:!0,__source:!0};function YT(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)YN.call(t,n)&&!ZN.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:QN,type:e,key:o,ref:i,props:a,_owner:JN.current}}jm.Fragment=XN;jm.jsx=YT;jm.jsxs=YT;zT.exports=jm;var N=zT.exports,$b={},JT={exports:{}},Yn={},ZT={exports:{}},ej={};/** + */var GN=f,QN=Symbol.for("react.element"),XN=Symbol.for("react.fragment"),YN=Object.prototype.hasOwnProperty,JN=GN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZN={key:!0,ref:!0,__self:!0,__source:!0};function YT(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)YN.call(t,n)&&!ZN.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:QN,type:e,key:o,ref:i,props:a,_owner:JN.current}}Tm.Fragment=XN;Tm.jsx=YT;Tm.jsxs=YT;zT.exports=Tm;var N=zT.exports,$b={},JT={exports:{}},Yn={},ZT={exports:{}},ej={};/** * @license React * scheduler.production.min.js * @@ -30,14 +30,14 @@ var KO=e=>{throw TypeError(e)};var Wy=(e,t,r)=>t.has(e)||KO("Cannot "+r);var q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var tD=f,Qn=eD;function Ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rb=Object.prototype.hasOwnProperty,rD=/^[: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]*$/,YO={},JO={};function nD(e){return Rb.call(JO,e)?!0:Rb.call(YO,e)?!1:rD.test(e)?JO[e]=!0:(YO[e]=!0,!1)}function aD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oD(e,t,r,n){if(t===null||typeof t>"u"||aD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 hn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var qr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qr[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qr[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qr[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qr[e]=new hn(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){qr[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qr[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qr[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qr[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qr[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xw=/[\-:]([a-z])/g;function Yw(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(Xw,Yw);qr[t]=new hn(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(Xw,Yw);qr[t]=new hn(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(Xw,Yw);qr[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qr[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});qr.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qr[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jw(e,t,r,n){var a=qr.hasOwnProperty(t)?qr[t]:null;(a!==null?a.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rb=Object.prototype.hasOwnProperty,rD=/^[: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]*$/,YO={},JO={};function nD(e){return Rb.call(JO,e)?!0:Rb.call(YO,e)?!1:rD.test(e)?JO[e]=!0:(YO[e]=!0,!1)}function aD(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oD(e,t,r,n){if(t===null||typeof t>"u"||aD(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 hn(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var qr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qr[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qr[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qr[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qr[e]=new hn(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){qr[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qr[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qr[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qr[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qr[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xw=/[\-:]([a-z])/g;function Yw(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(Xw,Yw);qr[t]=new hn(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(Xw,Yw);qr[t]=new hn(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(Xw,Yw);qr[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qr[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});qr.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qr[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jw(e,t,r,n){var a=qr.hasOwnProperty(t)?qr[t]:null;(a!==null?a.type!==0:n||!(2s||a[i]!==o[s]){var u=` -`+a[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Ky=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?vd(e):""}function iD(e){switch(e.tag){case 5:return vd(e.type);case 16:return vd("Lazy");case 13:return vd("Suspense");case 19:return vd("SuspenseList");case 0:case 2:case 15:return e=Gy(e.type,!1),e;case 11:return e=Gy(e.type.render,!1),e;case 1:return e=Gy(e.type,!0),e;default:return""}}function Ib(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 Vl:return"Fragment";case Ul:return"Portal";case kb:return"Profiler";case Zw:return"StrictMode";case Tb:return"Suspense";case jb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nj:return(e.displayName||"Context")+".Consumer";case rj:return(e._context.displayName||"Context")+".Provider";case e_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t_:return t=e.displayName||null,t!==null?t:Ib(e.type)||"Memo";case vi:t=e._payload,e=e._init;try{return Ib(e(t))}catch{}}return null}function sD(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 Ib(t);case 8:return t===Zw?"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 Wi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lD(e){var t=oj(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Op(e){e._valueTracker||(e._valueTracker=lD(e))}function ij(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=oj(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Zv(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 Ab(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function eC(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sj(e,t){t=t.checked,t!=null&&Jw(e,"checked",t,!1)}function Mb(e,t){sj(e,t);var r=Wi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Fb(e,t.type,Wi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tC(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Fb(e,t,r){(t!=="number"||Zv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var hd=Array.isArray;function su(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Cp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Sd={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},uD=["Webkit","ms","Moz","O"];Object.keys(Sd).forEach(function(e){uD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sd[t]=Sd[e]})});function dj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Sd.hasOwnProperty(e)&&Sd[e]?(""+t).trim():t+"px"}function fj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=dj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var cD=ir({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 Db(e,t){if(t){if(cD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ce(62))}}function Bb(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 zb=null;function r_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ub=null,lu=null,uu=null;function aC(e){if(e=Hf(e)){if(typeof Ub!="function")throw Error(Ce(280));var t=e.stateNode;t&&(t=Lm(t),Ub(e.stateNode,e.type,t))}}function pj(e){lu?uu?uu.push(e):uu=[e]:lu=e}function vj(){if(lu){var e=lu,t=uu;if(uu=lu=null,aC(e),t)for(e=0;e>>=0,e===0?32:31-(wD(e)/_D|0)|0}var Pp=64,$p=4194304;function md(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 nh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=md(s):(o&=i,o!==0&&(n=md(o)))}else i=r&~a,i!==0?n=md(i):o!==0&&(n=md(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Vf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ma(t),e[t]=r}function CD(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Cd),pC=" ",vC=!1;function Aj(e,t){switch(e){case"keyup":return e6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wl=!1;function r6(e,t){switch(e){case"compositionend":return Mj(t);case"keypress":return t.which!==32?null:(vC=!0,pC);case"textInput":return e=t.data,e===pC&&vC?null:e;default:return null}}function n6(e,t){if(Wl)return e==="compositionend"||!c_&&Aj(e,t)?(e=jj(),cv=s_=Ri=null,Wl=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=yC(r)}}function Dj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bj(){for(var e=window,t=Zv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Zv(e.document)}return t}function d_(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 f6(e){var t=Bj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Dj(r.ownerDocument.documentElement,r)){if(n!==null&&d_(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=bC(r,o);var i=bC(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hl=null,Gb=null,$d=null,Qb=!1;function xC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qb||Hl==null||Hl!==Zv(n)||(n=Hl,"selectionStart"in n&&d_(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$d&&lf($d,n)||($d=n,n=ih(Gb,"onSelect"),0Gl||(e.current=t1[Gl],t1[Gl]=null,Gl--)}function Kt(e,t){Gl++,t1[Gl]=e.current,e.current=t}var Hi={},tn=Qi(Hi),$n=Qi(!1),Js=Hi;function Vu(e,t){var r=e.type.contextTypes;if(!r)return Hi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rn(e){return e=e.childContextTypes,e!=null}function lh(){Jt($n),Jt(tn)}function PC(e,t,r){if(tn.current!==Hi)throw Error(Ce(168));Kt(tn,t),Kt($n,r)}function Qj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ce(108,sD(e)||"Unknown",a));return ir({},r,n)}function uh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,Js=tn.current,Kt(tn,e),Kt($n,$n.current),!0}function $C(e,t,r){var n=e.stateNode;if(!n)throw Error(Ce(169));r?(e=Qj(e,t,Js),n.__reactInternalMemoizedMergedChildContext=e,Jt($n),Jt(tn),Kt(tn,e)):Jt($n),Kt($n,r)}var To=null,Nm=!1,l0=!1;function Xj(e){To===null?To=[e]:To.push(e)}function S6(e){Nm=!0,Xj(e)}function Xi(){if(!l0&&To!==null){l0=!0;var e=0,t=Ft;try{var r=To;for(Ft=1;e>=i,a-=i,Mo=1<<32-Ma(t)+a|r<O?(C=S,S=null):C=S.sibling;var P=p(x,S,b[O],E);if(P===null){S===null&&(S=C);break}e&&S&&P.alternate===null&&t(x,S),y=o(P,y,O),w===null?v=P:w.sibling=P,w=P,S=C}if(O===b.length)return r(x,S),tr&&fs(x,O),v;if(S===null){for(;OO?(C=S,S=null):C=S.sibling;var $=p(x,S,P.value,E);if($===null){S===null&&(S=C);break}e&&S&&$.alternate===null&&t(x,S),y=o($,y,O),w===null?v=$:w.sibling=$,w=$,S=C}if(P.done)return r(x,S),tr&&fs(x,O),v;if(S===null){for(;!P.done;O++,P=b.next())P=d(x,P.value,E),P!==null&&(y=o(P,y,O),w===null?v=P:w.sibling=P,w=P);return tr&&fs(x,O),v}for(S=n(x,S);!P.done;O++,P=b.next())P=h(S,x,O,P.value,E),P!==null&&(e&&P.alternate!==null&&S.delete(P.key===null?O:P.key),y=o(P,y,O),w===null?v=P:w.sibling=P,w=P);return e&&S.forEach(function(T){return t(x,T)}),tr&&fs(x,O),v}function _(x,y,b,E){if(typeof b=="object"&&b!==null&&b.type===Vl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Sp:e:{for(var v=b.key,w=y;w!==null;){if(w.key===v){if(v=b.type,v===Vl){if(w.tag===7){r(x,w.sibling),y=a(w,b.props.children),y.return=x,x=y;break e}}else if(w.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===vi&&TC(v)===w.type){r(x,w.sibling),y=a(w,b.props),y.ref=Qc(x,w,b),y.return=x,x=y;break e}r(x,w);break}else t(x,w);w=w.sibling}b.type===Vl?(y=Hs(b.props.children,x.mode,E,b.key),y.return=x,x=y):(E=yv(b.type,b.key,b.props,null,x.mode,E),E.ref=Qc(x,y,b),E.return=x,x=E)}return i(x);case Ul:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(x,y.sibling),y=a(y,b.children||[]),y.return=x,x=y;break e}else{r(x,y);break}else t(x,y);y=y.sibling}y=m0(b,x.mode,E),y.return=x,x=y}return i(x);case vi:return w=b._init,_(x,y,w(b._payload),E)}if(hd(b))return m(x,y,b,E);if(Wc(b))return g(x,y,b,E);Mp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(x,y.sibling),y=a(y,b),y.return=x,x=y):(r(x,y),y=h0(b,x.mode,E),y.return=x,x=y),i(x)):r(x,y)}return _}var Hu=eI(!0),tI=eI(!1),fh=Qi(null),ph=null,Yl=null,h_=null;function m_(){h_=Yl=ph=null}function g_(e){var t=fh.current;Jt(fh),e._currentValue=t}function a1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function du(e,t){ph=e,h_=Yl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pn=!0),e.firstContext=null)}function va(e){var t=e._currentValue;if(h_!==e)if(e={context:e,memoizedValue:t,next:null},Yl===null){if(ph===null)throw Error(Ce(308));Yl=e,ph.dependencies={lanes:0,firstContext:e}}else Yl=Yl.next=e;return t}var Rs=null;function y_(e){Rs===null?Rs=[e]:Rs.push(e)}function rI(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,y_(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ho(e,n)}function Ho(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var hi=!1;function b_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nI(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 Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Et&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ho(e,r)}return a=n.interleaved,a===null?(t.next=t,y_(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ho(e,r)}function fv(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,a_(e,r)}}function jC(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function vh(e,t,r,n){var a=e.updateQueue;hi=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var d=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,h=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=r,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,d,p):m,p==null)break e;d=ir({},d,p);break e;case 2:hi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=d):c=c.next=h,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(c===null&&(u=d),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);tl|=i,e.lanes=i,e.memoizedState=d}}function IC(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=c0.transition;c0.transition={};try{e(!1),t()}finally{Ft=r,c0.transition=n}}function xI(){return ha().memoizedState}function $6(e,t,r){var n=zi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},wI(e))_I(t,r);else if(r=rI(e,t,r,n),r!==null){var a=pn();Fa(r,e,n,a),EI(r,t,n)}}function R6(e,t,r){var n=zi(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(wI(e))_I(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,La(s,i)){var u=t.interleaved;u===null?(a.next=a,y_(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=rI(e,t,a,n),r!==null&&(a=pn(),Fa(r,e,n,a),EI(r,t,n))}}function wI(e){var t=e.alternate;return e===or||t!==null&&t===or}function _I(e,t){Rd=mh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function EI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,a_(e,r)}}var gh={readContext:va,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},k6={readContext:va,useCallback:function(e,t){return Wa().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:MC,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,vv(4194308,4,hI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return vv(4194308,4,e,t)},useInsertionEffect:function(e,t){return vv(4,2,e,t)},useMemo:function(e,t){var r=Wa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Wa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$6.bind(null,or,e),[n.memoizedState,e]},useRef:function(e){var t=Wa();return e={current:e},t.memoizedState=e},useState:AC,useDebugValue:P_,useDeferredValue:function(e){return Wa().memoizedState=e},useTransition:function(){var e=AC(!1),t=e[0];return e=P6.bind(null,e[1]),Wa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=or,a=Wa();if(tr){if(r===void 0)throw Error(Ce(407));r=r()}else{if(r=t(),Nr===null)throw Error(Ce(349));el&30||sI(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,MC(uI.bind(null,n,o,e),[e]),n.flags|=2048,mf(9,lI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Wa(),t=Nr.identifierPrefix;if(tr){var r=Fo,n=Mo;r=(n&~(1<<32-Ma(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=vf++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Ky=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?vd(e):""}function iD(e){switch(e.tag){case 5:return vd(e.type);case 16:return vd("Lazy");case 13:return vd("Suspense");case 19:return vd("SuspenseList");case 0:case 2:case 15:return e=Gy(e.type,!1),e;case 11:return e=Gy(e.type.render,!1),e;case 1:return e=Gy(e.type,!0),e;default:return""}}function Ib(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 Vl:return"Fragment";case Ul:return"Portal";case kb:return"Profiler";case Zw:return"StrictMode";case Tb:return"Suspense";case jb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nj:return(e.displayName||"Context")+".Consumer";case rj:return(e._context.displayName||"Context")+".Provider";case e_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t_:return t=e.displayName||null,t!==null?t:Ib(e.type)||"Memo";case vi:t=e._payload,e=e._init;try{return Ib(e(t))}catch{}}return null}function sD(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 Ib(t);case 8:return t===Zw?"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 Wi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function oj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lD(e){var t=oj(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Op(e){e._valueTracker||(e._valueTracker=lD(e))}function ij(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=oj(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Jv(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 Ab(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function eC(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sj(e,t){t=t.checked,t!=null&&Jw(e,"checked",t,!1)}function Mb(e,t){sj(e,t);var r=Wi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Fb(e,t.type,Wi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tC(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Fb(e,t,r){(t!=="number"||Jv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var hd=Array.isArray;function su(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Cp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Sd={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},uD=["Webkit","ms","Moz","O"];Object.keys(Sd).forEach(function(e){uD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sd[t]=Sd[e]})});function dj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Sd.hasOwnProperty(e)&&Sd[e]?(""+t).trim():t+"px"}function fj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=dj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var cD=ir({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 Db(e,t){if(t){if(cD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ce(62))}}function Bb(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 zb=null;function r_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ub=null,lu=null,uu=null;function aC(e){if(e=qf(e)){if(typeof Ub!="function")throw Error(Ce(280));var t=e.stateNode;t&&(t=Fm(t),Ub(e.stateNode,e.type,t))}}function pj(e){lu?uu?uu.push(e):uu=[e]:lu=e}function vj(){if(lu){var e=lu,t=uu;if(uu=lu=null,aC(e),t)for(e=0;e>>=0,e===0?32:31-(wD(e)/_D|0)|0}var Pp=64,$p=4194304;function md(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 rh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=md(s):(o&=i,o!==0&&(n=md(o)))}else i=r&~a,i!==0?n=md(i):o!==0&&(n=md(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Wf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ma(t),e[t]=r}function CD(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Cd),pC=" ",vC=!1;function Aj(e,t){switch(e){case"keyup":return e6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wl=!1;function r6(e,t){switch(e){case"compositionend":return Mj(t);case"keypress":return t.which!==32?null:(vC=!0,pC);case"textInput":return e=t.data,e===pC&&vC?null:e;default:return null}}function n6(e,t){if(Wl)return e==="compositionend"||!c_&&Aj(e,t)?(e=jj(),cv=s_=Ri=null,Wl=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=yC(r)}}function Dj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bj(){for(var e=window,t=Jv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Jv(e.document)}return t}function d_(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 f6(e){var t=Bj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Dj(r.ownerDocument.documentElement,r)){if(n!==null&&d_(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=bC(r,o);var i=bC(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hl=null,Gb=null,$d=null,Qb=!1;function xC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Qb||Hl==null||Hl!==Jv(n)||(n=Hl,"selectionStart"in n&&d_(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$d&&uf($d,n)||($d=n,n=oh(Gb,"onSelect"),0Gl||(e.current=t1[Gl],t1[Gl]=null,Gl--)}function Kt(e,t){Gl++,t1[Gl]=e.current,e.current=t}var Hi={},tn=Qi(Hi),$n=Qi(!1),Js=Hi;function Vu(e,t){var r=e.type.contextTypes;if(!r)return Hi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rn(e){return e=e.childContextTypes,e!=null}function sh(){Jt($n),Jt(tn)}function PC(e,t,r){if(tn.current!==Hi)throw Error(Ce(168));Kt(tn,t),Kt($n,r)}function Qj(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Ce(108,sD(e)||"Unknown",a));return ir({},r,n)}function lh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,Js=tn.current,Kt(tn,e),Kt($n,$n.current),!0}function $C(e,t,r){var n=e.stateNode;if(!n)throw Error(Ce(169));r?(e=Qj(e,t,Js),n.__reactInternalMemoizedMergedChildContext=e,Jt($n),Jt(tn),Kt(tn,e)):Jt($n),Kt($n,r)}var To=null,Lm=!1,l0=!1;function Xj(e){To===null?To=[e]:To.push(e)}function S6(e){Lm=!0,Xj(e)}function Xi(){if(!l0&&To!==null){l0=!0;var e=0,t=Ft;try{var r=To;for(Ft=1;e>=i,a-=i,Mo=1<<32-Ma(t)+a|r<O?(C=S,S=null):C=S.sibling;var P=p(x,S,b[O],E);if(P===null){S===null&&(S=C);break}e&&S&&P.alternate===null&&t(x,S),y=o(P,y,O),w===null?v=P:w.sibling=P,w=P,S=C}if(O===b.length)return r(x,S),tr&&fs(x,O),v;if(S===null){for(;OO?(C=S,S=null):C=S.sibling;var $=p(x,S,P.value,E);if($===null){S===null&&(S=C);break}e&&S&&$.alternate===null&&t(x,S),y=o($,y,O),w===null?v=$:w.sibling=$,w=$,S=C}if(P.done)return r(x,S),tr&&fs(x,O),v;if(S===null){for(;!P.done;O++,P=b.next())P=d(x,P.value,E),P!==null&&(y=o(P,y,O),w===null?v=P:w.sibling=P,w=P);return tr&&fs(x,O),v}for(S=n(x,S);!P.done;O++,P=b.next())P=h(S,x,O,P.value,E),P!==null&&(e&&P.alternate!==null&&S.delete(P.key===null?O:P.key),y=o(P,y,O),w===null?v=P:w.sibling=P,w=P);return e&&S.forEach(function(T){return t(x,T)}),tr&&fs(x,O),v}function _(x,y,b,E){if(typeof b=="object"&&b!==null&&b.type===Vl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Sp:e:{for(var v=b.key,w=y;w!==null;){if(w.key===v){if(v=b.type,v===Vl){if(w.tag===7){r(x,w.sibling),y=a(w,b.props.children),y.return=x,x=y;break e}}else if(w.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===vi&&TC(v)===w.type){r(x,w.sibling),y=a(w,b.props),y.ref=Qc(x,w,b),y.return=x,x=y;break e}r(x,w);break}else t(x,w);w=w.sibling}b.type===Vl?(y=Hs(b.props.children,x.mode,E,b.key),y.return=x,x=y):(E=yv(b.type,b.key,b.props,null,x.mode,E),E.ref=Qc(x,y,b),E.return=x,x=E)}return i(x);case Ul:e:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(x,y.sibling),y=a(y,b.children||[]),y.return=x,x=y;break e}else{r(x,y);break}else t(x,y);y=y.sibling}y=m0(b,x.mode,E),y.return=x,x=y}return i(x);case vi:return w=b._init,_(x,y,w(b._payload),E)}if(hd(b))return m(x,y,b,E);if(Wc(b))return g(x,y,b,E);Mp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(x,y.sibling),y=a(y,b),y.return=x,x=y):(r(x,y),y=h0(b,x.mode,E),y.return=x,x=y),i(x)):r(x,y)}return _}var Hu=eI(!0),tI=eI(!1),dh=Qi(null),fh=null,Yl=null,h_=null;function m_(){h_=Yl=fh=null}function g_(e){var t=dh.current;Jt(dh),e._currentValue=t}function a1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function du(e,t){fh=e,h_=Yl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pn=!0),e.firstContext=null)}function va(e){var t=e._currentValue;if(h_!==e)if(e={context:e,memoizedValue:t,next:null},Yl===null){if(fh===null)throw Error(Ce(308));Yl=e,fh.dependencies={lanes:0,firstContext:e}}else Yl=Yl.next=e;return t}var Rs=null;function y_(e){Rs===null?Rs=[e]:Rs.push(e)}function rI(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,y_(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ho(e,n)}function Ho(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var hi=!1;function b_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nI(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 Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Et&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ho(e,r)}return a=n.interleaved,a===null?(t.next=t,y_(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ho(e,r)}function fv(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,a_(e,r)}}function jC(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ph(e,t,r,n){var a=e.updateQueue;hi=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var d=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,h=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(p=t,h=r,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,p=typeof m=="function"?m.call(h,d,p):m,p==null)break e;d=ir({},d,p);break e;case 2:hi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=d):c=c.next=h,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(c===null&&(u=d),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);tl|=i,e.lanes=i,e.memoizedState=d}}function IC(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=c0.transition;c0.transition={};try{e(!1),t()}finally{Ft=r,c0.transition=n}}function xI(){return ha().memoizedState}function $6(e,t,r){var n=zi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},wI(e))_I(t,r);else if(r=rI(e,t,r,n),r!==null){var a=pn();Fa(r,e,n,a),EI(r,t,n)}}function R6(e,t,r){var n=zi(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(wI(e))_I(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,La(s,i)){var u=t.interleaved;u===null?(a.next=a,y_(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=rI(e,t,a,n),r!==null&&(a=pn(),Fa(r,e,n,a),EI(r,t,n))}}function wI(e){var t=e.alternate;return e===or||t!==null&&t===or}function _I(e,t){Rd=hh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function EI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,a_(e,r)}}var mh={readContext:va,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},k6={readContext:va,useCallback:function(e,t){return Wa().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:MC,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,vv(4194308,4,hI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return vv(4194308,4,e,t)},useInsertionEffect:function(e,t){return vv(4,2,e,t)},useMemo:function(e,t){var r=Wa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Wa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$6.bind(null,or,e),[n.memoizedState,e]},useRef:function(e){var t=Wa();return e={current:e},t.memoizedState=e},useState:AC,useDebugValue:P_,useDeferredValue:function(e){return Wa().memoizedState=e},useTransition:function(){var e=AC(!1),t=e[0];return e=P6.bind(null,e[1]),Wa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=or,a=Wa();if(tr){if(r===void 0)throw Error(Ce(407));r=r()}else{if(r=t(),Nr===null)throw Error(Ce(349));el&30||sI(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,MC(uI.bind(null,n,o,e),[e]),n.flags|=2048,gf(9,lI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Wa(),t=Nr.identifierPrefix;if(tr){var r=Fo,n=Mo;r=(n&~(1<<32-Ma(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=hf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[to]=t,e[df]=n,II(e,t,!1,!1),t.stateNode=e;e:{switch(i=Bb(r,n),r){case"dialog":Xt("cancel",e),Xt("close",e),a=n;break;case"iframe":case"object":case"embed":Xt("load",e),a=n;break;case"video":case"audio":for(a=0;aGu&&(t.flags|=128,n=!0,Xc(o,!1),t.lanes=4194304)}else{if(!n)if(e=hh(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!tr)return Xr(t),null}else 2*yr()-o.renderingStartTime>Gu&&r!==1073741824&&(t.flags|=128,n=!0,Xc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=yr(),t.sibling=null,r=ar.current,Kt(ar,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return I_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Un&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ce(156,t.tag))}function N6(e,t){switch(p_(t),t.tag){case 1:return Rn(t.type)&&lh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qu(),Jt($n),Jt(tn),__(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w_(t),null;case 13:if(Jt(ar),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ce(340));Wu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Jt(ar),null;case 4:return qu(),null;case 10:return g_(t.type._context),null;case 22:case 23:return I_(),null;case 24:return null;default:return null}}var Lp=!1,Zr=!1,D6=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function Jl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){cr(e,t,n)}else r.current=null}function p1(e,t,r){try{r()}catch(n){cr(e,t,n)}}var qC=!1;function B6(e,t){if(Xb=ah,e=Bj(),d_(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==r||a!==0&&d.nodeType!==3||(s=i+a),d!==o||n!==0&&d.nodeType!==3||(u=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yb={focusedElem:e,selectionRange:r},ah=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){t=Ue;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,_=m.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?g:Pa(t.type,g),_);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ce(163))}}catch(E){cr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}return m=qC,qC=!1,m}function kd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&p1(t,r,o)}a=a.next}while(a!==n)}}function zm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function v1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function FI(e){var t=e.alternate;t!==null&&(e.alternate=null,FI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[to],delete t[df],delete t[e1],delete t[_6],delete t[E6])),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 LI(e){return e.tag===5||e.tag===3||e.tag===4}function KC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||LI(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 h1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=sh));else if(n!==4&&(e=e.child,e!==null))for(h1(e,t,r),e=e.sibling;e!==null;)h1(e,t,r),e=e.sibling}function m1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(m1(e,t,r),e=e.sibling;e!==null;)m1(e,t,r),e=e.sibling}var Ur=null,Ra=!1;function ui(e,t,r){for(r=r.child;r!==null;)NI(e,t,r),r=r.sibling}function NI(e,t,r){if(io&&typeof io.onCommitFiberUnmount=="function")try{io.onCommitFiberUnmount(Im,r)}catch{}switch(r.tag){case 5:Zr||Jl(r,t);case 6:var n=Ur,a=Ra;Ur=null,ui(e,t,r),Ur=n,Ra=a,Ur!==null&&(Ra?(e=Ur,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ur.removeChild(r.stateNode));break;case 18:Ur!==null&&(Ra?(e=Ur,r=r.stateNode,e.nodeType===8?s0(e.parentNode,r):e.nodeType===1&&s0(e,r),of(e)):s0(Ur,r.stateNode));break;case 4:n=Ur,a=Ra,Ur=r.stateNode.containerInfo,Ra=!0,ui(e,t,r),Ur=n,Ra=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&p1(r,t,i),a=a.next}while(a!==n)}ui(e,t,r);break;case 1:if(!Zr&&(Jl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){cr(r,t,s)}ui(e,t,r);break;case 21:ui(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,ui(e,t,r),Zr=n):ui(e,t,r);break;default:ui(e,t,r)}}function GC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new D6),t.forEach(function(n){var a=Q6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Ca(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*U6(n/1960))-n,10e?16:e,ki===null)var n=!1;else{if(e=ki,ki=null,xh=0,Et&6)throw Error(Ce(331));var a=Et;for(Et|=4,Ue=e.current;Ue!==null;){var o=Ue,i=o.child;if(Ue.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uyr()-T_?Ws(e,0):k_|=r),kn(e,t)}function qI(e,t){t===0&&(e.mode&1?(t=$p,$p<<=1,!($p&130023424)&&($p=4194304)):t=1);var r=pn();e=Ho(e,t),e!==null&&(Vf(e,t,r),kn(e,r))}function G6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),qI(e,r)}function Q6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ce(314))}n!==null&&n.delete(t),qI(e,r)}var KI;KI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||$n.current)Pn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Pn=!1,F6(e,t,r);Pn=!!(e.flags&131072)}else Pn=!1,tr&&t.flags&1048576&&Yj(t,dh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;hv(e,t),e=t.pendingProps;var a=Vu(t,tn.current);du(t,r),a=S_(null,t,n,e,a,r);var o=O_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rn(n)?(o=!0,uh(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,b_(t),a.updater=Bm,t.stateNode=a,a._reactInternals=t,i1(t,n,e,r),t=u1(null,t,n,!0,o,r)):(t.tag=0,tr&&o&&f_(t),dn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(hv(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Y6(n),e=Pa(n,e),a){case 0:t=l1(null,t,n,e,r);break e;case 1:t=VC(null,t,n,e,r);break e;case 11:t=zC(null,t,n,e,r);break e;case 14:t=UC(null,t,n,Pa(n.type,e),r);break e}throw Error(Ce(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),l1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),VC(e,t,n,a,r);case 3:e:{if(kI(t),e===null)throw Error(Ce(387));n=t.pendingProps,o=t.memoizedState,a=o.element,nI(e,t),vh(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ku(Error(Ce(423)),t),t=WC(e,t,n,r,a);break e}else if(n!==a){a=Ku(Error(Ce(424)),t),t=WC(e,t,n,r,a);break e}else for(qn=Ni(t.stateNode.containerInfo.firstChild),Kn=t,tr=!0,Ta=null,r=tI(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wu(),n===a){t=qo(e,t,r);break e}dn(e,t,n,r)}t=t.child}return t;case 5:return aI(t),e===null&&n1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Jb(n,a)?i=null:o!==null&&Jb(n,o)&&(t.flags|=32),RI(e,t),dn(e,t,i,r),t.child;case 6:return e===null&&n1(t),null;case 13:return TI(e,t,r);case 4:return x_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hu(t,null,n,r):dn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),zC(e,t,n,a,r);case 7:return dn(e,t,t.pendingProps,r),t.child;case 8:return dn(e,t,t.pendingProps.children,r),t.child;case 12:return dn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Kt(fh,n._currentValue),n._currentValue=i,o!==null)if(La(o.value,i)){if(o.children===a.children&&!$n.current){t=qo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Do(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),a1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ce(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),a1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}dn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,du(t,r),a=va(a),n=n(a),t.flags|=1,dn(e,t,n,r),t.child;case 14:return n=t.type,a=Pa(n,t.pendingProps),a=Pa(n.type,a),UC(e,t,n,a,r);case 15:return PI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),hv(e,t),t.tag=1,Rn(n)?(e=!0,uh(t)):e=!1,du(t,r),SI(t,n,a),i1(t,n,a,r),u1(null,t,n,!0,e,r);case 19:return jI(e,t,r);case 22:return $I(e,t,r)}throw Error(Ce(156,t.tag))};function GI(e,t){return wj(e,t)}function X6(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e,t,r,n){return new X6(e,t,r,n)}function M_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y6(e){if(typeof e=="function")return M_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===e_)return 11;if(e===t_)return 14}return 2}function Ui(e,t){var r=e.alternate;return r===null?(r=ua(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yv(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")M_(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vl:return Hs(r.children,a,o,t);case Zw:i=8,a|=8;break;case kb:return e=ua(12,r,t,a|2),e.elementType=kb,e.lanes=o,e;case Tb:return e=ua(13,r,t,a),e.elementType=Tb,e.lanes=o,e;case jb:return e=ua(19,r,t,a),e.elementType=jb,e.lanes=o,e;case aj:return Vm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rj:i=10;break e;case nj:i=9;break e;case e_:i=11;break e;case t_:i=14;break e;case vi:i=16,n=null;break e}throw Error(Ce(130,e==null?e:typeof e,""))}return t=ua(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Hs(e,t,r,n){return e=ua(7,e,n,t),e.lanes=r,e}function Vm(e,t,r,n){return e=ua(22,e,n,t),e.elementType=aj,e.lanes=r,e.stateNode={isHidden:!1},e}function h0(e,t,r){return e=ua(6,e,null,t),e.lanes=r,e}function m0(e,t,r){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function J6(e,t,r,n,a){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=Xy(0),this.expirationTimes=Xy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xy(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function F_(e,t,r,n,a,o,i,s,u){return e=new J6(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ua(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},b_(o),e}function Z6(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JI)}catch(e){console.error(e)}}JI(),JT.exports=Yn;var Kf=JT.exports;const yd=pr(Kf),aB=BT({__proto__:null,default:yd},[Kf]);var rP=Kf;$b.createRoot=rP.createRoot,$b.hydrateRoot=rP.hydrateRoot;var B_=f.createContext(void 0);B_.displayName="AuthContext";var Gm={loginUrl:"/login",afterLoginUrl:"/"},Jo=function(){return f.useContext(B_)},pc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qu=typeof window>"u"||"Deno"in globalThis;function na(){}function oB(e,t){return typeof e=="function"?e(t):e}function w1(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pu(e,t){return typeof e=="function"?e(t):e}function ja(e,t){return typeof e=="function"?e(t):e}function nP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==z_(i,t.options))return!1}else if(!yf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function aP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(nl(t.options.mutationKey)!==nl(o))return!1}else if(!yf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function z_(e,t){return((t==null?void 0:t.queryKeyHashFn)||nl)(e)}function nl(e){return JSON.stringify(e,(t,r)=>_1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function yf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!yf(e[r],t[r])):!1}function eA(e,t){if(e===t)return e;const r=oP(e)&&oP(t);if(r||_1(e)&&_1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function E1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?eA(e,t):t}function sB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function lB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var tA=Symbol(),rA=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tA?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,Ls,wi,Ru,kT,uB=(kT=class extends pc{constructor(){super();nt(this,Ls);nt(this,wi);nt(this,Ru);ze(this,Ru,t=>{if(!Qu&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,wi)||this.setEventListener(q(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,wi))==null||t.call(this),ze(this,wi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=q(this,wi))==null||r.call(this),ze(this,wi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){q(this,Ls)!==t&&(ze(this,Ls,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof q(this,Ls)=="boolean"?q(this,Ls):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ls=new WeakMap,wi=new WeakMap,Ru=new WeakMap,kT),U_=new uB,ku,_i,Tu,TT,cB=(TT=class extends pc{constructor(){super();nt(this,ku,!0);nt(this,_i);nt(this,Tu);ze(this,Tu,t=>{if(!Qu&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){q(this,_i)||this.setEventListener(q(this,Tu))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,_i))==null||t.call(this),ze(this,_i,void 0))}setEventListener(t){var r;ze(this,Tu,t),(r=q(this,_i))==null||r.call(this),ze(this,_i,t(this.setOnline.bind(this)))}setOnline(t){q(this,ku)!==t&&(ze(this,ku,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return q(this,ku)}},ku=new WeakMap,_i=new WeakMap,Tu=new WeakMap,TT),Sh=new cB;function dB(e){return Math.min(1e3*2**e,3e4)}function nA(e){return(e??"online")==="online"?Sh.isOnline():!0}var aA=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function g0(e){return e instanceof aA}function oA(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,y)=>{o=x,i=y}),u=x=>{var y;n||(m(new aA(x)),(y=e.abort)==null||y.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>U_.isFocused()&&(e.networkMode==="always"||Sh.isOnline())&&e.canRun(),p=()=>nA(e.networkMode)&&e.canRun(),h=x=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,x),a==null||a(),o(x))},m=x=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,x),a==null||a(),i(x))},g=()=>new Promise(x=>{var y;a=b=>{(n||d())&&x(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),_=()=>{if(n)return;let x;const y=r===0?e.initialPromise:void 0;try{x=y??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(h).catch(b=>{var O;if(n)return;const E=e.retry??(Qu?0:3),v=e.retryDelay??dB,w=typeof v=="function"?v(r,b):v,S=E===!0||typeof E=="number"&&rd()?void 0:g()).then(()=>{t?m(b):_()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?_():g().then(_),s)}}function fB(){let e=[],t=0,r=p=>{p()},n=p=>{p()},a=p=>setTimeout(p,0);const o=p=>{a=p},i=p=>{let h;t++;try{h=p()}finally{t--,t||l()}return h},s=p=>{t?e.push(p):a(()=>{r(p)})},u=p=>(...h)=>{s(()=>{p(...h)})},l=()=>{const p=e;e=[],p.length&&a(()=>{n(()=>{p.forEach(h=>{r(h)})})})};return{batch:i,batchCalls:u,schedule:s,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p},setScheduler:o}}var br=fB(),Ns,jT,iA=(jT=class{constructor(){nt(this,Ns)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),w1(this.gcTime)&&ze(this,Ns,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qu?1/0:5*60*1e3))}clearGcTimeout(){q(this,Ns)&&(clearTimeout(q(this,Ns)),ze(this,Ns,void 0))}},Ns=new WeakMap,jT),ju,Iu,ra,Jr,Nf,Ds,$a,$o,IT,pB=(IT=class extends iA{constructor(t){super();nt(this,$a);nt(this,ju);nt(this,Iu);nt(this,ra);nt(this,Jr);nt(this,Nf);nt(this,Ds);ze(this,Ds,!1),ze(this,Nf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,ra,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,ju,t.state||vB(this.options)),this.state=q(this,ju),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=q(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...q(this,Nf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,ra).remove(this)}setData(t,r){const n=E1(this.state.data,t,this.options);return ct(this,$a,$o).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ct(this,$a,$o).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=q(this,Jr))==null?void 0:n.promise;return(a=q(this,Jr))==null||a.cancel(t),r?r.then(na).catch(na):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,ju))}isActive(){return this.observers.some(t=>ja(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ZI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),q(this,ra).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(q(this,Jr)&&(q(this,Ds)?q(this,Jr).cancel({revert:!0}):q(this,Jr).cancelRetry()),this.scheduleGc()),q(this,ra).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ct(this,$a,$o).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,Jr))return q(this,Jr).continueRetry(),q(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,a=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(ze(this,Ds,!0),n.signal)})},o=()=>{const d=rA(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Ds,!1),this.options.persister?this.options.persister(d,p,this):d(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,Iu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&ct(this,$a,$o).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=d=>{var p,h,m,g;g0(d)&&d.silent||ct(this,$a,$o).call(this,{type:"error",error:d}),g0(d)||((h=(p=q(this,ra).config).onError)==null||h.call(p,d,this),(g=(m=q(this,ra).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,oA({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var p,h,m,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(h=(p=q(this,ra).config).onSuccess)==null||h.call(p,d,this),(g=(m=q(this,ra).config).onSettled)==null||g.call(m,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,p)=>{ct(this,$a,$o).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{ct(this,$a,$o).call(this,{type:"pause"})},onContinue:()=>{ct(this,$a,$o).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),q(this,Jr).start()}},ju=new WeakMap,Iu=new WeakMap,ra=new WeakMap,Jr=new WeakMap,Nf=new WeakMap,Ds=new WeakMap,$a=new WeakSet,$o=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...sA(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return g0(a)&&a.revert&&q(this,Iu)?{...q(this,Iu),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),br.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),q(this,ra).notify({query:this,type:"updated",action:t})})},IT);function sA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var qa,AT,hB=(AT=class extends pc{constructor(t={}){super();nt(this,qa);this.config=t,ze(this,qa,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??z_(a,r);let i=this.get(o);return i||(i=new pB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){q(this,qa).has(t.queryHash)||(q(this,qa).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=q(this,qa).get(t.queryHash);r&&(t.destroy(),r===t&&q(this,qa).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){br.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return q(this,qa).get(t)}getAll(){return[...q(this,qa).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>nP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>nP(t,n)):r}notify(t){br.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){br.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){br.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qa=new WeakMap,AT),Ka,ln,Bs,Ga,fi,MT,mB=(MT=class extends iA{constructor(t){super();nt(this,Ga);nt(this,Ka);nt(this,ln);nt(this,Bs);this.mutationId=t.mutationId,ze(this,ln,t.mutationCache),ze(this,Ka,[]),this.state=t.state||lA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){q(this,Ka).includes(t)||(q(this,Ka).push(t),this.clearGcTimeout(),q(this,ln).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ka,q(this,Ka).filter(r=>r!==t)),this.scheduleGc(),q(this,ln).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){q(this,Ka).length||(this.state.status==="pending"?this.scheduleGc():q(this,ln).remove(this))}continue(){var t;return((t=q(this,Bs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,d,p,h,m,g,_,x,y,b,E,v,w,S;ze(this,Bs,oA({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,C)=>{ct(this,Ga,fi).call(this,{type:"failed",failureCount:O,error:C})},onPause:()=>{ct(this,Ga,fi).call(this,{type:"pause"})},onContinue:()=>{ct(this,Ga,fi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,ln).canRun(this)}));const r=this.state.status==="pending",n=!q(this,Bs).canStart();try{if(!r){ct(this,Ga,fi).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=q(this,ln).config).onMutate)==null?void 0:o.call(a,t,this));const C=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));C!==this.state.context&&ct(this,Ga,fi).call(this,{type:"pending",context:C,variables:t,isPaused:n})}const O=await q(this,Bs).start();return await((l=(u=q(this,ln).config).onSuccess)==null?void 0:l.call(u,O,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,O,t,this.state.context)),await((h=(p=q(this,ln).config).onSettled)==null?void 0:h.call(p,O,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,O,null,t,this.state.context)),ct(this,Ga,fi).call(this,{type:"success",data:O}),O}catch(O){try{throw await((x=(_=q(this,ln).config).onError)==null?void 0:x.call(_,O,t,this.state.context,this)),await((b=(y=this.options).onError)==null?void 0:b.call(y,O,t,this.state.context)),await((v=(E=q(this,ln).config).onSettled)==null?void 0:v.call(E,void 0,O,this.state.variables,this.state.context,this)),await((S=(w=this.options).onSettled)==null?void 0:S.call(w,void 0,O,t,this.state.context)),O}finally{ct(this,Ga,fi).call(this,{type:"error",error:O})}}finally{q(this,ln).runNext(this)}}},Ka=new WeakMap,ln=new WeakMap,Bs=new WeakMap,Ga=new WeakSet,fi=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),br.batch(()=>{q(this,Ka).forEach(n=>{n.onMutationUpdate(t)}),q(this,ln).notify({mutation:this,type:"updated",action:t})})},MT);function lA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bn,Df,FT,gB=(FT=class extends pc{constructor(t={}){super();nt(this,Bn);nt(this,Df);this.config=t,ze(this,Bn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new mB({mutationCache:this,mutationId:++_p(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Bp(t),n=q(this,Bn).get(r)??[];n.push(t),q(this,Bn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Bp(t);if(q(this,Bn).has(r)){const a=(n=q(this,Bn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?q(this,Bn).delete(r):q(this,Bn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=q(this,Bn).get(Bp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=q(this,Bn).get(Bp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){br.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...q(this,Bn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>aP(r,n))}findAll(t={}){return this.getAll().filter(r=>aP(t,r))}notify(t){br.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return br.batch(()=>Promise.all(t.map(r=>r.continue().catch(na))))}},Bn=new WeakMap,Df=new WeakMap,FT);function Bp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function yB(e){return{onFetch:(t,r)=>{const n=async()=>{var m,g,_,x,y;const a=t.options,o=(_=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,i=((x=t.state.data)==null?void 0:x.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[],u={pages:[],pageParams:[]};let l=!1;const c=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=rA(t.options,t.fetchOptions),p=async(b,E,v)=>{if(l)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const w={queryKey:t.queryKey,pageParam:E,direction:v?"backward":"forward",meta:t.options.meta};c(w);const S=await d(w),{maxPages:O}=t.options,C=v?lB:sB;return{pages:C(b.pages,S,O),pageParams:C(b.pageParams,E,O)}};let h;if(o&&i.length){const b=o==="backward",E=b?bB:sP,v={pages:i,pageParams:s},w=E(a,v);h=await p(v,w,b)}else{h=await p(u,s[0]??a.initialPageParam);const b=e??i.length;for(let E=1;E{var a,o;return(o=(a=t.options).persister)==null?void 0:o.call(a,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function sP(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function bB(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var ur,Ei,Si,Au,Mu,Oi,Fu,Lu,LT,xB=(LT=class{constructor(e={}){nt(this,ur);nt(this,Ei);nt(this,Si);nt(this,Au);nt(this,Mu);nt(this,Oi);nt(this,Fu);nt(this,Lu);ze(this,ur,e.queryCache||new hB),ze(this,Ei,e.mutationCache||new gB),ze(this,Si,e.defaultOptions||{}),ze(this,Au,new Map),ze(this,Mu,new Map),ze(this,Oi,0)}mount(){_p(this,Oi)._++,q(this,Oi)===1&&(ze(this,Fu,U_.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,ur).onFocus())})),ze(this,Lu,Sh.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,ur).onOnline())})))}unmount(){var e,t;_p(this,Oi)._--,q(this,Oi)===0&&((e=q(this,Fu))==null||e.call(this),ze(this,Fu,void 0),(t=q(this,Lu))==null||t.call(this),ze(this,Lu,void 0))}isFetching(e){return q(this,ur).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,Ei).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=q(this,ur).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=q(this,ur).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(pu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return q(this,ur).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=q(this,ur).get(n.queryHash),o=a==null?void 0:a.state.data,i=oB(t,o);if(i!==void 0)return q(this,ur).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return br.batch(()=>q(this,ur).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=q(this,ur).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=q(this,ur);br.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=q(this,ur),n={type:"active",...e};return br.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=br.batch(()=>q(this,ur).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(na).catch(na)}invalidateQueries(e={},t={}){return br.batch(()=>{if(q(this,ur).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=br.batch(()=>q(this,ur).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(na)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(na)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=q(this,ur).build(this,t);return r.isStaleByTime(pu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(na).catch(na)}fetchInfiniteQuery(e){return e.behavior=yB(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(na).catch(na)}resumePausedMutations(){return Sh.isOnline()?q(this,Ei).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,ur)}getMutationCache(){return q(this,Ei)}getDefaultOptions(){return q(this,Si)}setDefaultOptions(e){ze(this,Si,e)}setQueryDefaults(e,t){q(this,Au).set(nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...q(this,Au).values()];let r={};return t.forEach(n=>{yf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){q(this,Mu).set(nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...q(this,Mu).values()];let r={};return t.forEach(n=>{yf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...q(this,Si).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=z_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===tA&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,Si).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,ur).clear(),q(this,Ei).clear()}},ur=new WeakMap,Ei=new WeakMap,Si=new WeakMap,Au=new WeakMap,Mu=new WeakMap,Oi=new WeakMap,Fu=new WeakMap,Lu=new WeakMap,LT),En,bt,Bf,un,zs,Nu,Qa,zf,Du,Bu,Us,Vs,Ci,zu,Mt,bd,S1,O1,C1,P1,$1,R1,k1,uA,NT,wB=(NT=class extends pc{constructor(t,r){super();nt(this,Mt);nt(this,En);nt(this,bt);nt(this,Bf);nt(this,un);nt(this,zs);nt(this,Nu);nt(this,Qa);nt(this,zf);nt(this,Du);nt(this,Bu);nt(this,Us);nt(this,Vs);nt(this,Ci);nt(this,zu,new Set);this.options=r,ze(this,En,t),ze(this,Qa,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,bt).addObserver(this),lP(q(this,bt),this.options)?ct(this,Mt,bd).call(this):this.updateResult(),ct(this,Mt,P1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return T1(q(this,bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return T1(q(this,bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ct(this,Mt,$1).call(this),ct(this,Mt,R1).call(this),q(this,bt).removeObserver(this)}setOptions(t,r){const n=this.options,a=q(this,bt);if(this.options=q(this,En).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ja(this.options.enabled,q(this,bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ct(this,Mt,k1).call(this),q(this,bt).setOptions(this.options),n._defaulted&&!Eh(this.options,n)&&q(this,En).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,bt),observer:this});const o=this.hasListeners();o&&uP(q(this,bt),a,this.options,n)&&ct(this,Mt,bd).call(this),this.updateResult(r),o&&(q(this,bt)!==a||ja(this.options.enabled,q(this,bt))!==ja(n.enabled,q(this,bt))||pu(this.options.staleTime,q(this,bt))!==pu(n.staleTime,q(this,bt)))&&ct(this,Mt,S1).call(this);const i=ct(this,Mt,O1).call(this);o&&(q(this,bt)!==a||ja(this.options.enabled,q(this,bt))!==ja(n.enabled,q(this,bt))||i!==q(this,Ci))&&ct(this,Mt,C1).call(this,i)}getOptimisticResult(t){const r=q(this,En).getQueryCache().build(q(this,En),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,un,n),ze(this,Nu,this.options),ze(this,zs,q(this,bt).state)),n}getCurrentResult(){return q(this,un)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){q(this,zu).add(t)}getCurrentQuery(){return q(this,bt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=q(this,En).defaultQueryOptions(t),n=q(this,En).getQueryCache().build(q(this,En),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ct(this,Mt,bd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,un)))}createResult(t,r){var S;const n=q(this,bt),a=this.options,o=q(this,un),i=q(this,zs),s=q(this,Nu),l=t!==n?t.state:q(this,Bf),{state:c}=t;let d={...c},p=!1,h;if(r._optimisticResults){const O=this.hasListeners(),C=!O&&lP(t,r),P=O&&uP(t,n,r,a);(C||P)&&(d={...d,...sA(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:_}=d;if(r.select&&d.data!==void 0)if(o&&d.data===(i==null?void 0:i.data)&&r.select===q(this,zf))h=q(this,Du);else try{ze(this,zf,r.select),h=r.select(d.data),h=E1(o==null?void 0:o.data,h,r),ze(this,Du,h),ze(this,Qa,null)}catch(O){ze(this,Qa,O)}else h=d.data;if(r.placeholderData!==void 0&&h===void 0&&_==="pending"){let O;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=o.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData((S=q(this,Bu))==null?void 0:S.state.data,q(this,Bu)):r.placeholderData,r.select&&O!==void 0)try{O=r.select(O),ze(this,Qa,null)}catch(C){ze(this,Qa,C)}O!==void 0&&(_="success",h=E1(o==null?void 0:o.data,O,r),p=!0)}q(this,Qa)&&(m=q(this,Qa),h=q(this,Du),g=Date.now(),_="error");const x=d.fetchStatus==="fetching",y=_==="pending",b=_==="error",E=y&&x,v=h!==void 0;return{status:_,fetchStatus:d.fetchStatus,isPending:y,isSuccess:_==="success",isError:b,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!y,isLoadingError:b&&!v,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&v,isStale:V_(t,r),refetch:this.refetch}}updateResult(t){const r=q(this,un),n=this.createResult(q(this,bt),this.options);if(ze(this,zs,q(this,bt).state),ze(this,Nu,this.options),q(this,zs).data!==void 0&&ze(this,Bu,q(this,bt)),Eh(n,r))return;ze(this,un,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!q(this,zu).size)return!0;const u=new Set(s??q(this,zu));return this.options.throwOnError&&u.add("error"),Object.keys(q(this,un)).some(l=>{const c=l;return q(this,un)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),ct(this,Mt,uA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ct(this,Mt,P1).call(this)}},En=new WeakMap,bt=new WeakMap,Bf=new WeakMap,un=new WeakMap,zs=new WeakMap,Nu=new WeakMap,Qa=new WeakMap,zf=new WeakMap,Du=new WeakMap,Bu=new WeakMap,Us=new WeakMap,Vs=new WeakMap,Ci=new WeakMap,zu=new WeakMap,Mt=new WeakSet,bd=function(t){ct(this,Mt,k1).call(this);let r=q(this,bt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(na)),r},S1=function(){ct(this,Mt,$1).call(this);const t=pu(this.options.staleTime,q(this,bt));if(Qu||q(this,un).isStale||!w1(t))return;const n=ZI(q(this,un).dataUpdatedAt,t)+1;ze(this,Us,setTimeout(()=>{q(this,un).isStale||this.updateResult()},n))},O1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,bt)):this.options.refetchInterval)??!1},C1=function(t){ct(this,Mt,R1).call(this),ze(this,Ci,t),!(Qu||ja(this.options.enabled,q(this,bt))===!1||!w1(q(this,Ci))||q(this,Ci)===0)&&ze(this,Vs,setInterval(()=>{(this.options.refetchIntervalInBackground||U_.isFocused())&&ct(this,Mt,bd).call(this)},q(this,Ci)))},P1=function(){ct(this,Mt,S1).call(this),ct(this,Mt,C1).call(this,ct(this,Mt,O1).call(this))},$1=function(){q(this,Us)&&(clearTimeout(q(this,Us)),ze(this,Us,void 0))},R1=function(){q(this,Vs)&&(clearInterval(q(this,Vs)),ze(this,Vs,void 0))},k1=function(){const t=q(this,En).getQueryCache().build(q(this,En),this.options);if(t===q(this,bt))return;const r=q(this,bt);ze(this,bt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},uA=function(t){br.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(q(this,un))}),q(this,En).getQueryCache().notify({query:q(this,bt),type:"observerResultsUpdated"})})},NT);function _B(e,t){return ja(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lP(e,t){return _B(e,t)||e.state.data!==void 0&&T1(e,t,t.refetchOnMount)}function T1(e,t,r){if(ja(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&V_(e,t)}return!1}function uP(e,t,r,n){return(e!==t||ja(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&V_(e,r)}function V_(e,t){return ja(t.enabled,e)!==!1&&e.isStaleByTime(pu(t.staleTime,e))}function EB(e,t){return!Eh(e.getCurrentResult(),t)}var Pi,$i,Sn,Io,Uo,bv,j1,DT,SB=(DT=class extends pc{constructor(r,n){super();nt(this,Uo);nt(this,Pi);nt(this,$i);nt(this,Sn);nt(this,Io);ze(this,Pi,r),this.setOptions(n),this.bindMethods(),ct(this,Uo,bv).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=q(this,Pi).defaultMutationOptions(r),Eh(this.options,n)||q(this,Pi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&nl(n.mutationKey)!==nl(this.options.mutationKey)?this.reset():((a=q(this,Sn))==null?void 0:a.state.status)==="pending"&&q(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=q(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){ct(this,Uo,bv).call(this),ct(this,Uo,j1).call(this,r)}getCurrentResult(){return q(this,$i)}reset(){var r;(r=q(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),ct(this,Uo,bv).call(this),ct(this,Uo,j1).call(this)}mutate(r,n){var a;return ze(this,Io,n),(a=q(this,Sn))==null||a.removeObserver(this),ze(this,Sn,q(this,Pi).getMutationCache().build(q(this,Pi),this.options)),q(this,Sn).addObserver(this),q(this,Sn).execute(r)}},Pi=new WeakMap,$i=new WeakMap,Sn=new WeakMap,Io=new WeakMap,Uo=new WeakSet,bv=function(){var n;const r=((n=q(this,Sn))==null?void 0:n.state)??lA();ze(this,$i,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},j1=function(r){br.batch(()=>{var n,a,o,i,s,u,l,c;if(q(this,Io)&&this.hasListeners()){const d=q(this,$i).variables,p=q(this,$i).context;(r==null?void 0:r.type)==="success"?((a=(n=q(this,Io)).onSuccess)==null||a.call(n,r.data,d,p),(i=(o=q(this,Io)).onSettled)==null||i.call(o,r.data,null,d,p)):(r==null?void 0:r.type)==="error"&&((u=(s=q(this,Io)).onError)==null||u.call(s,r.error,d,p),(c=(l=q(this,Io)).onSettled)==null||c.call(l,void 0,r.error,d,p))}this.listeners.forEach(d=>{d(q(this,$i))})})},DT),cA=f.createContext(void 0),ho=e=>{const t=f.useContext(cA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OB=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(cA.Provider,{value:e,children:t})),dA=f.createContext(!1),CB=()=>f.useContext(dA);dA.Provider;function PB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=f.createContext(PB()),RB=()=>f.useContext($B);function fA(e,t){return typeof e=="function"?e(...t):!!e}function kB(){}var TB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},jB=e=>{f.useEffect(()=>{e.clearReset()},[e])},IB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&fA(r,[e.error,n]),AB=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},MB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function LB(e,t,r){const n=ho(),a=CB(),o=RB(),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",AB(i),TB(i,o),jB(o);const[s]=f.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(f.useSyncExternalStore(f.useCallback(l=>{const c=a?()=>{}:s.subscribe(br.batchCalls(l));return s.updateResult(),c},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),MB(i,u))throw FB(i,s,o);if(IB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return i.notifyOnChangeProps?u:s.trackResult(u)}function vc(e,t){return LB(e,wB)}function Qm(e,t){const r=ho(),[n]=f.useState(()=>new SB(r,e));f.useEffect(()=>{n.setOptions(e)},[n,e]);const a=f.useSyncExternalStore(f.useCallback(i=>n.subscribe(br.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=f.useCallback((i,s)=>{n.mutate(i,s).catch(kB)},[n]);if(a.error&&fA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function p0(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function s1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var I6=typeof WeakMap=="function"?WeakMap:Map;function OI(e,t,r){r=Do(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){yh||(yh=!0,g1=n),s1(e,t)},r}function CI(e,t,r){r=Do(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){s1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){s1(e,t),typeof n!="function"&&(Bi===null?Bi=new Set([this]):Bi.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function NC(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new I6;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=K6.bind(null,e,t,r),t.then(e,e))}function DC(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 BC(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Do(-1,1),t.tag=2,Di(r,t,1))),r.lanes|=1),e)}var A6=Yo.ReactCurrentOwner,Pn=!1;function dn(e,t,r,n){t.child=e===null?tI(t,null,r,n):Hu(t,e.child,r,n)}function zC(e,t,r,n,a){r=r.render;var o=t.ref;return du(t,a),n=S_(e,t,r,n,o,a),r=O_(),e!==null&&!Pn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,qo(e,t,a)):(tr&&r&&f_(t),t.flags|=1,dn(e,t,n,a),t.child)}function UC(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!M_(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,PI(e,t,o,n,a)):(e=yv(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:uf,r(i,n)&&e.ref===t.ref)return qo(e,t,a)}return t.flags|=1,e=Ui(o,n),e.ref=t.ref,e.return=t,t.child=e}function PI(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(uf(o,n)&&e.ref===t.ref)if(Pn=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(Pn=!0);else return t.lanes=e.lanes,qo(e,t,a)}return l1(e,t,r,n,a)}function $I(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Kt(Zl,Un),Un|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Kt(Zl,Un),Un|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Kt(Zl,Un),Un|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Kt(Zl,Un),Un|=n;return dn(e,t,a,r),t.child}function RI(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function l1(e,t,r,n,a){var o=Rn(r)?Js:tn.current;return o=Vu(t,o),du(t,a),r=S_(e,t,r,n,o,a),n=O_(),e!==null&&!Pn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,qo(e,t,a)):(tr&&n&&f_(t),t.flags|=1,dn(e,t,r,a),t.child)}function VC(e,t,r,n,a){if(Rn(r)){var o=!0;lh(t)}else o=!1;if(du(t,a),t.stateNode===null)hv(e,t),SI(t,r,n),i1(t,r,n,a),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,l=r.contextType;typeof l=="object"&&l!==null?l=va(l):(l=Rn(r)?Js:tn.current,l=Vu(t,l));var c=r.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||u!==l)&&LC(t,i,n,l),hi=!1;var p=t.memoizedState;i.state=p,ph(t,n,i,a),u=t.memoizedState,s!==n||p!==u||$n.current||hi?(typeof c=="function"&&(o1(t,r,c,n),u=t.memoizedState),(s=hi||FC(t,r,s,n,p,u,l))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=l,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,nI(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Pa(t.type,s),i.props=l,d=t.pendingProps,p=i.context,u=r.contextType,typeof u=="object"&&u!==null?u=va(u):(u=Rn(r)?Js:tn.current,u=Vu(t,u));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||p!==u)&&LC(t,i,n,u),hi=!1,p=t.memoizedState,i.state=p,ph(t,n,i,a);var m=t.memoizedState;s!==d||p!==m||$n.current||hi?(typeof h=="function"&&(o1(t,r,h,n),m=t.memoizedState),(l=hi||FC(t,r,l,n,p,m,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,m,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,m,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=u,n=l):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return u1(e,t,r,n,o,a)}function u1(e,t,r,n,a,o){RI(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return a&&$C(t,r,!1),qo(e,t,o);n=t.stateNode,A6.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Hu(t,e.child,null,o),t.child=Hu(t,null,s,o)):dn(e,t,s,o),t.memoizedState=n.state,a&&$C(t,r,!0),t.child}function kI(e){var t=e.stateNode;t.pendingContext?PC(e,t.pendingContext,t.pendingContext!==t.context):t.context&&PC(e,t.context,!1),x_(e,t.containerInfo)}function WC(e,t,r,n,a){return Wu(),v_(a),t.flags|=256,dn(e,t,r,n),t.child}var c1={dehydrated:null,treeContext:null,retryLane:0};function d1(e){return{baseLanes:e,cachePool:null,transitions:null}}function TI(e,t,r){var n=t.pendingProps,a=ar.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Kt(ar,a&1),e===null)return n1(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):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Um(i,n,0,null),e=Hs(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=d1(r),t.memoizedState=c1,e):$_(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return M6(e,t,i,n,s,a,r);if(o){o=n.fallback,i=t.mode,a=e.child,s=a.sibling;var u={mode:"hidden",children:n.children};return!(i&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ui(a,u),n.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=Ui(s,o):(o=Hs(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?d1(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=c1,n}return o=e.child,e=o.sibling,n=Ui(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function $_(e,t){return t=Um({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Fp(e,t,r,n){return n!==null&&v_(n),Hu(t,e.child,null,r),e=$_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function M6(e,t,r,n,a,o,i){if(r)return t.flags&256?(t.flags&=-257,n=p0(Error(Ce(422))),Fp(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=Um({mode:"visible",children:n.children},a,0,null),o=Hs(o,a,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Hu(t,e.child,null,i),t.child.memoizedState=d1(i),t.memoizedState=c1,o);if(!(t.mode&1))return Fp(e,t,i,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(Ce(419)),n=p0(o,n,void 0),Fp(e,t,i,n)}if(s=(i&e.childLanes)!==0,Pn||s){if(n=Nr,n!==null){switch(i&-i){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ho(e,a),Fa(n,e,a,-1))}return A_(),n=p0(Error(Ce(421))),Fp(e,t,i,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=G6.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,qn=Ni(a.nextSibling),Kn=t,tr=!0,Ta=null,e!==null&&(ia[sa++]=Mo,ia[sa++]=Fo,ia[sa++]=Zs,Mo=e.id,Fo=e.overflow,Zs=t),t=$_(t,n.children),t.flags|=4096,t)}function HC(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),a1(e.return,t,r)}function v0(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function jI(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(dn(e,t,n.children,r),n=ar.current,n&2)n=n&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&&HC(e,r,t);else if(e.tag===19)HC(e,r,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}n&=1}if(Kt(ar,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&vh(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),v0(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&vh(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}v0(t,!0,r,null,o);break;case"together":v0(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ce(153));if(t.child!==null){for(e=t.child,r=Ui(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ui(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function F6(e,t,r){switch(t.tag){case 3:kI(t),Wu();break;case 5:aI(t);break;case 1:Rn(t.type)&&lh(t);break;case 4:x_(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Kt(dh,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Kt(ar,ar.current&1),t.flags|=128,null):r&t.child.childLanes?TI(e,t,r):(Kt(ar,ar.current&1),e=qo(e,t,r),e!==null?e.sibling:null);Kt(ar,ar.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return jI(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Kt(ar,ar.current),n)break;return null;case 22:case 23:return t.lanes=0,$I(e,t,r)}return qo(e,t,r)}var II,f1,AI,MI;II=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};f1=function(){};AI=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,ks(so.current);var o=null;switch(r){case"input":a=Ab(e,a),n=Ab(e,n),o=[];break;case"select":a=ir({},a,{value:void 0}),n=ir({},n,{value:void 0}),o=[];break;case"textarea":a=Lb(e,a),n=Lb(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ih)}Db(r,n);var i;r=null;for(l in a)if(!n.hasOwnProperty(l)&&a.hasOwnProperty(l)&&a[l]!=null)if(l==="style"){var s=a[l];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(tf.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(s=a!=null?a[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(tf.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Xt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};MI=function(e,t,r,n){r!==n&&(t.flags|=4)};function Xc(e,t){if(!tr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Xr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function L6(e,t,r){var n=t.pendingProps;switch(p_(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:return Rn(t.type)&&sh(),Xr(t),null;case 3:return n=t.stateNode,qu(),Jt($n),Jt(tn),__(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ap(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ta!==null&&(x1(Ta),Ta=null))),f1(e,t),Xr(t),null;case 5:w_(t);var a=ks(vf.current);if(r=t.type,e!==null&&t.stateNode!=null)AI(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ce(166));return Xr(t),null}if(e=ks(so.current),Ap(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[to]=t,n[ff]=o,e=(t.mode&1)!==0,r){case"dialog":Xt("cancel",n),Xt("close",n);break;case"iframe":case"object":case"embed":Xt("load",n);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[to]=t,e[ff]=n,II(e,t,!1,!1),t.stateNode=e;e:{switch(i=Bb(r,n),r){case"dialog":Xt("cancel",e),Xt("close",e),a=n;break;case"iframe":case"object":case"embed":Xt("load",e),a=n;break;case"video":case"audio":for(a=0;aGu&&(t.flags|=128,n=!0,Xc(o,!1),t.lanes=4194304)}else{if(!n)if(e=vh(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!tr)return Xr(t),null}else 2*yr()-o.renderingStartTime>Gu&&r!==1073741824&&(t.flags|=128,n=!0,Xc(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=yr(),t.sibling=null,r=ar.current,Kt(ar,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return I_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Un&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ce(156,t.tag))}function N6(e,t){switch(p_(t),t.tag){case 1:return Rn(t.type)&&sh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qu(),Jt($n),Jt(tn),__(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w_(t),null;case 13:if(Jt(ar),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ce(340));Wu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Jt(ar),null;case 4:return qu(),null;case 10:return g_(t.type._context),null;case 22:case 23:return I_(),null;case 24:return null;default:return null}}var Lp=!1,Zr=!1,D6=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function Jl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){cr(e,t,n)}else r.current=null}function p1(e,t,r){try{r()}catch(n){cr(e,t,n)}}var qC=!1;function B6(e,t){if(Xb=nh,e=Bj(),d_(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==r||a!==0&&d.nodeType!==3||(s=i+a),d!==o||n!==0&&d.nodeType!==3||(u=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yb={focusedElem:e,selectionRange:r},nh=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){t=Ue;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,_=m.memoizedState,x=t.stateNode,y=x.getSnapshotBeforeUpdate(t.elementType===t.type?g:Pa(t.type,g),_);x.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ce(163))}}catch(E){cr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}return m=qC,qC=!1,m}function kd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&p1(t,r,o)}a=a.next}while(a!==n)}}function Bm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function v1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function FI(e){var t=e.alternate;t!==null&&(e.alternate=null,FI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[to],delete t[ff],delete t[e1],delete t[_6],delete t[E6])),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 LI(e){return e.tag===5||e.tag===3||e.tag===4}function KC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||LI(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 h1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ih));else if(n!==4&&(e=e.child,e!==null))for(h1(e,t,r),e=e.sibling;e!==null;)h1(e,t,r),e=e.sibling}function m1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(m1(e,t,r),e=e.sibling;e!==null;)m1(e,t,r),e=e.sibling}var Ur=null,Ra=!1;function ui(e,t,r){for(r=r.child;r!==null;)NI(e,t,r),r=r.sibling}function NI(e,t,r){if(io&&typeof io.onCommitFiberUnmount=="function")try{io.onCommitFiberUnmount(jm,r)}catch{}switch(r.tag){case 5:Zr||Jl(r,t);case 6:var n=Ur,a=Ra;Ur=null,ui(e,t,r),Ur=n,Ra=a,Ur!==null&&(Ra?(e=Ur,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ur.removeChild(r.stateNode));break;case 18:Ur!==null&&(Ra?(e=Ur,r=r.stateNode,e.nodeType===8?s0(e.parentNode,r):e.nodeType===1&&s0(e,r),sf(e)):s0(Ur,r.stateNode));break;case 4:n=Ur,a=Ra,Ur=r.stateNode.containerInfo,Ra=!0,ui(e,t,r),Ur=n,Ra=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&p1(r,t,i),a=a.next}while(a!==n)}ui(e,t,r);break;case 1:if(!Zr&&(Jl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){cr(r,t,s)}ui(e,t,r);break;case 21:ui(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,ui(e,t,r),Zr=n):ui(e,t,r);break;default:ui(e,t,r)}}function GC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new D6),t.forEach(function(n){var a=Q6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Ca(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*U6(n/1960))-n,10e?16:e,ki===null)var n=!1;else{if(e=ki,ki=null,bh=0,Et&6)throw Error(Ce(331));var a=Et;for(Et|=4,Ue=e.current;Ue!==null;){var o=Ue,i=o.child;if(Ue.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uyr()-T_?Ws(e,0):k_|=r),kn(e,t)}function qI(e,t){t===0&&(e.mode&1?(t=$p,$p<<=1,!($p&130023424)&&($p=4194304)):t=1);var r=pn();e=Ho(e,t),e!==null&&(Wf(e,t,r),kn(e,r))}function G6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),qI(e,r)}function Q6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ce(314))}n!==null&&n.delete(t),qI(e,r)}var KI;KI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||$n.current)Pn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Pn=!1,F6(e,t,r);Pn=!!(e.flags&131072)}else Pn=!1,tr&&t.flags&1048576&&Yj(t,ch,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;hv(e,t),e=t.pendingProps;var a=Vu(t,tn.current);du(t,r),a=S_(null,t,n,e,a,r);var o=O_();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rn(n)?(o=!0,lh(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,b_(t),a.updater=Dm,t.stateNode=a,a._reactInternals=t,i1(t,n,e,r),t=u1(null,t,n,!0,o,r)):(t.tag=0,tr&&o&&f_(t),dn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(hv(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Y6(n),e=Pa(n,e),a){case 0:t=l1(null,t,n,e,r);break e;case 1:t=VC(null,t,n,e,r);break e;case 11:t=zC(null,t,n,e,r);break e;case 14:t=UC(null,t,n,Pa(n.type,e),r);break e}throw Error(Ce(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),l1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),VC(e,t,n,a,r);case 3:e:{if(kI(t),e===null)throw Error(Ce(387));n=t.pendingProps,o=t.memoizedState,a=o.element,nI(e,t),ph(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ku(Error(Ce(423)),t),t=WC(e,t,n,r,a);break e}else if(n!==a){a=Ku(Error(Ce(424)),t),t=WC(e,t,n,r,a);break e}else for(qn=Ni(t.stateNode.containerInfo.firstChild),Kn=t,tr=!0,Ta=null,r=tI(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Wu(),n===a){t=qo(e,t,r);break e}dn(e,t,n,r)}t=t.child}return t;case 5:return aI(t),e===null&&n1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Jb(n,a)?i=null:o!==null&&Jb(n,o)&&(t.flags|=32),RI(e,t),dn(e,t,i,r),t.child;case 6:return e===null&&n1(t),null;case 13:return TI(e,t,r);case 4:return x_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hu(t,null,n,r):dn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),zC(e,t,n,a,r);case 7:return dn(e,t,t.pendingProps,r),t.child;case 8:return dn(e,t,t.pendingProps.children,r),t.child;case 12:return dn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Kt(dh,n._currentValue),n._currentValue=i,o!==null)if(La(o.value,i)){if(o.children===a.children&&!$n.current){t=qo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=Do(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),a1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ce(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),a1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}dn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,du(t,r),a=va(a),n=n(a),t.flags|=1,dn(e,t,n,r),t.child;case 14:return n=t.type,a=Pa(n,t.pendingProps),a=Pa(n.type,a),UC(e,t,n,a,r);case 15:return PI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Pa(n,a),hv(e,t),t.tag=1,Rn(n)?(e=!0,lh(t)):e=!1,du(t,r),SI(t,n,a),i1(t,n,a,r),u1(null,t,n,!0,e,r);case 19:return jI(e,t,r);case 22:return $I(e,t,r)}throw Error(Ce(156,t.tag))};function GI(e,t){return wj(e,t)}function X6(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(e,t,r,n){return new X6(e,t,r,n)}function M_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y6(e){if(typeof e=="function")return M_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===e_)return 11;if(e===t_)return 14}return 2}function Ui(e,t){var r=e.alternate;return r===null?(r=ua(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yv(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")M_(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vl:return Hs(r.children,a,o,t);case Zw:i=8,a|=8;break;case kb:return e=ua(12,r,t,a|2),e.elementType=kb,e.lanes=o,e;case Tb:return e=ua(13,r,t,a),e.elementType=Tb,e.lanes=o,e;case jb:return e=ua(19,r,t,a),e.elementType=jb,e.lanes=o,e;case aj:return Um(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rj:i=10;break e;case nj:i=9;break e;case e_:i=11;break e;case t_:i=14;break e;case vi:i=16,n=null;break e}throw Error(Ce(130,e==null?e:typeof e,""))}return t=ua(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Hs(e,t,r,n){return e=ua(7,e,n,t),e.lanes=r,e}function Um(e,t,r,n){return e=ua(22,e,n,t),e.elementType=aj,e.lanes=r,e.stateNode={isHidden:!1},e}function h0(e,t,r){return e=ua(6,e,null,t),e.lanes=r,e}function m0(e,t,r){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function J6(e,t,r,n,a){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=Xy(0),this.expirationTimes=Xy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xy(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function F_(e,t,r,n,a,o,i,s,u){return e=new J6(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ua(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},b_(o),e}function Z6(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JI)}catch(e){console.error(e)}}JI(),JT.exports=Yn;var Gf=JT.exports;const yd=pr(Gf),aB=BT({__proto__:null,default:yd},[Gf]);var rP=Gf;$b.createRoot=rP.createRoot,$b.hydrateRoot=rP.hydrateRoot;var B_=f.createContext(void 0);B_.displayName="AuthContext";var Km={loginUrl:"/login",afterLoginUrl:"/"},Jo=function(){return f.useContext(B_)},pc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Qu=typeof window>"u"||"Deno"in globalThis;function na(){}function oB(e,t){return typeof e=="function"?e(t):e}function w1(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function pu(e,t){return typeof e=="function"?e(t):e}function ja(e,t){return typeof e=="function"?e(t):e}function nP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==z_(i,t.options))return!1}else if(!bf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function aP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(nl(t.options.mutationKey)!==nl(o))return!1}else if(!bf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function z_(e,t){return((t==null?void 0:t.queryKeyHashFn)||nl)(e)}function nl(e){return JSON.stringify(e,(t,r)=>_1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function bf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!bf(e[r],t[r])):!1}function eA(e,t){if(e===t)return e;const r=oP(e)&&oP(t);if(r||_1(e)&&_1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function E1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?eA(e,t):t}function sB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function lB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var tA=Symbol(),rA=(e,t)=>!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tA?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn,Ls,wi,Ru,kT,uB=(kT=class extends pc{constructor(){super();nt(this,Ls);nt(this,wi);nt(this,Ru);ze(this,Ru,t=>{if(!Qu&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,wi)||this.setEventListener(q(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,wi))==null||t.call(this),ze(this,wi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=q(this,wi))==null||r.call(this),ze(this,wi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){q(this,Ls)!==t&&(ze(this,Ls,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof q(this,Ls)=="boolean"?q(this,Ls):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ls=new WeakMap,wi=new WeakMap,Ru=new WeakMap,kT),U_=new uB,ku,_i,Tu,TT,cB=(TT=class extends pc{constructor(){super();nt(this,ku,!0);nt(this,_i);nt(this,Tu);ze(this,Tu,t=>{if(!Qu&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){q(this,_i)||this.setEventListener(q(this,Tu))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,_i))==null||t.call(this),ze(this,_i,void 0))}setEventListener(t){var r;ze(this,Tu,t),(r=q(this,_i))==null||r.call(this),ze(this,_i,t(this.setOnline.bind(this)))}setOnline(t){q(this,ku)!==t&&(ze(this,ku,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return q(this,ku)}},ku=new WeakMap,_i=new WeakMap,Tu=new WeakMap,TT),Eh=new cB;function dB(e){return Math.min(1e3*2**e,3e4)}function nA(e){return(e??"online")==="online"?Eh.isOnline():!0}var aA=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function g0(e){return e instanceof aA}function oA(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,y)=>{o=x,i=y}),u=x=>{var y;n||(m(new aA(x)),(y=e.abort)==null||y.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>U_.isFocused()&&(e.networkMode==="always"||Eh.isOnline())&&e.canRun(),p=()=>nA(e.networkMode)&&e.canRun(),h=x=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,x),a==null||a(),o(x))},m=x=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,x),a==null||a(),i(x))},g=()=>new Promise(x=>{var y;a=b=>{(n||d())&&x(b)},(y=e.onPause)==null||y.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),_=()=>{if(n)return;let x;const y=r===0?e.initialPromise:void 0;try{x=y??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(h).catch(b=>{var O;if(n)return;const E=e.retry??(Qu?0:3),v=e.retryDelay??dB,w=typeof v=="function"?v(r,b):v,S=E===!0||typeof E=="number"&&rd()?void 0:g()).then(()=>{t?m(b):_()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?_():g().then(_),s)}}function fB(){let e=[],t=0,r=p=>{p()},n=p=>{p()},a=p=>setTimeout(p,0);const o=p=>{a=p},i=p=>{let h;t++;try{h=p()}finally{t--,t||l()}return h},s=p=>{t?e.push(p):a(()=>{r(p)})},u=p=>(...h)=>{s(()=>{p(...h)})},l=()=>{const p=e;e=[],p.length&&a(()=>{n(()=>{p.forEach(h=>{r(h)})})})};return{batch:i,batchCalls:u,schedule:s,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p},setScheduler:o}}var br=fB(),Ns,jT,iA=(jT=class{constructor(){nt(this,Ns)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),w1(this.gcTime)&&ze(this,Ns,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qu?1/0:5*60*1e3))}clearGcTimeout(){q(this,Ns)&&(clearTimeout(q(this,Ns)),ze(this,Ns,void 0))}},Ns=new WeakMap,jT),ju,Iu,ra,Jr,Df,Ds,$a,$o,IT,pB=(IT=class extends iA{constructor(t){super();nt(this,$a);nt(this,ju);nt(this,Iu);nt(this,ra);nt(this,Jr);nt(this,Df);nt(this,Ds);ze(this,Ds,!1),ze(this,Df,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,ra,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,ju,t.state||vB(this.options)),this.state=q(this,ju),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=q(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...q(this,Df),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,ra).remove(this)}setData(t,r){const n=E1(this.state.data,t,this.options);return ct(this,$a,$o).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ct(this,$a,$o).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=q(this,Jr))==null?void 0:n.promise;return(a=q(this,Jr))==null||a.cancel(t),r?r.then(na).catch(na):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,ju))}isActive(){return this.observers.some(t=>ja(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ZI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=q(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),q(this,ra).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(q(this,Jr)&&(q(this,Ds)?q(this,Jr).cancel({revert:!0}):q(this,Jr).cancelRetry()),this.scheduleGc()),q(this,ra).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ct(this,$a,$o).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,Jr))return q(this,Jr).continueRetry(),q(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,a=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(ze(this,Ds,!0),n.signal)})},o=()=>{const d=rA(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Ds,!1),this.options.persister?this.options.persister(d,p,this):d(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,Iu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&ct(this,$a,$o).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=d=>{var p,h,m,g;g0(d)&&d.silent||ct(this,$a,$o).call(this,{type:"error",error:d}),g0(d)||((h=(p=q(this,ra).config).onError)==null||h.call(p,d,this),(g=(m=q(this,ra).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,oA({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{var p,h,m,g;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(h=(p=q(this,ra).config).onSuccess)==null||h.call(p,d,this),(g=(m=q(this,ra).config).onSettled)==null||g.call(m,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,p)=>{ct(this,$a,$o).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{ct(this,$a,$o).call(this,{type:"pause"})},onContinue:()=>{ct(this,$a,$o).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),q(this,Jr).start()}},ju=new WeakMap,Iu=new WeakMap,ra=new WeakMap,Jr=new WeakMap,Df=new WeakMap,Ds=new WeakMap,$a=new WeakSet,$o=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...sA(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return g0(a)&&a.revert&&q(this,Iu)?{...q(this,Iu),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),br.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),q(this,ra).notify({query:this,type:"updated",action:t})})},IT);function sA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function vB(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var qa,AT,hB=(AT=class extends pc{constructor(t={}){super();nt(this,qa);this.config=t,ze(this,qa,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??z_(a,r);let i=this.get(o);return i||(i=new pB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){q(this,qa).has(t.queryHash)||(q(this,qa).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=q(this,qa).get(t.queryHash);r&&(t.destroy(),r===t&&q(this,qa).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){br.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return q(this,qa).get(t)}getAll(){return[...q(this,qa).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>nP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>nP(t,n)):r}notify(t){br.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){br.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){br.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qa=new WeakMap,AT),Ka,ln,Bs,Ga,fi,MT,mB=(MT=class extends iA{constructor(t){super();nt(this,Ga);nt(this,Ka);nt(this,ln);nt(this,Bs);this.mutationId=t.mutationId,ze(this,ln,t.mutationCache),ze(this,Ka,[]),this.state=t.state||lA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){q(this,Ka).includes(t)||(q(this,Ka).push(t),this.clearGcTimeout(),q(this,ln).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ka,q(this,Ka).filter(r=>r!==t)),this.scheduleGc(),q(this,ln).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){q(this,Ka).length||(this.state.status==="pending"?this.scheduleGc():q(this,ln).remove(this))}continue(){var t;return((t=q(this,Bs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,d,p,h,m,g,_,x,y,b,E,v,w,S;ze(this,Bs,oA({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,C)=>{ct(this,Ga,fi).call(this,{type:"failed",failureCount:O,error:C})},onPause:()=>{ct(this,Ga,fi).call(this,{type:"pause"})},onContinue:()=>{ct(this,Ga,fi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,ln).canRun(this)}));const r=this.state.status==="pending",n=!q(this,Bs).canStart();try{if(!r){ct(this,Ga,fi).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=q(this,ln).config).onMutate)==null?void 0:o.call(a,t,this));const C=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));C!==this.state.context&&ct(this,Ga,fi).call(this,{type:"pending",context:C,variables:t,isPaused:n})}const O=await q(this,Bs).start();return await((l=(u=q(this,ln).config).onSuccess)==null?void 0:l.call(u,O,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,O,t,this.state.context)),await((h=(p=q(this,ln).config).onSettled)==null?void 0:h.call(p,O,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,O,null,t,this.state.context)),ct(this,Ga,fi).call(this,{type:"success",data:O}),O}catch(O){try{throw await((x=(_=q(this,ln).config).onError)==null?void 0:x.call(_,O,t,this.state.context,this)),await((b=(y=this.options).onError)==null?void 0:b.call(y,O,t,this.state.context)),await((v=(E=q(this,ln).config).onSettled)==null?void 0:v.call(E,void 0,O,this.state.variables,this.state.context,this)),await((S=(w=this.options).onSettled)==null?void 0:S.call(w,void 0,O,t,this.state.context)),O}finally{ct(this,Ga,fi).call(this,{type:"error",error:O})}}finally{q(this,ln).runNext(this)}}},Ka=new WeakMap,ln=new WeakMap,Bs=new WeakMap,Ga=new WeakSet,fi=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),br.batch(()=>{q(this,Ka).forEach(n=>{n.onMutationUpdate(t)}),q(this,ln).notify({mutation:this,type:"updated",action:t})})},MT);function lA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bn,Bf,FT,gB=(FT=class extends pc{constructor(t={}){super();nt(this,Bn);nt(this,Bf);this.config=t,ze(this,Bn,new Map),ze(this,Bf,Date.now())}build(t,r,n){const a=new mB({mutationCache:this,mutationId:++_p(this,Bf)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Bp(t),n=q(this,Bn).get(r)??[];n.push(t),q(this,Bn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Bp(t);if(q(this,Bn).has(r)){const a=(n=q(this,Bn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?q(this,Bn).delete(r):q(this,Bn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=q(this,Bn).get(Bp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=q(this,Bn).get(Bp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){br.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...q(this,Bn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>aP(r,n))}findAll(t={}){return this.getAll().filter(r=>aP(t,r))}notify(t){br.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return br.batch(()=>Promise.all(t.map(r=>r.continue().catch(na))))}},Bn=new WeakMap,Bf=new WeakMap,FT);function Bp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function yB(e){return{onFetch:(t,r)=>{const n=async()=>{var m,g,_,x,y;const a=t.options,o=(_=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,i=((x=t.state.data)==null?void 0:x.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[],u={pages:[],pageParams:[]};let l=!1;const c=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?l=!0:t.signal.addEventListener("abort",()=>{l=!0}),t.signal)})},d=rA(t.options,t.fetchOptions),p=async(b,E,v)=>{if(l)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const w={queryKey:t.queryKey,pageParam:E,direction:v?"backward":"forward",meta:t.options.meta};c(w);const S=await d(w),{maxPages:O}=t.options,C=v?lB:sB;return{pages:C(b.pages,S,O),pageParams:C(b.pageParams,E,O)}};let h;if(o&&i.length){const b=o==="backward",E=b?bB:sP,v={pages:i,pageParams:s},w=E(a,v);h=await p(v,w,b)}else{h=await p(u,s[0]??a.initialPageParam);const b=e??i.length;for(let E=1;E{var a,o;return(o=(a=t.options).persister)==null?void 0:o.call(a,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function sP(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function bB(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}var ur,Ei,Si,Au,Mu,Oi,Fu,Lu,LT,xB=(LT=class{constructor(e={}){nt(this,ur);nt(this,Ei);nt(this,Si);nt(this,Au);nt(this,Mu);nt(this,Oi);nt(this,Fu);nt(this,Lu);ze(this,ur,e.queryCache||new hB),ze(this,Ei,e.mutationCache||new gB),ze(this,Si,e.defaultOptions||{}),ze(this,Au,new Map),ze(this,Mu,new Map),ze(this,Oi,0)}mount(){_p(this,Oi)._++,q(this,Oi)===1&&(ze(this,Fu,U_.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,ur).onFocus())})),ze(this,Lu,Eh.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,ur).onOnline())})))}unmount(){var e,t;_p(this,Oi)._--,q(this,Oi)===0&&((e=q(this,Fu))==null||e.call(this),ze(this,Fu,void 0),(t=q(this,Lu))==null||t.call(this),ze(this,Lu,void 0))}isFetching(e){return q(this,ur).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,Ei).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=q(this,ur).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=q(this,ur).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(pu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return q(this,ur).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=q(this,ur).get(n.queryHash),o=a==null?void 0:a.state.data,i=oB(t,o);if(i!==void 0)return q(this,ur).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return br.batch(()=>q(this,ur).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=q(this,ur).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=q(this,ur);br.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=q(this,ur),n={type:"active",...e};return br.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=br.batch(()=>q(this,ur).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(na).catch(na)}invalidateQueries(e={},t={}){return br.batch(()=>{if(q(this,ur).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=br.batch(()=>q(this,ur).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(na)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(na)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=q(this,ur).build(this,t);return r.isStaleByTime(pu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(na).catch(na)}fetchInfiniteQuery(e){return e.behavior=yB(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(na).catch(na)}resumePausedMutations(){return Eh.isOnline()?q(this,Ei).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,ur)}getMutationCache(){return q(this,Ei)}getDefaultOptions(){return q(this,Si)}setDefaultOptions(e){ze(this,Si,e)}setQueryDefaults(e,t){q(this,Au).set(nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...q(this,Au).values()];let r={};return t.forEach(n=>{bf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){q(this,Mu).set(nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...q(this,Mu).values()];let r={};return t.forEach(n=>{bf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...q(this,Si).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=z_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===tA&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,Si).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,ur).clear(),q(this,Ei).clear()}},ur=new WeakMap,Ei=new WeakMap,Si=new WeakMap,Au=new WeakMap,Mu=new WeakMap,Oi=new WeakMap,Fu=new WeakMap,Lu=new WeakMap,LT),En,bt,zf,un,zs,Nu,Qa,Uf,Du,Bu,Us,Vs,Ci,zu,Mt,bd,S1,O1,C1,P1,$1,R1,k1,uA,NT,wB=(NT=class extends pc{constructor(t,r){super();nt(this,Mt);nt(this,En);nt(this,bt);nt(this,zf);nt(this,un);nt(this,zs);nt(this,Nu);nt(this,Qa);nt(this,Uf);nt(this,Du);nt(this,Bu);nt(this,Us);nt(this,Vs);nt(this,Ci);nt(this,zu,new Set);this.options=r,ze(this,En,t),ze(this,Qa,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,bt).addObserver(this),lP(q(this,bt),this.options)?ct(this,Mt,bd).call(this):this.updateResult(),ct(this,Mt,P1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return T1(q(this,bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return T1(q(this,bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ct(this,Mt,$1).call(this),ct(this,Mt,R1).call(this),q(this,bt).removeObserver(this)}setOptions(t,r){const n=this.options,a=q(this,bt);if(this.options=q(this,En).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ja(this.options.enabled,q(this,bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ct(this,Mt,k1).call(this),q(this,bt).setOptions(this.options),n._defaulted&&!_h(this.options,n)&&q(this,En).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,bt),observer:this});const o=this.hasListeners();o&&uP(q(this,bt),a,this.options,n)&&ct(this,Mt,bd).call(this),this.updateResult(r),o&&(q(this,bt)!==a||ja(this.options.enabled,q(this,bt))!==ja(n.enabled,q(this,bt))||pu(this.options.staleTime,q(this,bt))!==pu(n.staleTime,q(this,bt)))&&ct(this,Mt,S1).call(this);const i=ct(this,Mt,O1).call(this);o&&(q(this,bt)!==a||ja(this.options.enabled,q(this,bt))!==ja(n.enabled,q(this,bt))||i!==q(this,Ci))&&ct(this,Mt,C1).call(this,i)}getOptimisticResult(t){const r=q(this,En).getQueryCache().build(q(this,En),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,un,n),ze(this,Nu,this.options),ze(this,zs,q(this,bt).state)),n}getCurrentResult(){return q(this,un)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){q(this,zu).add(t)}getCurrentQuery(){return q(this,bt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=q(this,En).defaultQueryOptions(t),n=q(this,En).getQueryCache().build(q(this,En),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ct(this,Mt,bd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,un)))}createResult(t,r){var S;const n=q(this,bt),a=this.options,o=q(this,un),i=q(this,zs),s=q(this,Nu),l=t!==n?t.state:q(this,zf),{state:c}=t;let d={...c},p=!1,h;if(r._optimisticResults){const O=this.hasListeners(),C=!O&&lP(t,r),P=O&&uP(t,n,r,a);(C||P)&&(d={...d,...sA(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:_}=d;if(r.select&&d.data!==void 0)if(o&&d.data===(i==null?void 0:i.data)&&r.select===q(this,Uf))h=q(this,Du);else try{ze(this,Uf,r.select),h=r.select(d.data),h=E1(o==null?void 0:o.data,h,r),ze(this,Du,h),ze(this,Qa,null)}catch(O){ze(this,Qa,O)}else h=d.data;if(r.placeholderData!==void 0&&h===void 0&&_==="pending"){let O;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))O=o.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData((S=q(this,Bu))==null?void 0:S.state.data,q(this,Bu)):r.placeholderData,r.select&&O!==void 0)try{O=r.select(O),ze(this,Qa,null)}catch(C){ze(this,Qa,C)}O!==void 0&&(_="success",h=E1(o==null?void 0:o.data,O,r),p=!0)}q(this,Qa)&&(m=q(this,Qa),h=q(this,Du),g=Date.now(),_="error");const x=d.fetchStatus==="fetching",y=_==="pending",b=_==="error",E=y&&x,v=h!==void 0;return{status:_,fetchStatus:d.fetchStatus,isPending:y,isSuccess:_==="success",isError:b,isInitialLoading:E,isLoading:E,data:h,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!y,isLoadingError:b&&!v,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&v,isStale:V_(t,r),refetch:this.refetch}}updateResult(t){const r=q(this,un),n=this.createResult(q(this,bt),this.options);if(ze(this,zs,q(this,bt).state),ze(this,Nu,this.options),q(this,zs).data!==void 0&&ze(this,Bu,q(this,bt)),_h(n,r))return;ze(this,un,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!q(this,zu).size)return!0;const u=new Set(s??q(this,zu));return this.options.throwOnError&&u.add("error"),Object.keys(q(this,un)).some(l=>{const c=l;return q(this,un)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),ct(this,Mt,uA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ct(this,Mt,P1).call(this)}},En=new WeakMap,bt=new WeakMap,zf=new WeakMap,un=new WeakMap,zs=new WeakMap,Nu=new WeakMap,Qa=new WeakMap,Uf=new WeakMap,Du=new WeakMap,Bu=new WeakMap,Us=new WeakMap,Vs=new WeakMap,Ci=new WeakMap,zu=new WeakMap,Mt=new WeakSet,bd=function(t){ct(this,Mt,k1).call(this);let r=q(this,bt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(na)),r},S1=function(){ct(this,Mt,$1).call(this);const t=pu(this.options.staleTime,q(this,bt));if(Qu||q(this,un).isStale||!w1(t))return;const n=ZI(q(this,un).dataUpdatedAt,t)+1;ze(this,Us,setTimeout(()=>{q(this,un).isStale||this.updateResult()},n))},O1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,bt)):this.options.refetchInterval)??!1},C1=function(t){ct(this,Mt,R1).call(this),ze(this,Ci,t),!(Qu||ja(this.options.enabled,q(this,bt))===!1||!w1(q(this,Ci))||q(this,Ci)===0)&&ze(this,Vs,setInterval(()=>{(this.options.refetchIntervalInBackground||U_.isFocused())&&ct(this,Mt,bd).call(this)},q(this,Ci)))},P1=function(){ct(this,Mt,S1).call(this),ct(this,Mt,C1).call(this,ct(this,Mt,O1).call(this))},$1=function(){q(this,Us)&&(clearTimeout(q(this,Us)),ze(this,Us,void 0))},R1=function(){q(this,Vs)&&(clearInterval(q(this,Vs)),ze(this,Vs,void 0))},k1=function(){const t=q(this,En).getQueryCache().build(q(this,En),this.options);if(t===q(this,bt))return;const r=q(this,bt);ze(this,bt,t),ze(this,zf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},uA=function(t){br.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(q(this,un))}),q(this,En).getQueryCache().notify({query:q(this,bt),type:"observerResultsUpdated"})})},NT);function _B(e,t){return ja(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lP(e,t){return _B(e,t)||e.state.data!==void 0&&T1(e,t,t.refetchOnMount)}function T1(e,t,r){if(ja(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&V_(e,t)}return!1}function uP(e,t,r,n){return(e!==t||ja(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&V_(e,r)}function V_(e,t){return ja(t.enabled,e)!==!1&&e.isStaleByTime(pu(t.staleTime,e))}function EB(e,t){return!_h(e.getCurrentResult(),t)}var Pi,$i,Sn,Io,Uo,bv,j1,DT,SB=(DT=class extends pc{constructor(r,n){super();nt(this,Uo);nt(this,Pi);nt(this,$i);nt(this,Sn);nt(this,Io);ze(this,Pi,r),this.setOptions(n),this.bindMethods(),ct(this,Uo,bv).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=q(this,Pi).defaultMutationOptions(r),_h(this.options,n)||q(this,Pi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&nl(n.mutationKey)!==nl(this.options.mutationKey)?this.reset():((a=q(this,Sn))==null?void 0:a.state.status)==="pending"&&q(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=q(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){ct(this,Uo,bv).call(this),ct(this,Uo,j1).call(this,r)}getCurrentResult(){return q(this,$i)}reset(){var r;(r=q(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),ct(this,Uo,bv).call(this),ct(this,Uo,j1).call(this)}mutate(r,n){var a;return ze(this,Io,n),(a=q(this,Sn))==null||a.removeObserver(this),ze(this,Sn,q(this,Pi).getMutationCache().build(q(this,Pi),this.options)),q(this,Sn).addObserver(this),q(this,Sn).execute(r)}},Pi=new WeakMap,$i=new WeakMap,Sn=new WeakMap,Io=new WeakMap,Uo=new WeakSet,bv=function(){var n;const r=((n=q(this,Sn))==null?void 0:n.state)??lA();ze(this,$i,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},j1=function(r){br.batch(()=>{var n,a,o,i,s,u,l,c;if(q(this,Io)&&this.hasListeners()){const d=q(this,$i).variables,p=q(this,$i).context;(r==null?void 0:r.type)==="success"?((a=(n=q(this,Io)).onSuccess)==null||a.call(n,r.data,d,p),(i=(o=q(this,Io)).onSettled)==null||i.call(o,r.data,null,d,p)):(r==null?void 0:r.type)==="error"&&((u=(s=q(this,Io)).onError)==null||u.call(s,r.error,d,p),(c=(l=q(this,Io)).onSettled)==null||c.call(l,void 0,r.error,d,p))}this.listeners.forEach(d=>{d(q(this,$i))})})},DT),cA=f.createContext(void 0),ho=e=>{const t=f.useContext(cA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OB=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(cA.Provider,{value:e,children:t})),dA=f.createContext(!1),CB=()=>f.useContext(dA);dA.Provider;function PB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=f.createContext(PB()),RB=()=>f.useContext($B);function fA(e,t){return typeof e=="function"?e(...t):!!e}function kB(){}var TB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},jB=e=>{f.useEffect(()=>{e.clearReset()},[e])},IB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&fA(r,[e.error,n]),AB=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},MB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function LB(e,t,r){var l,c,d,p;const n=ho(),a=CB(),o=RB(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",AB(i),TB(i,o),jB(o);const[s]=f.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(f.useSyncExternalStore(f.useCallback(h=>{const m=a?()=>{}:s.subscribe(br.batchCalls(h));return s.updateResult(),m},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),MB(i,u))throw FB(i,s,o);if(IB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(d=n.getDefaultOptions().queries)==null?void 0:d._experimental_afterQuery)==null||p.call(d,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function vc(e,t){return LB(e,wB)}function Gm(e,t){const r=ho(),[n]=f.useState(()=>new SB(r,e));f.useEffect(()=>{n.setOptions(e)},[n,e]);const a=f.useSyncExternalStore(f.useCallback(i=>n.subscribe(br.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=f.useCallback((i,s)=>{n.mutate(i,s).catch(kB)},[n]);if(a.error&&fA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** * @remix-run/router v1.17.0 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function al(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DB(){return Math.random().toString(36).substr(2,8)}function dP(e,t){return{usr:e.state,key:e.key,idx:t}}function bf(e,t,r,n){return r===void 0&&(r=null),nr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mo(t):t,{state:r,key:t&&t.key||n||DB()})}function ol(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function mo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function BB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=gr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(nr({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function d(){s=gr.Pop;let _=c(),x=_==null?null:_-l;l=_,u&&u({action:s,location:g.location,delta:x})}function p(_,x){s=gr.Push;let y=bf(g.location,_,x);r&&r(y,_),l=c()+1;let b=dP(y,l),E=g.createHref(y);try{i.pushState(b,"",E)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;a.location.assign(E)}o&&u&&u({action:s,location:g.location,delta:1})}function h(_,x){s=gr.Replace;let y=bf(g.location,_,x);r&&r(y,_),l=c();let b=dP(y,l),E=g.createHref(y);i.replaceState(b,"",E),o&&u&&u({action:s,location:g.location,delta:0})}function m(_){let x=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof _=="string"?_:ol(_);return y=y.replace(/ $/,"%20"),lt(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let g={get action(){return s},get location(){return e(a,i)},listen(_){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(cP,d),u=_,()=>{a.removeEventListener(cP,d),u=null}},createHref(_){return t(a,_)},createURL:m,encodeLocation(_){let x=m(_);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:h,go(_){return i.go(_)}};return g}var qt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qt||(qt={}));const zB=new Set(["lazy","caseSensitive","path","id","index","children"]);function UB(e){return e.index===!0}function xf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(lt(a.index!==!0||!a.children,"Cannot specify children on an index route"),lt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),UB(a)){let u=nr({},a,t(a),{id:s});return n[s]=u,u}else{let u=nr({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=xf(a.children,t,i,n)),u}})}function xs(e,t,r){return r===void 0&&(r="/"),xv(e,t,r,!1)}function xv(e,t,r,n){let a=typeof t=="string"?mo(t):t,o=qi(a.pathname||"/",r);if(o==null)return null;let i=pA(e);WB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(lt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=Bo([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(lt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),pA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:YB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of vA(o.path))a(o,i,u)}),t}function vA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=vA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function WB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:JB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const HB=/^:[\w-]+$/,qB=3,KB=2,GB=1,QB=10,XB=-2,fP=e=>e==="*";function YB(e,t){let r=e.split("/"),n=r.length;return r.some(fP)&&(n+=XB),t&&(n+=KB),r.filter(a=>!fP(a)).reduce((a,o)=>a+(HB.test(o)?qB:o===""?GB:QB),n)}function JB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ZB(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:h}=c;if(p==="*"){let g=s[d]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[p]=void 0:l[p]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function e8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),al(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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function t8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return al(!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 qi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function r8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?mo(e):e;return{pathname:r?r.startsWith("/")?r:n8(r,t):t,search:o8(n),hash:i8(a)}}function n8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function y0(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Xm(e,t){let r=hA(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ym(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=mo(e):(a=nr({},e),lt(!a.pathname||!a.pathname.includes("?"),y0("?","pathname","search",a)),lt(!a.pathname||!a.pathname.includes("#"),y0("#","pathname","hash",a)),lt(!a.search||!a.search.includes("#"),y0("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=r8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Bo=e=>e.join("/").replace(/\/\/+/g,"/"),a8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class W_{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Jm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mA=["post","put","patch","delete"],s8=new Set(mA),l8=["get",...mA],u8=new Set(l8),c8=new Set([301,302,303,307,308]),d8=new Set([307,308]),b0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},f8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ll={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},H_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),gA="remix-router-transitions";function v8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;a=Y=>({hasErrorBoundary:H(Y)})}else a=p8;let o={},i=xf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||b8,c=e.unstable_patchRoutesOnMiss,d=nr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=null,g=null,_=null,x=e.hydrationData!=null,y=xs(i,e.history.location,u),b=null;if(y==null&&!c){let H=cn(404,{pathname:e.history.location.pathname}),{matches:Y,route:ae}=_P(i);y=Y,b={[ae.id]:H}}let E;if(!y)E=!1,y=[];else if(y.some(H=>H.route.lazy))E=!1;else if(!y.some(H=>H.route.loader))E=!0;else if(d.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,Y=e.hydrationData?e.hydrationData.errors:null,ae=he=>he.route.loader?typeof he.route.loader=="function"&&he.route.loader.hydrate===!0?!1:H&&H[he.route.id]!==void 0||Y&&Y[he.route.id]!==void 0:!0;if(Y){let he=y.findIndex(Ae=>Y[Ae.route.id]!==void 0);E=y.slice(0,he+1).every(ae)}else E=y.every(ae)}else E=e.hydrationData!=null;let v,w={historyAction:e.history.action,location:e.history.location,matches:y,initialized:E,navigation:b0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},S=gr.Pop,O=!1,C,P=!1,$=new Map,T=null,A=!1,M=!1,I=[],U=[],W=new Map,j=0,V=-1,J=new Map,se=new Set,oe=new Map,ve=new Map,be=new Set,xe=new Map,_e=new Map,Te=new Map,$e=!1;function Ee(){if(p=e.history.listen(H=>{let{action:Y,location:ae,delta:he}=H;if($e){$e=!1;return}al(_e.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ae=xn({currentLocation:w.location,nextLocation:ae,historyAction:Y});if(Ae&&he!=null){$e=!0,e.history.go(he*-1),Er(Ae,{state:"blocked",location:ae,proceed(){Er(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:ae}),e.history.go(he)},reset(){let Le=new Map(w.blockers);Le.set(Ae,Ll),De({blockers:Le})}});return}return ft(Y,ae)}),r){j8(t,$);let H=()=>I8(t,$);t.addEventListener("pagehide",H),T=()=>t.removeEventListener("pagehide",H)}return w.initialized||ft(gr.Pop,w.location,{initialHydration:!0}),v}function Ve(){p&&p(),T&&T(),h.clear(),C&&C.abort(),w.fetchers.forEach((H,Y)=>Xe(Y)),w.blockers.forEach((H,Y)=>Ar(Y))}function je(H){return h.add(H),()=>h.delete(H)}function De(H,Y){Y===void 0&&(Y={}),w=nr({},w,H);let ae=[],he=[];d.v7_fetcherPersist&&w.fetchers.forEach((Ae,Le)=>{Ae.state==="idle"&&(be.has(Le)?he.push(Le):ae.push(Le))}),[...h].forEach(Ae=>Ae(w,{deletedFetchers:he,unstable_viewTransitionOpts:Y.viewTransitionOpts,unstable_flushSync:Y.flushSync===!0})),d.v7_fetcherPersist&&(ae.forEach(Ae=>w.fetchers.delete(Ae)),he.forEach(Ae=>Xe(Ae)))}function Fe(H,Y,ae){var he,Ae;let{flushSync:Le}=ae===void 0?{}:ae,Ne=w.actionData!=null&&w.navigation.formMethod!=null&&ka(w.navigation.formMethod)&&w.navigation.state==="loading"&&((he=H.state)==null?void 0:he._isRedirect)!==!0,Re;Y.actionData?Object.keys(Y.actionData).length>0?Re=Y.actionData:Re=null:Ne?Re=w.actionData:Re=null;let ot=Y.loaderData?xP(w.loaderData,Y.loaderData,Y.matches||[],Y.errors):w.loaderData,We=w.blockers;We.size>0&&(We=new Map(We),We.forEach((ht,Rt)=>We.set(Rt,Ll)));let it=O===!0||w.navigation.formMethod!=null&&ka(w.navigation.formMethod)&&((Ae=H.state)==null?void 0:Ae._isRedirect)!==!0;s&&(i=s,s=void 0),A||S===gr.Pop||(S===gr.Push?e.history.push(H,H.state):S===gr.Replace&&e.history.replace(H,H.state));let _t;if(S===gr.Pop){let ht=$.get(w.location.pathname);ht&&ht.has(H.pathname)?_t={currentLocation:w.location,nextLocation:H}:$.has(H.pathname)&&(_t={currentLocation:H,nextLocation:w.location})}else if(P){let ht=$.get(w.location.pathname);ht?ht.add(H.pathname):(ht=new Set([H.pathname]),$.set(w.location.pathname,ht)),_t={currentLocation:w.location,nextLocation:H}}De(nr({},Y,{actionData:Re,loaderData:ot,historyAction:S,location:H,initialized:!0,navigation:b0,revalidation:"idle",restoreScrollPosition:nn(H,Y.matches||w.matches),preventScrollReset:it,blockers:We}),{viewTransitionOpts:_t,flushSync:Le===!0}),S=gr.Pop,O=!1,P=!1,A=!1,M=!1,I=[],U=[]}async function He(H,Y){if(typeof H=="number"){e.history.go(H);return}let ae=A1(w.location,w.matches,u,d.v7_prependBasename,H,d.v7_relativeSplatPath,Y==null?void 0:Y.fromRouteId,Y==null?void 0:Y.relative),{path:he,submission:Ae,error:Le}=pP(d.v7_normalizeFormMethod,!1,ae,Y),Ne=w.location,Re=bf(w.location,he,Y&&Y.state);Re=nr({},Re,e.history.encodeLocation(Re));let ot=Y&&Y.replace!=null?Y.replace:void 0,We=gr.Push;ot===!0?We=gr.Replace:ot===!1||Ae!=null&&ka(Ae.formMethod)&&Ae.formAction===w.location.pathname+w.location.search&&(We=gr.Replace);let it=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,_t=(Y&&Y.unstable_flushSync)===!0,ht=xn({currentLocation:Ne,nextLocation:Re,historyAction:We});if(ht){Er(ht,{state:"blocked",location:Re,proceed(){Er(ht,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),He(H,Y)},reset(){let Rt=new Map(w.blockers);Rt.set(ht,Ll),De({blockers:Rt})}});return}return await ft(We,Re,{submission:Ae,pendingError:Le,preventScrollReset:it,replace:Y&&Y.replace,enableViewTransition:Y&&Y.unstable_viewTransition,flushSync:_t})}function et(){if(Q(),De({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){ft(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}ft(S||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function ft(H,Y,ae){C&&C.abort(),C=null,S=H,A=(ae&&ae.startUninterruptedRevalidation)===!0,Nn(w.location,w.matches),O=(ae&&ae.preventScrollReset)===!0,P=(ae&&ae.enableViewTransition)===!0;let he=s||i,Ae=ae&&ae.overrideNavigation,Le=xs(he,Y,u),Ne=(ae&&ae.flushSync)===!0,Re=Br(Le,he,Y.pathname);if(Re.active&&Re.matches&&(Le=Re.matches),!Le){let{error:yt,notFoundMatches:Ye,route:dt}=Mr(Y.pathname);Fe(Y,{matches:Ye,loaderData:{},errors:{[dt.id]:yt}},{flushSync:Ne});return}if(w.initialized&&!M&&O8(w.location,Y)&&!(ae&&ae.submission&&ka(ae.submission.formMethod))){Fe(Y,{matches:Le},{flushSync:Ne});return}C=new AbortController;let ot=Cl(e.history,Y,C.signal,ae&&ae.submission),We;if(ae&&ae.pendingError)We=[Id(Le).route.id,{type:qt.error,error:ae.pendingError}];else if(ae&&ae.submission&&ka(ae.submission.formMethod)){let yt=await xt(ot,Y,ae.submission,Le,Re.active,{replace:ae.replace,flushSync:Ne});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[Ye,dt]=yt.pendingActionResult;if(Vn(dt)&&Jm(dt.error)&&dt.error.status===404){C=null,Fe(Y,{matches:yt.matches,loaderData:{},errors:{[Ye]:dt.error}});return}}Le=yt.matches||Le,We=yt.pendingActionResult,Ae=x0(Y,ae.submission),Ne=!1,Re.active=!1,ot=Cl(e.history,ot.url,ot.signal)}let{shortCircuited:it,matches:_t,loaderData:ht,errors:Rt}=await z(ot,Y,Le,Re.active,Ae,ae&&ae.submission,ae&&ae.fetcherSubmission,ae&&ae.replace,ae&&ae.initialHydration===!0,Ne,We);it||(C=null,Fe(Y,nr({matches:_t||Le},wP(We),{loaderData:ht,errors:Rt})))}async function xt(H,Y,ae,he,Ae,Le){Le===void 0&&(Le={}),Q();let Ne=k8(Y,ae);if(De({navigation:Ne},{flushSync:Le.flushSync===!0}),Ae){let We=await Pr(he,Y.pathname,H.signal);if(We.type==="aborted")return{shortCircuited:!0};if(We.type==="error"){let{error:it,notFoundMatches:_t,route:ht}=Qt(Y.pathname,We);return{matches:_t,pendingActionResult:[ht.id,{type:qt.error,error:it}]}}else if(We.matches)he=We.matches;else{let{notFoundMatches:it,error:_t,route:ht}=Mr(Y.pathname);return{matches:it,pendingActionResult:[ht.id,{type:qt.error,error:_t}]}}}let Re,ot=xd(he,Y);if(!ot.route.action&&!ot.route.lazy)Re={type:qt.error,error:cn(405,{method:H.method,pathname:Y.pathname,routeId:ot.route.id})};else if(Re=(await Z("action",H,[ot],he))[0],H.signal.aborted)return{shortCircuited:!0};if(js(Re)){let We;return Le&&Le.replace!=null?We=Le.replace:We=gP(Re.response.headers.get("Location"),new URL(H.url),u)===w.location.pathname+w.location.search,await ge(H,Re,{submission:ae,replace:We}),{shortCircuited:!0}}if(Ts(Re))throw cn(400,{type:"defer-action"});if(Vn(Re)){let We=Id(he,ot.route.id);return(Le&&Le.replace)!==!0&&(S=gr.Push),{matches:he,pendingActionResult:[We.route.id,Re]}}return{matches:he,pendingActionResult:[ot.route.id,Re]}}async function z(H,Y,ae,he,Ae,Le,Ne,Re,ot,We,it){let _t=Ae||x0(Y,Le),ht=Le||Ne||OP(_t),Rt=!A&&(!d.v7_partialHydration||!ot);if(he){if(Rt){let F=X(it);De(nr({navigation:_t},F!==void 0?{actionData:F}:{}),{flushSync:We})}let k=await Pr(ae,Y.pathname,H.signal);if(k.type==="aborted")return{shortCircuited:!0};if(k.type==="error"){let{error:F,notFoundMatches:L,route:G}=Qt(Y.pathname,k);return{matches:L,loaderData:{},errors:{[G.id]:F}}}else if(k.matches)ae=k.matches;else{let{error:F,notFoundMatches:L,route:G}=Mr(Y.pathname);return{matches:L,loaderData:{},errors:{[G.id]:F}}}}let yt=s||i,[Ye,dt]=vP(e.history,w,ae,ht,Y,d.v7_partialHydration&&ot===!0,d.unstable_skipActionErrorRevalidation,M,I,U,be,oe,se,yt,u,it);if($t(k=>!(ae&&ae.some(F=>F.route.id===k))||Ye&&Ye.some(F=>F.route.id===k)),V=++j,Ye.length===0&&dt.length===0){let k=rt();return Fe(Y,nr({matches:ae,loaderData:{},errors:it&&Vn(it[1])?{[it[0]]:it[1].error}:null},wP(it),k?{fetchers:new Map(w.fetchers)}:{}),{flushSync:We}),{shortCircuited:!0}}if(Rt){let k={};if(!he){k.navigation=_t;let F=X(it);F!==void 0&&(k.actionData=F)}dt.length>0&&(k.fetchers=te(dt)),De(k,{flushSync:We})}dt.forEach(k=>{W.has(k.key)&&Oe(k.key),k.controller&&W.set(k.key,k.controller)});let us=()=>dt.forEach(k=>Oe(k.key));C&&C.signal.addEventListener("abort",us);let{loaderResults:Dn,fetcherResults:ii}=await K(w.matches,ae,Ye,dt,H);if(H.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",us),dt.forEach(k=>W.delete(k.key));let si=EP([...Dn,...ii]);if(si){if(si.idx>=Ye.length){let k=dt[si.idx-Ye.length].key;se.add(k)}return await ge(H,si.result,{replace:Re}),{shortCircuited:!0}}let{loaderData:li,errors:ea}=bP(w,ae,Ye,Dn,it,dt,ii,xe);xe.forEach((k,F)=>{k.subscribe(L=>{(L||k.done)&&xe.delete(F)})}),d.v7_partialHydration&&ot&&w.errors&&Object.entries(w.errors).filter(k=>{let[F]=k;return!Ye.some(L=>L.route.id===F)}).forEach(k=>{let[F,L]=k;ea=Object.assign(ea||{},{[F]:L})});let wo=rt(),D=St(V),B=wo||D||dt.length>0;return nr({matches:ae,loaderData:li,errors:ea},B?{fetchers:new Map(w.fetchers)}:{})}function X(H){if(H&&!Vn(H[1]))return{[H[0]]:H[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function te(H){return H.forEach(Y=>{let ae=w.fetchers.get(Y.key),he=Jc(void 0,ae?ae.data:void 0);w.fetchers.set(Y.key,he)}),new Map(w.fetchers)}function le(H,Y,ae,he){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(H)&&Oe(H);let Ae=(he&&he.unstable_flushSync)===!0,Le=s||i,Ne=A1(w.location,w.matches,u,d.v7_prependBasename,ae,d.v7_relativeSplatPath,Y,he==null?void 0:he.relative),Re=xs(Le,Ne,u),ot=Br(Re,Le,Ne);if(ot.active&&ot.matches&&(Re=ot.matches),!Re){ie(H,Y,cn(404,{pathname:Ne}),{flushSync:Ae});return}let{path:We,submission:it,error:_t}=pP(d.v7_normalizeFormMethod,!0,Ne,he);if(_t){ie(H,Y,_t,{flushSync:Ae});return}let ht=xd(Re,We);if(O=(he&&he.preventScrollReset)===!0,it&&ka(it.formMethod)){ye(H,Y,We,ht,Re,ot.active,Ae,it);return}oe.set(H,{routeId:Y,path:We}),me(H,Y,We,ht,Re,ot.active,Ae,it)}async function ye(H,Y,ae,he,Ae,Le,Ne,Re){Q(),oe.delete(H);function ot(G){if(!G.route.action&&!G.route.lazy){let ce=cn(405,{method:Re.formMethod,pathname:ae,routeId:Y});return ie(H,Y,ce,{flushSync:Ne}),!0}return!1}if(!Le&&ot(he))return;let We=w.fetchers.get(H);re(H,T8(Re,We),{flushSync:Ne});let it=new AbortController,_t=Cl(e.history,ae,it.signal,Re);if(Le){let G=await Pr(Ae,ae,_t.signal);if(G.type==="aborted")return;if(G.type==="error"){let{error:ce}=Qt(ae,G);ie(H,Y,ce,{flushSync:Ne});return}else if(G.matches){if(Ae=G.matches,he=xd(Ae,ae),ot(he))return}else{ie(H,Y,cn(404,{pathname:ae}),{flushSync:Ne});return}}W.set(H,it);let ht=j,yt=(await Z("action",_t,[he],Ae))[0];if(_t.signal.aborted){W.get(H)===it&&W.delete(H);return}if(d.v7_fetcherPersist&&be.has(H)){if(js(yt)||Vn(yt)){re(H,pi(void 0));return}}else{if(js(yt))if(W.delete(H),V>ht){re(H,pi(void 0));return}else return se.add(H),re(H,Jc(Re)),ge(_t,yt,{fetcherSubmission:Re});if(Vn(yt)){ie(H,Y,yt.error);return}}if(Ts(yt))throw cn(400,{type:"defer-action"});let Ye=w.navigation.location||w.location,dt=Cl(e.history,Ye,it.signal),us=s||i,Dn=w.navigation.state!=="idle"?xs(us,w.navigation.location,u):w.matches;lt(Dn,"Didn't find any matches after fetcher action");let ii=++j;J.set(H,ii);let si=Jc(Re,yt.data);w.fetchers.set(H,si);let[li,ea]=vP(e.history,w,Dn,Re,Ye,!1,d.unstable_skipActionErrorRevalidation,M,I,U,be,oe,se,us,u,[he.route.id,yt]);ea.filter(G=>G.key!==H).forEach(G=>{let ce=G.key,fe=w.fetchers.get(ce),ee=Jc(void 0,fe?fe.data:void 0);w.fetchers.set(ce,ee),W.has(ce)&&Oe(ce),G.controller&&W.set(ce,G.controller)}),De({fetchers:new Map(w.fetchers)});let wo=()=>ea.forEach(G=>Oe(G.key));it.signal.addEventListener("abort",wo);let{loaderResults:D,fetcherResults:B}=await K(w.matches,Dn,li,ea,dt);if(it.signal.aborted)return;it.signal.removeEventListener("abort",wo),J.delete(H),W.delete(H),ea.forEach(G=>W.delete(G.key));let k=EP([...D,...B]);if(k){if(k.idx>=li.length){let G=ea[k.idx-li.length].key;se.add(G)}return ge(dt,k.result)}let{loaderData:F,errors:L}=bP(w,w.matches,li,D,void 0,ea,B,xe);if(w.fetchers.has(H)){let G=pi(yt.data);w.fetchers.set(H,G)}St(ii),w.navigation.state==="loading"&&ii>V?(lt(S,"Expected pending action"),C&&C.abort(),Fe(w.navigation.location,{matches:Dn,loaderData:F,errors:L,fetchers:new Map(w.fetchers)})):(De({errors:L,loaderData:xP(w.loaderData,F,Dn,L),fetchers:new Map(w.fetchers)}),M=!1)}async function me(H,Y,ae,he,Ae,Le,Ne,Re){let ot=w.fetchers.get(H);re(H,Jc(Re,ot?ot.data:void 0),{flushSync:Ne});let We=new AbortController,it=Cl(e.history,ae,We.signal);if(Le){let yt=await Pr(Ae,ae,it.signal);if(yt.type==="aborted")return;if(yt.type==="error"){let{error:Ye}=Qt(ae,yt);ie(H,Y,Ye,{flushSync:Ne});return}else if(yt.matches)Ae=yt.matches,he=xd(Ae,ae);else{ie(H,Y,cn(404,{pathname:ae}),{flushSync:Ne});return}}W.set(H,We);let _t=j,Rt=(await Z("loader",it,[he],Ae))[0];if(Ts(Rt)&&(Rt=await _A(Rt,it.signal,!0)||Rt),W.get(H)===We&&W.delete(H),!it.signal.aborted){if(be.has(H)){re(H,pi(void 0));return}if(js(Rt))if(V>_t){re(H,pi(void 0));return}else{se.add(H),await ge(it,Rt);return}if(Vn(Rt)){ie(H,Y,Rt.error);return}lt(!Ts(Rt),"Unhandled fetcher deferred data"),re(H,pi(Rt.data))}}async function ge(H,Y,ae){let{submission:he,fetcherSubmission:Ae,replace:Le}=ae===void 0?{}:ae;Y.response.headers.has("X-Remix-Revalidate")&&(M=!0);let Ne=Y.response.headers.get("Location");lt(Ne,"Expected a Location header on the redirect Response"),Ne=gP(Ne,new URL(H.url),u);let Re=bf(w.location,Ne,{_isRedirect:!0});if(r){let Rt=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(H_.test(Ne)){const yt=e.history.createURL(Ne);Rt=yt.origin!==t.location.origin||qi(yt.pathname,u)==null}if(Rt){Le?t.location.replace(Ne):t.location.assign(Ne);return}}C=null;let ot=Le===!0?gr.Replace:gr.Push,{formMethod:We,formAction:it,formEncType:_t}=w.navigation;!he&&!Ae&&We&&it&&_t&&(he=OP(w.navigation));let ht=he||Ae;if(d8.has(Y.response.status)&&ht&&ka(ht.formMethod))await ft(ot,Re,{submission:nr({},ht,{formAction:Ne}),preventScrollReset:O});else{let Rt=x0(Re,he);await ft(ot,Re,{overrideNavigation:Rt,fetcherSubmission:Ae,preventScrollReset:O})}}async function Z(H,Y,ae,he){try{let Ae=await x8(l,H,Y,ae,he,o,a);return await Promise.all(Ae.map((Le,Ne)=>{if(P8(Le)){let Re=Le.result;return{type:qt.redirect,response:E8(Re,Y,ae[Ne].route.id,he,u,d.v7_relativeSplatPath)}}return _8(Le)}))}catch(Ae){return ae.map(()=>({type:qt.error,error:Ae}))}}async function K(H,Y,ae,he,Ae){let[Le,...Ne]=await Promise.all([ae.length?Z("loader",Ae,ae,Y):[],...he.map(Re=>{if(Re.matches&&Re.match&&Re.controller){let ot=Cl(e.history,Re.path,Re.controller.signal);return Z("loader",ot,[Re.match],Re.matches).then(We=>We[0])}else return Promise.resolve({type:qt.error,error:cn(404,{pathname:Re.path})})})]);return await Promise.all([SP(H,ae,Le,Le.map(()=>Ae.signal),!1,w.loaderData),SP(H,he.map(Re=>Re.match),Ne,he.map(Re=>Re.controller?Re.controller.signal:null),!0)]),{loaderResults:Le,fetcherResults:Ne}}function Q(){M=!0,I.push(...$t()),oe.forEach((H,Y)=>{W.has(Y)&&(U.push(Y),Oe(Y))})}function re(H,Y,ae){ae===void 0&&(ae={}),w.fetchers.set(H,Y),De({fetchers:new Map(w.fetchers)},{flushSync:(ae&&ae.flushSync)===!0})}function ie(H,Y,ae,he){he===void 0&&(he={});let Ae=Id(w.matches,Y);Xe(H),De({errors:{[Ae.route.id]:ae},fetchers:new Map(w.fetchers)},{flushSync:(he&&he.flushSync)===!0})}function Ie(H){return d.v7_fetcherPersist&&(ve.set(H,(ve.get(H)||0)+1),be.has(H)&&be.delete(H)),w.fetchers.get(H)||f8}function Xe(H){let Y=w.fetchers.get(H);W.has(H)&&!(Y&&Y.state==="loading"&&J.has(H))&&Oe(H),oe.delete(H),J.delete(H),se.delete(H),be.delete(H),w.fetchers.delete(H)}function Be(H){if(d.v7_fetcherPersist){let Y=(ve.get(H)||0)-1;Y<=0?(ve.delete(H),be.add(H)):ve.set(H,Y)}else Xe(H);De({fetchers:new Map(w.fetchers)})}function Oe(H){let Y=W.get(H);lt(Y,"Expected fetch controller: "+H),Y.abort(),W.delete(H)}function Je(H){for(let Y of H){let ae=Ie(Y),he=pi(ae.data);w.fetchers.set(Y,he)}}function rt(){let H=[],Y=!1;for(let ae of se){let he=w.fetchers.get(ae);lt(he,"Expected fetcher: "+ae),he.state==="loading"&&(se.delete(ae),H.push(ae),Y=!0)}return Je(H),Y}function St(H){let Y=[];for(let[ae,he]of J)if(he0}function At(H,Y){let ae=w.blockers.get(H)||Ll;return _e.get(H)!==Y&&_e.set(H,Y),ae}function Ar(H){w.blockers.delete(H),_e.delete(H)}function Er(H,Y){let ae=w.blockers.get(H)||Ll;lt(ae.state==="unblocked"&&Y.state==="blocked"||ae.state==="blocked"&&Y.state==="blocked"||ae.state==="blocked"&&Y.state==="proceeding"||ae.state==="blocked"&&Y.state==="unblocked"||ae.state==="proceeding"&&Y.state==="unblocked","Invalid blocker state transition: "+ae.state+" -> "+Y.state);let he=new Map(w.blockers);he.set(H,Y),De({blockers:he})}function xn(H){let{currentLocation:Y,nextLocation:ae,historyAction:he}=H;if(_e.size===0)return;_e.size>1&&al(!1,"A router only supports one blocker at a time");let Ae=Array.from(_e.entries()),[Le,Ne]=Ae[Ae.length-1],Re=w.blockers.get(Le);if(!(Re&&Re.state==="proceeding")&&Ne({currentLocation:Y,nextLocation:ae,historyAction:he}))return Le}function Mr(H){let Y=cn(404,{pathname:H}),ae=s||i,{matches:he,route:Ae}=_P(ae);return $t(),{notFoundMatches:he,route:Ae,error:Y}}function Qt(H,Y){let ae=Y.partialMatches,he=ae[ae.length-1].route,Ae=cn(400,{type:"route-discovery",routeId:he.id,pathname:H,message:Y.error!=null&&"message"in Y.error?Y.error:String(Y.error)});return{notFoundMatches:ae,route:he,error:Ae}}function $t(H){let Y=[];return xe.forEach((ae,he)=>{(!H||H(he))&&(ae.cancel(),Y.push(he),xe.delete(he))}),Y}function vr(H,Y,ae){if(m=H,_=Y,g=ae||null,!x&&w.navigation===b0){x=!0;let he=nn(w.location,w.matches);he!=null&&De({restoreScrollPosition:he})}return()=>{m=null,_=null,g=null}}function hr(H,Y){return g&&g(H,Y.map(he=>VB(he,w.loaderData)))||H.key}function Nn(H,Y){if(m&&_){let ae=hr(H,Y);m[ae]=_()}}function nn(H,Y){if(m){let ae=hr(H,Y),he=m[ae];if(typeof he=="number")return he}return null}function Br(H,Y,ae){if(c)if(H){if(H[H.length-1].route.path==="*")return{active:!0,matches:xv(Y,ae,u,!0)}}else return{active:!0,matches:xv(Y,ae,u,!0)||[]};return{active:!1,matches:null}}async function Pr(H,Y,ae){let he=H,Ae=he.length>0?he[he.length-1].route:null;for(;;){try{await y8(c,Y,he,i||s,o,a,Te,ae)}catch(We){return{type:"error",error:We,partialMatches:he}}if(ae.aborted)return{type:"aborted"};let Le=s||i,Ne=xs(Le,Y,u),Re=!1;if(Ne){let We=Ne[Ne.length-1].route;if(We.index)return{type:"success",matches:Ne};if(We.path&&We.path.length>0)if(We.path==="*")Re=!0;else return{type:"success",matches:Ne}}let ot=xv(Le,Y,u,!0);if(!ot||he.map(We=>We.route.id).join("-")===ot.map(We=>We.route.id).join("-"))return{type:"success",matches:Re?Ne:null};if(he=ot,Ae=he[he.length-1].route,Ae.path==="*")return{type:"success",matches:he}}}function xo(H){o={},s=xf(H,a,void 0,o)}return v={get basename(){return u},get future(){return d},get state(){return w},get routes(){return i},get window(){return t},initialize:Ee,subscribe:je,enableScrollRestoration:vr,navigate:He,fetch:le,revalidate:et,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:Ie,deleteFetcher:Be,dispose:Ve,getBlocker:At,deleteBlocker:Ar,patchRoutes(H,Y){return bA(H,Y,i||s,o,a)},_internalFetchControllers:W,_internalActiveDeferreds:xe,_internalSetRoutes:xo},v}function h8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function A1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let d of t)if(u.push(d),d.route.id===i){l=d;break}}else u=t,l=t[t.length-1];let c=Ym(a||".",Xm(u,o),qi(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!q_(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Bo([r,c.pathname])),ol(c)}function pP(e,t,r,n){if(!n||!h8(n))return{path:r};if(n.formMethod&&!R8(n.formMethod))return{path:r,error:cn(405,{method:n.formMethod})};let a=()=>({path:r,error:cn(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=xA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ka(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,m)=>{let[g,_]=m;return""+h+g+"="+_+` -`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!ka(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}lt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=M1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=M1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=yP(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=yP(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(ka(c.formMethod))return{path:r,submission:c};let d=mo(r);return t&&d.search&&q_(d.search)&&u.append("index",""),d.search="?"+u,{path:ol(d),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function vP(e,t,r,n,a,o,i,s,u,l,c,d,p,h,m,g){let _=g?Vn(g[1])?g[1].error:g[1].data:void 0,x=e.createURL(t.location),y=e.createURL(a),b=g&&Vn(g[1])?g[0]:void 0,E=b?m8(r,b):r,v=g?g[1].statusCode:void 0,w=i&&v&&v>=400,S=E.filter((C,P)=>{let{route:$}=C;if($.lazy)return!0;if($.loader==null)return!1;if(o)return typeof $.loader!="function"||$.loader.hydrate?!0:t.loaderData[$.id]===void 0&&(!t.errors||t.errors[$.id]===void 0);if(g8(t.loaderData,t.matches[P],C)||u.some(M=>M===C.route.id))return!0;let T=t.matches[P],A=C;return hP(C,nr({currentUrl:x,currentParams:T.params,nextUrl:y,nextParams:A.params},n,{actionResult:_,unstable_actionStatus:v,defaultShouldRevalidate:w?!1:s||x.pathname+x.search===y.pathname+y.search||x.search!==y.search||yA(T,A)}))}),O=[];return d.forEach((C,P)=>{if(o||!r.some(I=>I.route.id===C.routeId)||c.has(P))return;let $=xs(h,C.path,m);if(!$){O.push({key:P,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(P),A=xd($,C.path),M=!1;p.has(P)?M=!1:l.includes(P)?M=!0:T&&T.state!=="idle"&&T.data===void 0?M=s:M=hP(A,nr({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:_,unstable_actionStatus:v,defaultShouldRevalidate:w?!1:s})),M&&O.push({key:P,routeId:C.routeId,path:C.path,matches:$,match:A,controller:new AbortController})}),[S,O]}function g8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function yA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function hP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function y8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,d)=>{s.aborted||bA(c,d,n,a,o)}}),i.set(u,l)),l&&C8(l)&&await l}finally{i.delete(u)}}function bA(e,t,r,n,a){if(e){var o;let i=n[e];lt(i,"No route found to patch children into: routeId = "+e);let s=xf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=xf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function mP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];lt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";al(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!zB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,nr({},t(a),{lazy:void 0}))}function b8(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function x8(e,t,r,n,a,o,i,s){let u=n.reduce((d,p)=>d.add(p.route.id),new Set),l=new Set,c=await e({matches:a.map(d=>{let p=u.has(d.route.id);return nr({},d,{shouldLoad:p,resolve:m=>(l.add(d.route.id),p?w8(t,r,d,o,i,m,s):Promise.resolve({type:qt.data,result:void 0}))})}),request:r,params:a[0].params,context:s});return a.forEach(d=>lt(l.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((d,p)=>u.has(a[p].route.id))}async function w8(e,t,r,n,a,o,i){let s,u,l=c=>{let d,p=new Promise((g,_)=>d=_);u=()=>d(),t.signal.addEventListener("abort",u);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:i},...g!==void 0?[g]:[]),m;return o?m=o(g=>h(g)):m=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([m,p])};try{let c=r.route[e];if(r.route.lazy)if(c){let d,[p]=await Promise.all([l(c).catch(h=>{d=h}),mP(r.route,a,n)]);if(d!==void 0)throw d;s=p}else if(await mP(r.route,a,n),c=r.route[e],c)s=await l(c);else if(e==="action"){let d=new URL(t.url),p=d.pathname+d.search;throw cn(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:qt.data,result:void 0};else if(c)s=await l(c);else{let d=new URL(t.url),p=d.pathname+d.search;throw cn(404,{pathname:p})}lt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:qt.error,result:c}}finally{u&&t.signal.removeEventListener("abort",u)}return s}async function _8(e){let{result:t,type:r,status:n}=e;if(wA(t)){let i;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(s){return{type:qt.error,error:s}}return r===qt.error?{type:qt.error,error:new W_(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:qt.data,data:i,statusCode:t.status,headers:t.headers}}if(r===qt.error)return{type:qt.error,error:t,statusCode:Jm(t)?t.status:n};if($8(t)){var a,o;return{type:qt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}return{type:qt.data,data:t,statusCode:n}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(lt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!H_.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=A1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function gP(e,t,r){if(H_.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=qi(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Cl(e,t,r,n){let a=e.createURL(xA(t)).toString(),o={signal:r};if(n&&ka(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=M1(n.formData):o.body=n.formData}return new Request(a,o)}function M1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function yP(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function S8(e,t,r,n,a,o){let i={},s=null,u,l=!1,c={},d=n&&Vn(n[1])?n[1].error:void 0;return r.forEach((p,h)=>{let m=t[h].route.id;if(lt(!js(p),"Cannot handle redirect results in processLoaderData"),Vn(p)){let g=p.error;d!==void 0&&(g=d,d=void 0),s=s||{};{let _=Id(e,m);s[_.route.id]==null&&(s[_.route.id]=g)}i[m]=void 0,l||(l=!0,u=Jm(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else Ts(p)?(a.set(m,p.deferredData),i[m]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(u=p.statusCode),p.headers&&(c[m]=p.headers)):(i[m]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(u=p.statusCode),p.headers&&(c[m]=p.headers))}),d!==void 0&&n&&(s={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:u||200,loaderHeaders:c}}function bP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=S8(t,r,n,a,s);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function _P(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function cn(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `children()` function for '+("route `"+n+"` threw the following error:\n"+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new W_(e||500,s,new Error(u),!0)}function EP(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(js(r))return{result:r,idx:t}}}function xA(e){let t=typeof e=="string"?mo(e):e;return ol(nr({},t,{hash:""}))}function O8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function C8(e){return typeof e=="object"&&e!=null&&"then"in e}function P8(e){return wA(e.result)&&c8.has(e.result.status)}function Ts(e){return e.type===qt.deferred}function Vn(e){return e.type===qt.error}function js(e){return(e&&e.type)===qt.redirect}function $8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function wA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function R8(e){return u8.has(e.toLowerCase())}function ka(e){return s8.has(e.toLowerCase())}async function SP(e,t,r,n,a,o){for(let i=0;id.route.id===u.route.id),c=l!=null&&!yA(l,u)&&(o&&o[u.route.id])!==void 0;if(Ts(s)&&(a||c)){let d=n[i];lt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await _A(s,d,a).then(p=>{p&&(r[i]=p||r[i])})}}}async function _A(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:qt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:qt.error,error:a}}return{type:qt.data,data:e.deferredData.data}}}function q_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function xd(e,t){let r=typeof t=="string"?mo(t).search:t.search;if(e[e.length-1].route.index&&q_(r||""))return e[e.length-1];let n=hA(e);return n[n.length-1]}function OP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function x0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function k8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Jc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function T8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function j8(e,t){try{let r=e.sessionStorage.getItem(gA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function I8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(gA,JSON.stringify(r))}catch(n){al(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function al(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DB(){return Math.random().toString(36).substr(2,8)}function dP(e,t){return{usr:e.state,key:e.key,idx:t}}function xf(e,t,r,n){return r===void 0&&(r=null),nr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mo(t):t,{state:r,key:t&&t.key||n||DB()})}function ol(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function mo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function BB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=gr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(nr({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function d(){s=gr.Pop;let _=c(),x=_==null?null:_-l;l=_,u&&u({action:s,location:g.location,delta:x})}function p(_,x){s=gr.Push;let y=xf(g.location,_,x);r&&r(y,_),l=c()+1;let b=dP(y,l),E=g.createHref(y);try{i.pushState(b,"",E)}catch(v){if(v instanceof DOMException&&v.name==="DataCloneError")throw v;a.location.assign(E)}o&&u&&u({action:s,location:g.location,delta:1})}function h(_,x){s=gr.Replace;let y=xf(g.location,_,x);r&&r(y,_),l=c();let b=dP(y,l),E=g.createHref(y);i.replaceState(b,"",E),o&&u&&u({action:s,location:g.location,delta:0})}function m(_){let x=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof _=="string"?_:ol(_);return y=y.replace(/ $/,"%20"),lt(x,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,x)}let g={get action(){return s},get location(){return e(a,i)},listen(_){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(cP,d),u=_,()=>{a.removeEventListener(cP,d),u=null}},createHref(_){return t(a,_)},createURL:m,encodeLocation(_){let x=m(_);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:h,go(_){return i.go(_)}};return g}var qt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qt||(qt={}));const zB=new Set(["lazy","caseSensitive","path","id","index","children"]);function UB(e){return e.index===!0}function wf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(lt(a.index!==!0||!a.children,"Cannot specify children on an index route"),lt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),UB(a)){let u=nr({},a,t(a),{id:s});return n[s]=u,u}else{let u=nr({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=wf(a.children,t,i,n)),u}})}function xs(e,t,r){return r===void 0&&(r="/"),xv(e,t,r,!1)}function xv(e,t,r,n){let a=typeof t=="string"?mo(t):t,o=qi(a.pathname||"/",r);if(o==null)return null;let i=pA(e);WB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(lt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=Bo([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(lt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),pA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:YB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of vA(o.path))a(o,i,u)}),t}function vA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=vA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function WB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:JB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const HB=/^:[\w-]+$/,qB=3,KB=2,GB=1,QB=10,XB=-2,fP=e=>e==="*";function YB(e,t){let r=e.split("/"),n=r.length;return r.some(fP)&&(n+=XB),t&&(n+=KB),r.filter(a=>!fP(a)).reduce((a,o)=>a+(HB.test(o)?qB:o===""?GB:QB),n)}function JB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ZB(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:h}=c;if(p==="*"){let g=s[d]||"";i=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?l[p]=void 0:l[p]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function e8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),al(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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function t8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return al(!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 qi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function r8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?mo(e):e;return{pathname:r?r.startsWith("/")?r:n8(r,t):t,search:o8(n),hash:i8(a)}}function n8(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function y0(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Qm(e,t){let r=hA(e);return t?r.map((n,a)=>a===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Xm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=mo(e):(a=nr({},e),lt(!a.pathname||!a.pathname.includes("?"),y0("?","pathname","search",a)),lt(!a.pathname||!a.pathname.includes("#"),y0("#","pathname","hash",a)),lt(!a.search||!a.search.includes("#"),y0("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}s=d>=0?t[d]:"/"}let u=r8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const Bo=e=>e.join("/").replace(/\/\/+/g,"/"),a8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class W_{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ym(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const mA=["post","put","patch","delete"],s8=new Set(mA),l8=["get",...mA],u8=new Set(l8),c8=new Set([301,302,303,307,308]),d8=new Set([307,308]),b0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},f8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ll={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},H_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),gA="remix-router-transitions";function v8(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;a=Y=>({hasErrorBoundary:H(Y)})}else a=p8;let o={},i=wf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||b8,c=e.unstable_patchRoutesOnMiss,d=nr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,m=null,g=null,_=null,x=e.hydrationData!=null,y=xs(i,e.history.location,u),b=null;if(y==null&&!c){let H=cn(404,{pathname:e.history.location.pathname}),{matches:Y,route:ae}=_P(i);y=Y,b={[ae.id]:H}}let E;if(!y)E=!1,y=[];else if(y.some(H=>H.route.lazy))E=!1;else if(!y.some(H=>H.route.loader))E=!0;else if(d.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,Y=e.hydrationData?e.hydrationData.errors:null,ae=he=>he.route.loader?typeof he.route.loader=="function"&&he.route.loader.hydrate===!0?!1:H&&H[he.route.id]!==void 0||Y&&Y[he.route.id]!==void 0:!0;if(Y){let he=y.findIndex(Ae=>Y[Ae.route.id]!==void 0);E=y.slice(0,he+1).every(ae)}else E=y.every(ae)}else E=e.hydrationData!=null;let v,w={historyAction:e.history.action,location:e.history.location,matches:y,initialized:E,navigation:b0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},S=gr.Pop,O=!1,C,P=!1,$=new Map,T=null,A=!1,M=!1,I=[],U=[],W=new Map,j=0,V=-1,J=new Map,se=new Set,oe=new Map,ve=new Map,be=new Set,xe=new Map,_e=new Map,Te=new Map,$e=!1;function Ee(){if(p=e.history.listen(H=>{let{action:Y,location:ae,delta:he}=H;if($e){$e=!1;return}al(_e.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ae=xn({currentLocation:w.location,nextLocation:ae,historyAction:Y});if(Ae&&he!=null){$e=!0,e.history.go(he*-1),Er(Ae,{state:"blocked",location:ae,proceed(){Er(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:ae}),e.history.go(he)},reset(){let Le=new Map(w.blockers);Le.set(Ae,Ll),De({blockers:Le})}});return}return ft(Y,ae)}),r){j8(t,$);let H=()=>I8(t,$);t.addEventListener("pagehide",H),T=()=>t.removeEventListener("pagehide",H)}return w.initialized||ft(gr.Pop,w.location,{initialHydration:!0}),v}function Ve(){p&&p(),T&&T(),h.clear(),C&&C.abort(),w.fetchers.forEach((H,Y)=>Xe(Y)),w.blockers.forEach((H,Y)=>Ar(Y))}function je(H){return h.add(H),()=>h.delete(H)}function De(H,Y){Y===void 0&&(Y={}),w=nr({},w,H);let ae=[],he=[];d.v7_fetcherPersist&&w.fetchers.forEach((Ae,Le)=>{Ae.state==="idle"&&(be.has(Le)?he.push(Le):ae.push(Le))}),[...h].forEach(Ae=>Ae(w,{deletedFetchers:he,unstable_viewTransitionOpts:Y.viewTransitionOpts,unstable_flushSync:Y.flushSync===!0})),d.v7_fetcherPersist&&(ae.forEach(Ae=>w.fetchers.delete(Ae)),he.forEach(Ae=>Xe(Ae)))}function Fe(H,Y,ae){var he,Ae;let{flushSync:Le}=ae===void 0?{}:ae,Ne=w.actionData!=null&&w.navigation.formMethod!=null&&ka(w.navigation.formMethod)&&w.navigation.state==="loading"&&((he=H.state)==null?void 0:he._isRedirect)!==!0,Re;Y.actionData?Object.keys(Y.actionData).length>0?Re=Y.actionData:Re=null:Ne?Re=w.actionData:Re=null;let ot=Y.loaderData?xP(w.loaderData,Y.loaderData,Y.matches||[],Y.errors):w.loaderData,We=w.blockers;We.size>0&&(We=new Map(We),We.forEach((ht,Rt)=>We.set(Rt,Ll)));let it=O===!0||w.navigation.formMethod!=null&&ka(w.navigation.formMethod)&&((Ae=H.state)==null?void 0:Ae._isRedirect)!==!0;s&&(i=s,s=void 0),A||S===gr.Pop||(S===gr.Push?e.history.push(H,H.state):S===gr.Replace&&e.history.replace(H,H.state));let _t;if(S===gr.Pop){let ht=$.get(w.location.pathname);ht&&ht.has(H.pathname)?_t={currentLocation:w.location,nextLocation:H}:$.has(H.pathname)&&(_t={currentLocation:H,nextLocation:w.location})}else if(P){let ht=$.get(w.location.pathname);ht?ht.add(H.pathname):(ht=new Set([H.pathname]),$.set(w.location.pathname,ht)),_t={currentLocation:w.location,nextLocation:H}}De(nr({},Y,{actionData:Re,loaderData:ot,historyAction:S,location:H,initialized:!0,navigation:b0,revalidation:"idle",restoreScrollPosition:nn(H,Y.matches||w.matches),preventScrollReset:it,blockers:We}),{viewTransitionOpts:_t,flushSync:Le===!0}),S=gr.Pop,O=!1,P=!1,A=!1,M=!1,I=[],U=[]}async function He(H,Y){if(typeof H=="number"){e.history.go(H);return}let ae=A1(w.location,w.matches,u,d.v7_prependBasename,H,d.v7_relativeSplatPath,Y==null?void 0:Y.fromRouteId,Y==null?void 0:Y.relative),{path:he,submission:Ae,error:Le}=pP(d.v7_normalizeFormMethod,!1,ae,Y),Ne=w.location,Re=xf(w.location,he,Y&&Y.state);Re=nr({},Re,e.history.encodeLocation(Re));let ot=Y&&Y.replace!=null?Y.replace:void 0,We=gr.Push;ot===!0?We=gr.Replace:ot===!1||Ae!=null&&ka(Ae.formMethod)&&Ae.formAction===w.location.pathname+w.location.search&&(We=gr.Replace);let it=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,_t=(Y&&Y.unstable_flushSync)===!0,ht=xn({currentLocation:Ne,nextLocation:Re,historyAction:We});if(ht){Er(ht,{state:"blocked",location:Re,proceed(){Er(ht,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),He(H,Y)},reset(){let Rt=new Map(w.blockers);Rt.set(ht,Ll),De({blockers:Rt})}});return}return await ft(We,Re,{submission:Ae,pendingError:Le,preventScrollReset:it,replace:Y&&Y.replace,enableViewTransition:Y&&Y.unstable_viewTransition,flushSync:_t})}function et(){if(Q(),De({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){ft(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}ft(S||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function ft(H,Y,ae){C&&C.abort(),C=null,S=H,A=(ae&&ae.startUninterruptedRevalidation)===!0,Nn(w.location,w.matches),O=(ae&&ae.preventScrollReset)===!0,P=(ae&&ae.enableViewTransition)===!0;let he=s||i,Ae=ae&&ae.overrideNavigation,Le=xs(he,Y,u),Ne=(ae&&ae.flushSync)===!0,Re=Br(Le,he,Y.pathname);if(Re.active&&Re.matches&&(Le=Re.matches),!Le){let{error:yt,notFoundMatches:Ye,route:dt}=Mr(Y.pathname);Fe(Y,{matches:Ye,loaderData:{},errors:{[dt.id]:yt}},{flushSync:Ne});return}if(w.initialized&&!M&&O8(w.location,Y)&&!(ae&&ae.submission&&ka(ae.submission.formMethod))){Fe(Y,{matches:Le},{flushSync:Ne});return}C=new AbortController;let ot=Cl(e.history,Y,C.signal,ae&&ae.submission),We;if(ae&&ae.pendingError)We=[Id(Le).route.id,{type:qt.error,error:ae.pendingError}];else if(ae&&ae.submission&&ka(ae.submission.formMethod)){let yt=await xt(ot,Y,ae.submission,Le,Re.active,{replace:ae.replace,flushSync:Ne});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[Ye,dt]=yt.pendingActionResult;if(Vn(dt)&&Ym(dt.error)&&dt.error.status===404){C=null,Fe(Y,{matches:yt.matches,loaderData:{},errors:{[Ye]:dt.error}});return}}Le=yt.matches||Le,We=yt.pendingActionResult,Ae=x0(Y,ae.submission),Ne=!1,Re.active=!1,ot=Cl(e.history,ot.url,ot.signal)}let{shortCircuited:it,matches:_t,loaderData:ht,errors:Rt}=await z(ot,Y,Le,Re.active,Ae,ae&&ae.submission,ae&&ae.fetcherSubmission,ae&&ae.replace,ae&&ae.initialHydration===!0,Ne,We);it||(C=null,Fe(Y,nr({matches:_t||Le},wP(We),{loaderData:ht,errors:Rt})))}async function xt(H,Y,ae,he,Ae,Le){Le===void 0&&(Le={}),Q();let Ne=k8(Y,ae);if(De({navigation:Ne},{flushSync:Le.flushSync===!0}),Ae){let We=await Pr(he,Y.pathname,H.signal);if(We.type==="aborted")return{shortCircuited:!0};if(We.type==="error"){let{error:it,notFoundMatches:_t,route:ht}=Qt(Y.pathname,We);return{matches:_t,pendingActionResult:[ht.id,{type:qt.error,error:it}]}}else if(We.matches)he=We.matches;else{let{notFoundMatches:it,error:_t,route:ht}=Mr(Y.pathname);return{matches:it,pendingActionResult:[ht.id,{type:qt.error,error:_t}]}}}let Re,ot=xd(he,Y);if(!ot.route.action&&!ot.route.lazy)Re={type:qt.error,error:cn(405,{method:H.method,pathname:Y.pathname,routeId:ot.route.id})};else if(Re=(await Z("action",H,[ot],he))[0],H.signal.aborted)return{shortCircuited:!0};if(js(Re)){let We;return Le&&Le.replace!=null?We=Le.replace:We=gP(Re.response.headers.get("Location"),new URL(H.url),u)===w.location.pathname+w.location.search,await ge(H,Re,{submission:ae,replace:We}),{shortCircuited:!0}}if(Ts(Re))throw cn(400,{type:"defer-action"});if(Vn(Re)){let We=Id(he,ot.route.id);return(Le&&Le.replace)!==!0&&(S=gr.Push),{matches:he,pendingActionResult:[We.route.id,Re]}}return{matches:he,pendingActionResult:[ot.route.id,Re]}}async function z(H,Y,ae,he,Ae,Le,Ne,Re,ot,We,it){let _t=Ae||x0(Y,Le),ht=Le||Ne||OP(_t),Rt=!A&&(!d.v7_partialHydration||!ot);if(he){if(Rt){let F=X(it);De(nr({navigation:_t},F!==void 0?{actionData:F}:{}),{flushSync:We})}let k=await Pr(ae,Y.pathname,H.signal);if(k.type==="aborted")return{shortCircuited:!0};if(k.type==="error"){let{error:F,notFoundMatches:L,route:G}=Qt(Y.pathname,k);return{matches:L,loaderData:{},errors:{[G.id]:F}}}else if(k.matches)ae=k.matches;else{let{error:F,notFoundMatches:L,route:G}=Mr(Y.pathname);return{matches:L,loaderData:{},errors:{[G.id]:F}}}}let yt=s||i,[Ye,dt]=vP(e.history,w,ae,ht,Y,d.v7_partialHydration&&ot===!0,d.unstable_skipActionErrorRevalidation,M,I,U,be,oe,se,yt,u,it);if($t(k=>!(ae&&ae.some(F=>F.route.id===k))||Ye&&Ye.some(F=>F.route.id===k)),V=++j,Ye.length===0&&dt.length===0){let k=rt();return Fe(Y,nr({matches:ae,loaderData:{},errors:it&&Vn(it[1])?{[it[0]]:it[1].error}:null},wP(it),k?{fetchers:new Map(w.fetchers)}:{}),{flushSync:We}),{shortCircuited:!0}}if(Rt){let k={};if(!he){k.navigation=_t;let F=X(it);F!==void 0&&(k.actionData=F)}dt.length>0&&(k.fetchers=te(dt)),De(k,{flushSync:We})}dt.forEach(k=>{W.has(k.key)&&Oe(k.key),k.controller&&W.set(k.key,k.controller)});let us=()=>dt.forEach(k=>Oe(k.key));C&&C.signal.addEventListener("abort",us);let{loaderResults:Dn,fetcherResults:ii}=await K(w.matches,ae,Ye,dt,H);if(H.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",us),dt.forEach(k=>W.delete(k.key));let si=EP([...Dn,...ii]);if(si){if(si.idx>=Ye.length){let k=dt[si.idx-Ye.length].key;se.add(k)}return await ge(H,si.result,{replace:Re}),{shortCircuited:!0}}let{loaderData:li,errors:ea}=bP(w,ae,Ye,Dn,it,dt,ii,xe);xe.forEach((k,F)=>{k.subscribe(L=>{(L||k.done)&&xe.delete(F)})}),d.v7_partialHydration&&ot&&w.errors&&Object.entries(w.errors).filter(k=>{let[F]=k;return!Ye.some(L=>L.route.id===F)}).forEach(k=>{let[F,L]=k;ea=Object.assign(ea||{},{[F]:L})});let wo=rt(),D=St(V),B=wo||D||dt.length>0;return nr({matches:ae,loaderData:li,errors:ea},B?{fetchers:new Map(w.fetchers)}:{})}function X(H){if(H&&!Vn(H[1]))return{[H[0]]:H[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function te(H){return H.forEach(Y=>{let ae=w.fetchers.get(Y.key),he=Jc(void 0,ae?ae.data:void 0);w.fetchers.set(Y.key,he)}),new Map(w.fetchers)}function le(H,Y,ae,he){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(H)&&Oe(H);let Ae=(he&&he.unstable_flushSync)===!0,Le=s||i,Ne=A1(w.location,w.matches,u,d.v7_prependBasename,ae,d.v7_relativeSplatPath,Y,he==null?void 0:he.relative),Re=xs(Le,Ne,u),ot=Br(Re,Le,Ne);if(ot.active&&ot.matches&&(Re=ot.matches),!Re){ie(H,Y,cn(404,{pathname:Ne}),{flushSync:Ae});return}let{path:We,submission:it,error:_t}=pP(d.v7_normalizeFormMethod,!0,Ne,he);if(_t){ie(H,Y,_t,{flushSync:Ae});return}let ht=xd(Re,We);if(O=(he&&he.preventScrollReset)===!0,it&&ka(it.formMethod)){ye(H,Y,We,ht,Re,ot.active,Ae,it);return}oe.set(H,{routeId:Y,path:We}),me(H,Y,We,ht,Re,ot.active,Ae,it)}async function ye(H,Y,ae,he,Ae,Le,Ne,Re){Q(),oe.delete(H);function ot(G){if(!G.route.action&&!G.route.lazy){let ce=cn(405,{method:Re.formMethod,pathname:ae,routeId:Y});return ie(H,Y,ce,{flushSync:Ne}),!0}return!1}if(!Le&&ot(he))return;let We=w.fetchers.get(H);re(H,T8(Re,We),{flushSync:Ne});let it=new AbortController,_t=Cl(e.history,ae,it.signal,Re);if(Le){let G=await Pr(Ae,ae,_t.signal);if(G.type==="aborted")return;if(G.type==="error"){let{error:ce}=Qt(ae,G);ie(H,Y,ce,{flushSync:Ne});return}else if(G.matches){if(Ae=G.matches,he=xd(Ae,ae),ot(he))return}else{ie(H,Y,cn(404,{pathname:ae}),{flushSync:Ne});return}}W.set(H,it);let ht=j,yt=(await Z("action",_t,[he],Ae))[0];if(_t.signal.aborted){W.get(H)===it&&W.delete(H);return}if(d.v7_fetcherPersist&&be.has(H)){if(js(yt)||Vn(yt)){re(H,pi(void 0));return}}else{if(js(yt))if(W.delete(H),V>ht){re(H,pi(void 0));return}else return se.add(H),re(H,Jc(Re)),ge(_t,yt,{fetcherSubmission:Re});if(Vn(yt)){ie(H,Y,yt.error);return}}if(Ts(yt))throw cn(400,{type:"defer-action"});let Ye=w.navigation.location||w.location,dt=Cl(e.history,Ye,it.signal),us=s||i,Dn=w.navigation.state!=="idle"?xs(us,w.navigation.location,u):w.matches;lt(Dn,"Didn't find any matches after fetcher action");let ii=++j;J.set(H,ii);let si=Jc(Re,yt.data);w.fetchers.set(H,si);let[li,ea]=vP(e.history,w,Dn,Re,Ye,!1,d.unstable_skipActionErrorRevalidation,M,I,U,be,oe,se,us,u,[he.route.id,yt]);ea.filter(G=>G.key!==H).forEach(G=>{let ce=G.key,fe=w.fetchers.get(ce),ee=Jc(void 0,fe?fe.data:void 0);w.fetchers.set(ce,ee),W.has(ce)&&Oe(ce),G.controller&&W.set(ce,G.controller)}),De({fetchers:new Map(w.fetchers)});let wo=()=>ea.forEach(G=>Oe(G.key));it.signal.addEventListener("abort",wo);let{loaderResults:D,fetcherResults:B}=await K(w.matches,Dn,li,ea,dt);if(it.signal.aborted)return;it.signal.removeEventListener("abort",wo),J.delete(H),W.delete(H),ea.forEach(G=>W.delete(G.key));let k=EP([...D,...B]);if(k){if(k.idx>=li.length){let G=ea[k.idx-li.length].key;se.add(G)}return ge(dt,k.result)}let{loaderData:F,errors:L}=bP(w,w.matches,li,D,void 0,ea,B,xe);if(w.fetchers.has(H)){let G=pi(yt.data);w.fetchers.set(H,G)}St(ii),w.navigation.state==="loading"&&ii>V?(lt(S,"Expected pending action"),C&&C.abort(),Fe(w.navigation.location,{matches:Dn,loaderData:F,errors:L,fetchers:new Map(w.fetchers)})):(De({errors:L,loaderData:xP(w.loaderData,F,Dn,L),fetchers:new Map(w.fetchers)}),M=!1)}async function me(H,Y,ae,he,Ae,Le,Ne,Re){let ot=w.fetchers.get(H);re(H,Jc(Re,ot?ot.data:void 0),{flushSync:Ne});let We=new AbortController,it=Cl(e.history,ae,We.signal);if(Le){let yt=await Pr(Ae,ae,it.signal);if(yt.type==="aborted")return;if(yt.type==="error"){let{error:Ye}=Qt(ae,yt);ie(H,Y,Ye,{flushSync:Ne});return}else if(yt.matches)Ae=yt.matches,he=xd(Ae,ae);else{ie(H,Y,cn(404,{pathname:ae}),{flushSync:Ne});return}}W.set(H,We);let _t=j,Rt=(await Z("loader",it,[he],Ae))[0];if(Ts(Rt)&&(Rt=await _A(Rt,it.signal,!0)||Rt),W.get(H)===We&&W.delete(H),!it.signal.aborted){if(be.has(H)){re(H,pi(void 0));return}if(js(Rt))if(V>_t){re(H,pi(void 0));return}else{se.add(H),await ge(it,Rt);return}if(Vn(Rt)){ie(H,Y,Rt.error);return}lt(!Ts(Rt),"Unhandled fetcher deferred data"),re(H,pi(Rt.data))}}async function ge(H,Y,ae){let{submission:he,fetcherSubmission:Ae,replace:Le}=ae===void 0?{}:ae;Y.response.headers.has("X-Remix-Revalidate")&&(M=!0);let Ne=Y.response.headers.get("Location");lt(Ne,"Expected a Location header on the redirect Response"),Ne=gP(Ne,new URL(H.url),u);let Re=xf(w.location,Ne,{_isRedirect:!0});if(r){let Rt=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(H_.test(Ne)){const yt=e.history.createURL(Ne);Rt=yt.origin!==t.location.origin||qi(yt.pathname,u)==null}if(Rt){Le?t.location.replace(Ne):t.location.assign(Ne);return}}C=null;let ot=Le===!0?gr.Replace:gr.Push,{formMethod:We,formAction:it,formEncType:_t}=w.navigation;!he&&!Ae&&We&&it&&_t&&(he=OP(w.navigation));let ht=he||Ae;if(d8.has(Y.response.status)&&ht&&ka(ht.formMethod))await ft(ot,Re,{submission:nr({},ht,{formAction:Ne}),preventScrollReset:O});else{let Rt=x0(Re,he);await ft(ot,Re,{overrideNavigation:Rt,fetcherSubmission:Ae,preventScrollReset:O})}}async function Z(H,Y,ae,he){try{let Ae=await x8(l,H,Y,ae,he,o,a);return await Promise.all(Ae.map((Le,Ne)=>{if(P8(Le)){let Re=Le.result;return{type:qt.redirect,response:E8(Re,Y,ae[Ne].route.id,he,u,d.v7_relativeSplatPath)}}return _8(Le)}))}catch(Ae){return ae.map(()=>({type:qt.error,error:Ae}))}}async function K(H,Y,ae,he,Ae){let[Le,...Ne]=await Promise.all([ae.length?Z("loader",Ae,ae,Y):[],...he.map(Re=>{if(Re.matches&&Re.match&&Re.controller){let ot=Cl(e.history,Re.path,Re.controller.signal);return Z("loader",ot,[Re.match],Re.matches).then(We=>We[0])}else return Promise.resolve({type:qt.error,error:cn(404,{pathname:Re.path})})})]);return await Promise.all([SP(H,ae,Le,Le.map(()=>Ae.signal),!1,w.loaderData),SP(H,he.map(Re=>Re.match),Ne,he.map(Re=>Re.controller?Re.controller.signal:null),!0)]),{loaderResults:Le,fetcherResults:Ne}}function Q(){M=!0,I.push(...$t()),oe.forEach((H,Y)=>{W.has(Y)&&(U.push(Y),Oe(Y))})}function re(H,Y,ae){ae===void 0&&(ae={}),w.fetchers.set(H,Y),De({fetchers:new Map(w.fetchers)},{flushSync:(ae&&ae.flushSync)===!0})}function ie(H,Y,ae,he){he===void 0&&(he={});let Ae=Id(w.matches,Y);Xe(H),De({errors:{[Ae.route.id]:ae},fetchers:new Map(w.fetchers)},{flushSync:(he&&he.flushSync)===!0})}function Ie(H){return d.v7_fetcherPersist&&(ve.set(H,(ve.get(H)||0)+1),be.has(H)&&be.delete(H)),w.fetchers.get(H)||f8}function Xe(H){let Y=w.fetchers.get(H);W.has(H)&&!(Y&&Y.state==="loading"&&J.has(H))&&Oe(H),oe.delete(H),J.delete(H),se.delete(H),be.delete(H),w.fetchers.delete(H)}function Be(H){if(d.v7_fetcherPersist){let Y=(ve.get(H)||0)-1;Y<=0?(ve.delete(H),be.add(H)):ve.set(H,Y)}else Xe(H);De({fetchers:new Map(w.fetchers)})}function Oe(H){let Y=W.get(H);lt(Y,"Expected fetch controller: "+H),Y.abort(),W.delete(H)}function Je(H){for(let Y of H){let ae=Ie(Y),he=pi(ae.data);w.fetchers.set(Y,he)}}function rt(){let H=[],Y=!1;for(let ae of se){let he=w.fetchers.get(ae);lt(he,"Expected fetcher: "+ae),he.state==="loading"&&(se.delete(ae),H.push(ae),Y=!0)}return Je(H),Y}function St(H){let Y=[];for(let[ae,he]of J)if(he0}function At(H,Y){let ae=w.blockers.get(H)||Ll;return _e.get(H)!==Y&&_e.set(H,Y),ae}function Ar(H){w.blockers.delete(H),_e.delete(H)}function Er(H,Y){let ae=w.blockers.get(H)||Ll;lt(ae.state==="unblocked"&&Y.state==="blocked"||ae.state==="blocked"&&Y.state==="blocked"||ae.state==="blocked"&&Y.state==="proceeding"||ae.state==="blocked"&&Y.state==="unblocked"||ae.state==="proceeding"&&Y.state==="unblocked","Invalid blocker state transition: "+ae.state+" -> "+Y.state);let he=new Map(w.blockers);he.set(H,Y),De({blockers:he})}function xn(H){let{currentLocation:Y,nextLocation:ae,historyAction:he}=H;if(_e.size===0)return;_e.size>1&&al(!1,"A router only supports one blocker at a time");let Ae=Array.from(_e.entries()),[Le,Ne]=Ae[Ae.length-1],Re=w.blockers.get(Le);if(!(Re&&Re.state==="proceeding")&&Ne({currentLocation:Y,nextLocation:ae,historyAction:he}))return Le}function Mr(H){let Y=cn(404,{pathname:H}),ae=s||i,{matches:he,route:Ae}=_P(ae);return $t(),{notFoundMatches:he,route:Ae,error:Y}}function Qt(H,Y){let ae=Y.partialMatches,he=ae[ae.length-1].route,Ae=cn(400,{type:"route-discovery",routeId:he.id,pathname:H,message:Y.error!=null&&"message"in Y.error?Y.error:String(Y.error)});return{notFoundMatches:ae,route:he,error:Ae}}function $t(H){let Y=[];return xe.forEach((ae,he)=>{(!H||H(he))&&(ae.cancel(),Y.push(he),xe.delete(he))}),Y}function vr(H,Y,ae){if(m=H,_=Y,g=ae||null,!x&&w.navigation===b0){x=!0;let he=nn(w.location,w.matches);he!=null&&De({restoreScrollPosition:he})}return()=>{m=null,_=null,g=null}}function hr(H,Y){return g&&g(H,Y.map(he=>VB(he,w.loaderData)))||H.key}function Nn(H,Y){if(m&&_){let ae=hr(H,Y);m[ae]=_()}}function nn(H,Y){if(m){let ae=hr(H,Y),he=m[ae];if(typeof he=="number")return he}return null}function Br(H,Y,ae){if(c)if(H){if(H[H.length-1].route.path==="*")return{active:!0,matches:xv(Y,ae,u,!0)}}else return{active:!0,matches:xv(Y,ae,u,!0)||[]};return{active:!1,matches:null}}async function Pr(H,Y,ae){let he=H,Ae=he.length>0?he[he.length-1].route:null;for(;;){try{await y8(c,Y,he,i||s,o,a,Te,ae)}catch(We){return{type:"error",error:We,partialMatches:he}}if(ae.aborted)return{type:"aborted"};let Le=s||i,Ne=xs(Le,Y,u),Re=!1;if(Ne){let We=Ne[Ne.length-1].route;if(We.index)return{type:"success",matches:Ne};if(We.path&&We.path.length>0)if(We.path==="*")Re=!0;else return{type:"success",matches:Ne}}let ot=xv(Le,Y,u,!0);if(!ot||he.map(We=>We.route.id).join("-")===ot.map(We=>We.route.id).join("-"))return{type:"success",matches:Re?Ne:null};if(he=ot,Ae=he[he.length-1].route,Ae.path==="*")return{type:"success",matches:he}}}function xo(H){o={},s=wf(H,a,void 0,o)}return v={get basename(){return u},get future(){return d},get state(){return w},get routes(){return i},get window(){return t},initialize:Ee,subscribe:je,enableScrollRestoration:vr,navigate:He,fetch:le,revalidate:et,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:Ie,deleteFetcher:Be,dispose:Ve,getBlocker:At,deleteBlocker:Ar,patchRoutes(H,Y){return bA(H,Y,i||s,o,a)},_internalFetchControllers:W,_internalActiveDeferreds:xe,_internalSetRoutes:xo},v}function h8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function A1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let d of t)if(u.push(d),d.route.id===i){l=d;break}}else u=t,l=t[t.length-1];let c=Xm(a||".",Qm(u,o),qi(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!q_(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Bo([r,c.pathname])),ol(c)}function pP(e,t,r,n){if(!n||!h8(n))return{path:r};if(n.formMethod&&!R8(n.formMethod))return{path:r,error:cn(405,{method:n.formMethod})};let a=()=>({path:r,error:cn(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=xA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ka(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,m)=>{let[g,_]=m;return""+h+g+"="+_+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!ka(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}lt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=M1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=M1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=yP(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=yP(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(ka(c.formMethod))return{path:r,submission:c};let d=mo(r);return t&&d.search&&q_(d.search)&&u.append("index",""),d.search="?"+u,{path:ol(d),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function vP(e,t,r,n,a,o,i,s,u,l,c,d,p,h,m,g){let _=g?Vn(g[1])?g[1].error:g[1].data:void 0,x=e.createURL(t.location),y=e.createURL(a),b=g&&Vn(g[1])?g[0]:void 0,E=b?m8(r,b):r,v=g?g[1].statusCode:void 0,w=i&&v&&v>=400,S=E.filter((C,P)=>{let{route:$}=C;if($.lazy)return!0;if($.loader==null)return!1;if(o)return typeof $.loader!="function"||$.loader.hydrate?!0:t.loaderData[$.id]===void 0&&(!t.errors||t.errors[$.id]===void 0);if(g8(t.loaderData,t.matches[P],C)||u.some(M=>M===C.route.id))return!0;let T=t.matches[P],A=C;return hP(C,nr({currentUrl:x,currentParams:T.params,nextUrl:y,nextParams:A.params},n,{actionResult:_,unstable_actionStatus:v,defaultShouldRevalidate:w?!1:s||x.pathname+x.search===y.pathname+y.search||x.search!==y.search||yA(T,A)}))}),O=[];return d.forEach((C,P)=>{if(o||!r.some(I=>I.route.id===C.routeId)||c.has(P))return;let $=xs(h,C.path,m);if(!$){O.push({key:P,routeId:C.routeId,path:C.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(P),A=xd($,C.path),M=!1;p.has(P)?M=!1:l.includes(P)?M=!0:T&&T.state!=="idle"&&T.data===void 0?M=s:M=hP(A,nr({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:_,unstable_actionStatus:v,defaultShouldRevalidate:w?!1:s})),M&&O.push({key:P,routeId:C.routeId,path:C.path,matches:$,match:A,controller:new AbortController})}),[S,O]}function g8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function yA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function hP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function y8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,d)=>{s.aborted||bA(c,d,n,a,o)}}),i.set(u,l)),l&&C8(l)&&await l}finally{i.delete(u)}}function bA(e,t,r,n,a){if(e){var o;let i=n[e];lt(i,"No route found to patch children into: routeId = "+e);let s=wf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=wf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function mP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];lt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";al(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!zB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,nr({},t(a),{lazy:void 0}))}function b8(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function x8(e,t,r,n,a,o,i,s){let u=n.reduce((d,p)=>d.add(p.route.id),new Set),l=new Set,c=await e({matches:a.map(d=>{let p=u.has(d.route.id);return nr({},d,{shouldLoad:p,resolve:m=>(l.add(d.route.id),p?w8(t,r,d,o,i,m,s):Promise.resolve({type:qt.data,result:void 0}))})}),request:r,params:a[0].params,context:s});return a.forEach(d=>lt(l.has(d.route.id),'`match.resolve()` was not called for route id "'+d.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((d,p)=>u.has(a[p].route.id))}async function w8(e,t,r,n,a,o,i){let s,u,l=c=>{let d,p=new Promise((g,_)=>d=_);u=()=>d(),t.signal.addEventListener("abort",u);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:i},...g!==void 0?[g]:[]),m;return o?m=o(g=>h(g)):m=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([m,p])};try{let c=r.route[e];if(r.route.lazy)if(c){let d,[p]=await Promise.all([l(c).catch(h=>{d=h}),mP(r.route,a,n)]);if(d!==void 0)throw d;s=p}else if(await mP(r.route,a,n),c=r.route[e],c)s=await l(c);else if(e==="action"){let d=new URL(t.url),p=d.pathname+d.search;throw cn(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:qt.data,result:void 0};else if(c)s=await l(c);else{let d=new URL(t.url),p=d.pathname+d.search;throw cn(404,{pathname:p})}lt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:qt.error,result:c}}finally{u&&t.signal.removeEventListener("abort",u)}return s}async function _8(e){let{result:t,type:r,status:n}=e;if(wA(t)){let i;try{let s=t.headers.get("Content-Type");s&&/\bapplication\/json\b/.test(s)?t.body==null?i=null:i=await t.json():i=await t.text()}catch(s){return{type:qt.error,error:s}}return r===qt.error?{type:qt.error,error:new W_(t.status,t.statusText,i),statusCode:t.status,headers:t.headers}:{type:qt.data,data:i,statusCode:t.status,headers:t.headers}}if(r===qt.error)return{type:qt.error,error:t,statusCode:Ym(t)?t.status:n};if($8(t)){var a,o;return{type:qt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((o=t.init)==null?void 0:o.headers)&&new Headers(t.init.headers)}}return{type:qt.data,data:t,statusCode:n}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(lt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!H_.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=A1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function gP(e,t,r){if(H_.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=qi(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Cl(e,t,r,n){let a=e.createURL(xA(t)).toString(),o={signal:r};if(n&&ka(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=M1(n.formData):o.body=n.formData}return new Request(a,o)}function M1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function yP(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function S8(e,t,r,n,a,o){let i={},s=null,u,l=!1,c={},d=n&&Vn(n[1])?n[1].error:void 0;return r.forEach((p,h)=>{let m=t[h].route.id;if(lt(!js(p),"Cannot handle redirect results in processLoaderData"),Vn(p)){let g=p.error;d!==void 0&&(g=d,d=void 0),s=s||{};{let _=Id(e,m);s[_.route.id]==null&&(s[_.route.id]=g)}i[m]=void 0,l||(l=!0,u=Ym(p.error)?p.error.status:500),p.headers&&(c[m]=p.headers)}else Ts(p)?(a.set(m,p.deferredData),i[m]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(u=p.statusCode),p.headers&&(c[m]=p.headers)):(i[m]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(u=p.statusCode),p.headers&&(c[m]=p.headers))}),d!==void 0&&n&&(s={[n[0]]:d},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:u||200,loaderHeaders:c}}function bP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=S8(t,r,n,a,s);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function _P(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function cn(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `children()` function for '+("route `"+n+"` threw the following error:\n"+i):a&&r&&n?u="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(u='Invalid request method "'+a.toUpperCase()+'"')),new W_(e||500,s,new Error(u),!0)}function EP(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(js(r))return{result:r,idx:t}}}function xA(e){let t=typeof e=="string"?mo(e):e;return ol(nr({},t,{hash:""}))}function O8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function C8(e){return typeof e=="object"&&e!=null&&"then"in e}function P8(e){return wA(e.result)&&c8.has(e.result.status)}function Ts(e){return e.type===qt.deferred}function Vn(e){return e.type===qt.error}function js(e){return(e&&e.type)===qt.redirect}function $8(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function wA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function R8(e){return u8.has(e.toLowerCase())}function ka(e){return s8.has(e.toLowerCase())}async function SP(e,t,r,n,a,o){for(let i=0;id.route.id===u.route.id),c=l!=null&&!yA(l,u)&&(o&&o[u.route.id])!==void 0;if(Ts(s)&&(a||c)){let d=n[i];lt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await _A(s,d,a).then(p=>{p&&(r[i]=p||r[i])})}}}async function _A(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:qt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:qt.error,error:a}}return{type:qt.data,data:e.deferredData.data}}}function q_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function xd(e,t){let r=typeof t=="string"?mo(t).search:t.search;if(e[e.length-1].route.index&&q_(r||""))return e[e.length-1];let n=hA(e);return n[n.length-1]}function OP(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function x0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function k8(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Jc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function T8(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function pi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function j8(e,t){try{let r=e.sessionStorage.getItem(gA);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function I8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(gA,JSON.stringify(r))}catch(n){al(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.24.0 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;tI1(e,t),[t,e])}function SA(e){f.useContext(Yi).static||f.useLayoutEffect(e)}function go(){let{isDataRoute:e}=f.useContext(Zo);return e?K8():F8()}function F8(){Ji()||lt(!1);let e=f.useContext(Gf),{basename:t,future:r,navigator:n}=f.useContext(Yi),{matches:a}=f.useContext(Zo),{pathname:o}=mn(),i=JSON.stringify(Xm(a,r.v7_relativeSplatPath)),s=f.useRef(!1);return SA(()=>{s.current=!0}),f.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=Ym(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Bo([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,o,e])}function OA(){let{matches:e}=f.useContext(Zo),t=e[e.length-1];return t?t.params:{}}function CA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=f.useContext(Yi),{matches:a}=f.useContext(Zo),{pathname:o}=mn(),i=JSON.stringify(Xm(a,n.v7_relativeSplatPath));return f.useMemo(()=>Ym(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function L8(e,t){return PA(e,t)}function PA(e,t,r,n){Ji()||lt(!1);let{navigator:a}=f.useContext(Yi),{matches:o}=f.useContext(Zo),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=mn(),c;if(t){var d;let _=typeof t=="string"?mo(t):t;u==="/"||(d=_.pathname)!=null&&d.startsWith(u)||lt(!1),c=_}else c=l;let p=c.pathname||"/",h=p;if(u!=="/"){let _=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(_.length).join("/")}let m=xs(e,{pathname:h}),g=U8(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:Bo([u,a.encodeLocation?a.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:Bo([u,a.encodeLocation?a.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,r,n);return t&&g?f.createElement(Zm.Provider,{value:{location:il({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gr.Pop}},g):g}function N8(){let e=W8(),t=Jm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:a},r):null,null)}const D8=f.createElement(N8,null);class B8 extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?f.createElement(Zo.Provider,{value:this.props.routeContext},f.createElement(EA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function z8(e){let{routeContext:t,match:r,children:n}=e,a=f.useContext(Gf);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),f.createElement(Zo.Provider,{value:t},n)}function U8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||lt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,d,p)=>{let h,m=!1,g=null,_=null;r&&(h=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||D8,u&&(l<0&&p===0?(m=!0,_=null):l===p&&(m=!0,_=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),y=()=>{let b;return h?b=g:m?b=_:d.route.Component?b=f.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,f.createElement(z8,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?f.createElement(B8,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:y(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var G_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(G_||{}),wf=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}(wf||{});function $A(e){let t=f.useContext(Gf);return t||lt(!1),t}function RA(e){let t=f.useContext(K_);return t||lt(!1),t}function V8(e){let t=f.useContext(Zo);return t||lt(!1),t}function kA(e){let t=V8(),r=t.matches[t.matches.length-1];return r.route.id||lt(!1),r.route.id}function W8(){var e;let t=f.useContext(EA),r=RA(wf.UseRouteError),n=kA(wf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let H8=0;function q8(e){let{router:t,basename:r}=$A(G_.UseBlocker),n=RA(wf.UseBlocker),[a,o]=f.useState(""),i=f.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:il({},u,{pathname:qi(u.pathname,r)||u.pathname}),nextLocation:il({},l,{pathname:qi(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return f.useEffect(()=>{let s=String(++H8);return o(s),()=>t.deleteBlocker(s)},[t]),f.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Ll}function K8(){let{router:e}=$A(G_.UseNavigateStable),t=kA(wf.UseNavigateStable),r=f.useRef(!1);return SA(()=>{r.current=!0}),f.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,il({fromRouteId:t},o)))},[e,t])}function G8(e){let{to:t,replace:r,state:n,relative:a}=e;Ji()||lt(!1);let{future:o,static:i}=f.useContext(Yi),{matches:s}=f.useContext(Zo),{pathname:u}=mn(),l=go(),c=Ym(t,Xm(s,o.v7_relativeSplatPath),u,a==="path"),d=JSON.stringify(c);return f.useEffect(()=>l(JSON.parse(d),{replace:r,state:n,relative:a}),[l,d,a,r,n]),null}function Cn(e){lt(!1)}function Q8(e){let{basename:t="/",children:r=null,location:n,navigationType:a=gr.Pop,navigator:o,static:i=!1,future:s}=e;Ji()&<(!1);let u=t.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:u,navigator:o,static:i,future:il({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=mo(n));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=n,g=f.useMemo(()=>{let _=qi(c,u);return _==null?null:{location:{pathname:_,search:d,hash:p,state:h,key:m},navigationType:a}},[u,c,d,p,h,m,a]);return g==null?null:f.createElement(Yi.Provider,{value:l},f.createElement(Zm.Provider,{children:r,value:g}))}function eu(e){let{children:t,location:r}=e;return L8(F1(t),r)}new Promise(()=>{});function F1(e,t){t===void 0&&(t=[]);let r=[];return f.Children.forEach(e,(n,a)=>{if(!f.isValidElement(n))return;let o=[...t,a];if(n.type===f.Fragment){r.push.apply(r,F1(n.props.children,o));return}n.type!==Cn&<(!1),!n.props.index||!n.props.children||lt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=F1(n.props.children,o)),r.push(i)}),r}function X8(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;tI1(e,t),[t,e])}function SA(e){f.useContext(Yi).static||f.useLayoutEffect(e)}function go(){let{isDataRoute:e}=f.useContext(Zo);return e?K8():F8()}function F8(){Ji()||lt(!1);let e=f.useContext(Qf),{basename:t,future:r,navigator:n}=f.useContext(Yi),{matches:a}=f.useContext(Zo),{pathname:o}=mn(),i=JSON.stringify(Qm(a,r.v7_relativeSplatPath)),s=f.useRef(!1);return SA(()=>{s.current=!0}),f.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=Xm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Bo([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,o,e])}function OA(){let{matches:e}=f.useContext(Zo),t=e[e.length-1];return t?t.params:{}}function CA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=f.useContext(Yi),{matches:a}=f.useContext(Zo),{pathname:o}=mn(),i=JSON.stringify(Qm(a,n.v7_relativeSplatPath));return f.useMemo(()=>Xm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function L8(e,t){return PA(e,t)}function PA(e,t,r,n){Ji()||lt(!1);let{navigator:a}=f.useContext(Yi),{matches:o}=f.useContext(Zo),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=mn(),c;if(t){var d;let _=typeof t=="string"?mo(t):t;u==="/"||(d=_.pathname)!=null&&d.startsWith(u)||lt(!1),c=_}else c=l;let p=c.pathname||"/",h=p;if(u!=="/"){let _=u.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(_.length).join("/")}let m=xs(e,{pathname:h}),g=U8(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:Bo([u,a.encodeLocation?a.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:Bo([u,a.encodeLocation?a.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,r,n);return t&&g?f.createElement(Jm.Provider,{value:{location:il({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:gr.Pop}},g):g}function N8(){let e=W8(),t=Ym(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:a},r):null,null)}const D8=f.createElement(N8,null);class B8 extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?f.createElement(Zo.Provider,{value:this.props.routeContext},f.createElement(EA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function z8(e){let{routeContext:t,match:r,children:n}=e,a=f.useContext(Qf);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),f.createElement(Zo.Provider,{value:t},n)}function U8(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||lt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,d,p)=>{let h,m=!1,g=null,_=null;r&&(h=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||D8,u&&(l<0&&p===0?(m=!0,_=null):l===p&&(m=!0,_=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),y=()=>{let b;return h?b=g:m?b=_:d.route.Component?b=f.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,f.createElement(z8,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?f.createElement(B8,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:y(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):y()},null)}var G_=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(G_||{}),_f=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}(_f||{});function $A(e){let t=f.useContext(Qf);return t||lt(!1),t}function RA(e){let t=f.useContext(K_);return t||lt(!1),t}function V8(e){let t=f.useContext(Zo);return t||lt(!1),t}function kA(e){let t=V8(),r=t.matches[t.matches.length-1];return r.route.id||lt(!1),r.route.id}function W8(){var e;let t=f.useContext(EA),r=RA(_f.UseRouteError),n=kA(_f.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let H8=0;function q8(e){let{router:t,basename:r}=$A(G_.UseBlocker),n=RA(_f.UseBlocker),[a,o]=f.useState(""),i=f.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:il({},u,{pathname:qi(u.pathname,r)||u.pathname}),nextLocation:il({},l,{pathname:qi(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return f.useEffect(()=>{let s=String(++H8);return o(s),()=>t.deleteBlocker(s)},[t]),f.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Ll}function K8(){let{router:e}=$A(G_.UseNavigateStable),t=kA(_f.UseNavigateStable),r=f.useRef(!1);return SA(()=>{r.current=!0}),f.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,il({fromRouteId:t},o)))},[e,t])}function G8(e){let{to:t,replace:r,state:n,relative:a}=e;Ji()||lt(!1);let{future:o,static:i}=f.useContext(Yi),{matches:s}=f.useContext(Zo),{pathname:u}=mn(),l=go(),c=Xm(t,Qm(s,o.v7_relativeSplatPath),u,a==="path"),d=JSON.stringify(c);return f.useEffect(()=>l(JSON.parse(d),{replace:r,state:n,relative:a}),[l,d,a,r,n]),null}function Cn(e){lt(!1)}function Q8(e){let{basename:t="/",children:r=null,location:n,navigationType:a=gr.Pop,navigator:o,static:i=!1,future:s}=e;Ji()&<(!1);let u=t.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:u,navigator:o,static:i,future:il({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=mo(n));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=n,g=f.useMemo(()=>{let _=qi(c,u);return _==null?null:{location:{pathname:_,search:d,hash:p,state:h,key:m},navigationType:a}},[u,c,d,p,h,m,a]);return g==null?null:f.createElement(Yi.Provider,{value:l},f.createElement(Jm.Provider,{children:r,value:g}))}function eu(e){let{children:t,location:r}=e;return L8(F1(t),r)}new Promise(()=>{});function F1(e,t){t===void 0&&(t=[]);let r=[];return f.Children.forEach(e,(n,a)=>{if(!f.isValidElement(n))return;let o=[...t,a];if(n.type===f.Fragment){r.push.apply(r,F1(n.props.children,o));return}n.type!==Cn&<(!1),!n.props.index||!n.props.children||lt(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=F1(n.props.children,o)),r.push(i)}),r}function X8(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.24.0 * * Copyright (c) Remix Software Inc. @@ -65,18 +65,18 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function J8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Z8(e,t){return e.button===0&&(!t||t==="_self")&&!J8(e)}const ez=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],tz="6";try{window.__reactRouterVersion=tz}catch{}function rz(e,t){return v8({basename:t==null?void 0:t.basename,future:_f({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:NB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||nz(),routes:e,mapRouteProperties:X8,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:t==null?void 0:t.unstable_patchRoutesOnMiss,window:t==null?void 0:t.window}).initialize()}function nz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_f({},t,{errors:az(t.errors)})),t}function az(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new W_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const oz=f.createContext({isTransitioning:!1}),iz=f.createContext(new Map),sz="startTransition",CP=Jv[sz],lz="flushSync",PP=aB[lz];function uz(e){CP?CP(e):e()}function Zc(e){PP?PP(e):e()}class cz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function dz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=f.useState(r.state),[i,s]=f.useState(),[u,l]=f.useState({isTransitioning:!1}),[c,d]=f.useState(),[p,h]=f.useState(),[m,g]=f.useState(),_=f.useRef(new Map),{v7_startTransition:x}=n||{},y=f.useCallback(S=>{x?uz(S):S()},[x]),b=f.useCallback((S,O)=>{let{deletedFetchers:C,unstable_flushSync:P,unstable_viewTransitionOpts:$}=O;C.forEach(A=>_.current.delete(A)),S.fetchers.forEach((A,M)=>{A.data!==void 0&&_.current.set(M,A.data)});let T=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!$||T){P?Zc(()=>o(S)):y(()=>o(S));return}if(P){Zc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let A=r.window.document.startViewTransition(()=>{Zc(()=>o(S))});A.finished.finally(()=>{Zc(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})})}),Zc(()=>h(A));return}p?(c&&c.resolve(),p.skipTransition(),g({state:S,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(s(S),l({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[r.window,p,c,_,y]);f.useLayoutEffect(()=>r.subscribe(b),[r,b]),f.useEffect(()=>{u.isTransitioning&&!u.flushSync&&d(new cz)},[u]),f.useEffect(()=>{if(c&&i&&r.window){let S=i,O=c.promise,C=r.window.document.startViewTransition(async()=>{y(()=>o(S)),await O});C.finished.finally(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})}),h(C)}},[y,i,c,r.window]),f.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),f.useEffect(()=>{!u.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[u.isTransitioning,m]),f.useEffect(()=>{},[]);let E=f.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:S=>r.navigate(S),push:(S,O,C)=>r.navigate(S,{state:O,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(S,O,C)=>r.navigate(S,{replace:!0,state:O,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[r]),v=r.basename||"/",w=f.useMemo(()=>({router:r,navigator:E,static:!1,basename:v}),[r,E,v]);return f.createElement(f.Fragment,null,f.createElement(Gf.Provider,{value:w},f.createElement(K_.Provider,{value:a},f.createElement(iz.Provider,{value:_.current},f.createElement(oz.Provider,{value:u},f.createElement(Q8,{basename:v,location:a.location,navigationType:a.historyAction,navigator:E,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?f.createElement(fz,{routes:r.routes,future:r.future,state:a}):t))))),null)}function fz(e){let{routes:t,future:r,state:n}=e;return PA(t,void 0,n,r)}const pz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sl=f.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:d}=t,p=Y8(t,ez),{basename:h}=f.useContext(Yi),m,g=!1;if(typeof l=="string"&&vz.test(l)&&(m=l,pz))try{let b=new URL(window.location.href),E=l.startsWith("//")?new URL(b.protocol+l):new URL(l),v=qi(E.pathname,h);E.origin===b.origin&&v!=null?l=v+E.search+E.hash:g=!0}catch{}let _=A8(l,{relative:a}),x=hz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:d});function y(b){n&&n(b),b.defaultPrevented||x(b)}return f.createElement("a",_f({},p,{href:m||_,onClick:g||o?n:y,ref:r,target:u}))});var $P;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($P||($P={}));var RP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(RP||(RP={}));function hz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=go(),l=mn(),c=CA(e,{relative:i});return f.useCallback(d=>{if(Z8(d,r)){d.preventDefault();let p=n!==void 0?n:ol(l)===ol(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var mz="RaStore",gz=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},L1=gz(),yz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(mz).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?kP(s.newValue):void 0;Object.keys(a).forEach(function(d){a[d]&&a[d].key===l&&(c===null?a[d].callback(void 0):a[d].callback(c??void 0))})}};return{setup:function(){if(L1){var s=Eo().getItem("".concat(r,".version"));if(s&&s!==e){var u=Eo();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Eo().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){L1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Eo().getItem("".concat(r,".").concat(s));return l==null?u:kP(l)},setItem:function(s,u){u===void 0?Eo().removeItem("".concat(r,".").concat(s)):Eo().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){Eo().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=Eo();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=Eo();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},kP=function(e){try{return JSON.parse(e)}catch{return e}},bz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),xz=new bz,Eo=function(){return L1?window.localStorage:xz},wz=typeof Ps=="object"&&Ps&&Ps.Object===Object&&Ps,TA=wz,_z=TA,Ez=typeof self=="object"&&self&&self.Object===Object&&self,Sz=_z||Ez||Function("return this")(),Da=Sz,Oz=Da,Cz=Oz.Symbol,hc=Cz,TP=hc,jA=Object.prototype,Pz=jA.hasOwnProperty,$z=jA.toString,ed=TP?TP.toStringTag:void 0;function Rz(e){var t=Pz.call(e,ed),r=e[ed];try{e[ed]=void 0;var n=!0}catch{}var a=$z.call(e);return n&&(t?e[ed]=r:delete e[ed]),a}var kz=Rz,Tz=Object.prototype,jz=Tz.toString;function Iz(e){return jz.call(e)}var Az=Iz,jP=hc,Mz=kz,Fz=Az,Lz="[object Null]",Nz="[object Undefined]",IP=jP?jP.toStringTag:void 0;function Dz(e){return e==null?e===void 0?Nz:Lz:IP&&IP in Object(e)?Mz(e):Fz(e)}var mc=Dz;function Bz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xa=Bz,zz=mc,Uz=xa,Vz="[object AsyncFunction]",Wz="[object Function]",Hz="[object GeneratorFunction]",qz="[object Proxy]";function Kz(e){if(!Uz(e))return!1;var t=zz(e);return t==Wz||t==Hz||t==Vz||t==qz}var Q_=Kz,Gz=Da,Qz=Gz["__core-js_shared__"],Xz=Qz,w0=Xz,AP=function(){var e=/[^.]+$/.exec(w0&&w0.keys&&w0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yz(e){return!!AP&&AP in e}var Jz=Yz,Zz=Function.prototype,e9=Zz.toString;function t9(e){if(e!=null){try{return e9.call(e)}catch{}try{return e+""}catch{}}return""}var IA=t9,r9=Q_,n9=Jz,a9=xa,o9=IA,i9=/[\\^$.*+?()[\]{}|]/g,s9=/^\[object .+?Constructor\]$/,l9=Function.prototype,u9=Object.prototype,c9=l9.toString,d9=u9.hasOwnProperty,f9=RegExp("^"+c9.call(d9).replace(i9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p9(e){if(!a9(e)||n9(e))return!1;var t=r9(e)?f9:s9;return t.test(o9(e))}var v9=p9;function h9(e,t){return e==null?void 0:e[t]}var m9=h9,g9=v9,y9=m9;function b9(e,t){var r=y9(e,t);return g9(r)?r:void 0}var ml=b9,x9=ml,w9=function(){try{var e=x9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AA=w9,MP=AA;function _9(e,t,r){t=="__proto__"&&MP?MP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var X_=_9;function E9(e,t){return e===t||e!==e&&t!==t}var gc=E9,S9=X_,O9=gc,C9=Object.prototype,P9=C9.hasOwnProperty;function $9(e,t,r){var n=e[t];(!(P9.call(e,t)&&O9(n,r))||r===void 0&&!(t in e))&&S9(e,t,r)}var Y_=$9,R9=Array.isArray,Mn=R9;function k9(e){return e!=null&&typeof e=="object"}var ei=k9,T9=mc,j9=ei,I9="[object Symbol]";function A9(e){return typeof e=="symbol"||j9(e)&&T9(e)==I9}var Qf=A9,M9=Mn,F9=Qf,L9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N9=/^\w*$/;function D9(e,t){if(M9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||F9(e)?!0:N9.test(e)||!L9.test(e)||t!=null&&e in Object(t)}var J_=D9,B9=ml,z9=B9(Object,"create"),eg=z9,FP=eg;function U9(){this.__data__=FP?FP(null):{},this.size=0}var V9=U9;function W9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var H9=W9,q9=eg,K9="__lodash_hash_undefined__",G9=Object.prototype,Q9=G9.hasOwnProperty;function X9(e){var t=this.__data__;if(q9){var r=t[e];return r===K9?void 0:r}return Q9.call(t,e)?t[e]:void 0}var Y9=X9,J9=eg,Z9=Object.prototype,e7=Z9.hasOwnProperty;function t7(e){var t=this.__data__;return J9?t[e]!==void 0:e7.call(t,e)}var r7=t7,n7=eg,a7="__lodash_hash_undefined__";function o7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n7&&t===void 0?a7:t,this}var i7=o7,s7=V9,l7=H9,u7=Y9,c7=r7,d7=i7;function yc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var P7=C7,$7=tg;function R7(e,t){var r=this.__data__,n=$7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var k7=R7,T7=v7,j7=w7,I7=S7,A7=P7,M7=k7;function bc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var d=-1,p=!0,h=r&eW?new XV:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e<=XW}var lE=YW,JW=mc,ZW=lE,eH=ei,tH="[object Arguments]",rH="[object Array]",nH="[object Boolean]",aH="[object Date]",oH="[object Error]",iH="[object Function]",sH="[object Map]",lH="[object Number]",uH="[object Object]",cH="[object RegExp]",dH="[object Set]",fH="[object String]",pH="[object WeakMap]",vH="[object ArrayBuffer]",hH="[object DataView]",mH="[object Float32Array]",gH="[object Float64Array]",yH="[object Int8Array]",bH="[object Int16Array]",xH="[object Int32Array]",wH="[object Uint8Array]",_H="[object Uint8ClampedArray]",EH="[object Uint16Array]",SH="[object Uint32Array]",Yt={};Yt[mH]=Yt[gH]=Yt[yH]=Yt[bH]=Yt[xH]=Yt[wH]=Yt[_H]=Yt[EH]=Yt[SH]=!0;Yt[tH]=Yt[rH]=Yt[vH]=Yt[nH]=Yt[hH]=Yt[aH]=Yt[oH]=Yt[iH]=Yt[sH]=Yt[lH]=Yt[uH]=Yt[cH]=Yt[dH]=Yt[fH]=Yt[pH]=!1;function OH(e){return eH(e)&&ZW(e.length)&&!!Yt[JW(e)]}var CH=OH;function PH(e){return function(t){return e(t)}}var Jf=PH,Ph={exports:{}};Ph.exports;(function(e,t){var r=TA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Ph,Ph.exports);var uE=Ph.exports,$H=CH,RH=Jf,GP=uE,QP=GP&&GP.isTypedArray,kH=QP?RH(QP):$H,cE=kH,TH=NW,jH=lg,IH=Mn,AH=ug,MH=og,FH=cE,LH=Object.prototype,NH=LH.hasOwnProperty;function DH(e,t){var r=IH(e),n=!r&&jH(e),a=!r&&!n&&AH(e),o=!r&&!n&&!a&&FH(e),i=r||n||a||o,s=i?TH(e.length,String):[],u=s.length;for(var l in e)(t||NH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||MH(l,u)))&&s.push(l);return s}var QA=DH,BH=Object.prototype;function zH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||BH;return e===r}var dE=zH;function UH(e,t){return function(r){return e(t(r))}}var XA=UH,VH=XA,WH=VH(Object.keys,Object),HH=WH,qH=dE,KH=HH,GH=Object.prototype,QH=GH.hasOwnProperty;function XH(e){if(!qH(e))return KH(e);var t=[];for(var r in Object(e))QH.call(e,r)&&r!="constructor"&&t.push(r);return t}var YH=XH,JH=Q_,ZH=lE;function eq(e){return e!=null&&ZH(e.length)&&!JH(e)}var Ec=eq,tq=QA,rq=YH,nq=Ec;function aq(e){return nq(e)?tq(e):rq(e)}var Zf=aq,oq=HA,iq=sE,sq=Zf;function lq(e){return oq(e,sq,iq)}var YA=lq,XP=YA,uq=1,cq=Object.prototype,dq=cq.hasOwnProperty;function fq(e,t,r,n,a,o){var i=r&uq,s=XP(e),u=s.length,l=XP(t),c=l.length;if(u!=c&&!i)return!1;for(var d=u;d--;){var p=s[d];if(!(i?p in t:dq.call(t,p)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var _=i;++d0){if(++t>=jG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var FG=MG,LG=TG,NG=FG,DG=NG(LG),vM=DG,BG=dg,zG=pM,UG=vM;function VG(e,t){return UG(zG(e,t,BG),e+"")}var fg=VG,WG=gc,HG=Ec,qG=og,KG=xa;function GG(e,t,r){if(!KG(r))return!1;var n=typeof t;return(n=="number"?HG(r)&&qG(t,r.length):n=="string"&&t in r)?WG(r[t],e):!1}var hM=GG,QG=fg,XG=hM;function YG(e){return QG(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&XG(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||S<0||d&&O>=o}function x(){var w=S0();if(_(w))return y(w);s=setTimeout(x,g(w))}function y(w){return s=void 0,p&&n?h(w):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function E(){return s===void 0?i:y(S0())}function v(){var w=S0(),S=_(w);if(n=arguments,a=this,u=w,S){if(s===void 0)return m(u);if(d)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),i}return v.cancel=b,v.flush=E,v}var sJ=iJ;const PM=pr(sJ);var lJ=function(e,t){t===void 0&&(t=250);var r=uJ(e,t),n=r[0],a=r[1],o=mn();f.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},uJ=function(e,t){t===void 0&&(t=250);var r=_a(e),n=r[0],a=r[1];return f.useEffect(function(){if(!(typeof window>"u")){var o=PM(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},cJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return lJ(r,a),t},Zi=function(){return f.useContext(CM)},es=function(){var e=Zi();return f.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return Xa("".concat(e,"/").concat(r));case"create":return Xa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Xa("".concat(e,"/").concat(r)):Xa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Xa("".concat(e,"/").concat(r)):Xa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},Xa=function(e){return e.replace("//","/")},Ad=function(){return Ad=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),kM="%[a-f0-9]{2}",k2=new RegExp("("+kM+")|([^%]+?)","gi"),T2=new RegExp("("+kM+")+","gi");function V1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],V1(r),V1(n))}function PJ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(k2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},TJ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oy==null,i=Symbol("encodeFragmentIdentifier");function s(y){switch(y.arrayFormat){case"index":return b=>(E,v)=>{const w=E.length;return v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,[c(b,y),"[",w,"]"].join("")]:[...E,[c(b,y),"[",c(w,y),"]=",c(v,y)].join("")]};case"bracket":return b=>(E,v)=>v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,[c(b,y),"[]"].join("")]:[...E,[c(b,y),"[]=",c(v,y)].join("")];case"colon-list-separator":return b=>(E,v)=>v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,[c(b,y),":list="].join("")]:[...E,[c(b,y),":list=",c(v,y)].join("")];case"comma":case"separator":case"bracket-separator":{const b=y.arrayFormat==="bracket-separator"?"[]=":"=";return E=>(v,w)=>w===void 0||y.skipNull&&w===null||y.skipEmptyString&&w===""?v:(w=w===null?"":w,v.length===0?[[c(E,y),b,c(w,y)].join("")]:[[v,c(w,y)].join(y.arrayFormatSeparator)])}default:return b=>(E,v)=>v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,c(b,y)]:[...E,[c(b,y),"=",c(v,y)].join("")]}}function u(y){let b;switch(y.arrayFormat){case"index":return(E,v,w)=>{if(b=/\[(\d*)\]$/.exec(E),E=E.replace(/\[\d*\]$/,""),!b){w[E]=v;return}w[E]===void 0&&(w[E]={}),w[E][b[1]]=v};case"bracket":return(E,v,w)=>{if(b=/(\[\])$/.exec(E),E=E.replace(/\[\]$/,""),!b){w[E]=v;return}if(w[E]===void 0){w[E]=[v];return}w[E]=[].concat(w[E],v)};case"colon-list-separator":return(E,v,w)=>{if(b=/(:list)$/.exec(E),E=E.replace(/:list$/,""),!b){w[E]=v;return}if(w[E]===void 0){w[E]=[v];return}w[E]=[].concat(w[E],v)};case"comma":case"separator":return(E,v,w)=>{const S=typeof v=="string"&&v.includes(y.arrayFormatSeparator),O=typeof v=="string"&&!S&&d(v,y).includes(y.arrayFormatSeparator);v=O?d(v,y):v;const C=S||O?v.split(y.arrayFormatSeparator).map(P=>d(P,y)):v===null?v:d(v,y);w[E]=C};case"bracket-separator":return(E,v,w)=>{const S=/(\[\])$/.test(E);if(E=E.replace(/\[\]$/,""),!S){w[E]=v&&d(v,y);return}const O=v===null?[]:v.split(y.arrayFormatSeparator).map(C=>d(C,y));if(w[E]===void 0){w[E]=O;return}w[E]=[].concat(w[E],O)};default:return(E,v,w)=>{if(w[E]===void 0){w[E]=v;return}w[E]=[].concat(w[E],v)}}}function l(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(y,b){return b.encode?b.strict?t(y):encodeURIComponent(y):y}function d(y,b){return b.decode?r(y):y}function p(y){return Array.isArray(y)?y.sort():typeof y=="object"?p(Object.keys(y)).sort((b,E)=>Number(b)-Number(E)).map(b=>y[b]):y}function h(y){const b=y.indexOf("#");return b!==-1&&(y=y.slice(0,b)),y}function m(y){let b="";const E=y.indexOf("#");return E!==-1&&(b=y.slice(E)),b}function g(y){y=h(y);const b=y.indexOf("?");return b===-1?"":y.slice(b+1)}function _(y,b){return b.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):b.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function x(y,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const E=u(b),v=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return v;for(const w of y.split("&")){if(w==="")continue;let[S,O]=n(b.decode?w.replace(/\+/g," "):w,"=");O=O===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?O:d(O,b),E(d(S,b),O,v)}for(const w of Object.keys(v)){const S=v[w];if(typeof S=="object"&&S!==null)for(const O of Object.keys(S))S[O]=_(S[O],b);else v[w]=_(S,b)}return b.sort===!1?v:(b.sort===!0?Object.keys(v).sort():Object.keys(v).sort(b.sort)).reduce((w,S)=>{const O=v[S];return O&&typeof O=="object"&&!Array.isArray(O)?w[S]=p(O):w[S]=O,w},Object.create(null))}e.extract=g,e.parse=x,e.stringify=(y,b)=>{if(!y)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const E=O=>b.skipNull&&o(y[O])||b.skipEmptyString&&y[O]==="",v=s(b),w={};for(const O of Object.keys(y))E(O)||(w[O]=y[O]);const S=Object.keys(w);return b.sort!==!1&&S.sort(b.sort),S.map(O=>{const C=y[O];return C===void 0?"":C===null?c(O,b):Array.isArray(C)?C.length===0&&b.arrayFormat==="bracket-separator"?c(O,b)+"[]":C.reduce(v(O),[]).join("&"):c(O,b)+"="+c(C,b)}).filter(O=>O.length>0).join("&")},e.parseUrl=(y,b)=>{b=Object.assign({decode:!0},b);const[E,v]=n(y,"#");return Object.assign({url:E.split("?")[0]||"",query:x(g(y),b)},b&&b.parseFragmentIdentifier&&v?{fragmentIdentifier:d(v,b)}:{})},e.stringifyUrl=(y,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const E=h(y.url).split("?")[0]||"",v=e.extract(y.url),w=e.parse(v,{sort:!1}),S=Object.assign(w,y.query);let O=e.stringify(S,b);O&&(O=`?${O}`);let C=m(y.url);return y.fragmentIdentifier&&(C=`#${b[i]?c(y.fragmentIdentifier,b):y.fragmentIdentifier}`),`${E}${O}${C}`},e.pick=(y,b,E)=>{E=Object.assign({parseFragmentIdentifier:!0,[i]:!1},E);const{url:v,query:w,fragmentIdentifier:S}=e.parseUrl(y,E);return e.stringifyUrl({url:v,query:a(w,b),fragmentIdentifier:S},E)},e.exclude=(y,b,E)=>{const v=Array.isArray(b)?w=>!b.includes(w):(w,S)=>!b(w,S);return e.pick(y,v,E)}})(ll);var kh=function(){return kh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new RM(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},MJ=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},TM=function(e,t){var r;return t===void 0&&(t=[]),MJ(e)?Object.assign.apply(Object,jJ([{}],Object.keys(e).map(function(n){return TM(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},jM={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function o(u,l,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new a(c,d||u,p),m=r?r+l:l;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],h]:u._events[m].push(h):(u._events[m]=h,u._eventsCount++),u}function i(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)t.call(c,d)&&l.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,m=new Array(h);p0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message},zJ=["getList","getMany","getManyReference"],gl=function(){var e=f.useContext(bE)||yE,t=IM(),r=f.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=Pe.useRef(e.isMutating()>0),a=Pe.useState(r.current||n.current),o=a[0],i=a[1];return Pe.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(br.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(br.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},tp=function(){var e=ho();return f.useCallback(function(){e.invalidateQueries()},[e])},W1=function(){return W1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?MM(s,t-1,r,n,a):YJ(a,s):n||(a[a.length]=s)}return a}var xE=MM;function ZJ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var FM=dZ;function fZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=CZ){var l=t?null:SZ(e);if(l)return OZ(l);i=!1,a=EZ,u=new xZ}else u=t?[]:s;e:for(;++n0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. + */function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function J8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Z8(e,t){return e.button===0&&(!t||t==="_self")&&!J8(e)}const ez=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],tz="6";try{window.__reactRouterVersion=tz}catch{}function rz(e,t){return v8({basename:t==null?void 0:t.basename,future:Ef({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:NB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||nz(),routes:e,mapRouteProperties:X8,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnMiss:t==null?void 0:t.unstable_patchRoutesOnMiss,window:t==null?void 0:t.window}).initialize()}function nz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ef({},t,{errors:az(t.errors)})),t}function az(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new W_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const oz=f.createContext({isTransitioning:!1}),iz=f.createContext(new Map),sz="startTransition",CP=Yv[sz],lz="flushSync",PP=aB[lz];function uz(e){CP?CP(e):e()}function Zc(e){PP?PP(e):e()}class cz{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function dz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=f.useState(r.state),[i,s]=f.useState(),[u,l]=f.useState({isTransitioning:!1}),[c,d]=f.useState(),[p,h]=f.useState(),[m,g]=f.useState(),_=f.useRef(new Map),{v7_startTransition:x}=n||{},y=f.useCallback(S=>{x?uz(S):S()},[x]),b=f.useCallback((S,O)=>{let{deletedFetchers:C,unstable_flushSync:P,unstable_viewTransitionOpts:$}=O;C.forEach(A=>_.current.delete(A)),S.fetchers.forEach((A,M)=>{A.data!==void 0&&_.current.set(M,A.data)});let T=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!$||T){P?Zc(()=>o(S)):y(()=>o(S));return}if(P){Zc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:$.currentLocation,nextLocation:$.nextLocation})});let A=r.window.document.startViewTransition(()=>{Zc(()=>o(S))});A.finished.finally(()=>{Zc(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})})}),Zc(()=>h(A));return}p?(c&&c.resolve(),p.skipTransition(),g({state:S,currentLocation:$.currentLocation,nextLocation:$.nextLocation})):(s(S),l({isTransitioning:!0,flushSync:!1,currentLocation:$.currentLocation,nextLocation:$.nextLocation}))},[r.window,p,c,_,y]);f.useLayoutEffect(()=>r.subscribe(b),[r,b]),f.useEffect(()=>{u.isTransitioning&&!u.flushSync&&d(new cz)},[u]),f.useEffect(()=>{if(c&&i&&r.window){let S=i,O=c.promise,C=r.window.document.startViewTransition(async()=>{y(()=>o(S)),await O});C.finished.finally(()=>{d(void 0),h(void 0),s(void 0),l({isTransitioning:!1})}),h(C)}},[y,i,c,r.window]),f.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),f.useEffect(()=>{!u.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[u.isTransitioning,m]),f.useEffect(()=>{},[]);let E=f.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:S=>r.navigate(S),push:(S,O,C)=>r.navigate(S,{state:O,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(S,O,C)=>r.navigate(S,{replace:!0,state:O,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[r]),v=r.basename||"/",w=f.useMemo(()=>({router:r,navigator:E,static:!1,basename:v}),[r,E,v]);return f.createElement(f.Fragment,null,f.createElement(Qf.Provider,{value:w},f.createElement(K_.Provider,{value:a},f.createElement(iz.Provider,{value:_.current},f.createElement(oz.Provider,{value:u},f.createElement(Q8,{basename:v,location:a.location,navigationType:a.historyAction,navigator:E,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?f.createElement(fz,{routes:r.routes,future:r.future,state:a}):t))))),null)}function fz(e){let{routes:t,future:r,state:n}=e;return PA(t,void 0,n,r)}const pz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sl=f.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:d}=t,p=Y8(t,ez),{basename:h}=f.useContext(Yi),m,g=!1;if(typeof l=="string"&&vz.test(l)&&(m=l,pz))try{let b=new URL(window.location.href),E=l.startsWith("//")?new URL(b.protocol+l):new URL(l),v=qi(E.pathname,h);E.origin===b.origin&&v!=null?l=v+E.search+E.hash:g=!0}catch{}let _=A8(l,{relative:a}),x=hz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:d});function y(b){n&&n(b),b.defaultPrevented||x(b)}return f.createElement("a",Ef({},p,{href:m||_,onClick:g||o?n:y,ref:r,target:u}))});var $P;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($P||($P={}));var RP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(RP||(RP={}));function hz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=go(),l=mn(),c=CA(e,{relative:i});return f.useCallback(d=>{if(Z8(d,r)){d.preventDefault();let p=n!==void 0?n:ol(l)===ol(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var mz="RaStore",gz=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},L1=gz(),yz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(mz).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?kP(s.newValue):void 0;Object.keys(a).forEach(function(d){a[d]&&a[d].key===l&&(c===null?a[d].callback(void 0):a[d].callback(c??void 0))})}};return{setup:function(){if(L1){var s=Eo().getItem("".concat(r,".version"));if(s&&s!==e){var u=Eo();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Eo().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){L1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Eo().getItem("".concat(r,".").concat(s));return l==null?u:kP(l)},setItem:function(s,u){u===void 0?Eo().removeItem("".concat(r,".").concat(s)):Eo().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){Eo().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=Eo();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=Eo();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},kP=function(e){try{return JSON.parse(e)}catch{return e}},bz=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),xz=new bz,Eo=function(){return L1?window.localStorage:xz},wz=typeof Ps=="object"&&Ps&&Ps.Object===Object&&Ps,TA=wz,_z=TA,Ez=typeof self=="object"&&self&&self.Object===Object&&self,Sz=_z||Ez||Function("return this")(),Da=Sz,Oz=Da,Cz=Oz.Symbol,hc=Cz,TP=hc,jA=Object.prototype,Pz=jA.hasOwnProperty,$z=jA.toString,ed=TP?TP.toStringTag:void 0;function Rz(e){var t=Pz.call(e,ed),r=e[ed];try{e[ed]=void 0;var n=!0}catch{}var a=$z.call(e);return n&&(t?e[ed]=r:delete e[ed]),a}var kz=Rz,Tz=Object.prototype,jz=Tz.toString;function Iz(e){return jz.call(e)}var Az=Iz,jP=hc,Mz=kz,Fz=Az,Lz="[object Null]",Nz="[object Undefined]",IP=jP?jP.toStringTag:void 0;function Dz(e){return e==null?e===void 0?Nz:Lz:IP&&IP in Object(e)?Mz(e):Fz(e)}var mc=Dz;function Bz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xa=Bz,zz=mc,Uz=xa,Vz="[object AsyncFunction]",Wz="[object Function]",Hz="[object GeneratorFunction]",qz="[object Proxy]";function Kz(e){if(!Uz(e))return!1;var t=zz(e);return t==Wz||t==Hz||t==Vz||t==qz}var Q_=Kz,Gz=Da,Qz=Gz["__core-js_shared__"],Xz=Qz,w0=Xz,AP=function(){var e=/[^.]+$/.exec(w0&&w0.keys&&w0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yz(e){return!!AP&&AP in e}var Jz=Yz,Zz=Function.prototype,e9=Zz.toString;function t9(e){if(e!=null){try{return e9.call(e)}catch{}try{return e+""}catch{}}return""}var IA=t9,r9=Q_,n9=Jz,a9=xa,o9=IA,i9=/[\\^$.*+?()[\]{}|]/g,s9=/^\[object .+?Constructor\]$/,l9=Function.prototype,u9=Object.prototype,c9=l9.toString,d9=u9.hasOwnProperty,f9=RegExp("^"+c9.call(d9).replace(i9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p9(e){if(!a9(e)||n9(e))return!1;var t=r9(e)?f9:s9;return t.test(o9(e))}var v9=p9;function h9(e,t){return e==null?void 0:e[t]}var m9=h9,g9=v9,y9=m9;function b9(e,t){var r=y9(e,t);return g9(r)?r:void 0}var ml=b9,x9=ml,w9=function(){try{var e=x9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AA=w9,MP=AA;function _9(e,t,r){t=="__proto__"&&MP?MP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var X_=_9;function E9(e,t){return e===t||e!==e&&t!==t}var gc=E9,S9=X_,O9=gc,C9=Object.prototype,P9=C9.hasOwnProperty;function $9(e,t,r){var n=e[t];(!(P9.call(e,t)&&O9(n,r))||r===void 0&&!(t in e))&&S9(e,t,r)}var Y_=$9,R9=Array.isArray,Mn=R9;function k9(e){return e!=null&&typeof e=="object"}var ei=k9,T9=mc,j9=ei,I9="[object Symbol]";function A9(e){return typeof e=="symbol"||j9(e)&&T9(e)==I9}var Xf=A9,M9=Mn,F9=Xf,L9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N9=/^\w*$/;function D9(e,t){if(M9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||F9(e)?!0:N9.test(e)||!L9.test(e)||t!=null&&e in Object(t)}var J_=D9,B9=ml,z9=B9(Object,"create"),Zm=z9,FP=Zm;function U9(){this.__data__=FP?FP(null):{},this.size=0}var V9=U9;function W9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var H9=W9,q9=Zm,K9="__lodash_hash_undefined__",G9=Object.prototype,Q9=G9.hasOwnProperty;function X9(e){var t=this.__data__;if(q9){var r=t[e];return r===K9?void 0:r}return Q9.call(t,e)?t[e]:void 0}var Y9=X9,J9=Zm,Z9=Object.prototype,e7=Z9.hasOwnProperty;function t7(e){var t=this.__data__;return J9?t[e]!==void 0:e7.call(t,e)}var r7=t7,n7=Zm,a7="__lodash_hash_undefined__";function o7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n7&&t===void 0?a7:t,this}var i7=o7,s7=V9,l7=H9,u7=Y9,c7=r7,d7=i7;function yc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var P7=C7,$7=eg;function R7(e,t){var r=this.__data__,n=$7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var k7=R7,T7=v7,j7=w7,I7=S7,A7=P7,M7=k7;function bc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var d=-1,p=!0,h=r&eW?new XV:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e<=XW}var lE=YW,JW=mc,ZW=lE,eH=ei,tH="[object Arguments]",rH="[object Array]",nH="[object Boolean]",aH="[object Date]",oH="[object Error]",iH="[object Function]",sH="[object Map]",lH="[object Number]",uH="[object Object]",cH="[object RegExp]",dH="[object Set]",fH="[object String]",pH="[object WeakMap]",vH="[object ArrayBuffer]",hH="[object DataView]",mH="[object Float32Array]",gH="[object Float64Array]",yH="[object Int8Array]",bH="[object Int16Array]",xH="[object Int32Array]",wH="[object Uint8Array]",_H="[object Uint8ClampedArray]",EH="[object Uint16Array]",SH="[object Uint32Array]",Yt={};Yt[mH]=Yt[gH]=Yt[yH]=Yt[bH]=Yt[xH]=Yt[wH]=Yt[_H]=Yt[EH]=Yt[SH]=!0;Yt[tH]=Yt[rH]=Yt[vH]=Yt[nH]=Yt[hH]=Yt[aH]=Yt[oH]=Yt[iH]=Yt[sH]=Yt[lH]=Yt[uH]=Yt[cH]=Yt[dH]=Yt[fH]=Yt[pH]=!1;function OH(e){return eH(e)&&ZW(e.length)&&!!Yt[JW(e)]}var CH=OH;function PH(e){return function(t){return e(t)}}var Zf=PH,Ch={exports:{}};Ch.exports;(function(e,t){var r=TA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Ch,Ch.exports);var uE=Ch.exports,$H=CH,RH=Zf,GP=uE,QP=GP&&GP.isTypedArray,kH=QP?RH(QP):$H,cE=kH,TH=NW,jH=sg,IH=Mn,AH=lg,MH=ag,FH=cE,LH=Object.prototype,NH=LH.hasOwnProperty;function DH(e,t){var r=IH(e),n=!r&&jH(e),a=!r&&!n&&AH(e),o=!r&&!n&&!a&&FH(e),i=r||n||a||o,s=i?TH(e.length,String):[],u=s.length;for(var l in e)(t||NH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||MH(l,u)))&&s.push(l);return s}var QA=DH,BH=Object.prototype;function zH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||BH;return e===r}var dE=zH;function UH(e,t){return function(r){return e(t(r))}}var XA=UH,VH=XA,WH=VH(Object.keys,Object),HH=WH,qH=dE,KH=HH,GH=Object.prototype,QH=GH.hasOwnProperty;function XH(e){if(!qH(e))return KH(e);var t=[];for(var r in Object(e))QH.call(e,r)&&r!="constructor"&&t.push(r);return t}var YH=XH,JH=Q_,ZH=lE;function eq(e){return e!=null&&ZH(e.length)&&!JH(e)}var Ec=eq,tq=QA,rq=YH,nq=Ec;function aq(e){return nq(e)?tq(e):rq(e)}var ep=aq,oq=HA,iq=sE,sq=ep;function lq(e){return oq(e,sq,iq)}var YA=lq,XP=YA,uq=1,cq=Object.prototype,dq=cq.hasOwnProperty;function fq(e,t,r,n,a,o){var i=r&uq,s=XP(e),u=s.length,l=XP(t),c=l.length;if(u!=c&&!i)return!1;for(var d=u;d--;){var p=s[d];if(!(i?p in t:dq.call(t,p)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var _=i;++d0){if(++t>=jG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var FG=MG,LG=TG,NG=FG,DG=NG(LG),vM=DG,BG=cg,zG=pM,UG=vM;function VG(e,t){return UG(zG(e,t,BG),e+"")}var dg=VG,WG=gc,HG=Ec,qG=ag,KG=xa;function GG(e,t,r){if(!KG(r))return!1;var n=typeof t;return(n=="number"?HG(r)&&qG(t,r.length):n=="string"&&t in r)?WG(r[t],e):!1}var hM=GG,QG=dg,XG=hM;function YG(e){return QG(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&XG(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||S<0||d&&O>=o}function x(){var w=S0();if(_(w))return y(w);s=setTimeout(x,g(w))}function y(w){return s=void 0,p&&n?h(w):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function E(){return s===void 0?i:y(S0())}function v(){var w=S0(),S=_(w);if(n=arguments,a=this,u=w,S){if(s===void 0)return m(u);if(d)return clearTimeout(s),s=setTimeout(x,t),h(u)}return s===void 0&&(s=setTimeout(x,t)),i}return v.cancel=b,v.flush=E,v}var sJ=iJ;const PM=pr(sJ);var lJ=function(e,t){t===void 0&&(t=250);var r=uJ(e,t),n=r[0],a=r[1],o=mn();f.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},uJ=function(e,t){t===void 0&&(t=250);var r=_a(e),n=r[0],a=r[1];return f.useEffect(function(){if(!(typeof window>"u")){var o=PM(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},cJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return lJ(r,a),t},Zi=function(){return f.useContext(CM)},es=function(){var e=Zi();return f.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return Xa("".concat(e,"/").concat(r));case"create":return Xa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Xa("".concat(e,"/").concat(r)):Xa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Xa("".concat(e,"/").concat(r)):Xa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},Xa=function(e){return e.replace("//","/")},Ad=function(){return Ad=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),kM="%[a-f0-9]{2}",k2=new RegExp("("+kM+")|([^%]+?)","gi"),T2=new RegExp("("+kM+")+","gi");function V1(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],V1(r),V1(n))}function PJ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(k2)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},TJ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oy==null,i=Symbol("encodeFragmentIdentifier");function s(y){switch(y.arrayFormat){case"index":return b=>(E,v)=>{const w=E.length;return v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,[c(b,y),"[",w,"]"].join("")]:[...E,[c(b,y),"[",c(w,y),"]=",c(v,y)].join("")]};case"bracket":return b=>(E,v)=>v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,[c(b,y),"[]"].join("")]:[...E,[c(b,y),"[]=",c(v,y)].join("")];case"colon-list-separator":return b=>(E,v)=>v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,[c(b,y),":list="].join("")]:[...E,[c(b,y),":list=",c(v,y)].join("")];case"comma":case"separator":case"bracket-separator":{const b=y.arrayFormat==="bracket-separator"?"[]=":"=";return E=>(v,w)=>w===void 0||y.skipNull&&w===null||y.skipEmptyString&&w===""?v:(w=w===null?"":w,v.length===0?[[c(E,y),b,c(w,y)].join("")]:[[v,c(w,y)].join(y.arrayFormatSeparator)])}default:return b=>(E,v)=>v===void 0||y.skipNull&&v===null||y.skipEmptyString&&v===""?E:v===null?[...E,c(b,y)]:[...E,[c(b,y),"=",c(v,y)].join("")]}}function u(y){let b;switch(y.arrayFormat){case"index":return(E,v,w)=>{if(b=/\[(\d*)\]$/.exec(E),E=E.replace(/\[\d*\]$/,""),!b){w[E]=v;return}w[E]===void 0&&(w[E]={}),w[E][b[1]]=v};case"bracket":return(E,v,w)=>{if(b=/(\[\])$/.exec(E),E=E.replace(/\[\]$/,""),!b){w[E]=v;return}if(w[E]===void 0){w[E]=[v];return}w[E]=[].concat(w[E],v)};case"colon-list-separator":return(E,v,w)=>{if(b=/(:list)$/.exec(E),E=E.replace(/:list$/,""),!b){w[E]=v;return}if(w[E]===void 0){w[E]=[v];return}w[E]=[].concat(w[E],v)};case"comma":case"separator":return(E,v,w)=>{const S=typeof v=="string"&&v.includes(y.arrayFormatSeparator),O=typeof v=="string"&&!S&&d(v,y).includes(y.arrayFormatSeparator);v=O?d(v,y):v;const C=S||O?v.split(y.arrayFormatSeparator).map(P=>d(P,y)):v===null?v:d(v,y);w[E]=C};case"bracket-separator":return(E,v,w)=>{const S=/(\[\])$/.test(E);if(E=E.replace(/\[\]$/,""),!S){w[E]=v&&d(v,y);return}const O=v===null?[]:v.split(y.arrayFormatSeparator).map(C=>d(C,y));if(w[E]===void 0){w[E]=O;return}w[E]=[].concat(w[E],O)};default:return(E,v,w)=>{if(w[E]===void 0){w[E]=v;return}w[E]=[].concat(w[E],v)}}}function l(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(y,b){return b.encode?b.strict?t(y):encodeURIComponent(y):y}function d(y,b){return b.decode?r(y):y}function p(y){return Array.isArray(y)?y.sort():typeof y=="object"?p(Object.keys(y)).sort((b,E)=>Number(b)-Number(E)).map(b=>y[b]):y}function h(y){const b=y.indexOf("#");return b!==-1&&(y=y.slice(0,b)),y}function m(y){let b="";const E=y.indexOf("#");return E!==-1&&(b=y.slice(E)),b}function g(y){y=h(y);const b=y.indexOf("?");return b===-1?"":y.slice(b+1)}function _(y,b){return b.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):b.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function x(y,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const E=u(b),v=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return v;for(const w of y.split("&")){if(w==="")continue;let[S,O]=n(b.decode?w.replace(/\+/g," "):w,"=");O=O===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?O:d(O,b),E(d(S,b),O,v)}for(const w of Object.keys(v)){const S=v[w];if(typeof S=="object"&&S!==null)for(const O of Object.keys(S))S[O]=_(S[O],b);else v[w]=_(S,b)}return b.sort===!1?v:(b.sort===!0?Object.keys(v).sort():Object.keys(v).sort(b.sort)).reduce((w,S)=>{const O=v[S];return O&&typeof O=="object"&&!Array.isArray(O)?w[S]=p(O):w[S]=O,w},Object.create(null))}e.extract=g,e.parse=x,e.stringify=(y,b)=>{if(!y)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const E=O=>b.skipNull&&o(y[O])||b.skipEmptyString&&y[O]==="",v=s(b),w={};for(const O of Object.keys(y))E(O)||(w[O]=y[O]);const S=Object.keys(w);return b.sort!==!1&&S.sort(b.sort),S.map(O=>{const C=y[O];return C===void 0?"":C===null?c(O,b):Array.isArray(C)?C.length===0&&b.arrayFormat==="bracket-separator"?c(O,b)+"[]":C.reduce(v(O),[]).join("&"):c(O,b)+"="+c(C,b)}).filter(O=>O.length>0).join("&")},e.parseUrl=(y,b)=>{b=Object.assign({decode:!0},b);const[E,v]=n(y,"#");return Object.assign({url:E.split("?")[0]||"",query:x(g(y),b)},b&&b.parseFragmentIdentifier&&v?{fragmentIdentifier:d(v,b)}:{})},e.stringifyUrl=(y,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const E=h(y.url).split("?")[0]||"",v=e.extract(y.url),w=e.parse(v,{sort:!1}),S=Object.assign(w,y.query);let O=e.stringify(S,b);O&&(O=`?${O}`);let C=m(y.url);return y.fragmentIdentifier&&(C=`#${b[i]?c(y.fragmentIdentifier,b):y.fragmentIdentifier}`),`${E}${O}${C}`},e.pick=(y,b,E)=>{E=Object.assign({parseFragmentIdentifier:!0,[i]:!1},E);const{url:v,query:w,fragmentIdentifier:S}=e.parseUrl(y,E);return e.stringifyUrl({url:v,query:a(w,b),fragmentIdentifier:S},E)},e.exclude=(y,b,E)=>{const v=Array.isArray(b)?w=>!b.includes(w):(w,S)=>!b(w,S);return e.pick(y,v,E)}})(ll);var Rh=function(){return Rh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new RM(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},MJ=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},TM=function(e,t){var r;return t===void 0&&(t=[]),MJ(e)?Object.assign.apply(Object,jJ([{}],Object.keys(e).map(function(n){return TM(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},jM={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function o(u,l,c,d,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new a(c,d||u,p),m=r?r+l:l;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],h]:u._events[m].push(h):(u._events[m]=h,u._eventsCount++),u}function i(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,d;if(this._eventsCount===0)return l;for(d in c=this._events)t.call(c,d)&&l.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,h=d.length,m=new Array(h);p0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message},zJ=["getList","getMany","getManyReference"],gl=function(){var e=f.useContext(bE)||yE,t=IM(),r=f.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=Pe.useRef(e.isMutating()>0),a=Pe.useState(r.current||n.current),o=a[0],i=a[1];return Pe.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(br.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(br.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},rp=function(){var e=ho();return f.useCallback(function(){e.invalidateQueries()},[e])},W1=function(){return W1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?MM(s,t-1,r,n,a):YJ(a,s):n||(a[a.length]=s)}return a}var xE=MM;function ZJ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var FM=dZ;function fZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=CZ){var l=t?null:SZ(e);if(l)return OZ(l);i=!1,a=EZ,u=new xZ}else u=t?[]:s;e:for(;++n0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. Be sure to pass the props from the parent. Example: const My`).concat(e,` = props => ( <`).concat(e," {...props}> ); -The missing props are: `).concat(a.join(", ")))},G1=function(){return G1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?i[l].apply(i,td(td([],d,!1),[c],!1)):o.apply(void 0,d)};return i.length>0?i[l].apply(i,td(td([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=f.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},jh=function(){return jh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;se||g(typeof U=="string"?U:U.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof U=="string"?U:U instanceof Error||typeof U=="object"&&U!==null&&U.hasOwnProperty("message")?U.message:void 0}})}},v),{returnPromise:!0,getMutateWithMiddlewares:O})),$=P[0],T=P[1].isPending,A=f.useCallback(function(U,W){W===void 0&&(W={});var j=W.transform,V=W.meta,J=B2(W,["transform","meta"]);return Promise.resolve(j?j(U):o?o(U):U).then(function(se){return N2(void 0,void 0,void 0,function(){var oe,ve;return D2(this,function(be){switch(be.label){case 0:return be.trys.push([0,2,,3]),[4,$(u,{data:se,meta:V??E},J)];case 1:return be.sent(),[3,3];case 2:return oe=be.sent(),(oe instanceof RM||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((ve=oe.body)===null||ve===void 0?void 0:ve.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[$,E,u,o]),M=Rc(),I=m("ra.page.create",{name:M(u,1)});return{isFetching:!1,isLoading:!1,isPending:T,saving:T,defaultTitle:I,save:A,resource:u,record:x,redirect:p,registerMutationMiddleware:S,unregisterMutationMiddleware:C}},Ree=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ll.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},kee=function(e,t){return t?"edit":e?"show":"list"},_E=f.createContext(void 0);_E.displayName="RecordContext";var ul=function(e){var t=e.children,r=e.value;return f.createElement(_E.Provider,{value:r},t)},EE=f.createContext(null);EE.displayName="CreateContext";var Ih=function(){return Ih=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!He||a!=="pessimistic")&&g(typeof Ee=="string"?Ee:Ee.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Ee=="string"?Ee:Ee instanceof Error||typeof Ee=="object"&&Ee!==null&&Ee.hasOwnProperty("message")?Ee.message:void 0}})}},C),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:T})),_e=xe[0],Te=xe[1].isPending,$e=f.useCallback(function(Ee,Ve){var je=Ve===void 0?{}:Ve,De=je.onSuccess,Fe=je.onError,He=je.transform,et=je.meta;return Promise.resolve(He?He(Ee,{previousData:be.previousData}):d?d(Ee,{previousData:be.previousData}):Ee).then(function(ft){return z2(void 0,void 0,void 0,function(){var xt,z;return U2(this,function(X){switch(X.label){case 0:return X.trys.push([0,2,,3]),[4,_e(p,{id:b,data:ft,meta:et??w},{onError:Fe,onSuccess:De})];case 1:return X.sent(),[3,3];case 2:return xt=X.sent(),((z=xt.body)===null||z===void 0?void 0:z.errors)!=null?[2,xt.body.errors]:[3,3];case 3:return[2]}})})})},[b,w,p,d,_e,be.previousData]);return{defaultTitle:ve,error:U,isFetching:j,isLoading:W,isPending:V,mutationMode:a,record:I,redirect:c,refetch:J,registerMutationMiddleware:$,resource:p,save:$e,saving:Te,unregisterMutationMiddleware:A}},Fee="list",yn=function(e){var t=f.useContext(_E);return e&&e.record||t},YM=function(e){var t=e.value,r=e.children;return t?f.createElement(ul,{value:t},r):r},Lee=function(e){var t=yn(e),r=Nt(e),n=WE(r);return f.createElement(f.Fragment,null,n(t))},SE=f.createContext(null);SE.displayName="EditContext";var Nee=function(e){var t=e.children,r=e.value;return f.createElement(SE.Provider,{value:r},f.createElement(qM,{value:QM(r)},f.createElement(ul,{value:r&&r.record},t)))},Dee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a=0?i[l].apply(i,td(td([],d,!1),[c],!1)):o.apply(void 0,d)};return i.length>0?i[l].apply(i,td(td([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=f.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Th=function(){return Th=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;se||g(typeof U=="string"?U:U.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof U=="string"?U:U instanceof Error||typeof U=="object"&&U!==null&&U.hasOwnProperty("message")?U.message:void 0}})}},v),{returnPromise:!0,getMutateWithMiddlewares:O})),$=P[0],T=P[1].isPending,A=f.useCallback(function(U,W){W===void 0&&(W={});var j=W.transform,V=W.meta,J=B2(W,["transform","meta"]);return Promise.resolve(j?j(U):o?o(U):U).then(function(se){return N2(void 0,void 0,void 0,function(){var oe,ve;return D2(this,function(be){switch(be.label){case 0:return be.trys.push([0,2,,3]),[4,$(u,{data:se,meta:V??E},J)];case 1:return be.sent(),[3,3];case 2:return oe=be.sent(),(oe instanceof RM||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((ve=oe.body)===null||ve===void 0?void 0:ve.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[$,E,u,o]),M=Rc(),I=m("ra.page.create",{name:M(u,1)});return{isFetching:!1,isLoading:!1,isPending:T,saving:T,defaultTitle:I,save:A,resource:u,record:x,redirect:p,registerMutationMiddleware:S,unregisterMutationMiddleware:C}},Ree=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ll.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},kee=function(e,t){return t?"edit":e?"show":"list"},_E=f.createContext(void 0);_E.displayName="RecordContext";var ul=function(e){var t=e.children,r=e.value;return f.createElement(_E.Provider,{value:r},t)},EE=f.createContext(null);EE.displayName="CreateContext";var jh=function(){return jh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!He||a!=="pessimistic")&&g(typeof Ee=="string"?Ee:Ee.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Ee=="string"?Ee:Ee instanceof Error||typeof Ee=="object"&&Ee!==null&&Ee.hasOwnProperty("message")?Ee.message:void 0}})}},C),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:T})),_e=xe[0],Te=xe[1].isPending,$e=f.useCallback(function(Ee,Ve){var je=Ve===void 0?{}:Ve,De=je.onSuccess,Fe=je.onError,He=je.transform,et=je.meta;return Promise.resolve(He?He(Ee,{previousData:be.previousData}):d?d(Ee,{previousData:be.previousData}):Ee).then(function(ft){return z2(void 0,void 0,void 0,function(){var xt,z;return U2(this,function(X){switch(X.label){case 0:return X.trys.push([0,2,,3]),[4,_e(p,{id:b,data:ft,meta:et??w},{onError:Fe,onSuccess:De})];case 1:return X.sent(),[3,3];case 2:return xt=X.sent(),((z=xt.body)===null||z===void 0?void 0:z.errors)!=null?[2,xt.body.errors]:[3,3];case 3:return[2]}})})})},[b,w,p,d,_e,be.previousData]);return{defaultTitle:ve,error:U,isFetching:j,isLoading:W,isPending:V,mutationMode:a,record:I,redirect:c,refetch:J,registerMutationMiddleware:$,resource:p,save:$e,saving:Te,unregisterMutationMiddleware:A}},Fee="list",yn=function(e){var t=f.useContext(_E);return e&&e.record||t},YM=function(e){var t=e.value,r=e.children;return t?f.createElement(ul,{value:t},r):r},Lee=function(e){var t=yn(e),r=Nt(e),n=WE(r);return f.createElement(f.Fragment,null,n(t))},SE=f.createContext(null);SE.displayName="EditContext";var Nee=function(e){var t=e.children,r=e.value;return f.createElement(SE.Provider,{value:r},f.createElement(qM,{value:QM(r)},f.createElement(ul,{value:r&&r.record},t)))},Dee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":ZM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),Gee=Kee,Qee=typeof window>"u"?Ps:window;function Xee(e,t){if(e instanceof Qee[t])return!0;switch(typeof e>"u"?"undefined":ZM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var k0,W2;function Yee(){return W2||(W2=1,k0=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),k0}var Jee=function(){function e(t,r){for(var n=0;n0&&(d=d.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(d=d.map(o)),a.push(d.join(this._options.rowDelimiter)),n=d}}catch(h){s=!0,u=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(_){var x=a._headers.indexOf(_);return x===-1&&(a._headers.push(_),x=a._headers.indexOf(_)),x};i=function(_){var x=[],y=function(M){return x.push(M.map(function(I){return I??""}))},b=function(){return new Array(a._headers.length).fill(null)},E={},v=b(),w=!0,S=!1,O=void 0;try{for(var C=_[Symbol.iterator](),P;!(w=(P=C.next()).done);w=!0){var $=P.value,T=s($.item);if(v[T]!=null&&(y(v),v=b()),E[T]=E[T]||0,a._options.fillTopRow&&E[T]0&&y(v),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var d=r[Symbol.iterator](),p;!(u=(p=d.next()).done);u=!0){var h=p.value,m=a._handler.check(h,a._options.mainPathItem,h,r);i(m)}}catch(g){l=!0,c=g}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),H2(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(d){var p=d.value||d.value===0?d.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var h=[d.item,p];a.push(h.join(n._options.rowDelimiter))}else s[0].push(d.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),H2(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),rte=tte,nte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},ate=nte,K2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G2=rte,Q2=ate,ote=JM,ite=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:ote,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":K2(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":K2(u))==="object"){var l=Object.keys(e),c=Object.keys(u),d=c.every(function(m){return l.includes(m)});c.length>0&&d?r=u:t=u}else t=u}else return new Q2(new G2(e));var p=Object.assign({},e,r),h=new G2(p);return t?new Promise(function(m,g){h.parse(t,function(_,x){if(n)return n(_,x);if(_)return g(_);if(g)return m(x)})}):new Q2};const ste=pr(ite),lte=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var ute=function(e,t,r,n){return ste(e,function(a,o){return lte(o,n)})},cte=function(e){return function(t,r,n){return e.getMany(n,{ids:dte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},dte=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},Pl=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||m(function(y){if(!Array.isArray(y))return Pl([],y,!0);var b=y.indexOf(x);return b>-1?Pl(Pl([],y.slice(0,b),!0),y.slice(b+1),!0):Pl(Pl([],y,!0),[x],!1)})},clearSelection:function(){g()}}},[m,g]);return[h,_]},T0=[],fte=sg,pte=fE,vte=1,hte=2;function mte(e,t,r,n){var a=r.length,o=a,i=!n;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a0&&!S&&E(P)},[h.search]);var $=f.useCallback(function(se){w.current&&(v.current?v.current=L2(v.current,se):(v.current=L2(P,se),setTimeout(function(){v.current&&(a?x(v.current):m({search:"?".concat(ll.stringify(Lo(Lo({},v.current),{filter:JSON.stringify(v.current.filter),displayedFilters:JSON.stringify(v.current.displayedFilters)})))},{state:{_scrollToTop:se.type===q1}}),v.current=void 0)},0)))},X2(X2([],O,!0),[m],!1)),T=f.useCallback(function(se){return $({type:BM,payload:se})},[$]),A=f.useCallback(function(se){return $({type:q1,payload:se})},[$]),M=f.useCallback(function(se){return $({type:zM,payload:se})},[$]),I=P.filter||Z2,U=P.displayedFilters||Z2,W=PM(function(se,oe){$({type:K1,payload:{filter:Xu(se),displayedFilters:oe}})},r),j=f.useCallback(function(se,oe,ve){return oe===void 0&&(oe=void 0),ve===void 0&&(ve=!1),ve?W(se,oe):$({type:K1,payload:{filter:Xu(se),displayedFilters:oe}})},[$]),V=f.useCallback(function(se){$({type:VM,payload:se})},[$]),J=f.useCallback(function(se,oe){$({type:UM,payload:{filterName:se,defaultValue:oe}})},[$]);return[Lo(Lo({filterValues:I,requestSignature:O},P),{displayedFilters:U}),{changeParams:$,setPage:A,setPerPage:M,setSort:T,setFilters:j,hideFilter:V,showFilter:J}]},pre=["page","perPage","sort","order","filter","displayedFilters"],Y2=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},vre=function(e){var t=e.search,r=cre(ll.parse(t),function(n,a){return pre.indexOf(a)!==-1});return Y2(r,"filter"),Y2(r,"displayedFilters"),r},hre=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},mre=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:hre(r)?Lo({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Lo(Lo({},i),{page:J2(i.page,1),perPage:J2(i.perPage,10)})},J2=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},Z2={},gre={field:"id",order:qs},e$={},hg=f.createContext(null);hg.displayName="ListContext";var r3=f.createContext(void 0),yre=function(e){return f.useMemo(function(){return pg(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};r3.displayName="ListFilterContext";var n3=f.createContext(void 0),bre=function(e){return f.useMemo(function(){return pg(e,["sort","setSort","resource"])},[e.sort,e.setSort])};n3.displayName="ListSortContext";var PE=f.createContext(void 0);PE.displayName="ListPaginationContext";var xre=function(e){return f.useMemo(function(){return pg(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},a3=function(e){var t=e.value,r=e.children;return f.createElement(hg.Provider,{value:t},f.createElement(r3.Provider,{value:yre(t)},f.createElement(n3.Provider,{value:bre(t)},f.createElement(PE.Provider,{value:xre(t)},r))))},Ks=function(){return Ks=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(T==null||(T==null?void 0:T.length)===0)){S.setPage(1);return}if(M!=null){var ve=Math.ceil(M/w.perPage)||1;!W&&w.page>ve&&S.setPage(ve)}},[W,w.page,w.perPage,T,S,M]);var J=f.useMemo(function(){return{field:w.sort,order:w.order}},[w.sort,w.order]),se=Rc(),oe=b("ra.page.list",{name:se(_,2)});return{sort:J,data:T,defaultTitle:oe,displayedFilters:w.displayedFilters,error:I,exporter:i,filter:s,filterValues:w.filterValues,hideFilter:S.hideFilter,isFetching:W,isLoading:U,isPending:j,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:w.page,perPage:w.perPage,refetch:V,resource:_,selectedIds:C,setFilters:S.setFilters,setPage:S.setPage,setPerPage:S.setPerPage,setSort:S.setSort,showFilter:S.showFilter,total:M,hasNextPage:A?A.hasNextPage:M!=null?w.page*w.perPage1}},Ere={field:"id",order:qs},Sre=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Ju=function(e){return Object.keys(e).filter(function(t){return!Sre.includes(t)}).reduce(function(t,r){var n;return Ks(Ks({},t),(n={},n[r]=e[r],n))},{})},Ore=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Up(Up([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Up(Up([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},$re=function(e,t){var r=_a("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=f.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},tu=function(){return tu=Object.assign||function(e){for(var t,r=1,n=arguments.length;rfr(ye,oe.field)?oe.order==="ASC"?1:-1:fr(le,oe.field)1,hideFilter:et,isFetching:v,isLoading:O,isPending:$,onSelect:Te.select,onToggleItem:Te.toggle,onUnselectItems:Te.clearSelection,page:W,perPage:V,resource:"",refetch:Rre,selectedIds:_e,setFilters:xt,setPage:j,setPerPage:J,setSort:be,showFilter:ft,total:M==null?void 0:M.total}},Tre={},Ba=function(){var e=f.useContext(hg);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},jre=fg,Ire=gc,Are=hM,Mre=Oc,o3=Object.prototype,Fre=o3.hasOwnProperty,Lre=jre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Are(t[0],t[1],a)&&(n=1);++re.type==="checkbox",ru=e=>e instanceof Date,fn=e=>e==null;const s3=e=>typeof e=="object";var Ir=e=>!fn(e)&&!Array.isArray(e)&&s3(e)&&!ru(e),l3=e=>Ir(e)&&e.target?rp(e.target)?e.target.checked:e.target.value:e,zre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,u3=(e,t)=>e.has(zre(t)),Ure=e=>{const t=e.constructor&&e.constructor.prototype;return Ir(t)&&t.hasOwnProperty("isPrototypeOf")},kE=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _n(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(kE&&(e instanceof Blob||e instanceof FileList))&&(r||Ir(e)))if(t=r?[]:{},!r&&!Ure(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=_n(e[n]));else return e;return t}var np=e=>Array.isArray(e)?e.filter(Boolean):[],dr=e=>e===void 0,ke=(e,t,r)=>{if(!t||!Ir(e))return r;const n=np(t.split(/[,[\].]+?/)).reduce((a,o)=>fn(a)?a:a[o],e);return dr(n)||n===e?dr(e[t])?r:e[t]:n},ro=e=>typeof e=="boolean",TE=e=>/^\w*$/.test(e),c3=e=>np(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Wt=(e,t,r)=>{let n=-1;const a=TE(t)?[t]:c3(t),o=a.length,i=o-1;for(;++nPe.useContext(d3),f3=e=>{const{children:t,...r}=e;return Pe.createElement(d3.Provider,{value:r},t)};var p3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Aa.all&&(t._proxyFormState[i]=!n||Aa.all),r&&(r[i]=!0),e[i]}});return a},zn=e=>Ir(e)&&!Object.keys(e).length,v3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return zn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Aa.all))},Ev=e=>Array.isArray(e)?e:[e],h3=(e,t,r)=>!e||!t||e===t||Ev(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function jE(e){const t=Pe.useRef(e);t.current=e,Pe.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function mg(e){const t=Pc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=Pe.useState(r._formState),u=Pe.useRef(!0),l=Pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Pe.useRef(a);return c.current=a,jE({disabled:n,next:d=>u.current&&h3(c.current,d.name,o)&&v3(d,l.current,r._updateFormState)&&s({...r._formState,...d}),subject:r._subjects.state}),Pe.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),p3(i,r,l.current,!1)}var ao=e=>typeof e=="string",m3=(e,t,r,n,a)=>ao(e)?(n&&t.watch.add(e),ke(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),ke(r,o))):(n&&(t.watchAll=!0),r);function Vre(e){const t=Pc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=Pe.useRef(n);s.current=n,jE({disabled:o,subject:r._subjects.values,next:c=>{h3(s.current,c.name,i)&&l(_n(m3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=Pe.useState(r._getWatch(n,a));return Pe.useEffect(()=>r._removeUnmounted()),u}function Wre(e){const t=Pc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=u3(a._names.array,r),s=Vre({control:a,name:r,defaultValue:ke(a._formValues,r,ke(a._defaultValues,r,e.defaultValue)),exact:!0}),u=mg({control:a,name:r}),l=Pe.useRef(a.register(r,{...e.rules,value:s,...ro(e.disabled)?{disabled:e.disabled}:{}}));return Pe.useEffect(()=>{const c=a._options.shouldUnregister||o,d=(p,h)=>{const m=ke(a._fields,p);m&&m._f&&(m._f.mount=h)};if(d(r,!0),c){const p=_n(ke(a._options.defaultValues,r));Wt(a._defaultValues,r,p),dr(ke(a._formValues,r))&&Wt(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):d(r,!1)}},[r,a,i,o]),Pe.useEffect(()=>{ke(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:ke(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ro(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:Pe.useCallback(c=>l.current.onChange({target:{value:l3(c),name:r},type:Ah.CHANGE}),[r]),onBlur:Pe.useCallback(()=>l.current.onBlur({target:{value:ke(a._formValues,r),name:r},type:Ah.BLUR}),[r,a]),ref:c=>{const d=ke(a._fields,r);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ke(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ke(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ke(u.validatingFields,r)},error:{enumerable:!0,get:()=>ke(u.errors,r)}})}}var Hre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},r$=e=>({isOnSubmit:!e||e===Aa.onSubmit,isOnBlur:e===Aa.onBlur,isOnChange:e===Aa.onChange,isOnAll:e===Aa.all,isOnTouch:e===Aa.onTouched}),n$=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ld=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=ke(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;Ld(s,t)}else Ir(s)&&Ld(s,t)}}};var qre=(e,t,r)=>{const n=np(ke(e,r));return Wt(n,"root",t[r]),Wt(e,r,n),e},IE=e=>e.type==="file",Ti=e=>typeof e=="function",Mh=e=>{if(!kE)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Sv=e=>ao(e),AE=e=>e.type==="radio",Fh=e=>e instanceof RegExp;const a$={value:!1,isValid:!1},o$={value:!0,isValid:!0};var g3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dr(e[0].attributes.value)?dr(e[0].value)||e[0].value===""?o$:{value:e[0].value,isValid:!0}:o$:a$}return a$};const i$={isValid:!1,value:null};var y3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,i$):i$;function s$(e,t,r="validate"){if(Sv(e)||Array.isArray(e)&&e.every(Sv)||ro(e)&&!e)return{type:r,message:Sv(e)?e:"",ref:t}}var $l=e=>Ir(e)&&!Fh(e)?e:{value:e,message:""},l$=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:g,mount:_,disabled:x}=e._f,y=ke(t,m);if(!_||x)return{};const b=i?i[0]:o,E=T=>{n&&b.reportValidity&&(b.setCustomValidity(ro(T)?"":T||""),b.reportValidity())},v={},w=AE(o),S=rp(o),O=w||S,C=(g||IE(o))&&dr(o.value)&&dr(y)||Mh(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,P=Hre.bind(null,m,r,v),$=(T,A,M,I=Co.maxLength,U=Co.minLength)=>{const W=T?A:M;v[m]={type:T?I:U,message:W,ref:o,...P(T?I:U,W)}};if(a?!Array.isArray(y)||!y.length:s&&(!O&&(C||fn(y))||ro(y)&&!y||S&&!g3(i).isValid||w&&!y3(i).isValid)){const{value:T,message:A}=Sv(s)?{value:!!s,message:s}:$l(s);if(T&&(v[m]={type:Co.required,message:A,ref:b,...P(Co.required,A)},!r))return E(A),v}if(!C&&(!fn(c)||!fn(d))){let T,A;const M=$l(d),I=$l(c);if(!fn(y)&&!isNaN(y)){const U=o.valueAsNumber||y&&+y;fn(M.value)||(T=U>M.value),fn(I.value)||(A=Unew Date(new Date().toDateString()+" "+J),j=o.type=="time",V=o.type=="week";ao(M.value)&&y&&(T=j?W(y)>W(M.value):V?y>M.value:U>new Date(M.value)),ao(I.value)&&y&&(A=j?W(y)+T.value,I=!fn(A.value)&&y.length<+A.value;if((M||I)&&($(M,T.message,A.message),!r))return E(v[m].message),v}if(p&&!C&&ao(y)){const{value:T,message:A}=$l(p);if(Fh(T)&&!y.match(T)&&(v[m]={type:Co.pattern,message:A,ref:o,...P(Co.pattern,A)},!r))return E(A),v}if(h){if(Ti(h)){const T=await h(y,t),A=s$(T,b);if(A&&(v[m]={...A,...P(Co.validate,A.message)},!r))return E(A.message),v}else if(Ir(h)){let T={};for(const A in h){if(!zn(T)&&!r)break;const M=s$(await h[A](y,t),b,A);M&&(T={...M,...P(A,M.message)},E(M.message),r&&(v[m]=T))}if(!zn(T)&&(v[m]={ref:b,...T},!r))return v}}return E(!0),v};function Kre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Lh=e=>fn(e)||!s3(e);function Is(e,t){if(Lh(e)||Lh(t))return e===t;if(ru(e)&&ru(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ru(o)&&ru(i)||Ir(o)&&Ir(i)||Array.isArray(o)&&Array.isArray(i)?!Is(o,i):o!==i)return!1}}return!0}var b3=e=>e.type==="select-multiple",Qre=e=>AE(e)||rp(e),I0=e=>Mh(e)&&e.isConnected,x3=e=>{for(const t in e)if(Ti(e[t]))return!0;return!1};function Nh(e,t={}){const r=Array.isArray(e);if(Ir(e)||r)for(const n in e)Array.isArray(e[n])||Ir(e[n])&&!x3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Nh(e[n],t[n])):fn(e[n])||(t[n]=!0);return t}function w3(e,t,r){const n=Array.isArray(e);if(Ir(e)||n)for(const a in e)Array.isArray(e[a])||Ir(e[a])&&!x3(e[a])?dr(t)||Lh(r[a])?r[a]=Array.isArray(e[a])?Nh(e[a],[]):{...Nh(e[a])}:w3(e[a],fn(t)?{}:t[a],r[a]):r[a]=!Is(e[a],t[a]);return r}var Vp=(e,t)=>w3(e,t,Nh(t)),_3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>dr(e)?e:t?e===""?NaN:e&&+e:r&&ao(e)?new Date(e):n?n(e):e;function A0(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return IE(t)?t.files:AE(t)?y3(e.refs).value:b3(t)?[...t.selectedOptions].map(({value:r})=>r):rp(t)?g3(e.refs).value:_3(dr(t.value)?e.ref.value:t.value,e)}var Xre=(e,t,r,n)=>{const a={};for(const o of e){const i=ke(t,o);i&&Wt(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},rd=e=>dr(e)?e:Fh(e)?e.source:Ir(e)?Fh(e.value)?e.value.source:e.value:e,Yre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function u$(e,t,r){const n=ke(e,r);if(n||TE(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=ke(t,o),s=ke(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Jre=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Zre=(e,t)=>!np(ke(e,t)).length&&$r(e,t);const ene={mode:Aa.onSubmit,reValidateMode:Aa.onChange,shouldFocusError:!0};function tne(e={}){let t={...ene,...e},r={submitCount:0,isDirty:!1,isLoading:Ti(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Ir(t.defaultValues)||Ir(t.values)?_n(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:_n(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:j0(),array:j0(),state:j0()},p=r$(t.mode),h=r$(t.reValidateMode),m=t.criteriaMode===Aa.all,g=z=>X=>{clearTimeout(l),l=setTimeout(z,X)},_=async z=>{if(c.isValid||z){const X=t.resolver?zn((await O()).errors):await P(n,!0);X!==r.isValid&&d.state.next({isValid:X})}},x=(z,X)=>{(c.isValidating||c.validatingFields)&&((z||Array.from(s.mount)).forEach(te=>{te&&(X?Wt(r.validatingFields,te,X):$r(r.validatingFields,te))}),d.state.next({validatingFields:r.validatingFields,isValidating:!zn(r.validatingFields)}))},y=(z,X=[],te,le,ye=!0,me=!0)=>{if(le&&te){if(i.action=!0,me&&Array.isArray(ke(n,z))){const ge=te(ke(n,z),le.argA,le.argB);ye&&Wt(n,z,ge)}if(me&&Array.isArray(ke(r.errors,z))){const ge=te(ke(r.errors,z),le.argA,le.argB);ye&&Wt(r.errors,z,ge),Zre(r.errors,z)}if(c.touchedFields&&me&&Array.isArray(ke(r.touchedFields,z))){const ge=te(ke(r.touchedFields,z),le.argA,le.argB);ye&&Wt(r.touchedFields,z,ge)}c.dirtyFields&&(r.dirtyFields=Vp(a,o)),d.state.next({name:z,isDirty:T(z,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Wt(o,z,X)},b=(z,X)=>{Wt(r.errors,z,X),d.state.next({errors:r.errors})},E=z=>{r.errors=z,d.state.next({errors:r.errors,isValid:!1})},v=(z,X,te,le)=>{const ye=ke(n,z);if(ye){const me=ke(o,z,dr(te)?ke(a,z):te);dr(me)||le&&le.defaultChecked||X?Wt(o,z,X?me:A0(ye._f)):I(z,me),i.mount&&_()}},w=(z,X,te,le,ye)=>{let me=!1,ge=!1;const Z={name:z},K=!!(ke(n,z)&&ke(n,z)._f&&ke(n,z)._f.disabled);if(!te||le){c.isDirty&&(ge=r.isDirty,r.isDirty=Z.isDirty=T(),me=ge!==Z.isDirty);const Q=K||Is(ke(a,z),X);ge=!!(!K&&ke(r.dirtyFields,z)),Q||K?$r(r.dirtyFields,z):Wt(r.dirtyFields,z,!0),Z.dirtyFields=r.dirtyFields,me=me||c.dirtyFields&&ge!==!Q}if(te){const Q=ke(r.touchedFields,z);Q||(Wt(r.touchedFields,z,te),Z.touchedFields=r.touchedFields,me=me||c.touchedFields&&Q!==te)}return me&&ye&&d.state.next(Z),me?Z:{}},S=(z,X,te,le)=>{const ye=ke(r.errors,z),me=c.isValid&&ro(X)&&r.isValid!==X;if(e.delayError&&te?(u=g(()=>b(z,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Wt(r.errors,z,te):$r(r.errors,z)),(te?!Is(ye,te):ye)||!zn(le)||me){const ge={...le,...me&&ro(X)?{isValid:X}:{},errors:r.errors,name:z};r={...r,...ge},d.state.next(ge)}},O=async z=>{x(z,!0);const X=await t.resolver(o,t.context,Xre(z||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(z),X},C=async z=>{const{errors:X}=await O(z);if(z)for(const te of z){const le=ke(X,te);le?Wt(r.errors,te,le):$r(r.errors,te)}else r.errors=X;return X},P=async(z,X,te={valid:!0})=>{for(const le in z){const ye=z[le];if(ye){const{_f:me,...ge}=ye;if(me){const Z=s.array.has(me.name);x([le],!0);const K=await l$(ye,o,m,t.shouldUseNativeValidation&&!X,Z);if(x([le]),K[me.name]&&(te.valid=!1,X))break;!X&&(ke(K,me.name)?Z?qre(r.errors,K,me.name):Wt(r.errors,me.name,K[me.name]):$r(r.errors,me.name))}ge&&await P(ge,X,te)}}return te.valid},$=()=>{for(const z of s.unMount){const X=ke(n,z);X&&(X._f.refs?X._f.refs.every(te=>!I0(te)):!I0(X._f.ref))&&_e(z)}s.unMount=new Set},T=(z,X)=>(z&&X&&Wt(o,z,X),!Is(se(),a)),A=(z,X,te)=>m3(z,s,{...i.mount?o:dr(X)?a:ao(z)?{[z]:X}:X},te,X),M=z=>np(ke(i.mount?o:a,z,e.shouldUnregister?ke(a,z,[]):[])),I=(z,X,te={})=>{const le=ke(n,z);let ye=X;if(le){const me=le._f;me&&(!me.disabled&&Wt(o,z,_3(X,me)),ye=Mh(me.ref)&&fn(X)?"":X,b3(me.ref)?[...me.ref.options].forEach(ge=>ge.selected=ye.includes(ge.value)):me.refs?rp(me.ref)?me.refs.length>1?me.refs.forEach(ge=>(!ge.defaultChecked||!ge.disabled)&&(ge.checked=Array.isArray(ye)?!!ye.find(Z=>Z===ge.value):ye===ge.value)):me.refs[0]&&(me.refs[0].checked=!!ye):me.refs.forEach(ge=>ge.checked=ge.value===ye):IE(me.ref)?me.ref.value="":(me.ref.value=ye,me.ref.type||d.values.next({name:z,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&w(z,ye,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&J(z)},U=(z,X,te)=>{for(const le in X){const ye=X[le],me=`${z}.${le}`,ge=ke(n,me);(s.array.has(z)||!Lh(ye)||ge&&!ge._f)&&!ru(ye)?U(me,ye,te):I(me,ye,te)}},W=(z,X,te={})=>{const le=ke(n,z),ye=s.array.has(z),me=_n(X);Wt(o,z,me),ye?(d.array.next({name:z,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&d.state.next({name:z,dirtyFields:Vp(a,o),isDirty:T(z,me)})):le&&!le._f&&!fn(me)?U(z,me,te):I(z,me,te),n$(z,s)&&d.state.next({...r}),d.values.next({name:i.mount?z:void 0,values:{...o}})},j=async z=>{i.mount=!0;const X=z.target;let te=X.name,le=!0;const ye=ke(n,te),me=()=>X.type?A0(ye._f):l3(z),ge=Z=>{le=Number.isNaN(Z)||Z===ke(o,te,Z)};if(ye){let Z,K;const Q=me(),re=z.type===Ah.BLUR||z.type===Ah.FOCUS_OUT,ie=!Yre(ye._f)&&!t.resolver&&!ke(r.errors,te)&&!ye._f.deps||Jre(re,ke(r.touchedFields,te),r.isSubmitted,h,p),Ie=n$(te,s,re);Wt(o,te,Q),re?(ye._f.onBlur&&ye._f.onBlur(z),u&&u(0)):ye._f.onChange&&ye._f.onChange(z);const Xe=w(te,Q,re,!1),Be=!zn(Xe)||Ie;if(!re&&d.values.next({name:te,type:z.type,values:{...o}}),ie)return c.isValid&&_(),Be&&d.state.next({name:te,...Ie?{}:Xe});if(!re&&Ie&&d.state.next({...r}),t.resolver){const{errors:Oe}=await O([te]);if(ge(Q),le){const Je=u$(r.errors,n,te),rt=u$(Oe,n,Je.name||te);Z=rt.error,te=rt.name,K=zn(Oe)}}else x([te],!0),Z=(await l$(ye,o,m,t.shouldUseNativeValidation))[te],x([te]),ge(Q),le&&(Z?K=!1:c.isValid&&(K=await P(n,!0)));le&&(ye._f.deps&&J(ye._f.deps),S(te,K,Z,Xe))}},V=(z,X)=>{if(ke(r.errors,X)&&z.focus)return z.focus(),1},J=async(z,X={})=>{let te,le;const ye=Ev(z);if(t.resolver){const me=await C(dr(z)?z:ye);te=zn(me),le=z?!ye.some(ge=>ke(me,ge)):te}else z?(le=(await Promise.all(ye.map(async me=>{const ge=ke(n,me);return await P(ge&&ge._f?{[me]:ge}:ge)}))).every(Boolean),!(!le&&!r.isValid)&&_()):le=te=await P(n);return d.state.next({...!ao(z)||c.isValid&&te!==r.isValid?{}:{name:z},...t.resolver||!z?{isValid:te}:{},errors:r.errors}),X.shouldFocus&&!le&&Ld(n,V,z?ye:s.mount),le},se=z=>{const X={...i.mount?o:a};return dr(z)?X:ao(z)?ke(X,z):z.map(te=>ke(X,te))},oe=(z,X)=>({invalid:!!ke((X||r).errors,z),isDirty:!!ke((X||r).dirtyFields,z),error:ke((X||r).errors,z),isValidating:!!ke(r.validatingFields,z),isTouched:!!ke((X||r).touchedFields,z)}),ve=z=>{z&&Ev(z).forEach(X=>$r(r.errors,X)),d.state.next({errors:z?r.errors:{}})},be=(z,X,te)=>{const le=(ke(n,z,{_f:{}})._f||{}).ref,ye=ke(r.errors,z)||{},{ref:me,message:ge,type:Z,...K}=ye;Wt(r.errors,z,{...K,...X,ref:le}),d.state.next({name:z,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&le&&le.focus&&le.focus()},xe=(z,X)=>Ti(z)?d.values.subscribe({next:te=>z(A(void 0,X),te)}):A(z,X,!0),_e=(z,X={})=>{for(const te of z?Ev(z):s.mount)s.mount.delete(te),s.array.delete(te),X.keepValue||($r(n,te),$r(o,te)),!X.keepError&&$r(r.errors,te),!X.keepDirty&&$r(r.dirtyFields,te),!X.keepTouched&&$r(r.touchedFields,te),!X.keepIsValidating&&$r(r.validatingFields,te),!t.shouldUnregister&&!X.keepDefaultValue&&$r(a,te);d.values.next({values:{...o}}),d.state.next({...r,...X.keepDirty?{isDirty:T()}:{}}),!X.keepIsValid&&_()},Te=({disabled:z,name:X,field:te,fields:le,value:ye})=>{if(ro(z)&&i.mount||z){const me=z?void 0:dr(ye)?A0(te?te._f:ke(le,X)._f):ye;Wt(o,X,me),w(X,me,!1,!1,!0)}},$e=(z,X={})=>{let te=ke(n,z);const le=ro(X.disabled);return Wt(n,z,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:z}},name:z,mount:!0,...X}}),s.mount.add(z),te?Te({field:te,disabled:X.disabled,name:z,value:X.value}):v(z,!0,X.value),{...le?{disabled:X.disabled}:{},...t.progressive?{required:!!X.required,min:rd(X.min),max:rd(X.max),minLength:rd(X.minLength),maxLength:rd(X.maxLength),pattern:rd(X.pattern)}:{},name:z,onChange:j,onBlur:j,ref:ye=>{if(ye){$e(z,X),te=ke(n,z);const me=dr(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,ge=Qre(me),Z=te._f.refs||[];if(ge?Z.find(K=>K===me):me===te._f.ref)return;Wt(n,z,{_f:{...te._f,...ge?{refs:[...Z.filter(I0),me,...Array.isArray(ke(a,z))?[{}]:[]],ref:{type:me.type,name:z}}:{ref:me}}}),v(z,!1,void 0,me)}else te=ke(n,z,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(u3(s.array,z)&&i.action)&&s.unMount.add(z)}}},Ee=()=>t.shouldFocusError&&Ld(n,V,s.mount),Ve=z=>{ro(z)&&(d.state.next({disabled:z}),Ld(n,(X,te)=>{const le=ke(n,te);le&&(X.disabled=le._f.disabled||z,Array.isArray(le._f.refs)&&le._f.refs.forEach(ye=>{ye.disabled=le._f.disabled||z}))},0,!1))},je=(z,X)=>async te=>{let le;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let ye=_n(o);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:me,values:ge}=await O();r.errors=me,ye=ge}else await P(n);if($r(r.errors,"root"),zn(r.errors)){d.state.next({errors:{}});try{await z(ye,te)}catch(me){le=me}}else X&&await X({...r.errors},te),Ee(),setTimeout(Ee);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zn(r.errors)&&!le,submitCount:r.submitCount+1,errors:r.errors}),le)throw le},De=(z,X={})=>{ke(n,z)&&(dr(X.defaultValue)?W(z,_n(ke(a,z))):(W(z,X.defaultValue),Wt(a,z,_n(X.defaultValue))),X.keepTouched||$r(r.touchedFields,z),X.keepDirty||($r(r.dirtyFields,z),r.isDirty=X.defaultValue?T(z,_n(ke(a,z))):T()),X.keepError||($r(r.errors,z),c.isValid&&_()),d.state.next({...r}))},Fe=(z,X={})=>{const te=z?_n(z):a,le=_n(te),ye=zn(z),me=ye?a:le;if(X.keepDefaultValues||(a=te),!X.keepValues){if(X.keepDirtyValues)for(const ge of s.mount)ke(r.dirtyFields,ge)?Wt(me,ge,ke(o,ge)):W(ge,ke(me,ge));else{if(kE&&dr(z))for(const ge of s.mount){const Z=ke(n,ge);if(Z&&Z._f){const K=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(Mh(K)){const Q=K.closest("form");if(Q){Q.reset();break}}}}n={}}o=e.shouldUnregister?X.keepDefaultValues?_n(a):{}:_n(me),d.array.next({values:{...me}}),d.values.next({values:{...me}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!X.keepIsValid||!!X.keepDirtyValues,i.watch=!!e.shouldUnregister,d.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:ye?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!Is(z,a)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ye?[]:X.keepDirtyValues?X.keepDefaultValues&&o?Vp(a,o):r.dirtyFields:X.keepDefaultValues&&z?Vp(a,z):X.keepDirty?r.dirtyFields:{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},He=(z,X)=>Fe(Ti(z)?z(o):z,X);return{control:{register:$e,unregister:_e,getFieldState:oe,handleSubmit:je,setError:be,_executeSchema:O,_getWatch:A,_getDirty:T,_updateValid:_,_removeUnmounted:$,_updateFieldArray:y,_updateDisabledField:Te,_getFieldArray:M,_reset:Fe,_resetDefaultValues:()=>Ti(t.defaultValues)&&t.defaultValues().then(z=>{He(z,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:z=>{r={...r,...z}},_disableForm:Ve,_subjects:d,_proxyFormState:c,_setErrors:E,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(z){i=z},get _defaultValues(){return a},get _names(){return s},set _names(z){s=z},get _formState(){return r},set _formState(z){r=z},get _options(){return t},set _options(z){t={...t,...z}}},trigger:J,register:$e,handleSubmit:je,watch:xe,setValue:W,getValues:se,reset:He,resetField:De,clearErrors:ve,unregister:_e,setError:be,setFocus:(z,X={})=>{const te=ke(n,z),le=te&&te._f;if(le){const ye=le.refs?le.refs[0]:le.ref;ye.focus&&(ye.focus(),X.shouldSelect&&ye.select())}},getFieldState:oe}}function E3(e={}){const t=Pe.useRef(),r=Pe.useRef(),[n,a]=Pe.useState({isDirty:!1,isValidating:!1,isLoading:Ti(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ti(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...tne(e),formState:n});const o=t.current.control;return o._options=e,jE({subject:o._subjects.state,next:i=>{v3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Pe.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Pe.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),Pe.useEffect(()=>{e.values&&!Is(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),Pe.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Pe.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Pe.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=p3(n,o),t.current}var S3=f.createContext(void 0),X1=function(){return X1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=f.useState(!1),l=u[0],c=u[1],d=!e||!s||o,p=q8(function(h){var m=h.currentLocation,g=h.nextLocation;if(d)return!1;var _=t||m.pathname,x=g.pathname.startsWith(_),y=g.pathname.startsWith("".concat(_,"/show")),b=x&&!y;return!b});f.useEffect(function(){if(p.state==="blocked"){if(d){p.proceed();return}c(!0)}},[p.state]),f.useEffect(function(){if(l){var h=window.confirm(n("ra.message.unsaved_changes"));h?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),f.useEffect(function(){var h=function(m){m.preventDefault(),m.returnValue=!0};if(!d)return window.addEventListener("beforeunload",h),function(){window.removeEventListener("beforeunload",h)}},[d])},lne=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return sne(r,n,a),null};function une(e,t){var r=mM({},cne(e,t),t);return r}function cne(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var P3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},dne=function(e,t){t===void 0&&(t=!0);var r=mg(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=f.useRef(n),i=gn();f.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},fne=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},J1=function(){return J1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ts=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function yne(e){return e?e.hasOwnProperty("message"):!1}var rs=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ns=function(e){return LA(e,function(){for(var t=[],r=0;re?rs(t,{max:e},r,n):void 0}});ns(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!ts(r)&&re?rs(t,{max:e},r,n):void 0}});ns(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!ts(t)&&isNaN(Number(t))?rs(e,void 0,t,r):void 0}});var _ne=LA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!ts(r)&&typeof r=="string"&&!e.test(r)?rs(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ns(function(e){return e===void 0&&(e="ra.validation.email"),_ne(gne,e)});var Ene=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ns(function(e,t){return t===void 0&&(t=Ene),function(r,n){return!ts(r)&&e.indexOf(r)===-1?rs(t,{list:e},r,n):void 0}});var Sne=f.createContext(null),One=function(){var e=f.useContext(S3);return e},Cne=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=nF(o),s=yn(t),u=Pc(),l=u.getValues,c=u.resetField,d=u.formState,p=u.reset,h=fr(s,i),m=fr(l(),i),g=d.dirtyFields,_=Object.keys(g).includes(i);f.useEffect(function(){if(!(a==null||m!=null||h!=null||_)){var x=i.split(".").some(function(E){return Pne.test(E)});if(x){var y=i.split(".").slice(0,-1).join("."),b=fr(l(),y);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},Pne=/^\d+$/,$ne=function(){var e=f.useContext(Sne);return e},Rne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},nu=function(){return nu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?A(M):M},{updatedAt:T}),a.setQueriesData({queryKey:[O,"getManyReference"]},function(M){return M&&M.data?{data:A(M.data),total:M.total}:M},{updatedAt:T})},E=Qm(Ut(Ut({mutationFn:function(S){var O=S===void 0?{}:S,C=O.resource,P=C===void 0?e:C,$=O.id,T=$===void 0?h.current.id:$,A=O.data,M=A===void 0?h.current.data:A,I=O.meta,U=I===void 0?h.current.meta:I,W=O.previousData,j=W===void 0?h.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(T==null)throw new Error("useUpdate mutation requires a non-empty id");if(!M)throw new Error("useUpdate mutation requires a non-empty data object");return g.current(P,{id:T,data:M,previousData:j,meta:U}).then(function(V){var J=V.data;return J})}},d),{onMutate:function(S){return v$(void 0,void 0,void 0,function(){var O;return h$(this,function(C){switch(C.label){case 0:return d.onMutate?[4,d.onMutate(S)]:[3,2];case 1:return O=C.sent()||{},[2,Ut({snapshot:m.current},O)];case 2:return[2,{snapshot:m.current}]}})})},onError:function(S,O,C){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&C.snapshot.forEach(function(P){var $=P[0],T=P[1];a.setQueryData($,T)}),_.current)return _.current(S,O,C);if(d.onError)return d.onError(S,O,C)},onSuccess:function(S,O,C){if(O===void 0&&(O={}),p.current==="pessimistic"){var P=O.resource,$=P===void 0?e:P,T=O.id,A=T===void 0?o:T;b({resource:$,id:A,data:S}),d.onSuccess&&!y.current&&d.onSuccess(S,O,C)}},onSettled:function(S,O,C,P){if(C===void 0&&(C={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function($){var T=$[0];a.invalidateQueries({queryKey:T})}),x.current)return x.current(S,O,C,P);if(d.onSettled)return d.onSettled(S,O,C,P)}})),v=function(S,O,C){return S===void 0&&(S=e),O===void 0&&(O={}),C===void 0&&(C={}),v$(void 0,void 0,void 0,function(){var P,$,T,A,M,I,U,W,j,V,J,se,oe,ve,be;return h$(this,function(xe){switch(xe.label){case 0:return P=C.mutationMode,$=C.returnPromise,T=$===void 0?d.returnPromise:$,A=C.onError,M=C.onSettled,I=C.onSuccess,U=m$(C,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?g.current=c(n.update.bind(n)):g.current=n.update,y.current=!!I,_.current=A,x.current=M,h.current=t,P&&(p.current=P),T&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?T?[2,E.mutateAsync(Ut({resource:S},O),Ut({onSuccess:I},U))]:[2,E.mutate(Ut({resource:S},O),Ut({onSuccess:I},U))]:(W=O.id,j=W===void 0?o:W,V=O.data,J=V===void 0?i:V,se=O.meta,oe=se===void 0?s:se,ve=a.getQueryData([S,"getOne",{id:String(j),meta:oe}]),be=[[S,"getOne",{id:String(j),meta:oe}],[S,"getList"],[S,"getInfiniteList"],[S,"getMany"],[S,"getManyReference"]],m.current=be.reduce(function(_e,Te){return _e.concat(a.getQueriesData({queryKey:Te}))},[]),[4,Promise.all(m.current.map(function(_e){var Te=_e[0];return a.cancelQueries({queryKey:Te})}))]);case 1:return xe.sent(),b({resource:S,id:j,data:J}),setTimeout(function(){I?I(Ut(Ut({},ve),J),Ut({resource:S},O),{snapshot:m.current}):d.onSuccess&&!y.current&&d.onSuccess(Ut(Ut({},ve),J),Ut({resource:S},O),{snapshot:m.current})},0),p.current==="optimistic"?[2,E.mutate(Ut({resource:S},O))]:(Ef.once("end",function(_e){var Te=_e.isUndo;Te?m.current.forEach(function($e){var Ee=$e[0],Ve=$e[1];a.setQueryData(Ee,Ve)}):E.mutate(Ut({resource:S},O))}),[2])}})})},w=f.useMemo(function(){return Ut({isLoading:E.isPending},E)},[E]);return[Gt(v),w]},on=function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?C(P):P},{updatedAt:O}),a.setQueriesData({queryKey:[v,"getManyReference"]},function(P){if(!P||!P.data)return P;var $=C(P.data),T=$.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(C):C},{updatedAt:S}),a.setQueriesData({queryKey:[E,"getManyReference"]},function(C){if(!C||!C.data)return C;var P=O(C.data),$=P.length0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var M3=function(){return f.useContext(I3)},tx=function(){return tx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||m.customRoutesWithLayout.length>0||m.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&d(h),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Jne=function(e){var t=f.useState(e),r=t[0],n=t[1],a=f.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Zne=function(e,t){var r=M3(),n=r.register,a=r.unregister;f.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},eae=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return F3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},F3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},wd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(f.Children.forEach(e,function(a){if(f.isValidElement(a)){if(a.type===f.Fragment){var o=wd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},L3=f.createContext(!1),tae=L3.Provider,rae=function(){return f.useContext(L3)},nae=function(e){dJ();var t=es(),r=Xne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,d=e.requireAuth,p=e.ready,h=f.useState(d),m=h[0],g=h[1],_=f.useState(d),x=_[0],y=_[1],b=lF();if(f.useEffect(function(){d&&b(void 0,!1).then(function(){g(!1)}).catch(function(){}).finally(function(){y(!1)})},[b,d]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return f.createElement(p,null)}return o==="loading"||x?f.createElement(eu,null,a,f.createElement(Cn,{path:"*",element:f.createElement("div",{style:{height:"100vh"}},f.createElement(c,null))})):m?f.createElement(eu,null,a,f.createElement(Cn,{path:"*",element:f.createElement(Gae,null)})):f.createElement(eu,null,a,f.createElement(Cn,{path:"/*",element:f.createElement(tae,{value:!!l},f.createElement(s,null,f.createElement(eu,null,n,f.Children.map(i,function(E){return f.createElement(Cn,{key:E.props.name,path:"".concat(E.props.name,"/*"),element:E})}),f.createElement(Cn,{path:"/",element:l?f.createElement(Bae,{authParams:aae,component:l}):i.length>0?f.createElement(G8,{to:t({resource:i[0].props.name,type:"list"})}):null}),f.createElement(Cn,{path:"*",element:f.createElement(u,null)}))))}))},aae={params:{route:"dashboard"}},N3=f.createContext("React Admin"),oae=N3.Provider,D3=function(){return f.useContext(N3)},iae=function(e){var t=e.children;return f.createElement(f.Fragment,null,t)},sae=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return $M(n),f.createElement("div",null,f.createElement("h1",null,"Error"),f.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},lae=function(e){var t=f.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?P$:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,d=c===void 0?!1:c,p=e.error,h=p===void 0?sae:p,m=e.layout,g=m===void 0?iae:m,_=e.loading,x=_===void 0?P$:_,y=e.loginPage,b=y===void 0?!1:y,E=e.ready,v=E===void 0?Eae:E,w=e.requireAuth,S=w===void 0?!1:w,O=e.title,C=O===void 0?"React Admin":O;f.useEffect(function(){if(!(d||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var $=new Image;$.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[d]);var P=function($,T){return n(T)};return f.createElement(oae,{value:C},f.createElement(A3,{onError:P,fallbackRender:function($){var T=$.error,A=$.resetErrorBoundary;return f.createElement("div",{style:{minHeight:"100vh"}},f.createElement(h,{error:T,errorInfo:r,resetErrorBoundary:A}))}},f.createElement(eu,null,b!==!1&&b!==!0?f.createElement(Cn,{path:"/login",element:C$(b)}):null,o!==!1&&o!==!0?f.createElement(Cn,{path:"/auth-callback",element:C$(o)}):null,f.createElement(Cn,{path:"/*",element:f.createElement(nae,{catchAll:s,dashboard:l,layout:g,loading:x,requireAuth:S,ready:v},u)}))))},C$=function(e){return f.isValidElement(e)?e:f.createElement(e)},P$=function(){return null},B3=f.createContext(void 0),$c=function(e){var t=e.children,r=e.value;return r?f.createElement(B3.Provider,{value:r},t):t},uae=function(e){var t=e.value,r=e.children;return t?f.createElement($c,{value:t},r):r},z3={exports:{}},Lt={};/** +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),k0}var Jee=function(){function e(t,r){for(var n=0;n0&&(d=d.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(d=d.map(o)),a.push(d.join(this._options.rowDelimiter)),n=d}}catch(h){s=!0,u=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(_){var x=a._headers.indexOf(_);return x===-1&&(a._headers.push(_),x=a._headers.indexOf(_)),x};i=function(_){var x=[],y=function(M){return x.push(M.map(function(I){return I??""}))},b=function(){return new Array(a._headers.length).fill(null)},E={},v=b(),w=!0,S=!1,O=void 0;try{for(var C=_[Symbol.iterator](),P;!(w=(P=C.next()).done);w=!0){var $=P.value,T=s($.item);if(v[T]!=null&&(y(v),v=b()),E[T]=E[T]||0,a._options.fillTopRow&&E[T]0&&y(v),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var d=r[Symbol.iterator](),p;!(u=(p=d.next()).done);u=!0){var h=p.value,m=a._handler.check(h,a._options.mainPathItem,h,r);i(m)}}catch(g){l=!0,c=g}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),H2(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(d){var p=d.value||d.value===0?d.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var h=[d.item,p];a.push(h.join(n._options.rowDelimiter))}else s[0].push(d.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),H2(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),rte=tte,nte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},ate=nte,K2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G2=rte,Q2=ate,ote=JM,ite=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:ote,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":K2(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":K2(u))==="object"){var l=Object.keys(e),c=Object.keys(u),d=c.every(function(m){return l.includes(m)});c.length>0&&d?r=u:t=u}else t=u}else return new Q2(new G2(e));var p=Object.assign({},e,r),h=new G2(p);return t?new Promise(function(m,g){h.parse(t,function(_,x){if(n)return n(_,x);if(_)return g(_);if(g)return m(x)})}):new Q2};const ste=pr(ite);var lte=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},ute=function(e,t,r,n){return ste(e,function(a,o){return lte(o,n)})},cte=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},dte=function(e){return function(t,r,n){return e.getMany(n,{ids:cte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},Pl=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||m(function(y){if(!Array.isArray(y))return Pl([],y,!0);var b=y.indexOf(x);return b>-1?Pl(Pl([],y.slice(0,b),!0),y.slice(b+1),!0):Pl(Pl([],y,!0),[x],!1)})},clearSelection:function(){g()}}},[m,g]);return[h,_]},T0=[],fte=ig,pte=fE,vte=1,hte=2;function mte(e,t,r,n){var a=r.length,o=a,i=!n;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a0&&!S&&E(P)},[h.search]);var $=f.useCallback(function(se){w.current&&(v.current?v.current=L2(v.current,se):(v.current=L2(P,se),setTimeout(function(){v.current&&(a?x(v.current):m({search:"?".concat(ll.stringify(Lo(Lo({},v.current),{filter:JSON.stringify(v.current.filter),displayedFilters:JSON.stringify(v.current.displayedFilters)})))},{state:{_scrollToTop:se.type===q1}}),v.current=void 0)},0)))},X2(X2([],O,!0),[m],!1)),T=f.useCallback(function(se){return $({type:BM,payload:se})},[$]),A=f.useCallback(function(se){return $({type:q1,payload:se})},[$]),M=f.useCallback(function(se){return $({type:zM,payload:se})},[$]),I=P.filter||Z2,U=P.displayedFilters||Z2,W=PM(function(se,oe){$({type:K1,payload:{filter:Xu(se),displayedFilters:oe}})},r),j=f.useCallback(function(se,oe,ve){return oe===void 0&&(oe=void 0),ve===void 0&&(ve=!1),ve?W(se,oe):$({type:K1,payload:{filter:Xu(se),displayedFilters:oe}})},[$]),V=f.useCallback(function(se){$({type:VM,payload:se})},[$]),J=f.useCallback(function(se,oe){$({type:UM,payload:{filterName:se,defaultValue:oe}})},[$]);return[Lo(Lo({filterValues:I,requestSignature:O},P),{displayedFilters:U}),{changeParams:$,setPage:A,setPerPage:M,setSort:T,setFilters:j,hideFilter:V,showFilter:J}]},pre=["page","perPage","sort","order","filter","displayedFilters"],Y2=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},vre=function(e){var t=e.search,r=cre(ll.parse(t),function(n,a){return pre.indexOf(a)!==-1});return Y2(r,"filter"),Y2(r,"displayedFilters"),r},hre=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},mre=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:hre(r)?Lo({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Lo(Lo({},i),{page:J2(i.page,1),perPage:J2(i.perPage,10)})},J2=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},Z2={},gre={field:"id",order:qs},e$={},vg=f.createContext(null);vg.displayName="ListContext";var r3=f.createContext(void 0),yre=function(e){return f.useMemo(function(){return fg(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};r3.displayName="ListFilterContext";var n3=f.createContext(void 0),bre=function(e){return f.useMemo(function(){return fg(e,["sort","setSort","resource"])},[e.sort,e.setSort])};n3.displayName="ListSortContext";var PE=f.createContext(void 0);PE.displayName="ListPaginationContext";var xre=function(e){return f.useMemo(function(){return fg(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},a3=function(e){var t=e.value,r=e.children;return f.createElement(vg.Provider,{value:t},f.createElement(r3.Provider,{value:yre(t)},f.createElement(n3.Provider,{value:bre(t)},f.createElement(PE.Provider,{value:xre(t)},r))))},Ks=function(){return Ks=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(T==null||(T==null?void 0:T.length)===0)){S.setPage(1);return}if(M!=null){var ve=Math.ceil(M/w.perPage)||1;!W&&w.page>ve&&S.setPage(ve)}},[W,w.page,w.perPage,T,S,M]);var J=f.useMemo(function(){return{field:w.sort,order:w.order}},[w.sort,w.order]),se=Rc(),oe=b("ra.page.list",{name:se(_,2)});return{sort:J,data:T,defaultTitle:oe,displayedFilters:w.displayedFilters,error:I,exporter:i,filter:s,filterValues:w.filterValues,hideFilter:S.hideFilter,isFetching:W,isLoading:U,isPending:j,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:w.page,perPage:w.perPage,refetch:V,resource:_,selectedIds:C,setFilters:S.setFilters,setPage:S.setPage,setPerPage:S.setPerPage,setSort:S.setSort,showFilter:S.showFilter,total:M,hasNextPage:A?A.hasNextPage:M!=null?w.page*w.perPage1}},Ere={field:"id",order:qs},Sre=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Ju=function(e){return Object.keys(e).filter(function(t){return!Sre.includes(t)}).reduce(function(t,r){var n;return Ks(Ks({},t),(n={},n[r]=e[r],n))},{})},Ore=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Up(Up([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Up(Up([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},$re=function(e,t){var r=_a("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=f.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},tu=function(){return tu=Object.assign||function(e){for(var t,r=1,n=arguments.length;rfr(ye,oe.field)?oe.order==="ASC"?1:-1:fr(le,oe.field)1,hideFilter:et,isFetching:v,isLoading:O,isPending:$,onSelect:Te.select,onToggleItem:Te.toggle,onUnselectItems:Te.clearSelection,page:W,perPage:V,resource:"",refetch:Rre,selectedIds:_e,setFilters:xt,setPage:j,setPerPage:J,setSort:be,showFilter:ft,total:M==null?void 0:M.total}},Tre={},Ba=function(){var e=f.useContext(vg);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},jre=dg,Ire=gc,Are=hM,Mre=Oc,o3=Object.prototype,Fre=o3.hasOwnProperty,Lre=jre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Are(t[0],t[1],a)&&(n=1);++re.type==="checkbox",ru=e=>e instanceof Date,fn=e=>e==null;const s3=e=>typeof e=="object";var Ir=e=>!fn(e)&&!Array.isArray(e)&&s3(e)&&!ru(e),l3=e=>Ir(e)&&e.target?np(e.target)?e.target.checked:e.target.value:e,zre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,u3=(e,t)=>e.has(zre(t)),Ure=e=>{const t=e.constructor&&e.constructor.prototype;return Ir(t)&&t.hasOwnProperty("isPrototypeOf")},kE=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _n(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(kE&&(e instanceof Blob||e instanceof FileList))&&(r||Ir(e)))if(t=r?[]:{},!r&&!Ure(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=_n(e[n]));else return e;return t}var hg=e=>Array.isArray(e)?e.filter(Boolean):[],dr=e=>e===void 0,ke=(e,t,r)=>{if(!t||!Ir(e))return r;const n=hg(t.split(/[,[\].]+?/)).reduce((a,o)=>fn(a)?a:a[o],e);return dr(n)||n===e?dr(e[t])?r:e[t]:n},ro=e=>typeof e=="boolean",TE=e=>/^\w*$/.test(e),c3=e=>hg(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Wt=(e,t,r)=>{let n=-1;const a=TE(t)?[t]:c3(t),o=a.length,i=o-1;for(;++nPe.useContext(d3),f3=e=>{const{children:t,...r}=e;return Pe.createElement(d3.Provider,{value:r},t)};var p3=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Aa.all&&(t._proxyFormState[i]=!n||Aa.all),r&&(r[i]=!0),e[i]}});return a},zn=e=>Ir(e)&&!Object.keys(e).length,v3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return zn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Aa.all))},Ld=e=>Array.isArray(e)?e:[e],h3=(e,t,r)=>!e||!t||e===t||Ld(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function jE(e){const t=Pe.useRef(e);t.current=e,Pe.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function mg(e){const t=Pc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=Pe.useState(r._formState),u=Pe.useRef(!0),l=Pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Pe.useRef(a);return c.current=a,jE({disabled:n,next:d=>u.current&&h3(c.current,d.name,o)&&v3(d,l.current,r._updateFormState)&&s({...r._formState,...d}),subject:r._subjects.state}),Pe.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),p3(i,r,l.current,!1)}var ao=e=>typeof e=="string",m3=(e,t,r,n,a)=>ao(e)?(n&&t.watch.add(e),ke(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),ke(r,o))):(n&&(t.watchAll=!0),r);function Vre(e){const t=Pc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=Pe.useRef(n);s.current=n,jE({disabled:o,subject:r._subjects.values,next:c=>{h3(s.current,c.name,i)&&l(_n(m3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=Pe.useState(r._getWatch(n,a));return Pe.useEffect(()=>r._removeUnmounted()),u}function Wre(e){const t=Pc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=u3(a._names.array,r),s=Vre({control:a,name:r,defaultValue:ke(a._formValues,r,ke(a._defaultValues,r,e.defaultValue)),exact:!0}),u=mg({control:a,name:r}),l=Pe.useRef(a.register(r,{...e.rules,value:s,...ro(e.disabled)?{disabled:e.disabled}:{}}));return Pe.useEffect(()=>{const c=a._options.shouldUnregister||o,d=(p,h)=>{const m=ke(a._fields,p);m&&m._f&&(m._f.mount=h)};if(d(r,!0),c){const p=_n(ke(a._options.defaultValues,r));Wt(a._defaultValues,r,p),dr(ke(a._formValues,r))&&Wt(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):d(r,!1)}},[r,a,i,o]),Pe.useEffect(()=>{ke(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:ke(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ro(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:Pe.useCallback(c=>l.current.onChange({target:{value:l3(c),name:r},type:Ih.CHANGE}),[r]),onBlur:Pe.useCallback(()=>l.current.onBlur({target:{value:ke(a._formValues,r),name:r},type:Ih.BLUR}),[r,a]),ref:c=>{const d=ke(a._fields,r);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ke(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ke(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ke(u.validatingFields,r)},error:{enumerable:!0,get:()=>ke(u.errors,r)}})}}var Hre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},r$=e=>({isOnSubmit:!e||e===Aa.onSubmit,isOnBlur:e===Aa.onBlur,isOnChange:e===Aa.onChange,isOnAll:e===Aa.all,isOnTouch:e===Aa.onTouched}),n$=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Nd=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=ke(e,a);if(o){const{_f:i,...s}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;Nd(s,t)}else Ir(s)&&Nd(s,t)}}};var qre=(e,t,r)=>{const n=Ld(ke(e,r));return Wt(n,"root",t[r]),Wt(e,r,n),e},IE=e=>e.type==="file",Ti=e=>typeof e=="function",Ah=e=>{if(!kE)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ev=e=>ao(e),AE=e=>e.type==="radio",Mh=e=>e instanceof RegExp;const a$={value:!1,isValid:!1},o$={value:!0,isValid:!0};var g3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dr(e[0].attributes.value)?dr(e[0].value)||e[0].value===""?o$:{value:e[0].value,isValid:!0}:o$:a$}return a$};const i$={isValid:!1,value:null};var y3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,i$):i$;function s$(e,t,r="validate"){if(Ev(e)||Array.isArray(e)&&e.every(Ev)||ro(e)&&!e)return{type:r,message:Ev(e)?e:"",ref:t}}var $l=e=>Ir(e)&&!Mh(e)?e:{value:e,message:""},l$=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:g,mount:_,disabled:x}=e._f,y=ke(t,m);if(!_||x)return{};const b=i?i[0]:o,E=T=>{n&&b.reportValidity&&(b.setCustomValidity(ro(T)?"":T||""),b.reportValidity())},v={},w=AE(o),S=np(o),O=w||S,C=(g||IE(o))&&dr(o.value)&&dr(y)||Ah(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,P=Hre.bind(null,m,r,v),$=(T,A,M,I=Co.maxLength,U=Co.minLength)=>{const W=T?A:M;v[m]={type:T?I:U,message:W,ref:o,...P(T?I:U,W)}};if(a?!Array.isArray(y)||!y.length:s&&(!O&&(C||fn(y))||ro(y)&&!y||S&&!g3(i).isValid||w&&!y3(i).isValid)){const{value:T,message:A}=Ev(s)?{value:!!s,message:s}:$l(s);if(T&&(v[m]={type:Co.required,message:A,ref:b,...P(Co.required,A)},!r))return E(A),v}if(!C&&(!fn(c)||!fn(d))){let T,A;const M=$l(d),I=$l(c);if(!fn(y)&&!isNaN(y)){const U=o.valueAsNumber||y&&+y;fn(M.value)||(T=U>M.value),fn(I.value)||(A=Unew Date(new Date().toDateString()+" "+J),j=o.type=="time",V=o.type=="week";ao(M.value)&&y&&(T=j?W(y)>W(M.value):V?y>M.value:U>new Date(M.value)),ao(I.value)&&y&&(A=j?W(y)+T.value,I=!fn(A.value)&&y.length<+A.value;if((M||I)&&($(M,T.message,A.message),!r))return E(v[m].message),v}if(p&&!C&&ao(y)){const{value:T,message:A}=$l(p);if(Mh(T)&&!y.match(T)&&(v[m]={type:Co.pattern,message:A,ref:o,...P(Co.pattern,A)},!r))return E(A),v}if(h){if(Ti(h)){const T=await h(y,t),A=s$(T,b);if(A&&(v[m]={...A,...P(Co.validate,A.message)},!r))return E(A.message),v}else if(Ir(h)){let T={};for(const A in h){if(!zn(T)&&!r)break;const M=s$(await h[A](y,t),b,A);M&&(T={...M,...P(A,M.message)},E(M.message),r&&(v[m]=T))}if(!zn(T)&&(v[m]={ref:b,...T},!r))return v}}return E(!0),v};function Kre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Fh=e=>fn(e)||!s3(e);function Is(e,t){if(Fh(e)||Fh(t))return e===t;if(ru(e)&&ru(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(ru(o)&&ru(i)||Ir(o)&&Ir(i)||Array.isArray(o)&&Array.isArray(i)?!Is(o,i):o!==i)return!1}}return!0}var b3=e=>e.type==="select-multiple",Qre=e=>AE(e)||np(e),I0=e=>Ah(e)&&e.isConnected,x3=e=>{for(const t in e)if(Ti(e[t]))return!0;return!1};function Lh(e,t={}){const r=Array.isArray(e);if(Ir(e)||r)for(const n in e)Array.isArray(e[n])||Ir(e[n])&&!x3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Lh(e[n],t[n])):fn(e[n])||(t[n]=!0);return t}function w3(e,t,r){const n=Array.isArray(e);if(Ir(e)||n)for(const a in e)Array.isArray(e[a])||Ir(e[a])&&!x3(e[a])?dr(t)||Fh(r[a])?r[a]=Array.isArray(e[a])?Lh(e[a],[]):{...Lh(e[a])}:w3(e[a],fn(t)?{}:t[a],r[a]):r[a]=!Is(e[a],t[a]);return r}var Vp=(e,t)=>w3(e,t,Lh(t)),_3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>dr(e)?e:t?e===""?NaN:e&&+e:r&&ao(e)?new Date(e):n?n(e):e;function A0(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return IE(t)?t.files:AE(t)?y3(e.refs).value:b3(t)?[...t.selectedOptions].map(({value:r})=>r):np(t)?g3(e.refs).value:_3(dr(t.value)?e.ref.value:t.value,e)}var Xre=(e,t,r,n)=>{const a={};for(const o of e){const i=ke(t,o);i&&Wt(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},rd=e=>dr(e)?e:Mh(e)?e.source:Ir(e)?Mh(e.value)?e.value.source:e.value:e,Yre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function u$(e,t,r){const n=ke(e,r);if(n||TE(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=ke(t,o),s=ke(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Jre=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Zre=(e,t)=>!hg(ke(e,t)).length&&$r(e,t);const ene={mode:Aa.onSubmit,reValidateMode:Aa.onChange,shouldFocusError:!0};function tne(e={}){let t={...ene,...e},r={submitCount:0,isDirty:!1,isLoading:Ti(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Ir(t.defaultValues)||Ir(t.values)?_n(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:_n(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:j0(),array:j0(),state:j0()},p=r$(t.mode),h=r$(t.reValidateMode),m=t.criteriaMode===Aa.all,g=z=>X=>{clearTimeout(l),l=setTimeout(z,X)},_=async z=>{if(c.isValid||z){const X=t.resolver?zn((await O()).errors):await P(n,!0);X!==r.isValid&&d.state.next({isValid:X})}},x=(z,X)=>{(c.isValidating||c.validatingFields)&&((z||Array.from(s.mount)).forEach(te=>{te&&(X?Wt(r.validatingFields,te,X):$r(r.validatingFields,te))}),d.state.next({validatingFields:r.validatingFields,isValidating:!zn(r.validatingFields)}))},y=(z,X=[],te,le,ye=!0,me=!0)=>{if(le&&te){if(i.action=!0,me&&Array.isArray(ke(n,z))){const ge=te(ke(n,z),le.argA,le.argB);ye&&Wt(n,z,ge)}if(me&&Array.isArray(ke(r.errors,z))){const ge=te(ke(r.errors,z),le.argA,le.argB);ye&&Wt(r.errors,z,ge),Zre(r.errors,z)}if(c.touchedFields&&me&&Array.isArray(ke(r.touchedFields,z))){const ge=te(ke(r.touchedFields,z),le.argA,le.argB);ye&&Wt(r.touchedFields,z,ge)}c.dirtyFields&&(r.dirtyFields=Vp(a,o)),d.state.next({name:z,isDirty:T(z,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Wt(o,z,X)},b=(z,X)=>{Wt(r.errors,z,X),d.state.next({errors:r.errors})},E=z=>{r.errors=z,d.state.next({errors:r.errors,isValid:!1})},v=(z,X,te,le)=>{const ye=ke(n,z);if(ye){const me=ke(o,z,dr(te)?ke(a,z):te);dr(me)||le&&le.defaultChecked||X?Wt(o,z,X?me:A0(ye._f)):I(z,me),i.mount&&_()}},w=(z,X,te,le,ye)=>{let me=!1,ge=!1;const Z={name:z},K=!!(ke(n,z)&&ke(n,z)._f&&ke(n,z)._f.disabled);if(!te||le){c.isDirty&&(ge=r.isDirty,r.isDirty=Z.isDirty=T(),me=ge!==Z.isDirty);const Q=K||Is(ke(a,z),X);ge=!!(!K&&ke(r.dirtyFields,z)),Q||K?$r(r.dirtyFields,z):Wt(r.dirtyFields,z,!0),Z.dirtyFields=r.dirtyFields,me=me||c.dirtyFields&&ge!==!Q}if(te){const Q=ke(r.touchedFields,z);Q||(Wt(r.touchedFields,z,te),Z.touchedFields=r.touchedFields,me=me||c.touchedFields&&Q!==te)}return me&&ye&&d.state.next(Z),me?Z:{}},S=(z,X,te,le)=>{const ye=ke(r.errors,z),me=c.isValid&&ro(X)&&r.isValid!==X;if(e.delayError&&te?(u=g(()=>b(z,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Wt(r.errors,z,te):$r(r.errors,z)),(te?!Is(ye,te):ye)||!zn(le)||me){const ge={...le,...me&&ro(X)?{isValid:X}:{},errors:r.errors,name:z};r={...r,...ge},d.state.next(ge)}},O=async z=>{x(z,!0);const X=await t.resolver(o,t.context,Xre(z||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(z),X},C=async z=>{const{errors:X}=await O(z);if(z)for(const te of z){const le=ke(X,te);le?Wt(r.errors,te,le):$r(r.errors,te)}else r.errors=X;return X},P=async(z,X,te={valid:!0})=>{for(const le in z){const ye=z[le];if(ye){const{_f:me,...ge}=ye;if(me){const Z=s.array.has(me.name);x([le],!0);const K=await l$(ye,o,m,t.shouldUseNativeValidation&&!X,Z);if(x([le]),K[me.name]&&(te.valid=!1,X))break;!X&&(ke(K,me.name)?Z?qre(r.errors,K,me.name):Wt(r.errors,me.name,K[me.name]):$r(r.errors,me.name))}ge&&await P(ge,X,te)}}return te.valid},$=()=>{for(const z of s.unMount){const X=ke(n,z);X&&(X._f.refs?X._f.refs.every(te=>!I0(te)):!I0(X._f.ref))&&_e(z)}s.unMount=new Set},T=(z,X)=>(z&&X&&Wt(o,z,X),!Is(se(),a)),A=(z,X,te)=>m3(z,s,{...i.mount?o:dr(X)?a:ao(z)?{[z]:X}:X},te,X),M=z=>hg(ke(i.mount?o:a,z,e.shouldUnregister?ke(a,z,[]):[])),I=(z,X,te={})=>{const le=ke(n,z);let ye=X;if(le){const me=le._f;me&&(!me.disabled&&Wt(o,z,_3(X,me)),ye=Ah(me.ref)&&fn(X)?"":X,b3(me.ref)?[...me.ref.options].forEach(ge=>ge.selected=ye.includes(ge.value)):me.refs?np(me.ref)?me.refs.length>1?me.refs.forEach(ge=>(!ge.defaultChecked||!ge.disabled)&&(ge.checked=Array.isArray(ye)?!!ye.find(Z=>Z===ge.value):ye===ge.value)):me.refs[0]&&(me.refs[0].checked=!!ye):me.refs.forEach(ge=>ge.checked=ge.value===ye):IE(me.ref)?me.ref.value="":(me.ref.value=ye,me.ref.type||d.values.next({name:z,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&w(z,ye,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&J(z)},U=(z,X,te)=>{for(const le in X){const ye=X[le],me=`${z}.${le}`,ge=ke(n,me);(s.array.has(z)||!Fh(ye)||ge&&!ge._f)&&!ru(ye)?U(me,ye,te):I(me,ye,te)}},W=(z,X,te={})=>{const le=ke(n,z),ye=s.array.has(z),me=_n(X);Wt(o,z,me),ye?(d.array.next({name:z,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&d.state.next({name:z,dirtyFields:Vp(a,o),isDirty:T(z,me)})):le&&!le._f&&!fn(me)?U(z,me,te):I(z,me,te),n$(z,s)&&d.state.next({...r}),d.values.next({name:i.mount?z:void 0,values:{...o}})},j=async z=>{i.mount=!0;const X=z.target;let te=X.name,le=!0;const ye=ke(n,te),me=()=>X.type?A0(ye._f):l3(z),ge=Z=>{le=Number.isNaN(Z)||Z===ke(o,te,Z)};if(ye){let Z,K;const Q=me(),re=z.type===Ih.BLUR||z.type===Ih.FOCUS_OUT,ie=!Yre(ye._f)&&!t.resolver&&!ke(r.errors,te)&&!ye._f.deps||Jre(re,ke(r.touchedFields,te),r.isSubmitted,h,p),Ie=n$(te,s,re);Wt(o,te,Q),re?(ye._f.onBlur&&ye._f.onBlur(z),u&&u(0)):ye._f.onChange&&ye._f.onChange(z);const Xe=w(te,Q,re,!1),Be=!zn(Xe)||Ie;if(!re&&d.values.next({name:te,type:z.type,values:{...o}}),ie)return c.isValid&&_(),Be&&d.state.next({name:te,...Ie?{}:Xe});if(!re&&Ie&&d.state.next({...r}),t.resolver){const{errors:Oe}=await O([te]);if(ge(Q),le){const Je=u$(r.errors,n,te),rt=u$(Oe,n,Je.name||te);Z=rt.error,te=rt.name,K=zn(Oe)}}else x([te],!0),Z=(await l$(ye,o,m,t.shouldUseNativeValidation))[te],x([te]),ge(Q),le&&(Z?K=!1:c.isValid&&(K=await P(n,!0)));le&&(ye._f.deps&&J(ye._f.deps),S(te,K,Z,Xe))}},V=(z,X)=>{if(ke(r.errors,X)&&z.focus)return z.focus(),1},J=async(z,X={})=>{let te,le;const ye=Ld(z);if(t.resolver){const me=await C(dr(z)?z:ye);te=zn(me),le=z?!ye.some(ge=>ke(me,ge)):te}else z?(le=(await Promise.all(ye.map(async me=>{const ge=ke(n,me);return await P(ge&&ge._f?{[me]:ge}:ge)}))).every(Boolean),!(!le&&!r.isValid)&&_()):le=te=await P(n);return d.state.next({...!ao(z)||c.isValid&&te!==r.isValid?{}:{name:z},...t.resolver||!z?{isValid:te}:{},errors:r.errors}),X.shouldFocus&&!le&&Nd(n,V,z?ye:s.mount),le},se=z=>{const X={...i.mount?o:a};return dr(z)?X:ao(z)?ke(X,z):z.map(te=>ke(X,te))},oe=(z,X)=>({invalid:!!ke((X||r).errors,z),isDirty:!!ke((X||r).dirtyFields,z),error:ke((X||r).errors,z),isValidating:!!ke(r.validatingFields,z),isTouched:!!ke((X||r).touchedFields,z)}),ve=z=>{z&&Ld(z).forEach(X=>$r(r.errors,X)),d.state.next({errors:z?r.errors:{}})},be=(z,X,te)=>{const le=(ke(n,z,{_f:{}})._f||{}).ref,ye=ke(r.errors,z)||{},{ref:me,message:ge,type:Z,...K}=ye;Wt(r.errors,z,{...K,...X,ref:le}),d.state.next({name:z,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&le&&le.focus&&le.focus()},xe=(z,X)=>Ti(z)?d.values.subscribe({next:te=>z(A(void 0,X),te)}):A(z,X,!0),_e=(z,X={})=>{for(const te of z?Ld(z):s.mount)s.mount.delete(te),s.array.delete(te),X.keepValue||($r(n,te),$r(o,te)),!X.keepError&&$r(r.errors,te),!X.keepDirty&&$r(r.dirtyFields,te),!X.keepTouched&&$r(r.touchedFields,te),!X.keepIsValidating&&$r(r.validatingFields,te),!t.shouldUnregister&&!X.keepDefaultValue&&$r(a,te);d.values.next({values:{...o}}),d.state.next({...r,...X.keepDirty?{isDirty:T()}:{}}),!X.keepIsValid&&_()},Te=({disabled:z,name:X,field:te,fields:le,value:ye})=>{if(ro(z)&&i.mount||z){const me=z?void 0:dr(ye)?A0(te?te._f:ke(le,X)._f):ye;Wt(o,X,me),w(X,me,!1,!1,!0)}},$e=(z,X={})=>{let te=ke(n,z);const le=ro(X.disabled);return Wt(n,z,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:z}},name:z,mount:!0,...X}}),s.mount.add(z),te?Te({field:te,disabled:X.disabled,name:z,value:X.value}):v(z,!0,X.value),{...le?{disabled:X.disabled}:{},...t.progressive?{required:!!X.required,min:rd(X.min),max:rd(X.max),minLength:rd(X.minLength),maxLength:rd(X.maxLength),pattern:rd(X.pattern)}:{},name:z,onChange:j,onBlur:j,ref:ye=>{if(ye){$e(z,X),te=ke(n,z);const me=dr(ye.value)&&ye.querySelectorAll&&ye.querySelectorAll("input,select,textarea")[0]||ye,ge=Qre(me),Z=te._f.refs||[];if(ge?Z.find(K=>K===me):me===te._f.ref)return;Wt(n,z,{_f:{...te._f,...ge?{refs:[...Z.filter(I0),me,...Array.isArray(ke(a,z))?[{}]:[]],ref:{type:me.type,name:z}}:{ref:me}}}),v(z,!1,void 0,me)}else te=ke(n,z,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(u3(s.array,z)&&i.action)&&s.unMount.add(z)}}},Ee=()=>t.shouldFocusError&&Nd(n,V,s.mount),Ve=z=>{ro(z)&&(d.state.next({disabled:z}),Nd(n,(X,te)=>{const le=ke(n,te);le&&(X.disabled=le._f.disabled||z,Array.isArray(le._f.refs)&&le._f.refs.forEach(ye=>{ye.disabled=le._f.disabled||z}))},0,!1))},je=(z,X)=>async te=>{let le;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let ye=_n(o);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:me,values:ge}=await O();r.errors=me,ye=ge}else await P(n);if($r(r.errors,"root"),zn(r.errors)){d.state.next({errors:{}});try{await z(ye,te)}catch(me){le=me}}else X&&await X({...r.errors},te),Ee(),setTimeout(Ee);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zn(r.errors)&&!le,submitCount:r.submitCount+1,errors:r.errors}),le)throw le},De=(z,X={})=>{ke(n,z)&&(dr(X.defaultValue)?W(z,_n(ke(a,z))):(W(z,X.defaultValue),Wt(a,z,_n(X.defaultValue))),X.keepTouched||$r(r.touchedFields,z),X.keepDirty||($r(r.dirtyFields,z),r.isDirty=X.defaultValue?T(z,_n(ke(a,z))):T()),X.keepError||($r(r.errors,z),c.isValid&&_()),d.state.next({...r}))},Fe=(z,X={})=>{const te=z?_n(z):a,le=_n(te),ye=zn(z),me=ye?a:le;if(X.keepDefaultValues||(a=te),!X.keepValues){if(X.keepDirtyValues)for(const ge of s.mount)ke(r.dirtyFields,ge)?Wt(me,ge,ke(o,ge)):W(ge,ke(me,ge));else{if(kE&&dr(z))for(const ge of s.mount){const Z=ke(n,ge);if(Z&&Z._f){const K=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(Ah(K)){const Q=K.closest("form");if(Q){Q.reset();break}}}}n={}}o=e.shouldUnregister?X.keepDefaultValues?_n(a):{}:_n(me),d.array.next({values:{...me}}),d.values.next({values:{...me}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!X.keepIsValid||!!X.keepDirtyValues,i.watch=!!e.shouldUnregister,d.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:ye?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!Is(z,a)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ye?{}:X.keepDirtyValues?X.keepDefaultValues&&o?Vp(a,o):r.dirtyFields:X.keepDefaultValues&&z?Vp(a,z):X.keepDirty?r.dirtyFields:{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},He=(z,X)=>Fe(Ti(z)?z(o):z,X);return{control:{register:$e,unregister:_e,getFieldState:oe,handleSubmit:je,setError:be,_executeSchema:O,_getWatch:A,_getDirty:T,_updateValid:_,_removeUnmounted:$,_updateFieldArray:y,_updateDisabledField:Te,_getFieldArray:M,_reset:Fe,_resetDefaultValues:()=>Ti(t.defaultValues)&&t.defaultValues().then(z=>{He(z,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:z=>{r={...r,...z}},_disableForm:Ve,_subjects:d,_proxyFormState:c,_setErrors:E,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(z){i=z},get _defaultValues(){return a},get _names(){return s},set _names(z){s=z},get _formState(){return r},set _formState(z){r=z},get _options(){return t},set _options(z){t={...t,...z}}},trigger:J,register:$e,handleSubmit:je,watch:xe,setValue:W,getValues:se,reset:He,resetField:De,clearErrors:ve,unregister:_e,setError:be,setFocus:(z,X={})=>{const te=ke(n,z),le=te&&te._f;if(le){const ye=le.refs?le.refs[0]:le.ref;ye.focus&&(ye.focus(),X.shouldSelect&&ye.select())}},getFieldState:oe}}function E3(e={}){const t=Pe.useRef(),r=Pe.useRef(),[n,a]=Pe.useState({isDirty:!1,isValidating:!1,isLoading:Ti(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ti(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...tne(e),formState:n});const o=t.current.control;return o._options=e,jE({subject:o._subjects.state,next:i=>{v3(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Pe.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Pe.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),Pe.useEffect(()=>{e.values&&!Is(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),Pe.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Pe.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Pe.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=p3(n,o),t.current}var S3=f.createContext(void 0),X1=function(){return X1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=f.useState(!1),l=u[0],c=u[1],d=!e||!s||o,p=q8(function(h){var m=h.currentLocation,g=h.nextLocation;if(d)return!1;var _=t||m.pathname,x=g.pathname.startsWith(_),y=g.pathname.startsWith("".concat(_,"/show")),b=x&&!y;return!b});f.useEffect(function(){if(p.state==="blocked"){if(d){p.proceed();return}c(!0)}},[p.state]),f.useEffect(function(){if(l){var h=window.confirm(n("ra.message.unsaved_changes"));h?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),f.useEffect(function(){var h=function(m){m.preventDefault(),m.returnValue=!0};if(!d)return window.addEventListener("beforeunload",h),function(){window.removeEventListener("beforeunload",h)}},[d])},lne=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return sne(r,n,a),null};function une(e,t){var r=mM({},cne(e,t),t);return r}function cne(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var P3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},dne=function(e,t){t===void 0&&(t=!0);var r=mg(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=f.useRef(n),i=gn();f.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},fne=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},J1=function(){return J1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ts=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function yne(e){return e?e.hasOwnProperty("message"):!1}var rs=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ns=function(e){return LA(e,function(){for(var t=[],r=0;re?rs(t,{max:e},r,n):void 0}});ns(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!ts(r)&&re?rs(t,{max:e},r,n):void 0}});ns(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!ts(t)&&isNaN(Number(t))?rs(e,void 0,t,r):void 0}});var _ne=LA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!ts(r)&&typeof r=="string"&&!e.test(r)?rs(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ns(function(e){return e===void 0&&(e="ra.validation.email"),_ne(gne,e)});var Ene=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ns(function(e,t){return t===void 0&&(t=Ene),function(r,n){return!ts(r)&&e.indexOf(r)===-1?rs(t,{list:e},r,n):void 0}});var Sne=f.createContext(null),One=function(){var e=f.useContext(S3);return e},Cne=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=nF(o),s=yn(t),u=Pc(),l=u.getValues,c=u.resetField,d=u.formState,p=u.reset,h=fr(s,i),m=fr(l(),i),g=d.dirtyFields,_=Object.keys(g).includes(i);f.useEffect(function(){if(!(a==null||m!=null||h!=null||_)){var x=i.split(".").some(function(E){return Pne.test(E)});if(x){var y=i.split(".").slice(0,-1).join("."),b=fr(l(),y);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},Pne=/^\d+$/,$ne=function(){var e=f.useContext(Sne);return e},Rne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1},nu=function(){return nu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?A(M):M},{updatedAt:T}),a.setQueriesData({queryKey:[O,"getManyReference"]},function(M){return M&&M.data?{data:A(M.data),total:M.total}:M},{updatedAt:T})},E=Gm(Ut(Ut({mutationFn:function(S){var O=S===void 0?{}:S,C=O.resource,P=C===void 0?e:C,$=O.id,T=$===void 0?h.current.id:$,A=O.data,M=A===void 0?h.current.data:A,I=O.meta,U=I===void 0?h.current.meta:I,W=O.previousData,j=W===void 0?h.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(T==null)throw new Error("useUpdate mutation requires a non-empty id");if(!M)throw new Error("useUpdate mutation requires a non-empty data object");return g.current(P,{id:T,data:M,previousData:j,meta:U}).then(function(V){var J=V.data;return J})}},d),{onMutate:function(S){return v$(void 0,void 0,void 0,function(){var O;return h$(this,function(C){switch(C.label){case 0:return d.onMutate?[4,d.onMutate(S)]:[3,2];case 1:return O=C.sent()||{},[2,Ut({snapshot:m.current},O)];case 2:return[2,{snapshot:m.current}]}})})},onError:function(S,O,C){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&C.snapshot.forEach(function(P){var $=P[0],T=P[1];a.setQueryData($,T)}),_.current)return _.current(S,O,C);if(d.onError)return d.onError(S,O,C)},onSuccess:function(S,O,C){if(O===void 0&&(O={}),p.current==="pessimistic"){var P=O.resource,$=P===void 0?e:P,T=O.id,A=T===void 0?o:T;b({resource:$,id:A,data:S}),d.onSuccess&&!y.current&&d.onSuccess(S,O,C)}},onSettled:function(S,O,C,P){if(C===void 0&&(C={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function($){var T=$[0];a.invalidateQueries({queryKey:T})}),x.current)return x.current(S,O,C,P);if(d.onSettled)return d.onSettled(S,O,C,P)}})),v=function(S,O,C){return S===void 0&&(S=e),O===void 0&&(O={}),C===void 0&&(C={}),v$(void 0,void 0,void 0,function(){var P,$,T,A,M,I,U,W,j,V,J,se,oe,ve,be;return h$(this,function(xe){switch(xe.label){case 0:return P=C.mutationMode,$=C.returnPromise,T=$===void 0?d.returnPromise:$,A=C.onError,M=C.onSettled,I=C.onSuccess,U=m$(C,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?g.current=c(n.update.bind(n)):g.current=n.update,y.current=!!I,_.current=A,x.current=M,h.current=t,P&&(p.current=P),T&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?T?[2,E.mutateAsync(Ut({resource:S},O),Ut({onSuccess:I},U))]:[2,E.mutate(Ut({resource:S},O),Ut({onSuccess:I},U))]:(W=O.id,j=W===void 0?o:W,V=O.data,J=V===void 0?i:V,se=O.meta,oe=se===void 0?s:se,ve=a.getQueryData([S,"getOne",{id:String(j),meta:oe}]),be=[[S,"getOne",{id:String(j),meta:oe}],[S,"getList"],[S,"getInfiniteList"],[S,"getMany"],[S,"getManyReference"]],m.current=be.reduce(function(_e,Te){return _e.concat(a.getQueriesData({queryKey:Te}))},[]),[4,Promise.all(m.current.map(function(_e){var Te=_e[0];return a.cancelQueries({queryKey:Te})}))]);case 1:return xe.sent(),b({resource:S,id:j,data:J}),setTimeout(function(){I?I(Ut(Ut({},ve),J),Ut({resource:S},O),{snapshot:m.current}):d.onSuccess&&!y.current&&d.onSuccess(Ut(Ut({},ve),J),Ut({resource:S},O),{snapshot:m.current})},0),p.current==="optimistic"?[2,E.mutate(Ut({resource:S},O))]:(Sf.once("end",function(_e){var Te=_e.isUndo;Te?m.current.forEach(function($e){var Ee=$e[0],Ve=$e[1];a.setQueryData(Ee,Ve)}):E.mutate(Ut({resource:S},O))}),[2])}})})},w=f.useMemo(function(){return Ut({isLoading:E.isPending},E)},[E]);return[Gt(v),w]},on=function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?C(P):P},{updatedAt:O}),a.setQueriesData({queryKey:[v,"getManyReference"]},function(P){if(!P||!P.data)return P;var $=C(P.data),T=$.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(C):C},{updatedAt:S}),a.setQueriesData({queryKey:[E,"getManyReference"]},function(C){if(!C||!C.data)return C;var P=O(C.data),$=P.length0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var M3=function(){return f.useContext(I3)},tx=function(){return tx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||m.customRoutesWithLayout.length>0||m.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&d(h),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Jne=function(e){var t=f.useState(e),r=t[0],n=t[1],a=f.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Zne=function(e,t){var r=M3(),n=r.register,a=r.unregister;f.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},eae=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return F3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},F3=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},wd=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(f.Children.forEach(e,function(a){if(f.isValidElement(a)){if(a.type===f.Fragment){var o=wd(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},L3=f.createContext(!1),tae=L3.Provider,rae=function(){return f.useContext(L3)},nae=function(e){dJ();var t=es(),r=Xne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,d=e.requireAuth,p=e.ready,h=f.useState(d),m=h[0],g=h[1],_=f.useState(d),x=_[0],y=_[1],b=lF();if(f.useEffect(function(){d&&b(void 0,!1).then(function(){g(!1)}).catch(function(){}).finally(function(){y(!1)})},[b,d]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return f.createElement(p,null)}return o==="loading"||x?f.createElement(eu,null,a,f.createElement(Cn,{path:"*",element:f.createElement("div",{style:{height:"100vh"}},f.createElement(c,null))})):m?f.createElement(eu,null,a,f.createElement(Cn,{path:"*",element:f.createElement(Qae,null)})):f.createElement(eu,null,a,f.createElement(Cn,{path:"/*",element:f.createElement(tae,{value:!!l},f.createElement(s,null,f.createElement(eu,null,n,f.Children.map(i,function(E){return f.createElement(Cn,{key:E.props.name,path:"".concat(E.props.name,"/*"),element:E})}),f.createElement(Cn,{path:"/",element:l?f.createElement(zae,{authParams:aae,component:l}):i.length>0?f.createElement(G8,{to:t({resource:i[0].props.name,type:"list"})}):null}),f.createElement(Cn,{path:"*",element:f.createElement(u,null)}))))}))},aae={params:{route:"dashboard"}},N3=f.createContext("React Admin"),oae=N3.Provider,D3=function(){return f.useContext(N3)},iae=function(e){var t=e.children;return f.createElement(f.Fragment,null,t)},sae=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return $M(n),f.createElement("div",null,f.createElement("h1",null,"Error"),f.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},lae=function(e){var t=f.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?P$:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,d=c===void 0?!1:c,p=e.error,h=p===void 0?sae:p,m=e.layout,g=m===void 0?iae:m,_=e.loading,x=_===void 0?P$:_,y=e.loginPage,b=y===void 0?!1:y,E=e.ready,v=E===void 0?Sae:E,w=e.requireAuth,S=w===void 0?!1:w,O=e.title,C=O===void 0?"React Admin":O;f.useEffect(function(){if(!(d||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var $=new Image;$.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[d]);var P=function($,T){return n(T)};return f.createElement(oae,{value:C},f.createElement(A3,{onError:P,fallbackRender:function($){var T=$.error,A=$.resetErrorBoundary;return f.createElement("div",{style:{minHeight:"100vh"}},f.createElement(h,{error:T,errorInfo:r,resetErrorBoundary:A}))}},f.createElement(eu,null,b!==!1&&b!==!0?f.createElement(Cn,{path:"/login",element:C$(b)}):null,o!==!1&&o!==!0?f.createElement(Cn,{path:"/auth-callback",element:C$(o)}):null,f.createElement(Cn,{path:"/*",element:f.createElement(nae,{catchAll:s,dashboard:l,layout:g,loading:x,requireAuth:S,ready:v},u)}))))},C$=function(e){return f.isValidElement(e)?e:f.createElement(e)},P$=function(){return null},B3=f.createContext(void 0),$c=function(e){var t=e.children,r=e.value;return r?f.createElement(B3.Provider,{value:r},t):t},uae=function(e){var t=e.value,r=e.children;return t?f.createElement($c,{value:t},r):r},z3={exports:{}},Lt={};/** * @license React * react-is.production.min.js * @@ -84,21 +84,21 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var FE=Symbol.for("react.element"),LE=Symbol.for("react.portal"),gg=Symbol.for("react.fragment"),yg=Symbol.for("react.strict_mode"),bg=Symbol.for("react.profiler"),xg=Symbol.for("react.provider"),wg=Symbol.for("react.context"),cae=Symbol.for("react.server_context"),_g=Symbol.for("react.forward_ref"),Eg=Symbol.for("react.suspense"),Sg=Symbol.for("react.suspense_list"),Og=Symbol.for("react.memo"),Cg=Symbol.for("react.lazy"),dae=Symbol.for("react.offscreen"),U3;U3=Symbol.for("react.module.reference");function wa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FE:switch(e=e.type,e){case gg:case bg:case yg:case Eg:case Sg:return e;default:switch(e=e&&e.$$typeof,e){case cae:case wg:case _g:case Cg:case Og:case xg:return e;default:return t}}case LE:return t}}}Lt.ContextConsumer=wg;Lt.ContextProvider=xg;Lt.Element=FE;Lt.ForwardRef=_g;Lt.Fragment=gg;Lt.Lazy=Cg;Lt.Memo=Og;Lt.Portal=LE;Lt.Profiler=bg;Lt.StrictMode=yg;Lt.Suspense=Eg;Lt.SuspenseList=Sg;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return wa(e)===wg};Lt.isContextProvider=function(e){return wa(e)===xg};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FE};Lt.isForwardRef=function(e){return wa(e)===_g};Lt.isFragment=function(e){return wa(e)===gg};Lt.isLazy=function(e){return wa(e)===Cg};Lt.isMemo=function(e){return wa(e)===Og};Lt.isPortal=function(e){return wa(e)===LE};Lt.isProfiler=function(e){return wa(e)===bg};Lt.isStrictMode=function(e){return wa(e)===yg};Lt.isSuspense=function(e){return wa(e)===Eg};Lt.isSuspenseList=function(e){return wa(e)===Sg};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gg||e===bg||e===yg||e===Eg||e===Sg||e===dae||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===Og||e.$$typeof===xg||e.$$typeof===wg||e.$$typeof===_g||e.$$typeof===U3||e.getModuleId!==void 0)};Lt.typeOf=wa;z3.exports=Lt;var fae=z3.exports,zh=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return f.createElement($c,{value:a},f.createElement(eu,null,t&&f.createElement(Cn,{path:"create/*",element:Wp(t)}),o&&f.createElement(Cn,{path:":id/show/*",element:Wp(o)}),r&&f.createElement(Cn,{path:":id/*",element:Wp(r)}),n&&f.createElement(Cn,{path:"/*",element:f.createElement(cJ,{storeKey:"".concat(a,".list.scrollPosition")},Wp(n))}),e.children))},Wp=function(e){if(f.isValidElement(e))return e;if(fae.isValidElementType(e)){var t=e;return f.createElement(t,null)}return null};zh.raName="Resource";zh.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,d=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!d,icon:n,recordRepresentation:u}};var NE=f.createContext({getSource:function(e){return e},getLabel:function(e){return e}}),V3=NE.Provider,pae=function(){var e=f.useContext(NE);return e},vae=function(){return f.useContext(NE)},Pg=function(){return M3().definitions},It={};/*! + */var FE=Symbol.for("react.element"),LE=Symbol.for("react.portal"),gg=Symbol.for("react.fragment"),yg=Symbol.for("react.strict_mode"),bg=Symbol.for("react.profiler"),xg=Symbol.for("react.provider"),wg=Symbol.for("react.context"),cae=Symbol.for("react.server_context"),_g=Symbol.for("react.forward_ref"),Eg=Symbol.for("react.suspense"),Sg=Symbol.for("react.suspense_list"),Og=Symbol.for("react.memo"),Cg=Symbol.for("react.lazy"),dae=Symbol.for("react.offscreen"),U3;U3=Symbol.for("react.module.reference");function wa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FE:switch(e=e.type,e){case gg:case bg:case yg:case Eg:case Sg:return e;default:switch(e=e&&e.$$typeof,e){case cae:case wg:case _g:case Cg:case Og:case xg:return e;default:return t}}case LE:return t}}}Lt.ContextConsumer=wg;Lt.ContextProvider=xg;Lt.Element=FE;Lt.ForwardRef=_g;Lt.Fragment=gg;Lt.Lazy=Cg;Lt.Memo=Og;Lt.Portal=LE;Lt.Profiler=bg;Lt.StrictMode=yg;Lt.Suspense=Eg;Lt.SuspenseList=Sg;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return wa(e)===wg};Lt.isContextProvider=function(e){return wa(e)===xg};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FE};Lt.isForwardRef=function(e){return wa(e)===_g};Lt.isFragment=function(e){return wa(e)===gg};Lt.isLazy=function(e){return wa(e)===Cg};Lt.isMemo=function(e){return wa(e)===Og};Lt.isPortal=function(e){return wa(e)===LE};Lt.isProfiler=function(e){return wa(e)===bg};Lt.isStrictMode=function(e){return wa(e)===yg};Lt.isSuspense=function(e){return wa(e)===Eg};Lt.isSuspenseList=function(e){return wa(e)===Sg};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gg||e===bg||e===yg||e===Eg||e===Sg||e===dae||typeof e=="object"&&e!==null&&(e.$$typeof===Cg||e.$$typeof===Og||e.$$typeof===xg||e.$$typeof===wg||e.$$typeof===_g||e.$$typeof===U3||e.getModuleId!==void 0)};Lt.typeOf=wa;z3.exports=Lt;var fae=z3.exports,Bh=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return f.createElement($c,{value:a},f.createElement(eu,null,t&&f.createElement(Cn,{path:"create/*",element:Wp(t)}),o&&f.createElement(Cn,{path:":id/show/*",element:Wp(o)}),r&&f.createElement(Cn,{path:":id/*",element:Wp(r)}),n&&f.createElement(Cn,{path:"/*",element:f.createElement(cJ,{storeKey:"".concat(a,".list.scrollPosition")},Wp(n))}),e.children))},Wp=function(e){if(f.isValidElement(e))return e;if(fae.isValidElementType(e)){var t=e;return f.createElement(t,null)}return null};Bh.raName="Resource";Bh.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,d=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!d,icon:n,recordRepresentation:u}};var NE=f.createContext(void 0),pae={getSource:function(e){return e},getLabel:function(e){return e}},V3=NE.Provider,vae=function(){var e=f.useContext(NE);return e||pae},hae=function(){return f.useContext(NE)},Pg=function(){return M3().definitions},It={};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */Object.defineProperty(It,"__esModule",{value:!0});var W3=It.transform=It.ordinalize=It.foreignKey=It.classify=It.tableize=It.demodulize=It.titleize=It.dasherize=It.capitalize=Rg=It.humanize=It.underscore=It.camelize=Q3=It.inflect=zE=It.singularize=G3=It.pluralize=void 0;const Uh=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],pe={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},H3=[[pe.plural.men],[pe.plural.people],[pe.plural.children],[pe.plural.tia],[pe.plural.analyses],[pe.plural.databases],[pe.plural.drives],[pe.plural.hives],[pe.plural.curves],[pe.plural.lrves],[pe.plural.foves],[pe.plural.aeiouyies],[pe.plural.series],[pe.plural.movies],[pe.plural.xes],[pe.plural.mice],[pe.plural.buses],[pe.plural.oes],[pe.plural.shoes],[pe.plural.crises],[pe.plural.octopuses],[pe.plural.aliases],[pe.plural.summonses],[pe.plural.oxen],[pe.plural.matrices],[pe.plural.feet],[pe.plural.teeth],[pe.plural.geese],[pe.plural.quizzes],[pe.plural.whereases],[pe.plural.criteria],[pe.plural.genera],[pe.singular.man,"$1en"],[pe.singular.person,"$1ople"],[pe.singular.child,"$1ren"],[pe.singular.drive,"$1s"],[pe.singular.ox,"$1en"],[pe.singular.axis,"$1es"],[pe.singular.octopus,"$1uses"],[pe.singular.alias,"$1es"],[pe.singular.summons,"$1es"],[pe.singular.bus,"$1ses"],[pe.singular.buffalo,"$1oes"],[pe.singular.tium,"$1a"],[pe.singular.sis,"ses"],[pe.singular.ffe,"$1$2ves"],[pe.singular.hive,"$1ves"],[pe.singular.aeiouyy,"$1ies"],[pe.singular.matrix,"$1ices"],[pe.singular.vertex,"$1ices"],[pe.singular.x,"$1es"],[pe.singular.mouse,"$1ice"],[pe.singular.foot,"feet"],[pe.singular.tooth,"teeth"],[pe.singular.goose,"geese"],[pe.singular.quiz,"$1zes"],[pe.singular.whereas,"$1es"],[pe.singular.criterion,"$1a"],[pe.singular.genus,"genera"],[pe.singular.s,"s"],[pe.singular.common,"s"]],q3=[[pe.singular.man],[pe.singular.person],[pe.singular.child],[pe.singular.drive],[pe.singular.ox],[pe.singular.axis],[pe.singular.octopus],[pe.singular.alias],[pe.singular.summons],[pe.singular.bus],[pe.singular.buffalo],[pe.singular.tium],[pe.singular.sis],[pe.singular.ffe],[pe.singular.hive],[pe.singular.aeiouyy],[pe.singular.x],[pe.singular.matrix],[pe.singular.mouse],[pe.singular.foot],[pe.singular.tooth],[pe.singular.goose],[pe.singular.quiz],[pe.singular.whereas],[pe.singular.criterion],[pe.singular.genus],[pe.plural.men,"$1an"],[pe.plural.people,"$1rson"],[pe.plural.children,"$1"],[pe.plural.databases,"$1"],[pe.plural.drives,"$1"],[pe.plural.genera,"genus"],[pe.plural.criteria,"$1on"],[pe.plural.tia,"$1um"],[pe.plural.analyses,"$1$2sis"],[pe.plural.hives,"$1ve"],[pe.plural.curves,"$1"],[pe.plural.lrves,"$1f"],[pe.plural.aves,"$1ve"],[pe.plural.foves,"$1fe"],[pe.plural.movies,"$1ovie"],[pe.plural.aeiouyies,"$1y"],[pe.plural.series,"$1eries"],[pe.plural.xes,"$1"],[pe.plural.mice,"$1ouse"],[pe.plural.buses,"$1"],[pe.plural.oes,"$1"],[pe.plural.shoes,"$1"],[pe.plural.crises,"$1is"],[pe.plural.octopuses,"$1us"],[pe.plural.aliases,"$1"],[pe.plural.summonses,"$1"],[pe.plural.oxen,"$1"],[pe.plural.matrices,"$1ix"],[pe.plural.vertices,"$1ex"],[pe.plural.feet,"foot"],[pe.plural.teeth,"tooth"],[pe.plural.geese,"goose"],[pe.plural.quizzes,"$1"],[pe.plural.whereases,"$1"],[pe.plural.ss,"ss"],[pe.plural.s,""]],hae=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],mae=new RegExp("(_ids|_id)$","g"),K3=new RegExp("_","g"),gae=new RegExp("[ _]","g"),yae=new RegExp("([A-Z])","g"),bae=new RegExp("^_");function Vh(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function DE(e,t){return Vh(e,H3,Uh,t)}var G3=It.pluralize=DE;function BE(e,t){return Vh(e,q3,Uh,t)}var zE=It.singularize=BE;function xae(e,t,r,n){return isNaN(t)?e:t===1?Vh(e,q3,Uh,r):Vh(e,H3,Uh,n)}var Q3=It.inflect=xae;function UE(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?G3(r):zE(r))});return o}},Nt=function(e){var t=f.useContext(B3);return e&&e.resource||t},ti=function(e){var t=Nt(e),r=Pg(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=f.useMemo(function(){return $E({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},WE=function(e){var t=ti({resource:e}).recordRepresentation;return f.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?fr(r,t):f.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},nF=function(e){var t=pae();return t.getSource(e)},aF=function(){var e=at(),t=Nt(),r=vae();return f.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,Sae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},oF=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=aF();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:f.createElement("span",null,o({label:r,resource:n,source:t}),a&&f.createElement("span",{"aria-hidden":"true"}," *"))};oF.displayName="FieldTitle";const Sf=f.memo(oF),Eae=function(){return f.createElement("span",null)},HE=function(e,t){};var Sae=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=Oae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=W3(u.replace(/\./g," "),["underscore","humanize"]);return n?[$$(n,s),{_:l}]:r?[r,{_:l}]:[$$(a||"undefined",s),{_:l}]},$$=function(e,t){return"resources.".concat(e,".fields.").concat(t)},Oae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){Cae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},Cae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},Pae=typeof window<"u"?f.useLayoutEffect:f.useEffect,Gt=function(e){var t=f.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Pae(function(){t.current=e}),f.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return d()}},[e,o,t,n,s]);var l=Gt(function(c,d){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof d>"u"?t:d:p)});return[s,l]},$ae=function(e){var t=ig().removeItem;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Rae=function(e){var t=ig().removeItems;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},kae=function(){var e=ig().reset;return e},kc=function(){var e=Jo(),t=ho(),r=kae(),n=go(),a=f.useRef(n),o=mn(),i=f.useRef(o),s=Zi(),u=Xa("".concat(s,"/").concat(Gm.loginUrl));f.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=f.useCallback(function(c,d,p){return c===void 0&&(c={}),d===void 0&&(d=u),p===void 0&&(p=!0),e?e.logout(c).then(function(h){if(h===!1||d===!1){r(),t.clear();return}var m=h||d;if(m!=null&&m.startsWith("http"))return r(),t.clear(),window.location.href=m,m;var g=m.split("?"),_={pathname:g[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),g[1]&&(_.search=g[1]),a.current(_,x),r(),t.clear(),h}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l},_s=function(){return _s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},k$=function(){},Es=function(){return Es=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Tc(t);var i=sF(t).permissions;if(a)return f.createElement(a,Nd({permissions:i},o));if(n)return n(Nd({permissions:i},o));if(r)return r(Nd({permissions:i},o))},zae=function(){var e=Jo(),t=mn(),r=t.state,n=go(),a=Zi(),o=nM().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=Xa("".concat(a,"/").concat(Gm.afterLoginUrl)),l=f.useCallback(function(c,d){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var h=d||i+s||u;n(h)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l},Uae="AUTH_LOGIN",Vae="AUTH_CHECK",Wae="AUTH_ERROR",Hae="AUTH_LOGOUT",qae="AUTH_GET_PERMISSIONS";const Kae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Dd=function(){return Dd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return _a(r&&e?"".concat(r,".").concat(e):r??e,t)},KE=function(){var e=f.useContext(j3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},soe=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n=0)continue;r[n]=e[n]}return r}function fF(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var voe=/^((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)-.*))$/,hoe=fF(function(e){return voe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function moe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Vr(jc,--In):0,Zu--,Or===10&&(Zu=1,jg--),Or}function Gn(){return Or=In2||Pf(Or)>3?"":" "}function Roe(e,t){for(;--t&&Gn()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return ap(e,Ov()+(t<6&&uo()==32&&Gn()==32))}function ax(e){for(;Gn();)switch(Or){case e:return In;case 34:case 39:e!==34&&e!==39&&ax(Or);break;case 40:e===41&&ax(e);break;case 92:Gn();break}return In}function koe(e,t){for(;Gn()&&e+Or!==57;)if(e+Or===84&&uo()===47)break;return"/*"+ap(t,In-1)+"*"+Tg(e===47?e:Gn())}function Toe(e){for(;!Pf(uo());)Gn();return ap(e,In)}function joe(e){return yF(Pv("",null,null,null,[""],e=gF(e),0,[0],e))}function Pv(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,d=i,p=0,h=0,m=0,g=1,_=1,x=1,y=0,b="",E=a,v=o,w=n,S=b;_;)switch(m=y,y=Gn()){case 40:if(m!=108&&Vr(S,d-1)==58){nx(S+=jt(Cv(y),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:S+=Cv(y);break;case 9:case 10:case 13:case 32:S+=$oe(m);break;case 92:S+=Roe(Ov()-1,7);continue;case 47:switch(uo()){case 42:case 47:Hp(Ioe(koe(Gn(),Ov()),t,r),u);break;default:S+="/"}break;case 123*g:s[l++]=Ja(S)*x;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+c:x==-1&&(S=jt(S,/\f/g,"")),h>0&&Ja(S)-d&&Hp(h>32?M$(S+";",n,r,d-1):M$(jt(S," ","")+";",n,r,d-2),u);break;case 59:S+=";";default:if(Hp(w=A$(S,t,r,l,c,a,s,b,E=[],v=[],d),o),y===123)if(c===0)Pv(S,t,w,w,E,o,d,s,v);else switch(p===99&&Vr(S,3)===110?100:p){case 100:case 108:case 109:case 115:Pv(e,w,w,n&&Hp(A$(e,w,w,0,0,a,s,b,a,E=[],d),v),a,v,d,s,n?E:v);break;default:Pv(S,w,w,w,[""],v,0,s,v)}}l=c=h=0,g=x=1,b=S="",d=i;break;case 58:d=1+Ja(S),h=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&Poe()==125)continue}switch(S+=Tg(y),y*g){case 38:x=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(Ja(S)-1)*x,x=1;break;case 64:uo()===45&&(S+=Cv(Gn())),p=uo(),c=d=Ja(b=S+=Toe(Ov())),y++;break;case 45:m===45&&Ja(S)==2&&(g=0)}}return o}function A$(e,t,r,n,a,o,i,s,u,l,c){for(var d=a-1,p=a===0?o:[""],h=XE(p),m=0,g=0,_=0;m0?p[x]+" "+y:jt(y,/&\f/g,p[x])))&&(u[_++]=b);return Ig(e,t,r,a===0?GE:s,u,l,c)}function Ioe(e,t,r){return Ig(e,t,r,pF,Tg(Coe()),Cf(e,2,-2),0)}function M$(e,t,r,n){return Ig(e,t,r,QE,Cf(e,0,n),Cf(e,n+1,-1),n)}function vu(e,t){for(var r="",n=XE(e),a=0;a6)switch(Vr(e,t+1)){case 109:if(Vr(e,t+4)!==45)break;case 102:return jt(e,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+Wh+(Vr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nx(e,"stretch")?bF(jt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vr(e,t+1)!==115)break;case 6444:switch(Vr(e,Ja(e)-3-(~nx(e,"!important")&&10))){case 107:return jt(e,":",":"+Tt)+e;case 101:return jt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(Vr(e,14)===45?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Vr(e,t+11)){case 114:return Tt+e+Yr+jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+Yr+jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+Yr+jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+Yr+e+e}return e}var Uoe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case QE:t.return=bF(t.value,t.length);break;case vF:return vu([ad(t,{value:jt(t.value,"@","@"+Tt)})],a);case GE:if(t.length)return Ooe(t.props,function(o){switch(Soe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vu([ad(t,{props:[jt(o,/:(read-\w+)/,":"+Wh+"$1")]})],a);case"::placeholder":return vu([ad(t,{props:[jt(o,/:(plac\w+)/,":"+Tt+"input-$1")]}),ad(t,{props:[jt(o,/:(plac\w+)/,":"+Wh+"$1")]}),ad(t,{props:[jt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Voe=[Uoe],xF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||Voe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),x=1;x<_.length;x++)o[_[x]]=!0;s.push(g)});var u,l=[Boe,zoe];{var c,d=[Aoe,Foe(function(g){c.insert(g)})],p=Moe(l.concat(a,d)),h=function(_){return vu(joe(_),p)};u=function(_,x,y,b){c=y,h(_?_+"{"+x.styles+"}":x.styles),b&&(m.inserted[x.name]=!0)}}var m={key:r,sheet:new yoe({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return m.sheet.hydrate(s),m},wF={exports:{}},Dt={};/** @license React v16.13.1 + */Object.defineProperty(It,"__esModule",{value:!0});var W3=It.transform=It.ordinalize=It.foreignKey=It.classify=It.tableize=It.demodulize=It.titleize=It.dasherize=It.capitalize=Rg=It.humanize=It.underscore=It.camelize=Q3=It.inflect=zE=It.singularize=G3=It.pluralize=void 0;const zh=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],pe={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},H3=[[pe.plural.men],[pe.plural.people],[pe.plural.children],[pe.plural.tia],[pe.plural.analyses],[pe.plural.databases],[pe.plural.drives],[pe.plural.hives],[pe.plural.curves],[pe.plural.lrves],[pe.plural.foves],[pe.plural.aeiouyies],[pe.plural.series],[pe.plural.movies],[pe.plural.xes],[pe.plural.mice],[pe.plural.buses],[pe.plural.oes],[pe.plural.shoes],[pe.plural.crises],[pe.plural.octopuses],[pe.plural.aliases],[pe.plural.summonses],[pe.plural.oxen],[pe.plural.matrices],[pe.plural.feet],[pe.plural.teeth],[pe.plural.geese],[pe.plural.quizzes],[pe.plural.whereases],[pe.plural.criteria],[pe.plural.genera],[pe.singular.man,"$1en"],[pe.singular.person,"$1ople"],[pe.singular.child,"$1ren"],[pe.singular.drive,"$1s"],[pe.singular.ox,"$1en"],[pe.singular.axis,"$1es"],[pe.singular.octopus,"$1uses"],[pe.singular.alias,"$1es"],[pe.singular.summons,"$1es"],[pe.singular.bus,"$1ses"],[pe.singular.buffalo,"$1oes"],[pe.singular.tium,"$1a"],[pe.singular.sis,"ses"],[pe.singular.ffe,"$1$2ves"],[pe.singular.hive,"$1ves"],[pe.singular.aeiouyy,"$1ies"],[pe.singular.matrix,"$1ices"],[pe.singular.vertex,"$1ices"],[pe.singular.x,"$1es"],[pe.singular.mouse,"$1ice"],[pe.singular.foot,"feet"],[pe.singular.tooth,"teeth"],[pe.singular.goose,"geese"],[pe.singular.quiz,"$1zes"],[pe.singular.whereas,"$1es"],[pe.singular.criterion,"$1a"],[pe.singular.genus,"genera"],[pe.singular.s,"s"],[pe.singular.common,"s"]],q3=[[pe.singular.man],[pe.singular.person],[pe.singular.child],[pe.singular.drive],[pe.singular.ox],[pe.singular.axis],[pe.singular.octopus],[pe.singular.alias],[pe.singular.summons],[pe.singular.bus],[pe.singular.buffalo],[pe.singular.tium],[pe.singular.sis],[pe.singular.ffe],[pe.singular.hive],[pe.singular.aeiouyy],[pe.singular.x],[pe.singular.matrix],[pe.singular.mouse],[pe.singular.foot],[pe.singular.tooth],[pe.singular.goose],[pe.singular.quiz],[pe.singular.whereas],[pe.singular.criterion],[pe.singular.genus],[pe.plural.men,"$1an"],[pe.plural.people,"$1rson"],[pe.plural.children,"$1"],[pe.plural.databases,"$1"],[pe.plural.drives,"$1"],[pe.plural.genera,"genus"],[pe.plural.criteria,"$1on"],[pe.plural.tia,"$1um"],[pe.plural.analyses,"$1$2sis"],[pe.plural.hives,"$1ve"],[pe.plural.curves,"$1"],[pe.plural.lrves,"$1f"],[pe.plural.aves,"$1ve"],[pe.plural.foves,"$1fe"],[pe.plural.movies,"$1ovie"],[pe.plural.aeiouyies,"$1y"],[pe.plural.series,"$1eries"],[pe.plural.xes,"$1"],[pe.plural.mice,"$1ouse"],[pe.plural.buses,"$1"],[pe.plural.oes,"$1"],[pe.plural.shoes,"$1"],[pe.plural.crises,"$1is"],[pe.plural.octopuses,"$1us"],[pe.plural.aliases,"$1"],[pe.plural.summonses,"$1"],[pe.plural.oxen,"$1"],[pe.plural.matrices,"$1ix"],[pe.plural.vertices,"$1ex"],[pe.plural.feet,"foot"],[pe.plural.teeth,"tooth"],[pe.plural.geese,"goose"],[pe.plural.quizzes,"$1"],[pe.plural.whereases,"$1"],[pe.plural.ss,"ss"],[pe.plural.s,""]],mae=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],gae=new RegExp("(_ids|_id)$","g"),K3=new RegExp("_","g"),yae=new RegExp("[ _]","g"),bae=new RegExp("([A-Z])","g"),xae=new RegExp("^_");function Uh(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function DE(e,t){return Uh(e,H3,zh,t)}var G3=It.pluralize=DE;function BE(e,t){return Uh(e,q3,zh,t)}var zE=It.singularize=BE;function wae(e,t,r,n){return isNaN(t)?e:t===1?Uh(e,q3,zh,r):Uh(e,H3,zh,n)}var Q3=It.inflect=wae;function UE(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?G3(r):zE(r))});return o}},Nt=function(e){var t=f.useContext(B3);return e&&e.resource||t},ti=function(e){var t=Nt(e),r=Pg(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=f.useMemo(function(){return $E({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},WE=function(e){var t=ti({resource:e}).recordRepresentation;return f.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?fr(r,t):f.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},nF=function(e){var t=vae();return t.getSource(e)},aF=function(){var e=at(),t=Nt(),r=hae();return f.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,Oae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},oF=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=aF();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:f.createElement("span",null,o({label:r,resource:n,source:t}),a&&f.createElement("span",{"aria-hidden":"true"}," *"))};oF.displayName="FieldTitle";const Of=f.memo(oF),Sae=function(){return f.createElement("span",null)},HE=function(e,t){};var Oae=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=Cae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=W3(u.replace(/\./g," "),["underscore","humanize"]);return n?[$$(n,s),{_:l}]:r?[r,{_:l}]:[$$(a||"undefined",s),{_:l}]},$$=function(e,t){return"resources.".concat(e,".fields.").concat(t)},Cae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){Pae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},Pae=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},$ae=typeof window<"u"?f.useLayoutEffect:f.useEffect,Gt=function(e){var t=f.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return $ae(function(){t.current=e}),f.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return d()}},[e,o,t,n,s]);var l=Gt(function(c,d){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof d>"u"?t:d:p)});return[s,l]},Rae=function(e){var t=og().removeItem;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},kae=function(e){var t=og().removeItems;return f.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Tae=function(){var e=og().reset;return e},kc=function(){var e=Jo(),t=ho(),r=Tae(),n=go(),a=f.useRef(n),o=mn(),i=f.useRef(o),s=Zi(),u=Xa("".concat(s,"/").concat(Km.loginUrl));f.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=f.useCallback(function(c,d,p){return c===void 0&&(c={}),d===void 0&&(d=u),p===void 0&&(p=!0),e?e.logout(c).then(function(h){if(h===!1||d===!1){r(),t.clear();return}var m=h||d;if(m!=null&&m.startsWith("http"))return r(),t.clear(),window.location.href=m,m;var g=m.split("?"),_={pathname:g[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),g[1]&&(_.search=g[1]),a.current(_,x),r(),t.clear(),h}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l},_s=function(){return _s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},k$=function(){},Es=function(){return Es=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Tc(t);var i=sF(t).permissions;if(a)return f.createElement(a,Dd({permissions:i},o));if(n)return n(Dd({permissions:i},o));if(r)return r(Dd({permissions:i},o))},Uae=function(){var e=Jo(),t=mn(),r=t.state,n=go(),a=Zi(),o=nM().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=Xa("".concat(a,"/").concat(Km.afterLoginUrl)),l=f.useCallback(function(c,d){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var h=d||i+s||u;n(h)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l},Vae="AUTH_LOGIN",Wae="AUTH_CHECK",Hae="AUTH_ERROR",qae="AUTH_LOGOUT",Kae="AUTH_GET_PERMISSIONS";const Gae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Bd=function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return _a(r&&e?"".concat(r,".").concat(e):r??e,t)},KE=function(){var e=f.useContext(j3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},loe=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n=0)continue;r[n]=e[n]}return r}function fF(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var hoe=/^((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)-.*))$/,moe=fF(function(e){return hoe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function goe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Vr(jc,--In):0,Zu--,Or===10&&(Zu=1,jg--),Or}function Gn(){return Or=In2||$f(Or)>3?"":" "}function koe(e,t){for(;--t&&Gn()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return ap(e,Sv()+(t<6&&uo()==32&&Gn()==32))}function ax(e){for(;Gn();)switch(Or){case e:return In;case 34:case 39:e!==34&&e!==39&&ax(Or);break;case 40:e===41&&ax(e);break;case 92:Gn();break}return In}function Toe(e,t){for(;Gn()&&e+Or!==57;)if(e+Or===84&&uo()===47)break;return"/*"+ap(t,In-1)+"*"+Tg(e===47?e:Gn())}function joe(e){for(;!$f(uo());)Gn();return ap(e,In)}function Ioe(e){return yF(Cv("",null,null,null,[""],e=gF(e),0,[0],e))}function Cv(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,d=i,p=0,h=0,m=0,g=1,_=1,x=1,y=0,b="",E=a,v=o,w=n,S=b;_;)switch(m=y,y=Gn()){case 40:if(m!=108&&Vr(S,d-1)==58){nx(S+=jt(Ov(y),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:S+=Ov(y);break;case 9:case 10:case 13:case 32:S+=Roe(m);break;case 92:S+=koe(Sv()-1,7);continue;case 47:switch(uo()){case 42:case 47:Hp(Aoe(Toe(Gn(),Sv()),t,r),u);break;default:S+="/"}break;case 123*g:s[l++]=Ja(S)*x;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+c:x==-1&&(S=jt(S,/\f/g,"")),h>0&&Ja(S)-d&&Hp(h>32?M$(S+";",n,r,d-1):M$(jt(S," ","")+";",n,r,d-2),u);break;case 59:S+=";";default:if(Hp(w=A$(S,t,r,l,c,a,s,b,E=[],v=[],d),o),y===123)if(c===0)Cv(S,t,w,w,E,o,d,s,v);else switch(p===99&&Vr(S,3)===110?100:p){case 100:case 108:case 109:case 115:Cv(e,w,w,n&&Hp(A$(e,w,w,0,0,a,s,b,a,E=[],d),v),a,v,d,s,n?E:v);break;default:Cv(S,w,w,w,[""],v,0,s,v)}}l=c=h=0,g=x=1,b=S="",d=i;break;case 58:d=1+Ja(S),h=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&$oe()==125)continue}switch(S+=Tg(y),y*g){case 38:x=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(Ja(S)-1)*x,x=1;break;case 64:uo()===45&&(S+=Ov(Gn())),p=uo(),c=d=Ja(b=S+=joe(Sv())),y++;break;case 45:m===45&&Ja(S)==2&&(g=0)}}return o}function A$(e,t,r,n,a,o,i,s,u,l,c){for(var d=a-1,p=a===0?o:[""],h=XE(p),m=0,g=0,_=0;m0?p[x]+" "+y:jt(y,/&\f/g,p[x])))&&(u[_++]=b);return Ig(e,t,r,a===0?GE:s,u,l,c)}function Aoe(e,t,r){return Ig(e,t,r,pF,Tg(Poe()),Pf(e,2,-2),0)}function M$(e,t,r,n){return Ig(e,t,r,QE,Pf(e,0,n),Pf(e,n+1,-1),n)}function vu(e,t){for(var r="",n=XE(e),a=0;a6)switch(Vr(e,t+1)){case 109:if(Vr(e,t+4)!==45)break;case 102:return jt(e,/(.+:)(.+)-([^]+)/,"$1"+Tt+"$2-$3$1"+Vh+(Vr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nx(e,"stretch")?bF(jt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vr(e,t+1)!==115)break;case 6444:switch(Vr(e,Ja(e)-3-(~nx(e,"!important")&&10))){case 107:return jt(e,":",":"+Tt)+e;case 101:return jt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tt+(Vr(e,14)===45?"inline-":"")+"box$3$1"+Tt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Vr(e,t+11)){case 114:return Tt+e+Yr+jt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tt+e+Yr+jt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tt+e+Yr+jt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tt+e+Yr+e+e}return e}var Voe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case QE:t.return=bF(t.value,t.length);break;case vF:return vu([ad(t,{value:jt(t.value,"@","@"+Tt)})],a);case GE:if(t.length)return Coe(t.props,function(o){switch(Ooe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vu([ad(t,{props:[jt(o,/:(read-\w+)/,":"+Vh+"$1")]})],a);case"::placeholder":return vu([ad(t,{props:[jt(o,/:(plac\w+)/,":"+Tt+"input-$1")]}),ad(t,{props:[jt(o,/:(plac\w+)/,":"+Vh+"$1")]}),ad(t,{props:[jt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Woe=[Voe],xF=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||Woe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),x=1;x<_.length;x++)o[_[x]]=!0;s.push(g)});var u,l=[zoe,Uoe];{var c,d=[Moe,Loe(function(g){c.insert(g)})],p=Foe(l.concat(a,d)),h=function(_){return vu(Ioe(_),p)};u=function(_,x,y,b){c=y,h(_?_+"{"+x.styles+"}":x.styles),b&&(m.inserted[x.name]=!0)}}var m={key:r,sheet:new boe({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return m.sheet.hydrate(s),m},wF={exports:{}},Dt={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dr=typeof Symbol=="function"&&Symbol.for,YE=Dr?Symbol.for("react.element"):60103,JE=Dr?Symbol.for("react.portal"):60106,Ag=Dr?Symbol.for("react.fragment"):60107,Mg=Dr?Symbol.for("react.strict_mode"):60108,Fg=Dr?Symbol.for("react.profiler"):60114,Lg=Dr?Symbol.for("react.provider"):60109,Ng=Dr?Symbol.for("react.context"):60110,ZE=Dr?Symbol.for("react.async_mode"):60111,Dg=Dr?Symbol.for("react.concurrent_mode"):60111,Bg=Dr?Symbol.for("react.forward_ref"):60112,zg=Dr?Symbol.for("react.suspense"):60113,Woe=Dr?Symbol.for("react.suspense_list"):60120,Ug=Dr?Symbol.for("react.memo"):60115,Vg=Dr?Symbol.for("react.lazy"):60116,Hoe=Dr?Symbol.for("react.block"):60121,qoe=Dr?Symbol.for("react.fundamental"):60117,Koe=Dr?Symbol.for("react.responder"):60118,Goe=Dr?Symbol.for("react.scope"):60119;function Zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YE:switch(e=e.type,e){case ZE:case Dg:case Ag:case Fg:case Mg:case zg:return e;default:switch(e=e&&e.$$typeof,e){case Ng:case Bg:case Vg:case Ug:case Lg:return e;default:return t}}case JE:return t}}}function _F(e){return Zn(e)===Dg}Dt.AsyncMode=ZE;Dt.ConcurrentMode=Dg;Dt.ContextConsumer=Ng;Dt.ContextProvider=Lg;Dt.Element=YE;Dt.ForwardRef=Bg;Dt.Fragment=Ag;Dt.Lazy=Vg;Dt.Memo=Ug;Dt.Portal=JE;Dt.Profiler=Fg;Dt.StrictMode=Mg;Dt.Suspense=zg;Dt.isAsyncMode=function(e){return _F(e)||Zn(e)===ZE};Dt.isConcurrentMode=_F;Dt.isContextConsumer=function(e){return Zn(e)===Ng};Dt.isContextProvider=function(e){return Zn(e)===Lg};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YE};Dt.isForwardRef=function(e){return Zn(e)===Bg};Dt.isFragment=function(e){return Zn(e)===Ag};Dt.isLazy=function(e){return Zn(e)===Vg};Dt.isMemo=function(e){return Zn(e)===Ug};Dt.isPortal=function(e){return Zn(e)===JE};Dt.isProfiler=function(e){return Zn(e)===Fg};Dt.isStrictMode=function(e){return Zn(e)===Mg};Dt.isSuspense=function(e){return Zn(e)===zg};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ag||e===Dg||e===Fg||e===Mg||e===zg||e===Woe||typeof e=="object"&&e!==null&&(e.$$typeof===Vg||e.$$typeof===Ug||e.$$typeof===Lg||e.$$typeof===Ng||e.$$typeof===Bg||e.$$typeof===qoe||e.$$typeof===Koe||e.$$typeof===Goe||e.$$typeof===Hoe)};Dt.typeOf=Zn;wF.exports=Dt;var Qoe=wF.exports,EF=Qoe,Xoe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yoe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},SF={};SF[EF.ForwardRef]=Xoe;SF[EF.Memo]=Yoe;var Joe=!0;function Zoe(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var OF=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Joe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},CF=function(t,r,n){OF(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function eie(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 tie={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},rie=/[A-Z]|^ms/g,nie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PF=function(t){return t.charCodeAt(1)===45},L$=function(t){return t!=null&&typeof t!="boolean"},D0=fF(function(e){return PF(e)?e:e.replace(rie,"-$&").toLowerCase()}),N$=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(nie,function(n,a,o){return Za={name:a,styles:o,next:Za},a})}return tie[t]!==1&&!PF(t)&&typeof r=="number"&&r!==0?r+"px":r};function $f(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Za={name:r.name,styles:r.styles,next:Za},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Za={name:n.name,styles:n.styles,next:Za},n=n.next;var a=r.styles+";";return a}return aie(e,t,r)}case"function":{if(e!==void 0){var o=Za,i=r(e);return Za=o,$f(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function aie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?uie:cie},V$=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},die=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return OF(r,n,a),iie(function(){return CF(r,n,a)}),null},fie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=V$(t,r,n),u=s||U$(a),l=!u("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(hie(a)?r:a):t;return N.jsx(lie,{styles:n})}function tS(e,t){return ox(e,t)}const IF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jF,StyledEngineProvider:vie,ThemeContext:op,css:yl,default:tS,internal_processStyles:IF,keyframes:ri},Symbol.toStringTag,{value:"Module"}));function Ao(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 AF(e){if(!Ao(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=AF(e[r])}),t}function Hr(e,t,r={clone:!0}){const n=r.clone?R({},e):e;return Ao(e)&&Ao(t)&&Object.keys(t).forEach(a=>{Ao(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ao(e[a])?n[a]=Hr(e[a],t[a],r):r.clone?n[a]=Ao(t[a])?AF(t[a]):t[a]:n[a]=t[a]}),n}const gie=Object.freeze(Object.defineProperty({__proto__:null,default:Hr,isPlainObject:Ao},Symbol.toStringTag,{value:"Module"})),yie=["values","unit","step"],bie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>R({},r,{[n.key]:n.val}),{})};function MF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Se(e,yie),o=bie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,h){const m=i.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:h)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rS[e]}px)`};function Na(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||W$;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||W$;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rS).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function FF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function LF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function wie(e,...t){const r=FF(e),n=[r,...t].reduce((a,o)=>Hr(a,o),{});return LF(Object.keys(r),n)}function _ie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function z0({values:e,breakpoints:t,base:r}){const n=r||_ie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function de(e){if(typeof e!="string")throw new Error(Ko(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Eie=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));function ec(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Hh(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=ec(e,r)||n,t&&(a=t(a,n,e)),a}function wr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=ec(u,n)||{};return Na(i,s,d=>{let p=Hh(l,a,d);return d===p&&typeof d=="string"&&(p=Hh(l,a,`${t}${d==="default"?"":de(d)}`,d)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Sie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Oie={m:"margin",p:"padding"},Cie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pie=Sie(e=>{if(e.length>2)if(H$[e])e=H$[e];else return[e];const[t,r]=e.split(""),n=Oie[t],a=Cie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nS,...aS];function ip(e,t,r,n){var a;const o=(a=ec(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oS(e){return ip(e,"spacing",8)}function dl(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $ie(e,t){return r=>e.reduce((n,a)=>(n[a]=dl(t,r),n),{})}function Rie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Pie(r),o=$ie(a,n),i=e[r];return Na(e,i,o)}function NF(e,t){const r=oS(e.theme);return Object.keys(e).map(n=>Rie(e,t,n,r)).reduce(Bd,{})}function sr(e){return NF(e,nS)}sr.propTypes={};sr.filterProps=nS;function lr(e){return NF(e,aS)}lr.propTypes={};lr.filterProps=aS;function kie(e=8){if(e.mui)return e;const t=oS({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Wg(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Bd(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function la(e){return typeof e!="number"?e:`${e}px solid`}function Ea(e,t){return wr({prop:e,themeKey:"borders",transform:t})}const Tie=Ea("border",la),jie=Ea("borderTop",la),Iie=Ea("borderRight",la),Aie=Ea("borderBottom",la),Mie=Ea("borderLeft",la),Fie=Ea("borderColor"),Lie=Ea("borderTopColor"),Nie=Ea("borderRightColor"),Die=Ea("borderBottomColor"),Bie=Ea("borderLeftColor"),zie=Ea("outline",la),Uie=Ea("outlineColor"),Hg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ip(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:dl(t,n)});return Na(e,e.borderRadius,r)}return null};Hg.propTypes={};Hg.filterProps=["borderRadius"];Wg(Tie,jie,Iie,Aie,Mie,Fie,Lie,Nie,Die,Bie,Hg,zie,Uie);const qg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ip(e.theme,"spacing",8),r=n=>({gap:dl(t,n)});return Na(e,e.gap,r)}return null};qg.propTypes={};qg.filterProps=["gap"];const Kg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ip(e.theme,"spacing",8),r=n=>({columnGap:dl(t,n)});return Na(e,e.columnGap,r)}return null};Kg.propTypes={};Kg.filterProps=["columnGap"];const Gg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ip(e.theme,"spacing",8),r=n=>({rowGap:dl(t,n)});return Na(e,e.rowGap,r)}return null};Gg.propTypes={};Gg.filterProps=["rowGap"];const Vie=wr({prop:"gridColumn"}),Wie=wr({prop:"gridRow"}),Hie=wr({prop:"gridAutoFlow"}),qie=wr({prop:"gridAutoColumns"}),Kie=wr({prop:"gridAutoRows"}),Gie=wr({prop:"gridTemplateColumns"}),Qie=wr({prop:"gridTemplateRows"}),Xie=wr({prop:"gridTemplateAreas"}),Yie=wr({prop:"gridArea"});Wg(qg,Kg,Gg,Vie,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie);function hu(e,t){return t==="grey"?t:e}const Jie=wr({prop:"color",themeKey:"palette",transform:hu}),Zie=wr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hu}),ese=wr({prop:"backgroundColor",themeKey:"palette",transform:hu});Wg(Jie,Zie,ese);function Hn(e){return e<=1&&e!==0?`${e*100}%`:e}const tse=wr({prop:"width",transform:Hn}),iS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rS[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Hn(r)}};return Na(e,e.maxWidth,t)}return null};iS.filterProps=["maxWidth"];const rse=wr({prop:"minWidth",transform:Hn}),nse=wr({prop:"height",transform:Hn}),ase=wr({prop:"maxHeight",transform:Hn}),ose=wr({prop:"minHeight",transform:Hn});wr({prop:"size",cssProperty:"width",transform:Hn});wr({prop:"size",cssProperty:"height",transform:Hn});const ise=wr({prop:"boxSizing"});Wg(tse,iS,rse,nse,ase,ose,ise);const sp={border:{themeKey:"borders",transform:la},borderTop:{themeKey:"borders",transform:la},borderRight:{themeKey:"borders",transform:la},borderBottom:{themeKey:"borders",transform:la},borderLeft:{themeKey:"borders",transform:la},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:la},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hg},color:{themeKey:"palette",transform:hu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hu},backgroundColor:{themeKey:"palette",transform:hu},p:{style:lr},pt:{style:lr},pr:{style:lr},pb:{style:lr},pl:{style:lr},px:{style:lr},py:{style:lr},padding:{style:lr},paddingTop:{style:lr},paddingRight:{style:lr},paddingBottom:{style:lr},paddingLeft:{style:lr},paddingX:{style:lr},paddingY:{style:lr},paddingInline:{style:lr},paddingInlineStart:{style:lr},paddingInlineEnd:{style:lr},paddingBlock:{style:lr},paddingBlockStart:{style:lr},paddingBlockEnd:{style:lr},m:{style:sr},mt:{style:sr},mr:{style:sr},mb:{style:sr},ml:{style:sr},mx:{style:sr},my:{style:sr},margin:{style:sr},marginTop:{style:sr},marginRight:{style:sr},marginBottom:{style:sr},marginLeft:{style:sr},marginX:{style:sr},marginY:{style:sr},marginInline:{style:sr},marginInlineStart:{style:sr},marginInlineEnd:{style:sr},marginBlock:{style:sr},marginBlockStart:{style:sr},marginBlockEnd:{style:sr},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:qg},rowGap:{style:Gg},columnGap:{style:Kg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hn},maxWidth:{style:iS},minWidth:{transform:Hn},height:{transform:Hn},maxHeight:{transform:Hn},minHeight:{transform:Hn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function sse(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function lse(e,t){return typeof e=="function"?e(t):e}function DF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=ec(a,l)||{};return d?d(i):Na(i,n,m=>{let g=Hh(p,c,m);return m===g&&typeof m=="string"&&(g=Hh(p,c,`${r}${m==="default"?"":de(m)}`,m)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:sp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=FF(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const m=lse(l[h],o);if(m!=null)if(typeof m=="object")if(i[h])p=Bd(p,e(h,m,o,i));else{const g=Na({theme:o},m,_=>({[h]:_}));sse(g,m)?p[h]=t({sx:m,theme:o}):p=Bd(p,g)}else p=Bd(p,e(h,m,o,i))}),LF(d,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const Ic=DF();Ic.filterProps=["sx"];function BF(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const use=["breakpoints","palette","spacing","shape"];function lp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Se(e,use),s=MF(r),u=kie(a);let l=Hr({breakpoints:s,direction:"ltr",components:{},palette:R({mode:"light"},n),spacing:u,shape:R({},xie,o)},i);return l.applyStyles=BF,l=t.reduce((c,d)=>Hr(c,d),l),l.unstable_sxConfig=R({},sp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return Ic({sx:d,theme:this})},l}const cse=Object.freeze(Object.defineProperty({__proto__:null,default:lp,private_createBreakpoints:MF,unstable_applyStyles:BF},Symbol.toStringTag,{value:"Module"}));function dse(e){return Object.keys(e).length===0}function sS(e=null){const t=f.useContext(op);return!t||dse(t)?e:t}const fse=lp();function Qg(e=fse){return sS(e)}function pse({styles:e,themeId:t,defaultTheme:r={}}){const n=Qg(r),a=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(jF,{styles:a})}const vse=["sx"],hse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:sp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Xg(e){const{sx:t}=e,r=Se(e,vse),{systemProps:n,otherProps:a}=hse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Ao(s)?R({},n,s):n}:o=R({},n,t),R({},a,{sx:o})}const mse=Object.freeze(Object.defineProperty({__proto__:null,default:Ic,extendSxProp:Xg,unstable_createStyleFunctionSx:DF,unstable_defaultSxConfig:sp},Symbol.toStringTag,{value:"Module"})),q$=e=>e,gse=()=>{let e=q$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=q$}}},lS=gse();function zF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ic);return f.forwardRef(function(u,l){const c=Qg(r),d=Xg(u),{className:p,component:h="div"}=d,m=Se(d,yse);return N.jsx(o,R({as:h,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},m))})}const UF={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 Ke(e,t,r="Mui"){const n=UF[t];return n?`${r}-${n}`:`${lS.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ke(e,a,r)}),n}var VF={exports:{}},Bt={};/** + */var Dr=typeof Symbol=="function"&&Symbol.for,YE=Dr?Symbol.for("react.element"):60103,JE=Dr?Symbol.for("react.portal"):60106,Ag=Dr?Symbol.for("react.fragment"):60107,Mg=Dr?Symbol.for("react.strict_mode"):60108,Fg=Dr?Symbol.for("react.profiler"):60114,Lg=Dr?Symbol.for("react.provider"):60109,Ng=Dr?Symbol.for("react.context"):60110,ZE=Dr?Symbol.for("react.async_mode"):60111,Dg=Dr?Symbol.for("react.concurrent_mode"):60111,Bg=Dr?Symbol.for("react.forward_ref"):60112,zg=Dr?Symbol.for("react.suspense"):60113,Hoe=Dr?Symbol.for("react.suspense_list"):60120,Ug=Dr?Symbol.for("react.memo"):60115,Vg=Dr?Symbol.for("react.lazy"):60116,qoe=Dr?Symbol.for("react.block"):60121,Koe=Dr?Symbol.for("react.fundamental"):60117,Goe=Dr?Symbol.for("react.responder"):60118,Qoe=Dr?Symbol.for("react.scope"):60119;function Zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YE:switch(e=e.type,e){case ZE:case Dg:case Ag:case Fg:case Mg:case zg:return e;default:switch(e=e&&e.$$typeof,e){case Ng:case Bg:case Vg:case Ug:case Lg:return e;default:return t}}case JE:return t}}}function _F(e){return Zn(e)===Dg}Dt.AsyncMode=ZE;Dt.ConcurrentMode=Dg;Dt.ContextConsumer=Ng;Dt.ContextProvider=Lg;Dt.Element=YE;Dt.ForwardRef=Bg;Dt.Fragment=Ag;Dt.Lazy=Vg;Dt.Memo=Ug;Dt.Portal=JE;Dt.Profiler=Fg;Dt.StrictMode=Mg;Dt.Suspense=zg;Dt.isAsyncMode=function(e){return _F(e)||Zn(e)===ZE};Dt.isConcurrentMode=_F;Dt.isContextConsumer=function(e){return Zn(e)===Ng};Dt.isContextProvider=function(e){return Zn(e)===Lg};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YE};Dt.isForwardRef=function(e){return Zn(e)===Bg};Dt.isFragment=function(e){return Zn(e)===Ag};Dt.isLazy=function(e){return Zn(e)===Vg};Dt.isMemo=function(e){return Zn(e)===Ug};Dt.isPortal=function(e){return Zn(e)===JE};Dt.isProfiler=function(e){return Zn(e)===Fg};Dt.isStrictMode=function(e){return Zn(e)===Mg};Dt.isSuspense=function(e){return Zn(e)===zg};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ag||e===Dg||e===Fg||e===Mg||e===zg||e===Hoe||typeof e=="object"&&e!==null&&(e.$$typeof===Vg||e.$$typeof===Ug||e.$$typeof===Lg||e.$$typeof===Ng||e.$$typeof===Bg||e.$$typeof===Koe||e.$$typeof===Goe||e.$$typeof===Qoe||e.$$typeof===qoe)};Dt.typeOf=Zn;wF.exports=Dt;var Xoe=wF.exports,EF=Xoe,Yoe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Joe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},SF={};SF[EF.ForwardRef]=Yoe;SF[EF.Memo]=Joe;var Zoe=!0;function eie(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var OF=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Zoe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},CF=function(t,r,n){OF(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function tie(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 rie={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},nie=/[A-Z]|^ms/g,aie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PF=function(t){return t.charCodeAt(1)===45},L$=function(t){return t!=null&&typeof t!="boolean"},D0=fF(function(e){return PF(e)?e:e.replace(nie,"-$&").toLowerCase()}),N$=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(aie,function(n,a,o){return Za={name:a,styles:o,next:Za},a})}return rie[t]!==1&&!PF(t)&&typeof r=="number"&&r!==0?r+"px":r};function Rf(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Za={name:r.name,styles:r.styles,next:Za},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Za={name:n.name,styles:n.styles,next:Za},n=n.next;var a=r.styles+";";return a}return oie(e,t,r)}case"function":{if(e!==void 0){var o=Za,i=r(e);return Za=o,Rf(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function oie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?cie:die},V$=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},fie=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return OF(r,n,a),sie(function(){return CF(r,n,a)}),null},pie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=V$(t,r,n),u=s||U$(a),l=!u("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(mie(a)?r:a):t;return N.jsx(uie,{styles:n})}function tS(e,t){return ox(e,t)}const IF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:jF,StyledEngineProvider:hie,ThemeContext:op,css:yl,default:tS,internal_processStyles:IF,keyframes:ri},Symbol.toStringTag,{value:"Module"}));function Ao(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 AF(e){if(!Ao(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=AF(e[r])}),t}function Hr(e,t,r={clone:!0}){const n=r.clone?R({},e):e;return Ao(e)&&Ao(t)&&Object.keys(t).forEach(a=>{Ao(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Ao(e[a])?n[a]=Hr(e[a],t[a],r):r.clone?n[a]=Ao(t[a])?AF(t[a]):t[a]:n[a]=t[a]}),n}const yie=Object.freeze(Object.defineProperty({__proto__:null,default:Hr,isPlainObject:Ao},Symbol.toStringTag,{value:"Module"})),bie=["values","unit","step"],xie=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>R({},r,{[n.key]:n.val}),{})};function MF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Se(e,bie),o=xie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,h){const m=i.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:h)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rS[e]}px)`};function Na(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||W$;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||W$;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rS).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function FF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function LF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function _ie(e,...t){const r=FF(e),n=[r,...t].reduce((a,o)=>Hr(a,o),{});return LF(Object.keys(r),n)}function Eie(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function z0({values:e,breakpoints:t,base:r}){const n=r||Eie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function de(e){if(typeof e!="string")throw new Error(Ko(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Sie=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));function ec(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Wh(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=ec(e,r)||n,t&&(a=t(a,n,e)),a}function wr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=ec(u,n)||{};return Na(i,s,d=>{let p=Wh(l,a,d);return d===p&&typeof d=="string"&&(p=Wh(l,a,`${t}${d==="default"?"":de(d)}`,d)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Oie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Cie={m:"margin",p:"padding"},Pie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$ie=Oie(e=>{if(e.length>2)if(H$[e])e=H$[e];else return[e];const[t,r]=e.split(""),n=Cie[t],a=Pie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nS,...aS];function ip(e,t,r,n){var a;const o=(a=ec(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function oS(e){return ip(e,"spacing",8)}function dl(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Rie(e,t){return r=>e.reduce((n,a)=>(n[a]=dl(t,r),n),{})}function kie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=$ie(r),o=Rie(a,n),i=e[r];return Na(e,i,o)}function NF(e,t){const r=oS(e.theme);return Object.keys(e).map(n=>kie(e,t,n,r)).reduce(zd,{})}function sr(e){return NF(e,nS)}sr.propTypes={};sr.filterProps=nS;function lr(e){return NF(e,aS)}lr.propTypes={};lr.filterProps=aS;function Tie(e=8){if(e.mui)return e;const t=oS({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Wg(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?zd(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function la(e){return typeof e!="number"?e:`${e}px solid`}function Ea(e,t){return wr({prop:e,themeKey:"borders",transform:t})}const jie=Ea("border",la),Iie=Ea("borderTop",la),Aie=Ea("borderRight",la),Mie=Ea("borderBottom",la),Fie=Ea("borderLeft",la),Lie=Ea("borderColor"),Nie=Ea("borderTopColor"),Die=Ea("borderRightColor"),Bie=Ea("borderBottomColor"),zie=Ea("borderLeftColor"),Uie=Ea("outline",la),Vie=Ea("outlineColor"),Hg=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ip(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:dl(t,n)});return Na(e,e.borderRadius,r)}return null};Hg.propTypes={};Hg.filterProps=["borderRadius"];Wg(jie,Iie,Aie,Mie,Fie,Lie,Nie,Die,Bie,zie,Hg,Uie,Vie);const qg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ip(e.theme,"spacing",8),r=n=>({gap:dl(t,n)});return Na(e,e.gap,r)}return null};qg.propTypes={};qg.filterProps=["gap"];const Kg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ip(e.theme,"spacing",8),r=n=>({columnGap:dl(t,n)});return Na(e,e.columnGap,r)}return null};Kg.propTypes={};Kg.filterProps=["columnGap"];const Gg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ip(e.theme,"spacing",8),r=n=>({rowGap:dl(t,n)});return Na(e,e.rowGap,r)}return null};Gg.propTypes={};Gg.filterProps=["rowGap"];const Wie=wr({prop:"gridColumn"}),Hie=wr({prop:"gridRow"}),qie=wr({prop:"gridAutoFlow"}),Kie=wr({prop:"gridAutoColumns"}),Gie=wr({prop:"gridAutoRows"}),Qie=wr({prop:"gridTemplateColumns"}),Xie=wr({prop:"gridTemplateRows"}),Yie=wr({prop:"gridTemplateAreas"}),Jie=wr({prop:"gridArea"});Wg(qg,Kg,Gg,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie,Jie);function hu(e,t){return t==="grey"?t:e}const Zie=wr({prop:"color",themeKey:"palette",transform:hu}),ese=wr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hu}),tse=wr({prop:"backgroundColor",themeKey:"palette",transform:hu});Wg(Zie,ese,tse);function Hn(e){return e<=1&&e!==0?`${e*100}%`:e}const rse=wr({prop:"width",transform:Hn}),iS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rS[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Hn(r)}};return Na(e,e.maxWidth,t)}return null};iS.filterProps=["maxWidth"];const nse=wr({prop:"minWidth",transform:Hn}),ase=wr({prop:"height",transform:Hn}),ose=wr({prop:"maxHeight",transform:Hn}),ise=wr({prop:"minHeight",transform:Hn});wr({prop:"size",cssProperty:"width",transform:Hn});wr({prop:"size",cssProperty:"height",transform:Hn});const sse=wr({prop:"boxSizing"});Wg(rse,iS,nse,ase,ose,ise,sse);const sp={border:{themeKey:"borders",transform:la},borderTop:{themeKey:"borders",transform:la},borderRight:{themeKey:"borders",transform:la},borderBottom:{themeKey:"borders",transform:la},borderLeft:{themeKey:"borders",transform:la},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:la},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hg},color:{themeKey:"palette",transform:hu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hu},backgroundColor:{themeKey:"palette",transform:hu},p:{style:lr},pt:{style:lr},pr:{style:lr},pb:{style:lr},pl:{style:lr},px:{style:lr},py:{style:lr},padding:{style:lr},paddingTop:{style:lr},paddingRight:{style:lr},paddingBottom:{style:lr},paddingLeft:{style:lr},paddingX:{style:lr},paddingY:{style:lr},paddingInline:{style:lr},paddingInlineStart:{style:lr},paddingInlineEnd:{style:lr},paddingBlock:{style:lr},paddingBlockStart:{style:lr},paddingBlockEnd:{style:lr},m:{style:sr},mt:{style:sr},mr:{style:sr},mb:{style:sr},ml:{style:sr},mx:{style:sr},my:{style:sr},margin:{style:sr},marginTop:{style:sr},marginRight:{style:sr},marginBottom:{style:sr},marginLeft:{style:sr},marginX:{style:sr},marginY:{style:sr},marginInline:{style:sr},marginInlineStart:{style:sr},marginInlineEnd:{style:sr},marginBlock:{style:sr},marginBlockStart:{style:sr},marginBlockEnd:{style:sr},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:qg},rowGap:{style:Gg},columnGap:{style:Kg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hn},maxWidth:{style:iS},minWidth:{transform:Hn},height:{transform:Hn},maxHeight:{transform:Hn},minHeight:{transform:Hn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lse(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function use(e,t){return typeof e=="function"?e(t):e}function DF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=ec(a,l)||{};return d?d(i):Na(i,n,m=>{let g=Wh(p,c,m);return m===g&&typeof m=="string"&&(g=Wh(p,c,`${r}${m==="default"?"":de(m)}`,m)),u===!1?g:{[u]:g}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:sp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=FF(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const m=use(l[h],o);if(m!=null)if(typeof m=="object")if(i[h])p=zd(p,e(h,m,o,i));else{const g=Na({theme:o},m,_=>({[h]:_}));lse(g,m)?p[h]=t({sx:m,theme:o}):p=zd(p,g)}else p=zd(p,e(h,m,o,i))}),LF(d,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const Ic=DF();Ic.filterProps=["sx"];function BF(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const cse=["breakpoints","palette","spacing","shape"];function lp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Se(e,cse),s=MF(r),u=Tie(a);let l=Hr({breakpoints:s,direction:"ltr",components:{},palette:R({mode:"light"},n),spacing:u,shape:R({},wie,o)},i);return l.applyStyles=BF,l=t.reduce((c,d)=>Hr(c,d),l),l.unstable_sxConfig=R({},sp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return Ic({sx:d,theme:this})},l}const dse=Object.freeze(Object.defineProperty({__proto__:null,default:lp,private_createBreakpoints:MF,unstable_applyStyles:BF},Symbol.toStringTag,{value:"Module"}));function fse(e){return Object.keys(e).length===0}function sS(e=null){const t=f.useContext(op);return!t||fse(t)?e:t}const pse=lp();function Qg(e=pse){return sS(e)}function vse({styles:e,themeId:t,defaultTheme:r={}}){const n=Qg(r),a=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(jF,{styles:a})}const hse=["sx"],mse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:sp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Xg(e){const{sx:t}=e,r=Se(e,hse),{systemProps:n,otherProps:a}=mse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Ao(s)?R({},n,s):n}:o=R({},n,t),R({},a,{sx:o})}const gse=Object.freeze(Object.defineProperty({__proto__:null,default:Ic,extendSxProp:Xg,unstable_createStyleFunctionSx:DF,unstable_defaultSxConfig:sp},Symbol.toStringTag,{value:"Module"})),q$=e=>e,yse=()=>{let e=q$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=q$}}},lS=yse();function zF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Ic);return f.forwardRef(function(u,l){const c=Qg(r),d=Xg(u),{className:p,component:h="div"}=d,m=Se(d,bse);return N.jsx(o,R({as:h,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},m))})}const UF={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 Ke(e,t,r="Mui"){const n=UF[t];return n?`${r}-${n}`:`${lS.generate(e)}-${t}`}function qe(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ke(e,a,r)}),n}var VF={exports:{}},Bt={};/** * @license React * react-is.production.min.js * @@ -106,7 +106,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uS=Symbol.for("react.element"),cS=Symbol.for("react.portal"),Yg=Symbol.for("react.fragment"),Jg=Symbol.for("react.strict_mode"),Zg=Symbol.for("react.profiler"),ey=Symbol.for("react.provider"),ty=Symbol.for("react.context"),xse=Symbol.for("react.server_context"),ry=Symbol.for("react.forward_ref"),ny=Symbol.for("react.suspense"),ay=Symbol.for("react.suspense_list"),oy=Symbol.for("react.memo"),iy=Symbol.for("react.lazy"),wse=Symbol.for("react.offscreen"),WF;WF=Symbol.for("react.module.reference");function Sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uS:switch(e=e.type,e){case Yg:case Zg:case Jg:case ny:case ay:return e;default:switch(e=e&&e.$$typeof,e){case xse:case ty:case ry:case iy:case oy:case ey:return e;default:return t}}case cS:return t}}}Bt.ContextConsumer=ty;Bt.ContextProvider=ey;Bt.Element=uS;Bt.ForwardRef=ry;Bt.Fragment=Yg;Bt.Lazy=iy;Bt.Memo=oy;Bt.Portal=cS;Bt.Profiler=Zg;Bt.StrictMode=Jg;Bt.Suspense=ny;Bt.SuspenseList=ay;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Sa(e)===ty};Bt.isContextProvider=function(e){return Sa(e)===ey};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uS};Bt.isForwardRef=function(e){return Sa(e)===ry};Bt.isFragment=function(e){return Sa(e)===Yg};Bt.isLazy=function(e){return Sa(e)===iy};Bt.isMemo=function(e){return Sa(e)===oy};Bt.isPortal=function(e){return Sa(e)===cS};Bt.isProfiler=function(e){return Sa(e)===Zg};Bt.isStrictMode=function(e){return Sa(e)===Jg};Bt.isSuspense=function(e){return Sa(e)===ny};Bt.isSuspenseList=function(e){return Sa(e)===ay};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yg||e===Zg||e===Jg||e===ny||e===ay||e===wse||typeof e=="object"&&e!==null&&(e.$$typeof===iy||e.$$typeof===oy||e.$$typeof===ey||e.$$typeof===ty||e.$$typeof===ry||e.$$typeof===WF||e.getModuleId!==void 0)};Bt.typeOf=Sa;VF.exports=Bt;var K$=VF.exports;const _se=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function HF(e){const t=`${e}`.match(_se);return t&&t[1]||""}function qF(e,t=""){return e.displayName||e.name||HF(e)||t}function G$(e,t,r){const n=qF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ese(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case K$.ForwardRef:return G$(e,e.render,"ForwardRef");case K$.Memo:return G$(e,e.type,"memo");default:return}}}const Sse=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,getFunctionName:HF},Symbol.toStringTag,{value:"Module"})),Ose=["ownerState"],Cse=["variants"],Pse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $se(e){return Object.keys(e).length===0}function Rse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function U0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kse=lp(),Tse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qp({defaultTheme:e,theme:t,themeId:r}){return $se(t)?e:t[r]||t}function jse(e){return e?(t,r)=>r[e]:null}function $v(e,t){let{ownerState:r}=t,n=Se(t,Ose);const a=typeof e=="function"?e(R({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>$v(o,R({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Se(a,Cse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(R({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(R({ownerState:r},n,r)):u.style))}),s}return a}function Ise(e={}){const{themeId:t,defaultTheme:r=kse,rootShouldForwardProp:n=U0,slotShouldForwardProp:a=U0}=e,o=i=>Ic(R({},i,{theme:qp(R({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{IF(i,v=>v.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=jse(Tse(l))}=s,h=Se(s,Pse),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,g=d||!1;let _,x=U0;l==="Root"||l==="root"?x=n:l?x=a:Rse(i)&&(x=void 0);const y=tS(i,R({shouldForwardProp:x,label:_},h)),b=v=>typeof v=="function"&&v.__emotion_real!==v||Ao(v)?w=>$v(v,R({},w,{theme:qp({theme:w.theme,defaultTheme:r,themeId:t})})):v,E=(v,...w)=>{let S=b(v);const O=w?w.map(b):[];u&&p&&O.push($=>{const T=qp(R({},$,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[u]||!T.components[u].styleOverrides)return null;const A=T.components[u].styleOverrides,M={};return Object.entries(A).forEach(([I,U])=>{M[I]=$v(U,R({},$,{theme:T}))}),p($,M)}),u&&!m&&O.push($=>{var T;const A=qp(R({},$,{defaultTheme:r,themeId:t})),M=A==null||(T=A.components)==null||(T=T[u])==null?void 0:T.variants;return $v({variants:M},R({},$,{theme:A}))}),g||O.push(o);const C=O.length-w.length;if(Array.isArray(v)&&C>0){const $=new Array(C).fill("");S=[...v,...$],S.raw=[...v.raw,...$]}const P=y(S,...O);return i.muiName&&(P.muiName=i.muiName),P};return y.withConfig&&(E.withConfig=y.withConfig),E}}const Ase=Ise();function dS(e,t){const r=R({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=R({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=R({},o),Object.keys(a).forEach(i=>{r[n][i]=dS(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function KF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:dS(t.components[r].defaultProps,n)}function GF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Qg(r);return n&&(a=a[n]||a),KF({theme:a,name:t,props:e})}const ma=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Mse(e,t,r,n,a){const[o,i]=f.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return ma(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const QF=f.useSyncExternalStore;function Fse(e,t,r,n,a){const o=f.useCallback(()=>t,[t]),i=f.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=f.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,r,e]);return QF(u,s,i)}function Fn(e,t={}){const r=sS(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=KF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(QF!==void 0?Fse:Mse)(u,a,o,i,s)}function XF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Lse=Object.freeze(Object.defineProperty({__proto__:null,default:XF},Symbol.toStringTag,{value:"Module"}));function YF(e,t=0,r=1){return XF(e,t,r)}function Nse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fS(e){if(e.type)return e;if(e.charAt(0)==="#")return fS(Nse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ko(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(Ko(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function JF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Rf(e,t){return e=fS(e),t=YF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,JF(e)}function Dse(e,t){if(e=fS(e),t=YF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return JF(e)}function sx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function sy(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Bse(e,t){return()=>null}function Rv(e,t){var r,n;return f.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function jr(e){return e&&e.ownerDocument||document}function fo(e){return jr(e).defaultView||window}function zse(e,t){return()=>null}function qh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Q$=0;function Use(e){const[t,r]=f.useState(e),n=e||t;return f.useEffect(()=>{t==null&&(Q$+=1,r(`mui-${Q$}`))},[t]),n}const X$=Jv.useId;function fl(e){if(X$!==void 0){const t=X$();return e??t}return Use(e)}function Vse(e,t,r,n,a){return null}function tc({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=f.useRef(e!==void 0),[o,i]=f.useState(t),s=a?e:o,u=f.useCallback(l=>{a||i(l)},[]);return[s,u]}function ca(e){const t=f.useRef(e);return ma(()=>{t.current=e}),f.useRef((...r)=>(0,t.current)(...r)).current}function rr(...e){return f.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{qh(r,t)})},e)}const Y$={};function Wse(e,t){const r=f.useRef(Y$);return r.current===Y$&&(r.current=e(t)),r}const Hse=[];function qse(e){f.useEffect(e,Hse)}class up{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new up}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function As(){const e=Wse(up.create).current;return qse(e.disposeEffect),e}let ly=!0,lx=!1;const Kse=new up,Gse={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 Qse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Gse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xse(e){e.metaKey||e.altKey||e.ctrlKey||(ly=!0)}function V0(){ly=!1}function Yse(){this.visibilityState==="hidden"&&lx&&(ly=!0)}function Jse(e){e.addEventListener("keydown",Xse,!0),e.addEventListener("mousedown",V0,!0),e.addEventListener("pointerdown",V0,!0),e.addEventListener("touchstart",V0,!0),e.addEventListener("visibilitychange",Yse,!0)}function Zse(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ly||Qse(t)}function uy(){const e=f.useCallback(a=>{a!=null&&Jse(a.ownerDocument)},[]),t=f.useRef(!1);function r(){return t.current?(lx=!0,Kse.start(100,()=>{lx=!1}),t.current=!1,!0):!1}function n(a){return Zse(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function ZF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ge(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}const e5=f.createContext(null);function t5(){return f.useContext(e5)}const ele=typeof Symbol=="function"&&Symbol.for,tle=ele?Symbol.for("mui.nested"):"__THEME_NESTED__";function rle(e,t){return typeof t=="function"?t(e):R({},e,t)}function nle(e){const{children:t,theme:r}=e,n=t5(),a=f.useMemo(()=>{const o=n===null?r:rle(n,r);return o!=null&&(o[tle]=n!==null),o},[r,n]);return N.jsx(e5.Provider,{value:a,children:t})}const ale=["value"],r5=f.createContext();function ole(e){let{value:t}=e,r=Se(e,ale);return N.jsx(r5.Provider,R({value:t??!0},r))}const Ac=()=>{const e=f.useContext(r5);return e??!1},J$={};function Z$(e,t,r,n=!1){return f.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?R({},t,{[e]:o}):o;return n?()=>i:i}return e?R({},t,{[e]:r}):R({},t,r)},[e,t,r,n])}function ile(e){const{children:t,theme:r,themeId:n}=e,a=sS(J$),o=t5()||J$,i=Z$(n,a,r),s=Z$(n,o,r,!0),u=i.direction==="rtl";return N.jsx(nle,{theme:s,children:N.jsx(op.Provider,{value:i,children:N.jsx(ole,{value:u,children:t})})})}const sle=["component","direction","spacing","divider","children","className","useFlexGap"],lle=lp(),ule=Ase("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function cle(e){return GF({props:e,name:"MuiStack",defaultTheme:lle})}function dle(e,t){const r=f.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ple=({ownerState:e,theme:t})=>{let r=R({display:"flex",flexDirection:"column"},Na({theme:t},z0({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oS(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=z0({values:e.direction,base:a}),i=z0({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Hr(r,Na({theme:t},i,(u,l)=>e.useFlexGap?{gap:dl(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${fle(l?o[l]:e.direction)}`]:dl(n,u)}}))}return r=wie(t.breakpoints,r),r};function vle(e={}){const{createStyledComponent:t=ule,useThemeProps:r=cle,componentName:n="MuiStack"}=e,a=()=>Ge({root:["root"]},u=>Ke(n,u),{}),o=t(ple);return f.forwardRef(function(u,l){const c=r(u),d=Xg(c),{component:p="div",direction:h="column",spacing:m=0,divider:g,children:_,className:x,useFlexGap:y=!1}=d,b=Se(d,sle),E={direction:h,spacing:m,useFlexGap:y},v=a();return N.jsx(o,R({as:p,ownerState:E,ref:l,className:ue(v.root,x)},b,{children:g?dle(_,g):_}))})}function hle(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var _r={},n5={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n5);var wt=n5.exports;const mle=vo(poe),gle=vo(Lse);var a5=wt;Object.defineProperty(_r,"__esModule",{value:!0});var gt=_r.alpha=l5;_r.blend=Rle;_r.colorChannel=void 0;var pS=_r.darken=mS;_r.decomposeColor=ga;var yle=_r.emphasize=u5,ble=_r.getContrastRatio=Sle;_r.getLuminance=Kh;_r.hexToRgb=o5;_r.hslToRgb=s5;var vS=_r.lighten=gS;_r.private_safeAlpha=Ole;_r.private_safeColorChannel=void 0;_r.private_safeDarken=Cle;_r.private_safeEmphasize=$le;_r.private_safeLighten=Ple;_r.recomposeColor=Mc;_r.rgbToHex=Ele;var eR=a5(mle),xle=a5(gle);function hS(e,t=0,r=1){return(0,xle.default)(e,t,r)}function o5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function wle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ga(e){if(e.type)return e;if(e.charAt(0)==="#")return ga(o5(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,eR.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,eR.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const i5=e=>{const t=ga(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};_r.colorChannel=i5;const _le=(e,t)=>{try{return i5(e)}catch{return e}};_r.private_safeColorChannel=_le;function Mc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ele(e){if(e.indexOf("#")===0)return e;const{values:t}=ga(e);return`#${t.map((r,n)=>wle(n===3?Math.round(255*r):r)).join("")}`}function s5(e){e=ga(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Mc({type:s,values:u})}function Kh(e){e=ga(e);let t=e.type==="hsl"||e.type==="hsla"?ga(s5(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Sle(e,t){const r=Kh(e),n=Kh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function l5(e,t){return e=ga(e),t=hS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Mc(e)}function Ole(e,t,r){try{return l5(e,t)}catch{return e}}function mS(e,t){if(e=ga(e),t=hS(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 r=0;r<3;r+=1)e.values[r]*=1-t;return Mc(e)}function Cle(e,t,r){try{return mS(e,t)}catch{return e}}function gS(e,t){if(e=ga(e),t=hS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Mc(e)}function Ple(e,t,r){try{return gS(e,t)}catch{return e}}function u5(e,t=.15){return Kh(e)>.5?mS(e,t):gS(e,t)}function $le(e,t,r){try{return u5(e,t)}catch{return e}}function Rle(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=ga(e),i=ga(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Mc({type:"rgb",values:s})}const kle=["mode","contrastThreshold","tonalOffset"],tR={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:Of.white,default:Of.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}},W0={text:{primary:Of.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:Of.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 rR(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=vS(e.main,a):t==="dark"&&(e.dark=pS(e.main,o)))}function Tle(e="light"){return e==="dark"?{main:kl[200],light:kl[50],dark:kl[400]}:{main:kl[700],light:kl[400],dark:kl[800]}}function jle(e="light"){return e==="dark"?{main:Rl[200],light:Rl[50],dark:Rl[400]}:{main:Rl[500],light:Rl[300],dark:Rl[700]}}function Ile(e="light"){return e==="dark"?{main:hs[500],light:hs[300],dark:hs[700]}:{main:hs[700],light:hs[400],dark:hs[800]}}function Ale(e="light"){return e==="dark"?{main:Tl[400],light:Tl[300],dark:Tl[700]}:{main:Tl[700],light:Tl[500],dark:Tl[900]}}function Mle(e="light"){return e==="dark"?{main:jl[400],light:jl[300],dark:jl[700]}:{main:jl[800],light:jl[500],dark:jl[900]}}function Fle(e="light"){return e==="dark"?{main:nd[400],light:nd[300],dark:nd[700]}:{main:"#ed6c02",light:nd[500],dark:nd[900]}}function Lle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Se(e,kle),o=e.primary||Tle(t),i=e.secondary||jle(t),s=e.error||Ile(t),u=e.info||Ale(t),l=e.success||Mle(t),c=e.warning||Fle(t);function d(g){return ble(g,W0.text.primary)>=r?W0.text.primary:tR.text.primary}const p=({color:g,name:_,mainShade:x=500,lightShade:y=300,darkShade:b=700})=>{if(g=R({},g),!g.main&&g[x]&&(g.main=g[x]),!g.hasOwnProperty("main"))throw new Error(Ko(11,_?` (${_})`:"",x));if(typeof g.main!="string")throw new Error(Ko(12,_?` (${_})`:"",JSON.stringify(g.main)));return rR(g,"light",y,n),rR(g,"dark",b,n),g.contrastText||(g.contrastText=d(g.main)),g},h={dark:W0,light:tR};return Hr(R({common:R({},Of),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:foe,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},h[t]),a)}const Nle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Dle(e){return Math.round(e*1e5)/1e5}const nR={textTransform:"uppercase"},aR='"Roboto", "Helvetica", "Arial", sans-serif';function Ble(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=aR,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=r,p=Se(r,Nle),h=a/14,m=d||(x=>`${x/l*h}rem`),g=(x,y,b,E,v)=>R({fontFamily:n,fontWeight:x,fontSize:m(y),lineHeight:b},n===aR?{letterSpacing:`${Dle(E/y)}em`}:{},v,c),_={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,nR),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,nR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(R({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},_),p,{clone:!1})}const zle=.2,Ule=.14,Vle=.12;function er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ule})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vle})`].join(",")}const Wle=["none",er(0,2,1,-1,0,1,1,0,0,1,3,0),er(0,3,1,-2,0,2,2,0,0,1,5,0),er(0,3,3,-2,0,3,4,0,0,1,8,0),er(0,2,4,-1,0,4,5,0,0,1,10,0),er(0,3,5,-1,0,5,8,0,0,1,14,0),er(0,3,5,-1,0,6,10,0,0,1,18,0),er(0,4,5,-2,0,7,10,1,0,2,16,1),er(0,5,5,-3,0,8,10,1,0,3,14,2),er(0,5,6,-3,0,9,12,1,0,3,16,2),er(0,6,6,-3,0,10,14,1,0,4,18,3),er(0,6,7,-4,0,11,15,1,0,4,20,3),er(0,7,8,-4,0,12,17,2,0,5,22,4),er(0,7,8,-4,0,13,19,2,0,5,24,4),er(0,7,9,-4,0,14,21,2,0,5,26,4),er(0,8,9,-5,0,15,22,2,0,6,28,5),er(0,8,10,-5,0,16,24,2,0,6,30,5),er(0,8,11,-5,0,17,26,2,0,6,32,5),er(0,9,11,-5,0,18,28,2,0,7,34,6),er(0,9,12,-6,0,19,29,2,0,7,36,6),er(0,10,13,-6,0,20,31,3,0,8,38,7),er(0,10,13,-6,0,21,33,3,0,8,40,7),er(0,10,14,-6,0,22,35,3,0,8,42,7),er(0,11,14,-7,0,23,36,3,0,9,44,8),er(0,11,15,-7,0,24,38,3,0,9,46,8)],Hle=["duration","easing","delay"],qle={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)"},Kle={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oR(e){return`${Math.round(e)}ms`}function Gle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Qle(e){const t=R({},qle,e.easing),r=R({},Kle,e.duration);return R({getAutoHeightDuration:Gle,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Se(o,Hle),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:oR(i)} ${s} ${typeof u=="string"?u:oR(u)}`).join(",")}},e,{easing:t,duration:r})}const Xle={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Gh(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Se(e,Yle);if(e.vars)throw new Error(Ko(18));const s=Lle(n),u=lp(e);let l=Hr(u,{mixins:hle(u.breakpoints,r),palette:s,shadows:Wle.slice(),typography:Ble(s,o),transitions:Qle(a),zIndex:R({},Xle)});return l=Hr(l,i),l=t.reduce((c,d)=>Hr(c,d),l),l.unstable_sxConfig=R({},sp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return Ic({sx:d,theme:this})},l}const cy=Gh();function ni(){const e=Qg(cy);return e[cl]||e}function Qe({props:e,name:t}){return GF({props:e,name:t,defaultTheme:cy,themeId:cl})}var cp={},H0={exports:{}},iR;function Jle(){return iR||(iR=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(H0)),H0.exports}const c5=vo(mie),Zle=vo(gie),eue=vo(Eie),tue=vo(Sse),rue=vo(cse),nue=vo(mse);var Fc=wt;Object.defineProperty(cp,"__esModule",{value:!0});var aue=cp.default=gue;cp.shouldForwardProp=kv;cp.systemDefaultTheme=void 0;var aa=Fc(TF()),ux=Fc(Jle()),sR=due(c5),oue=Zle;Fc(eue);Fc(tue);var iue=Fc(rue),sue=Fc(nue);const lue=["ownerState"],uue=["variants"],cue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(d5=function(n){return n?r:t})(e)}function due(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=d5(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function fue(e){return Object.keys(e).length===0}function pue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vue=cp.systemDefaultTheme=(0,iue.default)(),hue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kp({defaultTheme:e,theme:t,themeId:r}){return fue(t)?e:t[r]||t}function mue(e){return e?(t,r)=>r[e]:null}function Tv(e,t){let{ownerState:r}=t,n=(0,ux.default)(t,lue);const a=typeof e=="function"?e((0,aa.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Tv(o,(0,aa.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,ux.default)(a,uue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,aa.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,aa.default)({ownerState:r},n,r)):u.style))}),s}return a}function gue(e={}){const{themeId:t,defaultTheme:r=vue,rootShouldForwardProp:n=kv,slotShouldForwardProp:a=kv}=e,o=i=>(0,sue.default)((0,aa.default)({},i,{theme:Kp((0,aa.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,sR.internal_processStyles)(i,v=>v.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=mue(hue(l))}=s,h=(0,ux.default)(s,cue),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,g=d||!1;let _,x=kv;l==="Root"||l==="root"?x=n:l?x=a:pue(i)&&(x=void 0);const y=(0,sR.default)(i,(0,aa.default)({shouldForwardProp:x,label:_},h)),b=v=>typeof v=="function"&&v.__emotion_real!==v||(0,oue.isPlainObject)(v)?w=>Tv(v,(0,aa.default)({},w,{theme:Kp({theme:w.theme,defaultTheme:r,themeId:t})})):v,E=(v,...w)=>{let S=b(v);const O=w?w.map(b):[];u&&p&&O.push($=>{const T=Kp((0,aa.default)({},$,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[u]||!T.components[u].styleOverrides)return null;const A=T.components[u].styleOverrides,M={};return Object.entries(A).forEach(([I,U])=>{M[I]=Tv(U,(0,aa.default)({},$,{theme:T}))}),p($,M)}),u&&!m&&O.push($=>{var T;const A=Kp((0,aa.default)({},$,{defaultTheme:r,themeId:t})),M=A==null||(T=A.components)==null||(T=T[u])==null?void 0:T.variants;return Tv({variants:M},(0,aa.default)({},$,{theme:A}))}),g||O.push(o);const C=O.length-w.length;if(Array.isArray(v)&&C>0){const $=new Array(C).fill("");S=[...v,...$],S.raw=[...v.raw,...$]}const P=y(S,...O);return i.muiName&&(P.muiName=i.muiName),P};return y.withConfig&&(E.withConfig=y.withConfig),E}}function f5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Kr=e=>f5(e)&&e!=="classes",ne=aue({themeId:cl,defaultTheme:cy,rootShouldForwardProp:Kr}),yue=["theme"];function bue(e){let{theme:t}=e,r=Se(e,yue);const n=t[cl];return N.jsx(ile,R({},r,{themeId:n?cl:void 0,theme:n||t}))}const lR=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function xue(e){return Ke("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_ue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(r)}`]};return Ge(a,xue,n)},Eue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${de(r.color)}`],t[`fontSize${de(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,d,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),cx=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,h=Se(n,wue),m=f.isValidElement(a)&&a.type==="svg",g=R({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),_={};c||(_.viewBox=p);const x=_ue(g);return N.jsxs(Eue,R({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},_,h,m&&a.props,{ownerState:g,children:[m?a.props.children:a,d?N.jsx("title",{children:d}):null]}))});cx.muiName="SvgIcon";function Ln(e,t){function r(n,a){return N.jsx(cx,R({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=cx.muiName,f.memo(f.forwardRef(r))}const Sue={configure:e=>{lS.configure(e)}},Oue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:de,createChainedFunction:sx,createSvgIcon:Ln,debounce:sy,deprecatedPropType:Bse,isMuiElement:Rv,ownerDocument:jr,ownerWindow:fo,requirePropFactory:zse,setRef:qh,unstable_ClassNameGenerator:Sue,unstable_useEnhancedEffect:ma,unstable_useId:fl,unsupportedProp:Vse,useControlled:tc,useEventCallback:ca,useForkRef:rr,useIsFocusVisible:uy},Symbol.toStringTag,{value:"Module"}));var Vt={};/** + */var uS=Symbol.for("react.element"),cS=Symbol.for("react.portal"),Yg=Symbol.for("react.fragment"),Jg=Symbol.for("react.strict_mode"),Zg=Symbol.for("react.profiler"),ey=Symbol.for("react.provider"),ty=Symbol.for("react.context"),wse=Symbol.for("react.server_context"),ry=Symbol.for("react.forward_ref"),ny=Symbol.for("react.suspense"),ay=Symbol.for("react.suspense_list"),oy=Symbol.for("react.memo"),iy=Symbol.for("react.lazy"),_se=Symbol.for("react.offscreen"),WF;WF=Symbol.for("react.module.reference");function Sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uS:switch(e=e.type,e){case Yg:case Zg:case Jg:case ny:case ay:return e;default:switch(e=e&&e.$$typeof,e){case wse:case ty:case ry:case iy:case oy:case ey:return e;default:return t}}case cS:return t}}}Bt.ContextConsumer=ty;Bt.ContextProvider=ey;Bt.Element=uS;Bt.ForwardRef=ry;Bt.Fragment=Yg;Bt.Lazy=iy;Bt.Memo=oy;Bt.Portal=cS;Bt.Profiler=Zg;Bt.StrictMode=Jg;Bt.Suspense=ny;Bt.SuspenseList=ay;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Sa(e)===ty};Bt.isContextProvider=function(e){return Sa(e)===ey};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uS};Bt.isForwardRef=function(e){return Sa(e)===ry};Bt.isFragment=function(e){return Sa(e)===Yg};Bt.isLazy=function(e){return Sa(e)===iy};Bt.isMemo=function(e){return Sa(e)===oy};Bt.isPortal=function(e){return Sa(e)===cS};Bt.isProfiler=function(e){return Sa(e)===Zg};Bt.isStrictMode=function(e){return Sa(e)===Jg};Bt.isSuspense=function(e){return Sa(e)===ny};Bt.isSuspenseList=function(e){return Sa(e)===ay};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yg||e===Zg||e===Jg||e===ny||e===ay||e===_se||typeof e=="object"&&e!==null&&(e.$$typeof===iy||e.$$typeof===oy||e.$$typeof===ey||e.$$typeof===ty||e.$$typeof===ry||e.$$typeof===WF||e.getModuleId!==void 0)};Bt.typeOf=Sa;VF.exports=Bt;var K$=VF.exports;const Ese=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function HF(e){const t=`${e}`.match(Ese);return t&&t[1]||""}function qF(e,t=""){return e.displayName||e.name||HF(e)||t}function G$(e,t,r){const n=qF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Sse(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case K$.ForwardRef:return G$(e,e.render,"ForwardRef");case K$.Memo:return G$(e,e.type,"memo");default:return}}}const Ose=Object.freeze(Object.defineProperty({__proto__:null,default:Sse,getFunctionName:HF},Symbol.toStringTag,{value:"Module"})),Cse=["ownerState"],Pse=["variants"],$se=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rse(e){return Object.keys(e).length===0}function kse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function U0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tse=lp(),jse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qp({defaultTheme:e,theme:t,themeId:r}){return Rse(t)?e:t[r]||t}function Ise(e){return e?(t,r)=>r[e]:null}function Pv(e,t){let{ownerState:r}=t,n=Se(t,Cse);const a=typeof e=="function"?e(R({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Pv(o,R({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Se(a,Pse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(R({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(R({ownerState:r},n,r)):u.style))}),s}return a}function Ase(e={}){const{themeId:t,defaultTheme:r=Tse,rootShouldForwardProp:n=U0,slotShouldForwardProp:a=U0}=e,o=i=>Ic(R({},i,{theme:qp(R({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{IF(i,v=>v.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Ise(jse(l))}=s,h=Se(s,$se),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,g=d||!1;let _,x=U0;l==="Root"||l==="root"?x=n:l?x=a:kse(i)&&(x=void 0);const y=tS(i,R({shouldForwardProp:x,label:_},h)),b=v=>typeof v=="function"&&v.__emotion_real!==v||Ao(v)?w=>Pv(v,R({},w,{theme:qp({theme:w.theme,defaultTheme:r,themeId:t})})):v,E=(v,...w)=>{let S=b(v);const O=w?w.map(b):[];u&&p&&O.push($=>{const T=qp(R({},$,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[u]||!T.components[u].styleOverrides)return null;const A=T.components[u].styleOverrides,M={};return Object.entries(A).forEach(([I,U])=>{M[I]=Pv(U,R({},$,{theme:T}))}),p($,M)}),u&&!m&&O.push($=>{var T;const A=qp(R({},$,{defaultTheme:r,themeId:t})),M=A==null||(T=A.components)==null||(T=T[u])==null?void 0:T.variants;return Pv({variants:M},R({},$,{theme:A}))}),g||O.push(o);const C=O.length-w.length;if(Array.isArray(v)&&C>0){const $=new Array(C).fill("");S=[...v,...$],S.raw=[...v.raw,...$]}const P=y(S,...O);return i.muiName&&(P.muiName=i.muiName),P};return y.withConfig&&(E.withConfig=y.withConfig),E}}const Mse=Ase();function dS(e,t){const r=R({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=R({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=R({},o),Object.keys(a).forEach(i=>{r[n][i]=dS(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function KF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:dS(t.components[r].defaultProps,n)}function GF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Qg(r);return n&&(a=a[n]||a),KF({theme:a,name:t,props:e})}const ma=typeof window<"u"?f.useLayoutEffect:f.useEffect;function Fse(e,t,r,n,a){const[o,i]=f.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return ma(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const QF=f.useSyncExternalStore;function Lse(e,t,r,n,a){const o=f.useCallback(()=>t,[t]),i=f.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=f.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,r,e]);return QF(u,s,i)}function Fn(e,t={}){const r=sS(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=KF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(QF!==void 0?Lse:Fse)(u,a,o,i,s)}function XF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Nse=Object.freeze(Object.defineProperty({__proto__:null,default:XF},Symbol.toStringTag,{value:"Module"}));function YF(e,t=0,r=1){return XF(e,t,r)}function Dse(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fS(e){if(e.type)return e;if(e.charAt(0)==="#")return fS(Dse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ko(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(Ko(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function JF(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function kf(e,t){return e=fS(e),t=YF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,JF(e)}function Bse(e,t){if(e=fS(e),t=YF(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return JF(e)}function sx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function sy(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function zse(e,t){return()=>null}function $v(e,t){var r,n;return f.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function jr(e){return e&&e.ownerDocument||document}function fo(e){return jr(e).defaultView||window}function Use(e,t){return()=>null}function Hh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Q$=0;function Vse(e){const[t,r]=f.useState(e),n=e||t;return f.useEffect(()=>{t==null&&(Q$+=1,r(`mui-${Q$}`))},[t]),n}const X$=Yv.useId;function fl(e){if(X$!==void 0){const t=X$();return e??t}return Vse(e)}function Wse(e,t,r,n,a){return null}function tc({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=f.useRef(e!==void 0),[o,i]=f.useState(t),s=a?e:o,u=f.useCallback(l=>{a||i(l)},[]);return[s,u]}function ca(e){const t=f.useRef(e);return ma(()=>{t.current=e}),f.useRef((...r)=>(0,t.current)(...r)).current}function rr(...e){return f.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Hh(r,t)})},e)}const Y$={};function Hse(e,t){const r=f.useRef(Y$);return r.current===Y$&&(r.current=e(t)),r}const qse=[];function Kse(e){f.useEffect(e,qse)}class up{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new up}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function As(){const e=Hse(up.create).current;return Kse(e.disposeEffect),e}let ly=!0,lx=!1;const Gse=new up,Qse={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 Xse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Qse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Yse(e){e.metaKey||e.altKey||e.ctrlKey||(ly=!0)}function V0(){ly=!1}function Jse(){this.visibilityState==="hidden"&&lx&&(ly=!0)}function Zse(e){e.addEventListener("keydown",Yse,!0),e.addEventListener("mousedown",V0,!0),e.addEventListener("pointerdown",V0,!0),e.addEventListener("touchstart",V0,!0),e.addEventListener("visibilitychange",Jse,!0)}function ele(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ly||Xse(t)}function uy(){const e=f.useCallback(a=>{a!=null&&Zse(a.ownerDocument)},[]),t=f.useRef(!1);function r(){return t.current?(lx=!0,Gse.start(100,()=>{lx=!1}),t.current=!1,!0):!1}function n(a){return ele(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function ZF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ge(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}const e5=f.createContext(null);function t5(){return f.useContext(e5)}const tle=typeof Symbol=="function"&&Symbol.for,rle=tle?Symbol.for("mui.nested"):"__THEME_NESTED__";function nle(e,t){return typeof t=="function"?t(e):R({},e,t)}function ale(e){const{children:t,theme:r}=e,n=t5(),a=f.useMemo(()=>{const o=n===null?r:nle(n,r);return o!=null&&(o[rle]=n!==null),o},[r,n]);return N.jsx(e5.Provider,{value:a,children:t})}const ole=["value"],r5=f.createContext();function ile(e){let{value:t}=e,r=Se(e,ole);return N.jsx(r5.Provider,R({value:t??!0},r))}const Ac=()=>{const e=f.useContext(r5);return e??!1},J$={};function Z$(e,t,r,n=!1){return f.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?R({},t,{[e]:o}):o;return n?()=>i:i}return e?R({},t,{[e]:r}):R({},t,r)},[e,t,r,n])}function sle(e){const{children:t,theme:r,themeId:n}=e,a=sS(J$),o=t5()||J$,i=Z$(n,a,r),s=Z$(n,o,r,!0),u=i.direction==="rtl";return N.jsx(ale,{theme:s,children:N.jsx(op.Provider,{value:i,children:N.jsx(ile,{value:u,children:t})})})}const lle=["component","direction","spacing","divider","children","className","useFlexGap"],ule=lp(),cle=Mse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function dle(e){return GF({props:e,name:"MuiStack",defaultTheme:ule})}function fle(e,t){const r=f.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],vle=({ownerState:e,theme:t})=>{let r=R({display:"flex",flexDirection:"column"},Na({theme:t},z0({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oS(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=z0({values:e.direction,base:a}),i=z0({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Hr(r,Na({theme:t},i,(u,l)=>e.useFlexGap?{gap:dl(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ple(l?o[l]:e.direction)}`]:dl(n,u)}}))}return r=_ie(t.breakpoints,r),r};function hle(e={}){const{createStyledComponent:t=cle,useThemeProps:r=dle,componentName:n="MuiStack"}=e,a=()=>Ge({root:["root"]},u=>Ke(n,u),{}),o=t(vle);return f.forwardRef(function(u,l){const c=r(u),d=Xg(c),{component:p="div",direction:h="column",spacing:m=0,divider:g,children:_,className:x,useFlexGap:y=!1}=d,b=Se(d,lle),E={direction:h,spacing:m,useFlexGap:y},v=a();return N.jsx(o,R({as:p,ownerState:E,ref:l,className:ue(v.root,x)},b,{children:g?fle(_,g):_}))})}function mle(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var _r={},n5={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n5);var wt=n5.exports;const gle=vo(voe),yle=vo(Nse);var a5=wt;Object.defineProperty(_r,"__esModule",{value:!0});var gt=_r.alpha=l5;_r.blend=kle;_r.colorChannel=void 0;var pS=_r.darken=mS;_r.decomposeColor=ga;var ble=_r.emphasize=u5,xle=_r.getContrastRatio=Ole;_r.getLuminance=qh;_r.hexToRgb=o5;_r.hslToRgb=s5;var vS=_r.lighten=gS;_r.private_safeAlpha=Cle;_r.private_safeColorChannel=void 0;_r.private_safeDarken=Ple;_r.private_safeEmphasize=Rle;_r.private_safeLighten=$le;_r.recomposeColor=Mc;_r.rgbToHex=Sle;var eR=a5(gle),wle=a5(yle);function hS(e,t=0,r=1){return(0,wle.default)(e,t,r)}function o5(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function _le(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ga(e){if(e.type)return e;if(e.charAt(0)==="#")return ga(o5(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,eR.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,eR.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const i5=e=>{const t=ga(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};_r.colorChannel=i5;const Ele=(e,t)=>{try{return i5(e)}catch{return e}};_r.private_safeColorChannel=Ele;function Mc(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Sle(e){if(e.indexOf("#")===0)return e;const{values:t}=ga(e);return`#${t.map((r,n)=>_le(n===3?Math.round(255*r):r)).join("")}`}function s5(e){e=ga(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Mc({type:s,values:u})}function qh(e){e=ga(e);let t=e.type==="hsl"||e.type==="hsla"?ga(s5(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ole(e,t){const r=qh(e),n=qh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function l5(e,t){return e=ga(e),t=hS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Mc(e)}function Cle(e,t,r){try{return l5(e,t)}catch{return e}}function mS(e,t){if(e=ga(e),t=hS(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 r=0;r<3;r+=1)e.values[r]*=1-t;return Mc(e)}function Ple(e,t,r){try{return mS(e,t)}catch{return e}}function gS(e,t){if(e=ga(e),t=hS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Mc(e)}function $le(e,t,r){try{return gS(e,t)}catch{return e}}function u5(e,t=.15){return qh(e)>.5?mS(e,t):gS(e,t)}function Rle(e,t,r){try{return u5(e,t)}catch{return e}}function kle(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=ga(e),i=ga(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Mc({type:"rgb",values:s})}const Tle=["mode","contrastThreshold","tonalOffset"],tR={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:Cf.white,default:Cf.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}},W0={text:{primary:Cf.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:Cf.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 rR(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=vS(e.main,a):t==="dark"&&(e.dark=pS(e.main,o)))}function jle(e="light"){return e==="dark"?{main:kl[200],light:kl[50],dark:kl[400]}:{main:kl[700],light:kl[400],dark:kl[800]}}function Ile(e="light"){return e==="dark"?{main:Rl[200],light:Rl[50],dark:Rl[400]}:{main:Rl[500],light:Rl[300],dark:Rl[700]}}function Ale(e="light"){return e==="dark"?{main:hs[500],light:hs[300],dark:hs[700]}:{main:hs[700],light:hs[400],dark:hs[800]}}function Mle(e="light"){return e==="dark"?{main:Tl[400],light:Tl[300],dark:Tl[700]}:{main:Tl[700],light:Tl[500],dark:Tl[900]}}function Fle(e="light"){return e==="dark"?{main:jl[400],light:jl[300],dark:jl[700]}:{main:jl[800],light:jl[500],dark:jl[900]}}function Lle(e="light"){return e==="dark"?{main:nd[400],light:nd[300],dark:nd[700]}:{main:"#ed6c02",light:nd[500],dark:nd[900]}}function Nle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Se(e,Tle),o=e.primary||jle(t),i=e.secondary||Ile(t),s=e.error||Ale(t),u=e.info||Mle(t),l=e.success||Fle(t),c=e.warning||Lle(t);function d(g){return xle(g,W0.text.primary)>=r?W0.text.primary:tR.text.primary}const p=({color:g,name:_,mainShade:x=500,lightShade:y=300,darkShade:b=700})=>{if(g=R({},g),!g.main&&g[x]&&(g.main=g[x]),!g.hasOwnProperty("main"))throw new Error(Ko(11,_?` (${_})`:"",x));if(typeof g.main!="string")throw new Error(Ko(12,_?` (${_})`:"",JSON.stringify(g.main)));return rR(g,"light",y,n),rR(g,"dark",b,n),g.contrastText||(g.contrastText=d(g.main)),g},h={dark:W0,light:tR};return Hr(R({common:R({},Cf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:poe,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},h[t]),a)}const Dle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ble(e){return Math.round(e*1e5)/1e5}const nR={textTransform:"uppercase"},aR='"Roboto", "Helvetica", "Arial", sans-serif';function zle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=aR,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=r,p=Se(r,Dle),h=a/14,m=d||(x=>`${x/l*h}rem`),g=(x,y,b,E,v)=>R({fontFamily:n,fontWeight:x,fontSize:m(y),lineHeight:b},n===aR?{letterSpacing:`${Ble(E/y)}em`}:{},v,c),_={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,nR),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,nR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(R({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},_),p,{clone:!1})}const Ule=.2,Vle=.14,Wle=.12;function er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ule})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Wle})`].join(",")}const Hle=["none",er(0,2,1,-1,0,1,1,0,0,1,3,0),er(0,3,1,-2,0,2,2,0,0,1,5,0),er(0,3,3,-2,0,3,4,0,0,1,8,0),er(0,2,4,-1,0,4,5,0,0,1,10,0),er(0,3,5,-1,0,5,8,0,0,1,14,0),er(0,3,5,-1,0,6,10,0,0,1,18,0),er(0,4,5,-2,0,7,10,1,0,2,16,1),er(0,5,5,-3,0,8,10,1,0,3,14,2),er(0,5,6,-3,0,9,12,1,0,3,16,2),er(0,6,6,-3,0,10,14,1,0,4,18,3),er(0,6,7,-4,0,11,15,1,0,4,20,3),er(0,7,8,-4,0,12,17,2,0,5,22,4),er(0,7,8,-4,0,13,19,2,0,5,24,4),er(0,7,9,-4,0,14,21,2,0,5,26,4),er(0,8,9,-5,0,15,22,2,0,6,28,5),er(0,8,10,-5,0,16,24,2,0,6,30,5),er(0,8,11,-5,0,17,26,2,0,6,32,5),er(0,9,11,-5,0,18,28,2,0,7,34,6),er(0,9,12,-6,0,19,29,2,0,7,36,6),er(0,10,13,-6,0,20,31,3,0,8,38,7),er(0,10,13,-6,0,21,33,3,0,8,40,7),er(0,10,14,-6,0,22,35,3,0,8,42,7),er(0,11,14,-7,0,23,36,3,0,9,44,8),er(0,11,15,-7,0,24,38,3,0,9,46,8)],qle=["duration","easing","delay"],Kle={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)"},Gle={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oR(e){return`${Math.round(e)}ms`}function Qle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Xle(e){const t=R({},Kle,e.easing),r=R({},Gle,e.duration);return R({getAutoHeightDuration:Qle,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Se(o,qle),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:oR(i)} ${s} ${typeof u=="string"?u:oR(u)}`).join(",")}},e,{easing:t,duration:r})}const Yle={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Jle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kh(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Se(e,Jle);if(e.vars)throw new Error(Ko(18));const s=Nle(n),u=lp(e);let l=Hr(u,{mixins:mle(u.breakpoints,r),palette:s,shadows:Hle.slice(),typography:zle(s,o),transitions:Xle(a),zIndex:R({},Yle)});return l=Hr(l,i),l=t.reduce((c,d)=>Hr(c,d),l),l.unstable_sxConfig=R({},sp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(d){return Ic({sx:d,theme:this})},l}const cy=Kh();function ni(){const e=Qg(cy);return e[cl]||e}function Qe({props:e,name:t}){return GF({props:e,name:t,defaultTheme:cy,themeId:cl})}var cp={},H0={exports:{}},iR;function Zle(){return iR||(iR=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(H0)),H0.exports}const c5=vo(gie),eue=vo(yie),tue=vo(Sie),rue=vo(Ose),nue=vo(dse),aue=vo(gse);var Fc=wt;Object.defineProperty(cp,"__esModule",{value:!0});var oue=cp.default=yue;cp.shouldForwardProp=Rv;cp.systemDefaultTheme=void 0;var aa=Fc(TF()),ux=Fc(Zle()),sR=fue(c5),iue=eue;Fc(tue);Fc(rue);var sue=Fc(nue),lue=Fc(aue);const uue=["ownerState"],cue=["variants"],due=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(d5=function(n){return n?r:t})(e)}function fue(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=d5(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function pue(e){return Object.keys(e).length===0}function vue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Rv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hue=cp.systemDefaultTheme=(0,sue.default)(),mue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Kp({defaultTheme:e,theme:t,themeId:r}){return pue(t)?e:t[r]||t}function gue(e){return e?(t,r)=>r[e]:null}function kv(e,t){let{ownerState:r}=t,n=(0,ux.default)(t,uue);const a=typeof e=="function"?e((0,aa.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>kv(o,(0,aa.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,ux.default)(a,cue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,aa.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,aa.default)({ownerState:r},n,r)):u.style))}),s}return a}function yue(e={}){const{themeId:t,defaultTheme:r=hue,rootShouldForwardProp:n=Rv,slotShouldForwardProp:a=Rv}=e,o=i=>(0,lue.default)((0,aa.default)({},i,{theme:Kp((0,aa.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,sR.internal_processStyles)(i,v=>v.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:p=gue(mue(l))}=s,h=(0,ux.default)(s,due),m=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,g=d||!1;let _,x=Rv;l==="Root"||l==="root"?x=n:l?x=a:vue(i)&&(x=void 0);const y=(0,sR.default)(i,(0,aa.default)({shouldForwardProp:x,label:_},h)),b=v=>typeof v=="function"&&v.__emotion_real!==v||(0,iue.isPlainObject)(v)?w=>kv(v,(0,aa.default)({},w,{theme:Kp({theme:w.theme,defaultTheme:r,themeId:t})})):v,E=(v,...w)=>{let S=b(v);const O=w?w.map(b):[];u&&p&&O.push($=>{const T=Kp((0,aa.default)({},$,{defaultTheme:r,themeId:t}));if(!T.components||!T.components[u]||!T.components[u].styleOverrides)return null;const A=T.components[u].styleOverrides,M={};return Object.entries(A).forEach(([I,U])=>{M[I]=kv(U,(0,aa.default)({},$,{theme:T}))}),p($,M)}),u&&!m&&O.push($=>{var T;const A=Kp((0,aa.default)({},$,{defaultTheme:r,themeId:t})),M=A==null||(T=A.components)==null||(T=T[u])==null?void 0:T.variants;return kv({variants:M},(0,aa.default)({},$,{theme:A}))}),g||O.push(o);const C=O.length-w.length;if(Array.isArray(v)&&C>0){const $=new Array(C).fill("");S=[...v,...$],S.raw=[...v.raw,...$]}const P=y(S,...O);return i.muiName&&(P.muiName=i.muiName),P};return y.withConfig&&(E.withConfig=y.withConfig),E}}function f5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Kr=e=>f5(e)&&e!=="classes",ne=oue({themeId:cl,defaultTheme:cy,rootShouldForwardProp:Kr}),bue=["theme"];function xue(e){let{theme:t}=e,r=Se(e,bue);const n=t[cl];return N.jsx(sle,R({},r,{themeId:n?cl:void 0,theme:n||t}))}const lR=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function wue(e){return Ke("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _ue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Eue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(r)}`]};return Ge(a,wue,n)},Sue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${de(r.color)}`],t[`fontSize${de(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,d,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),cx=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,h=Se(n,_ue),m=f.isValidElement(a)&&a.type==="svg",g=R({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),_={};c||(_.viewBox=p);const x=Eue(g);return N.jsxs(Sue,R({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},_,h,m&&a.props,{ownerState:g,children:[m?a.props.children:a,d?N.jsx("title",{children:d}):null]}))});cx.muiName="SvgIcon";function Ln(e,t){function r(n,a){return N.jsx(cx,R({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=cx.muiName,f.memo(f.forwardRef(r))}const Oue={configure:e=>{lS.configure(e)}},Cue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:de,createChainedFunction:sx,createSvgIcon:Ln,debounce:sy,deprecatedPropType:zse,isMuiElement:$v,ownerDocument:jr,ownerWindow:fo,requirePropFactory:Use,setRef:Hh,unstable_ClassNameGenerator:Oue,unstable_useEnhancedEffect:ma,unstable_useId:fl,unsupportedProp:Wse,useControlled:tc,useEventCallback:ca,useForkRef:rr,useIsFocusVisible:uy},Symbol.toStringTag,{value:"Module"}));var Vt={};/** * @license React * react-is.production.min.js * @@ -114,7 +114,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yS=Symbol.for("react.element"),bS=Symbol.for("react.portal"),dy=Symbol.for("react.fragment"),fy=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),vy=Symbol.for("react.provider"),hy=Symbol.for("react.context"),Cue=Symbol.for("react.server_context"),my=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),yy=Symbol.for("react.suspense_list"),by=Symbol.for("react.memo"),xy=Symbol.for("react.lazy"),Pue=Symbol.for("react.offscreen"),p5;p5=Symbol.for("react.module.reference");function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yS:switch(e=e.type,e){case dy:case py:case fy:case gy:case yy:return e;default:switch(e=e&&e.$$typeof,e){case Cue:case hy:case my:case xy:case by:case vy:return e;default:return t}}case bS:return t}}}Vt.ContextConsumer=hy;Vt.ContextProvider=vy;Vt.Element=yS;Vt.ForwardRef=my;Vt.Fragment=dy;Vt.Lazy=xy;Vt.Memo=by;Vt.Portal=bS;Vt.Profiler=py;Vt.StrictMode=fy;Vt.Suspense=gy;Vt.SuspenseList=yy;Vt.isAsyncMode=function(){return!1};Vt.isConcurrentMode=function(){return!1};Vt.isContextConsumer=function(e){return Oa(e)===hy};Vt.isContextProvider=function(e){return Oa(e)===vy};Vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yS};Vt.isForwardRef=function(e){return Oa(e)===my};Vt.isFragment=function(e){return Oa(e)===dy};Vt.isLazy=function(e){return Oa(e)===xy};Vt.isMemo=function(e){return Oa(e)===by};Vt.isPortal=function(e){return Oa(e)===bS};Vt.isProfiler=function(e){return Oa(e)===py};Vt.isStrictMode=function(e){return Oa(e)===fy};Vt.isSuspense=function(e){return Oa(e)===gy};Vt.isSuspenseList=function(e){return Oa(e)===yy};Vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dy||e===py||e===fy||e===gy||e===yy||e===Pue||typeof e=="object"&&e!==null&&(e.$$typeof===xy||e.$$typeof===by||e.$$typeof===vy||e.$$typeof===hy||e.$$typeof===my||e.$$typeof===p5||e.getModuleId!==void 0)};Vt.typeOf=Oa;function $ue(e){return Qe}function dx(e,t){return dx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},dx(e,t)}function v5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dx(e,t)}const uR={disabled:!1},Qh=Pe.createContext(null);var Rue=function(t){return t.scrollTop},_d="unmounted",ms="exited",gs="entering",Nl="entered",fx="exiting",za=function(e){v5(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=ms,o.appearStatus=gs):u=Nl:n.unmountOnExit||n.mountOnEnter?u=_d:u=ms,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===_d?{status:ms}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==gs&&i!==Nl&&(o=gs):(i===gs||i===Nl)&&(o=fx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===gs){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:yd.findDOMNode(this);i&&Rue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ms&&this.setState({status:_d})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[yd.findDOMNode(this),s],l=u[0],c=u[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!a&&!i||uR.disabled){this.safeSetState({status:Nl},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:gs},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:Nl},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:yd.findDOMNode(this);if(!o||uR.disabled){this.safeSetState({status:ms},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:fx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:ms},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:yd.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===_d)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Se(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Pe.createElement(Qh.Provider,{value:null},typeof i=="function"?i(a,s):Pe.cloneElement(Pe.Children.only(i),s))},t}(Pe.Component);za.contextType=Qh;za.propTypes={};function Il(){}za.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Il,onEntering:Il,onEntered:Il,onExit:Il,onExiting:Il,onExited:Il};za.UNMOUNTED=_d;za.EXITED=ms;za.ENTERING=gs;za.ENTERED=Nl;za.EXITING=fx;function kue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xS(e,t){var r=function(o){return t&&f.isValidElement(o)?t(o):o},n=Object.create(null);return e&&f.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Tue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function rc(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Fue(e){return Ke("MuiPaper",e)}qe("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 Lue=["className","component","elevation","square","variant"],Nue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(o,Fue,a)},Due=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return R({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"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",lR(t.elevation))}, ${gt("#fff",lR(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),as=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Se(n,Lue),c=R({},n,{component:o,elevation:i,square:s,variant:u}),d=Nue(c);return N.jsx(Due,R({as:o,ownerState:c,className:ue(d.root,a),ref:r},l))});function kf(e){return typeof e=="string"}function au(e,t,r){return e===void 0||kf(e)?t:R({},t,{ownerState:R({},t.ownerState,r)})}const Bue={disableDefaultClasses:!1},zue=f.createContext(Bue);function Uue(e){const{disableDefaultClasses:t}=f.useContext(zue);return r=>t?"":e(r)}function Xh(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function h5(e,t,r){return typeof e=="function"?e(t,r):e}function cR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function m5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const h=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=R({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),g=R({},r,a,n);return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const i=Xh(R({},a,n)),s=cR(n),u=cR(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),d=R({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=R({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}const Vue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ki(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Se(e,Vue),s=o?{}:h5(n,a),{props:u,internalRef:l}=m5(R({},i,{externalSlotProps:s})),c=rr(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return au(r,R({},u,{ref:c}),a)}const Wue=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Hue=["component","slots","slotProps"],que=["component"];function Kue(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Se(t,Wue),{component:l,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=o;Se(o,Hue);const p=c[e]||n,h=h5(d[e],a),m=m5(R({className:r},u,{externalForwardedProps:void 0,externalSlotProps:h})),{props:{component:g},internalRef:_}=m,x=Se(m.props,que),y=rr(_,h==null?void 0:h.ref,t.ref),b=i?i(x):{},E=R({},a,b),v=g,w=au(p,R({},e==="root",!c[e]&&s,x,v&&{as:v},{ref:y}),E);return Object.keys(b).forEach(S=>{delete w[S]}),[p,w]}function Gue(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,d]=f.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},m=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&d(!0),f.useEffect(()=>{if(!s&&u!=null){const g=setTimeout(u,l);return()=>{clearTimeout(g)}}},[u,s,l]),N.jsx("span",{className:p,style:h,children:N.jsx("span",{className:m})})}const oa=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Que=["center","classes","className"];let wy=e=>e,dR,fR,pR,vR;const px=550,Xue=80,Yue=ri(dR||(dR=wy` + */var yS=Symbol.for("react.element"),bS=Symbol.for("react.portal"),dy=Symbol.for("react.fragment"),fy=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),vy=Symbol.for("react.provider"),hy=Symbol.for("react.context"),Pue=Symbol.for("react.server_context"),my=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),yy=Symbol.for("react.suspense_list"),by=Symbol.for("react.memo"),xy=Symbol.for("react.lazy"),$ue=Symbol.for("react.offscreen"),p5;p5=Symbol.for("react.module.reference");function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yS:switch(e=e.type,e){case dy:case py:case fy:case gy:case yy:return e;default:switch(e=e&&e.$$typeof,e){case Pue:case hy:case my:case xy:case by:case vy:return e;default:return t}}case bS:return t}}}Vt.ContextConsumer=hy;Vt.ContextProvider=vy;Vt.Element=yS;Vt.ForwardRef=my;Vt.Fragment=dy;Vt.Lazy=xy;Vt.Memo=by;Vt.Portal=bS;Vt.Profiler=py;Vt.StrictMode=fy;Vt.Suspense=gy;Vt.SuspenseList=yy;Vt.isAsyncMode=function(){return!1};Vt.isConcurrentMode=function(){return!1};Vt.isContextConsumer=function(e){return Oa(e)===hy};Vt.isContextProvider=function(e){return Oa(e)===vy};Vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yS};Vt.isForwardRef=function(e){return Oa(e)===my};Vt.isFragment=function(e){return Oa(e)===dy};Vt.isLazy=function(e){return Oa(e)===xy};Vt.isMemo=function(e){return Oa(e)===by};Vt.isPortal=function(e){return Oa(e)===bS};Vt.isProfiler=function(e){return Oa(e)===py};Vt.isStrictMode=function(e){return Oa(e)===fy};Vt.isSuspense=function(e){return Oa(e)===gy};Vt.isSuspenseList=function(e){return Oa(e)===yy};Vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===dy||e===py||e===fy||e===gy||e===yy||e===$ue||typeof e=="object"&&e!==null&&(e.$$typeof===xy||e.$$typeof===by||e.$$typeof===vy||e.$$typeof===hy||e.$$typeof===my||e.$$typeof===p5||e.getModuleId!==void 0)};Vt.typeOf=Oa;function Rue(e){return Qe}function dx(e,t){return dx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},dx(e,t)}function v5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dx(e,t)}const uR={disabled:!1},Gh=Pe.createContext(null);var kue=function(t){return t.scrollTop},_d="unmounted",ms="exited",gs="entering",Nl="entered",fx="exiting",za=function(e){v5(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=ms,o.appearStatus=gs):u=Nl:n.unmountOnExit||n.mountOnEnter?u=_d:u=ms,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===_d?{status:ms}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==gs&&i!==Nl&&(o=gs):(i===gs||i===Nl)&&(o=fx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===gs){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:yd.findDOMNode(this);i&&kue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ms&&this.setState({status:_d})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[yd.findDOMNode(this),s],l=u[0],c=u[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!a&&!i||uR.disabled){this.safeSetState({status:Nl},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:gs},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:Nl},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:yd.findDOMNode(this);if(!o||uR.disabled){this.safeSetState({status:ms},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:fx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:ms},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:yd.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===_d)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Se(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Pe.createElement(Gh.Provider,{value:null},typeof i=="function"?i(a,s):Pe.cloneElement(Pe.Children.only(i),s))},t}(Pe.Component);za.contextType=Gh;za.propTypes={};function Il(){}za.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Il,onEntering:Il,onEntered:Il,onExit:Il,onExiting:Il,onExited:Il};za.UNMOUNTED=_d;za.EXITED=ms;za.ENTERING=gs;za.ENTERED=Nl;za.EXITING=fx;function Tue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xS(e,t){var r=function(o){return t&&f.isValidElement(o)?t(o):o},n=Object.create(null);return e&&f.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function jue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function rc(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function Lue(e){return Ke("MuiPaper",e)}qe("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 Nue=["className","component","elevation","square","variant"],Due=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ge(o,Lue,a)},Bue=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return R({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"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",lR(t.elevation))}, ${gt("#fff",lR(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),as=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Se(n,Nue),c=R({},n,{component:o,elevation:i,square:s,variant:u}),d=Due(c);return N.jsx(Bue,R({as:o,ownerState:c,className:ue(d.root,a),ref:r},l))});function Tf(e){return typeof e=="string"}function au(e,t,r){return e===void 0||Tf(e)?t:R({},t,{ownerState:R({},t.ownerState,r)})}const zue={disableDefaultClasses:!1},Uue=f.createContext(zue);function Vue(e){const{disableDefaultClasses:t}=f.useContext(Uue);return r=>t?"":e(r)}function Qh(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function h5(e,t,r){return typeof e=="function"?e(t,r):e}function cR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function m5(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const h=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=R({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),g=R({},r,a,n);return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const i=Qh(R({},a,n)),s=cR(n),u=cR(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),d=R({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=R({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}const Wue=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ki(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Se(e,Wue),s=o?{}:h5(n,a),{props:u,internalRef:l}=m5(R({},i,{externalSlotProps:s})),c=rr(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return au(r,R({},u,{ref:c}),a)}const Hue=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],que=["component","slots","slotProps"],Kue=["component"];function Gue(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Se(t,Hue),{component:l,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=o;Se(o,que);const p=c[e]||n,h=h5(d[e],a),m=m5(R({className:r},u,{externalForwardedProps:void 0,externalSlotProps:h})),{props:{component:g},internalRef:_}=m,x=Se(m.props,Kue),y=rr(_,h==null?void 0:h.ref,t.ref),b=i?i(x):{},E=R({},a,b),v=g,w=au(p,R({},e==="root",!c[e]&&s,x,v&&{as:v},{ref:y}),E);return Object.keys(b).forEach(S=>{delete w[S]}),[p,w]}function Que(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,d]=f.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},m=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&d(!0),f.useEffect(()=>{if(!s&&u!=null){const g=setTimeout(u,l);return()=>{clearTimeout(g)}}},[u,s,l]),N.jsx("span",{className:p,style:h,children:N.jsx("span",{className:m})})}const oa=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xue=["center","classes","className"];let wy=e=>e,dR,fR,pR,vR;const px=550,Yue=80,Jue=ri(dR||(dR=wy` 0% { transform: scale(0); opacity: 0.1; @@ -124,7 +124,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu transform: scale(1); opacity: 0.3; } -`)),Jue=ri(fR||(fR=wy` +`)),Zue=ri(fR||(fR=wy` 0% { opacity: 1; } @@ -132,7 +132,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu 100% { opacity: 0; } -`)),Zue=ri(pR||(pR=wy` +`)),ece=ri(pR||(pR=wy` 0% { transform: scale(1); } @@ -144,7 +144,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu 100% { transform: scale(1); } -`)),ece=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tce=ne(Gue,{name:"MuiTouchRipple",slot:"Ripple"})(vR||(vR=wy` +`)),tce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rce=ne(Que,{name:"MuiTouchRipple",slot:"Ripple"})(vR||(vR=wy` opacity: 0; position: absolute; @@ -187,8 +187,8 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu animation-iteration-count: infinite; animation-delay: 200ms; } -`),oa.rippleVisible,Yue,px,({theme:e})=>e.transitions.easing.easeInOut,oa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,oa.child,oa.childLeaving,Jue,px,({theme:e})=>e.transitions.easing.easeInOut,oa.childPulsate,Zue,({theme:e})=>e.transitions.easing.easeInOut),rce=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Se(n,Que),[u,l]=f.useState([]),c=f.useRef(0),d=f.useRef(null);f.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=f.useRef(!1),h=As(),m=f.useRef(null),g=f.useRef(null),_=f.useCallback(E=>{const{pulsate:v,rippleX:w,rippleY:S,rippleSize:O,cb:C}=E;l(P=>[...P,N.jsx(tce,{classes:{ripple:ue(o.ripple,oa.ripple),rippleVisible:ue(o.rippleVisible,oa.rippleVisible),ripplePulsate:ue(o.ripplePulsate,oa.ripplePulsate),child:ue(o.child,oa.child),childLeaving:ue(o.childLeaving,oa.childLeaving),childPulsate:ue(o.childPulsate,oa.childPulsate)},timeout:px,pulsate:v,rippleX:w,rippleY:S,rippleSize:O},c.current)]),c.current+=1,d.current=C},[o]),x=f.useCallback((E={},v={},w=()=>{})=>{const{pulsate:S=!1,center:O=a||v.pulsate,fakeElement:C=!1}=v;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const P=C?null:g.current,$=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,A,M;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)T=Math.round($.width/2),A=Math.round($.height/2);else{const{clientX:I,clientY:U}=E.touches&&E.touches.length>0?E.touches[0]:E;T=Math.round(I-$.left),A=Math.round(U-$.top)}if(O)M=Math.sqrt((2*$.width**2+$.height**2)/3),M%2===0&&(M+=1);else{const I=Math.max(Math.abs((P?P.clientWidth:0)-T),T)*2+2,U=Math.max(Math.abs((P?P.clientHeight:0)-A),A)*2+2;M=Math.sqrt(I**2+U**2)}E!=null&&E.touches?m.current===null&&(m.current=()=>{_({pulsate:S,rippleX:T,rippleY:A,rippleSize:M,cb:w})},h.start(Xue,()=>{m.current&&(m.current(),m.current=null)})):_({pulsate:S,rippleX:T,rippleY:A,rippleSize:M,cb:w})},[a,_,h]),y=f.useCallback(()=>{x({},{pulsate:!0})},[x]),b=f.useCallback((E,v)=>{if(h.clear(),(E==null?void 0:E.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{b(E,v)});return}m.current=null,l(w=>w.length>0?w.slice(1):w),d.current=v},[h]);return f.useImperativeHandle(r,()=>({pulsate:y,start:x,stop:b}),[y,x,b]),N.jsx(ece,R({className:ue(oa.root,o.root,i),ref:g},s,{children:N.jsx(wS,{component:null,exit:!0,children:u})}))});function nce(e){return Ke("MuiButtonBase",e)}const ace=qe("MuiButtonBase",["root","disabled","focusVisible"]),oce=["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"],ice=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},nce,a);return r&&n&&(i.root+=` ${n}`),i},sce=ne("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"},[`&.${ace.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Go=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:_,onDragLeave:x,onFocus:y,onFocusVisible:b,onKeyDown:E,onKeyUp:v,onMouseDown:w,onMouseLeave:S,onMouseUp:O,onTouchEnd:C,onTouchMove:P,onTouchStart:$,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:M,type:I}=n,U=Se(n,oce),W=f.useRef(null),j=f.useRef(null),V=rr(j,M),{isFocusVisibleRef:J,onFocus:se,onBlur:oe,ref:ve}=uy(),[be,xe]=f.useState(!1);l&&be&&xe(!1),f.useImperativeHandle(a,()=>({focusVisible:()=>{xe(!0),W.current.focus()}}),[]);const[_e,Te]=f.useState(!1);f.useEffect(()=>{Te(!0)},[]);const $e=_e&&!c&&!l;f.useEffect(()=>{be&&p&&!c&&_e&&j.current.pulsate()},[c,p,be,_e]);function Ee(ie,Ie,Xe=d){return ca(Be=>(Ie&&Ie(Be),!Xe&&j.current&&j.current[ie](Be),!0))}const Ve=Ee("start",w),je=Ee("stop",_),De=Ee("stop",x),Fe=Ee("stop",O),He=Ee("stop",ie=>{be&&ie.preventDefault(),S&&S(ie)}),et=Ee("start",$),ft=Ee("stop",C),xt=Ee("stop",P),z=Ee("stop",ie=>{oe(ie),J.current===!1&&xe(!1),m&&m(ie)},!1),X=ca(ie=>{W.current||(W.current=ie.currentTarget),se(ie),J.current===!0&&(xe(!0),b&&b(ie)),y&&y(ie)}),te=()=>{const ie=W.current;return u&&u!=="button"&&!(ie.tagName==="A"&&ie.href)},le=f.useRef(!1),ye=ca(ie=>{p&&!le.current&&be&&j.current&&ie.key===" "&&(le.current=!0,j.current.stop(ie,()=>{j.current.start(ie)})),ie.target===ie.currentTarget&&te()&&ie.key===" "&&ie.preventDefault(),E&&E(ie),ie.target===ie.currentTarget&&te()&&ie.key==="Enter"&&!l&&(ie.preventDefault(),g&&g(ie))}),me=ca(ie=>{p&&ie.key===" "&&j.current&&be&&!ie.defaultPrevented&&(le.current=!1,j.current.stop(ie,()=>{j.current.pulsate(ie)})),v&&v(ie),g&&ie.target===ie.currentTarget&&te()&&ie.key===" "&&!ie.defaultPrevented&&g(ie)});let ge=u;ge==="button"&&(U.href||U.to)&&(ge=h);const Z={};ge==="button"?(Z.type=I===void 0?"button":I,Z.disabled=l):(!U.href&&!U.to&&(Z.role="button"),l&&(Z["aria-disabled"]=l));const K=rr(r,ve,W),Q=R({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:T,focusVisible:be}),re=ice(Q);return N.jsxs(sce,R({as:ge,className:ue(re.root,s),ownerState:Q,onBlur:z,onClick:g,onContextMenu:je,onFocus:X,onKeyDown:ye,onKeyUp:me,onMouseDown:Ve,onMouseLeave:He,onMouseUp:Fe,onDragLeave:De,onTouchEnd:ft,onTouchMove:xt,onTouchStart:et,ref:K,tabIndex:l?-1:T,type:I},Z,U,{children:[i,$e?N.jsx(rce,R({ref:V,center:o},A)):null]}))});function lce(e){return Ke("MuiIconButton",e)}const uce=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cce=["edge","children","className","color","disabled","disableFocusRipple","size"],dce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${de(n)}`,a&&`edge${de(a)}`,`size${de(o)}`]};return Ge(i,lce,t)},fce=ne(Go,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${de(r.color)}`],r.edge&&t[`edge${de(r.edge)}`],t[`size${de(r.size)}`]]}})(({theme:e,ownerState:t})=>R({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})`:gt(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 r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return R({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&R({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":R({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.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)},{[`&.${uce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Tr=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,d=Se(n,cce),p=R({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),h=dce(p);return N.jsx(fce,R({className:ue(h.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},d,{ownerState:p,children:o}))});function pce(e){return Ke("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hce=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${de(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return Ge(s,pce,i)},mce=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${de(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>R({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})),hR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yce=e=>gce[e]||e,xr=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTypography"}),a=yce(n.color),o=Xg(R({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=hR}=o,m=Se(o,vce),g=R({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:d,variant:p,variantMapping:h}),_=u||(d?"p":h[p]||hR[p])||"span",x=hce(g);return N.jsx(mce,R({as:_,ref:r,ownerState:g,className:ue(x.root,s)},m))});function bce(e){return Ke("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const xce=["className","color","enableColorOnDark","position"],wce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${de(t)}`,`position${de(r)}`]};return Ge(a,bce,n)},Gp=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_ce=ne(as,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${de(r.position)}`],t[`color${de(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return R({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&&R({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},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"&&R({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&R({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Gp(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Gp(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:Gp(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Gp(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"}))}),Ece=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Se(n,xce),l=R({},n,{color:o,position:s,enableColorOnDark:i}),c=wce(l);return N.jsx(_ce,R({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),g5="base";function Sce(e){return`${g5}--${e}`}function Oce(e,t){return`${g5}-${e}-${t}`}function y5(e,t){const r=UF[t];return r?Sce(r):Oce(e,t)}function Cce(e,t){const r={};return t.forEach(n=>{r[n]=y5(e,n)}),r}function mR(e){return e.substring(2).toLowerCase()}function Pce(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=rr(t.ref,s),d=ca(m=>{const g=l.current;l.current=!1;const _=jr(s.current);if(!u.current||!s.current||"clientX"in m&&Pce(m,_))return;if(i.current){i.current=!1;return}let x;m.composedPath?x=m.composedPath().indexOf(s.current)>-1:x=!_.documentElement.contains(m.target)||s.current.contains(m.target),!x&&(r||!g)&&a(m)}),p=m=>g=>{l.current=!0;const _=t.props[m];_&&_(g)},h={ref:c};return o!==!1&&(h[o]=p(o)),f.useEffect(()=>{if(o!==!1){const m=mR(o),g=jr(s.current),_=()=>{i.current=!0};return g.addEventListener(m,d),g.addEventListener("touchmove",_),()=>{g.removeEventListener(m,d),g.removeEventListener("touchmove",_)}}},[d,o]),n!==!1&&(h[n]=p(n)),f.useEffect(()=>{if(n!==!1){const m=mR(n),g=jr(s.current);return g.addEventListener(m,d),()=>{g.removeEventListener(m,d)}}},[d,n]),N.jsx(f.Fragment,{children:f.cloneElement(t,h)})}const Rce=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kce(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 Tce(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function jce(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Tce(e))}function Ice(e){const t=[],r=[];return Array.from(e.querySelectorAll(Rce)).forEach((n,a)=>{const o=kce(n);o===-1||!jce(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function Ace(){return!0}function Mce(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=Ice,isEnabled:i=Ace,open:s}=e,u=f.useRef(!1),l=f.useRef(null),c=f.useRef(null),d=f.useRef(null),p=f.useRef(null),h=f.useRef(!1),m=f.useRef(null),g=rr(t.ref,m),_=f.useRef(null);f.useEffect(()=>{!s||!m.current||(h.current=!r)},[r,s]),f.useEffect(()=>{if(!s||!m.current)return;const b=jr(m.current);return m.current.contains(b.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{a||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[s]),f.useEffect(()=>{if(!s||!m.current)return;const b=jr(m.current),E=S=>{_.current=S,!(n||!i()||S.key!=="Tab")&&b.activeElement===m.current&&S.shiftKey&&(u.current=!0,c.current&&c.current.focus())},v=()=>{const S=m.current;if(S===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(S.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let O=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(O=o(m.current)),O.length>0){var C,P;const $=!!((C=_.current)!=null&&C.shiftKey&&((P=_.current)==null?void 0:P.key)==="Tab"),T=O[0],A=O[O.length-1];typeof T!="string"&&typeof A!="string"&&($?A.focus():T.focus())}else S.focus()};b.addEventListener("focusin",v),b.addEventListener("keydown",E,!0);const w=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&v()},50);return()=>{clearInterval(w),b.removeEventListener("focusin",v),b.removeEventListener("keydown",E,!0)}},[r,n,a,i,s,o]);const x=b=>{d.current===null&&(d.current=b.relatedTarget),h.current=!0,p.current=b.target;const E=t.props.onFocus;E&&E(b)},y=b=>{d.current===null&&(d.current=b.relatedTarget),h.current=!0};return N.jsxs(f.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:l,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:g,onFocus:x}),N.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function Fce(e){return typeof e=="function"?e():e}const b5=f.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[i,s]=f.useState(null),u=rr(f.isValidElement(n)?n.ref:null,r);if(ma(()=>{o||s(Fce(a)||document.body)},[a,o]),ma(()=>{if(i&&!o)return qh(r,i),()=>{qh(r,null)}},[r,i,o]),o){if(f.isValidElement(n)){const l={ref:u};return f.cloneElement(n,l)}return N.jsx(f.Fragment,{children:n})}return N.jsx(f.Fragment,{children:i&&Kf.createPortal(n,i)})});function Lce(e){const t=jr(e);return t.body===e?fo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function zd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gR(e){return parseInt(fo(e).getComputedStyle(e).paddingRight,10)||0}function Nce(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function yR(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!Nce(i);s&&u&&zd(i,a)})}function q0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Dce(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Lce(n)){const i=ZF(jr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gR(n)+i}px`;const s=jr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${gR(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=jr(n).body;else{const i=n.parentElement,s=fo(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Bce(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class zce{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&zd(t.modalRef,!1);const a=Bce(r);yR(r,t.mount,t.modalRef,a,!0);const o=q0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=q0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Dce(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=q0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&zd(t.modalRef,r),yR(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&zd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Uce(e){return typeof e=="function"?e():e}function Vce(e){return e?e.props.hasOwnProperty("in"):!1}const Wce=new zce;function Hce(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Wce,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:d}=e,p=f.useRef({}),h=f.useRef(null),m=f.useRef(null),g=rr(m,d),[_,x]=f.useState(!c),y=Vce(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const E=()=>jr(h.current),v=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{a.mount(v(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},S=ca(()=>{const U=Uce(t)||E().body;a.add(v(),U),m.current&&w()}),O=f.useCallback(()=>a.isTopModal(v()),[a]),C=ca(U=>{h.current=U,U&&(c&&O()?w():m.current&&zd(m.current,b))}),P=f.useCallback(()=>{a.remove(v(),b)},[b,a]);f.useEffect(()=>()=>{P()},[P]),f.useEffect(()=>{c?S():(!y||!o)&&P()},[c,P,y,o,S]);const $=U=>W=>{var j;(j=U.onKeyDown)==null||j.call(U,W),!(W.key!=="Escape"||W.which===229||!O())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},T=U=>W=>{var j;(j=U.onClick)==null||j.call(U,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(U={})=>{const W=Xh(e);delete W.onTransitionEnter,delete W.onTransitionExited;const j=R({},W,U);return R({role:"presentation"},j,{onKeyDown:$(j),ref:g})},getBackdropProps:(U={})=>{const W=U;return R({"aria-hidden":!0},W,{onClick:T(W),open:c})},getTransitionProps:()=>{const U=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:sx(U,u==null?void 0:u.props.onEnter),onExited:sx(W,u==null?void 0:u.props.onExited)}},rootRef:g,portalRef:C,isTopModal:O,exited:_,hasTransition:y}}var Tn="top",ya="bottom",ba="right",jn="left",ES="auto",dp=[Tn,ya,ba,jn],nc="start",Tf="end",qce="clippingParents",x5="viewport",od="popper",Kce="reference",bR=dp.reduce(function(e,t){return e.concat([t+"-"+nc,t+"-"+Tf])},[]),w5=[].concat(dp,[ES]).reduce(function(e,t){return e.concat([t,t+"-"+nc,t+"-"+Tf])},[]),Gce="beforeRead",Qce="read",Xce="afterRead",Yce="beforeMain",Jce="main",Zce="afterMain",ede="beforeWrite",tde="write",rde="afterWrite",nde=[Gce,Qce,Xce,Yce,Jce,Zce,ede,tde,rde];function po(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pl(e){var t=Xn(e).Element;return e instanceof t||e instanceof Element}function fa(e){var t=Xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SS(e){if(typeof ShadowRoot>"u")return!1;var t=Xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ade(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!fa(o)||!po(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function ode(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!fa(a)||!po(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const ide={name:"applyStyles",enabled:!0,phase:"write",fn:ade,effect:ode,requires:["computeStyles"]};function co(e){return e.split("-")[0]}var Gs=Math.max,Yh=Math.min,ac=Math.round;function vx(){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 _5(){return!/^((?!chrome|android).)*safari/i.test(vx())}function oc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&fa(e)&&(a=e.offsetWidth>0&&ac(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ac(n.height)/e.offsetHeight||1);var i=pl(e)?Xn(e):window,s=i.visualViewport,u=!_5()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,d=n.width/a,p=n.height/o;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function OS(e){var t=oc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E5(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(e){return Xn(e).getComputedStyle(e)}function sde(e){return["table","td","th"].indexOf(po(e))>=0}function os(e){return((pl(e)?e.ownerDocument:e.document)||window.document).documentElement}function _y(e){return po(e)==="html"?e:e.assignedSlot||e.parentNode||(SS(e)?e.host:null)||os(e)}function xR(e){return!fa(e)||Qo(e).position==="fixed"?null:e.offsetParent}function lde(e){var t=/firefox/i.test(vx()),r=/Trident/i.test(vx());if(r&&fa(e)){var n=Qo(e);if(n.position==="fixed")return null}var a=_y(e);for(SS(a)&&(a=a.host);fa(a)&&["html","body"].indexOf(po(a))<0;){var o=Qo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function fp(e){for(var t=Xn(e),r=xR(e);r&&sde(r)&&Qo(r).position==="static";)r=xR(r);return r&&(po(r)==="html"||po(r)==="body"&&Qo(r).position==="static")?t:r||lde(e)||t}function CS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ud(e,t,r){return Gs(e,Yh(t,r))}function ude(e,t,r){var n=Ud(e,t,r);return n>r?r:n}function S5(){return{top:0,right:0,bottom:0,left:0}}function O5(e){return Object.assign({},S5(),e)}function C5(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var cde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,O5(typeof t!="number"?t:C5(t,dp))};function dde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=co(r.placement),u=CS(s),l=[jn,ba].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var d=cde(a.padding,r),p=OS(o),h=u==="y"?Tn:jn,m=u==="y"?ya:ba,g=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],_=i[u]-r.rects.reference[u],x=fp(o),y=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=g/2-_/2,E=d[h],v=y-p[c]-d[m],w=y/2-p[c]/2+b,S=Ud(E,w,v),O=u;r.modifiersData[n]=(t={},t[O]=S,t.centerOffset=S-w,t)}}function fde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||E5(t.elements.popper,a)&&(t.elements.arrow=a))}const pde={name:"arrow",enabled:!0,phase:"main",fn:dde,effect:fde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ic(e){return e.split("-")[1]}var vde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ac(r*a)/a||0,y:ac(n*a)/a||0}}function wR(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,h=p===void 0?0:p,m=i.y,g=m===void 0?0:m,_=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=_.x,g=_.y;var x=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=jn,E=Tn,v=window;if(l){var w=fp(r),S="clientHeight",O="clientWidth";if(w===Xn(r)&&(w=os(r),Qo(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",O="scrollWidth")),w=w,a===Tn||(a===jn||a===ba)&&o===Tf){E=ya;var C=d&&w===v&&v.visualViewport?v.visualViewport.height:w[S];g-=C-n.height,g*=u?1:-1}if(a===jn||(a===Tn||a===ya)&&o===Tf){b=ba;var P=d&&w===v&&v.visualViewport?v.visualViewport.width:w[O];h-=P-n.width,h*=u?1:-1}}var $=Object.assign({position:s},l&&vde),T=c===!0?hde({x:h,y:g},Xn(r)):{x:h,y:g};if(h=T.x,g=T.y,u){var A;return Object.assign({},$,(A={},A[E]=y?"0":"",A[b]=x?"0":"",A.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},$,(t={},t[E]=y?g+"px":"",t[b]=x?h+"px":"",t.transform="",t))}function mde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:co(t.placement),variation:ic(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wR(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wR(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mde,data:{}};var Qp={passive:!0};function yde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Xn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,Qp)}),s&&u.addEventListener("resize",r.update,Qp),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,Qp)}),s&&u.removeEventListener("resize",r.update,Qp)}}const bde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yde,data:{}};var xde={left:"right",right:"left",bottom:"top",top:"bottom"};function jv(e){return e.replace(/left|right|bottom|top/g,function(t){return xde[t]})}var wde={start:"end",end:"start"};function _R(e){return e.replace(/start|end/g,function(t){return wde[t]})}function PS(e){var t=Xn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function $S(e){return oc(os(e)).left+PS(e).scrollLeft}function _de(e,t){var r=Xn(e),n=os(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=_5();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+$S(e),y:u}}function Ede(e){var t,r=os(e),n=PS(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Gs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Gs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+$S(e),u=-n.scrollTop;return Qo(a||r).direction==="rtl"&&(s+=Gs(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function RS(e){var t=Qo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function P5(e){return["html","body","#document"].indexOf(po(e))>=0?e.ownerDocument.body:fa(e)&&RS(e)?e:P5(_y(e))}function Vd(e,t){var r;t===void 0&&(t=[]);var n=P5(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Xn(n),i=a?[o].concat(o.visualViewport||[],RS(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Vd(_y(i)))}function hx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sde(e,t){var r=oc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ER(e,t,r){return t===x5?hx(_de(e,r)):pl(t)?Sde(t,r):hx(Ede(os(e)))}function Ode(e){var t=Vd(_y(e)),r=["absolute","fixed"].indexOf(Qo(e).position)>=0,n=r&&fa(e)?fp(e):e;return pl(n)?t.filter(function(a){return pl(a)&&E5(a,n)&&po(a)!=="body"}):[]}function Cde(e,t,r,n){var a=t==="clippingParents"?Ode(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=ER(e,l,n);return u.top=Gs(c.top,u.top),u.right=Yh(c.right,u.right),u.bottom=Yh(c.bottom,u.bottom),u.left=Gs(c.left,u.left),u},ER(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function $5(e){var t=e.reference,r=e.element,n=e.placement,a=n?co(n):null,o=n?ic(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ya:u={x:i,y:t.y+t.height};break;case ba:u={x:t.x+t.width,y:s};break;case jn:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CS(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case nc:u[l]=u[l]-(t[c]/2-r[c]/2);break;case Tf:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function jf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?qce:s,l=r.rootBoundary,c=l===void 0?x5:l,d=r.elementContext,p=d===void 0?od:d,h=r.altBoundary,m=h===void 0?!1:h,g=r.padding,_=g===void 0?0:g,x=O5(typeof _!="number"?_:C5(_,dp)),y=p===od?Kce:od,b=e.rects.popper,E=e.elements[m?y:p],v=Cde(pl(E)?E:E.contextElement||os(e.elements.popper),u,c,i),w=oc(e.elements.reference),S=$5({reference:w,element:b,strategy:"absolute",placement:a}),O=hx(Object.assign({},b,S)),C=p===od?O:w,P={top:v.top-C.top+x.top,bottom:C.bottom-v.bottom+x.bottom,left:v.left-C.left+x.left,right:C.right-v.right+x.right},$=e.modifiersData.offset;if(p===od&&$){var T=$[a];Object.keys(P).forEach(function(A){var M=[ba,ya].indexOf(A)>=0?1:-1,I=[Tn,ya].indexOf(A)>=0?"y":"x";P[A]+=T[I]*M})}return P}function Pde(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?w5:u,c=ic(n),d=c?s?bR:bR.filter(function(m){return ic(m)===c}):dp,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,g){return m[g]=jf(e,{placement:g,boundary:a,rootBoundary:o,padding:i})[co(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function $de(e){if(co(e)===ES)return[];var t=jv(e);return[_R(e),t,_R(t)]}function Rde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,g=r.allowedAutoPlacements,_=t.options.placement,x=co(_),y=x===_,b=u||(y||!m?[jv(_)]:$de(_)),E=[_].concat(b).reduce(function(be,xe){return be.concat(co(xe)===ES?Pde(t,{placement:xe,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:g}):xe)},[]),v=t.rects.reference,w=t.rects.popper,S=new Map,O=!0,C=E[0],P=0;P=0,I=M?"width":"height",U=jf(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),W=M?A?ba:jn:A?ya:Tn;v[I]>w[I]&&(W=jv(W));var j=jv(W),V=[];if(o&&V.push(U[T]<=0),s&&V.push(U[W]<=0,U[j]<=0),V.every(function(be){return be})){C=$,O=!1;break}S.set($,V)}if(O)for(var J=m?3:1,se=function(xe){var _e=E.find(function(Te){var $e=S.get(Te);if($e)return $e.slice(0,xe).every(function(Ee){return Ee})});if(_e)return C=_e,"break"},oe=J;oe>0;oe--){var ve=se(oe);if(ve==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}const kde={name:"flip",enabled:!0,phase:"main",fn:Rde,requiresIfExists:["offset"],data:{_skip:!1}};function SR(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function OR(e){return[Tn,ba,ya,jn].some(function(t){return e[t]>=0})}function Tde(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=jf(t,{elementContext:"reference"}),s=jf(t,{altBoundary:!0}),u=SR(i,n),l=SR(s,a,o),c=OR(u),d=OR(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const jde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tde};function Ide(e,t,r){var n=co(e),a=[jn,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[jn,ba].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Ade(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=w5.reduce(function(c,d){return c[d]=Ide(d,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Mde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ade};function Fde(e){var t=e.state,r=e.name;t.modifiersData[r]=$5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Lde={name:"popperOffsets",enabled:!0,phase:"read",fn:Fde,data:{}};function Nde(e){return e==="x"?"y":"x"}function Dde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,h=p===void 0?!0:p,m=r.tetherOffset,g=m===void 0?0:m,_=jf(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),x=co(t.placement),y=ic(t.placement),b=!y,E=CS(x),v=Nde(E),w=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(o){var A,M=E==="y"?Tn:jn,I=E==="y"?ya:ba,U=E==="y"?"height":"width",W=w[E],j=W+_[M],V=W-_[I],J=h?-O[U]/2:0,se=y===nc?S[U]:O[U],oe=y===nc?-O[U]:-S[U],ve=t.elements.arrow,be=h&&ve?OS(ve):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:S5(),_e=xe[M],Te=xe[I],$e=Ud(0,S[U],be[U]),Ee=b?S[U]/2-J-$e-_e-P.mainAxis:se-$e-_e-P.mainAxis,Ve=b?-S[U]/2+J+$e+Te+P.mainAxis:oe+$e+Te+P.mainAxis,je=t.elements.arrow&&fp(t.elements.arrow),De=je?E==="y"?je.clientTop||0:je.clientLeft||0:0,Fe=(A=$==null?void 0:$[E])!=null?A:0,He=W+Ee-Fe-De,et=W+Ve-Fe,ft=Ud(h?Yh(j,He):j,W,h?Gs(V,et):V);w[E]=ft,T[E]=ft-W}if(s){var xt,z=E==="x"?Tn:jn,X=E==="x"?ya:ba,te=w[v],le=v==="y"?"height":"width",ye=te+_[z],me=te-_[X],ge=[Tn,jn].indexOf(x)!==-1,Z=(xt=$==null?void 0:$[v])!=null?xt:0,K=ge?ye:te-S[le]-O[le]-Z+P.altAxis,Q=ge?te+S[le]+O[le]-Z-P.altAxis:me,re=h&&ge?ude(K,te,Q):Ud(h?K:ye,te,h?Q:me);w[v]=re,T[v]=re-te}t.modifiersData[n]=T}}const Bde={name:"preventOverflow",enabled:!0,phase:"main",fn:Dde,requiresIfExists:["offset"]};function zde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ude(e){return e===Xn(e)||!fa(e)?PS(e):zde(e)}function Vde(e){var t=e.getBoundingClientRect(),r=ac(t.width)/e.offsetWidth||1,n=ac(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Wde(e,t,r){r===void 0&&(r=!1);var n=fa(t),a=fa(t)&&Vde(t),o=os(t),i=oc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((po(t)!=="body"||RS(o))&&(s=Ude(t)),fa(t)?(u=oc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=$S(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Hde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function qde(e){var t=Hde(e);return nde.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Kde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Gde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var CR={placement:"bottom",modifiers:[],strategy:"absolute"};function PR(){for(var e=arguments.length,t=new Array(e),r=0;rGe({root:["root"]},Uue(Jde)),afe={},ofe=f.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:g}=t,_=Se(t,Zde),x=f.useRef(null),y=rr(x,r),b=f.useRef(null),E=rr(b,p),v=f.useRef(E);ma(()=>{v.current=E},[E]),f.useImperativeHandle(p,()=>b.current,[]);const w=tfe(c,i),[S,O]=f.useState(w),[C,P]=f.useState(mx(a));f.useEffect(()=>{b.current&&b.current.forceUpdate()}),f.useEffect(()=>{a&&P(mx(a))},[a]),ma(()=>{if(!C||!l)return;const I=j=>{O(j.placement)};let U=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{I(j)}}];u!=null&&(U=U.concat(u)),d&&d.modifiers!=null&&(U=U.concat(d.modifiers));const W=Yde(C,x.current,R({placement:w},d,{modifiers:U}));return v.current(W),()=>{W.destroy(),v.current(null)}},[C,s,u,l,d,w]);const $={placement:S};g!==null&&($.TransitionProps=g);const T=nfe(),A=(n=m.root)!=null?n:"div",M=Ki({elementType:A,externalSlotProps:h.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:T.root});return N.jsx(A,R({},M,{children:typeof o=="function"?o($):o}))}),ife=f.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=afe,popperRef:h,style:m,transition:g=!1,slotProps:_={},slots:x={}}=t,y=Se(t,efe),[b,E]=f.useState(!0),v=()=>{E(!1)},w=()=>{E(!0)};if(!u&&!c&&(!g||b))return null;let S;if(o)S=o;else if(n){const P=mx(n);S=P&&rfe(P)?jr(P).body:jr(null).body}const O=!c&&u&&(!g||b)?"none":void 0,C=g?{in:c,onEnter:v,onExited:w}:void 0;return N.jsx(b5,{disablePortal:s,container:S,children:N.jsx(ofe,R({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:g?!b:c,placement:d,popperOptions:p,popperRef:h,slotProps:_,slots:x},y,{style:R({position:"fixed",top:0,left:0,display:O},m),TransitionProps:C,children:a}))})});function sfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=As();f.useEffect(()=>{if(!a)return;function x(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=ca((x,y)=>{n==null||n(x,y)}),u=ca(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});f.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,d=f.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>y=>{const b=x.onBlur;b==null||b(y),d()},h=x=>y=>{const b=x.onFocus;b==null||b(y),c()},m=x=>y=>{const b=x.onMouseEnter;b==null||b(y),c()},g=x=>y=>{const b=x.onMouseLeave;b==null||b(y),d()};return f.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[r,a,d,c]),{getRootProps:(x={})=>{const y=R({},Xh(e),Xh(x));return R({role:"presentation"},x,y,{onBlur:p(y),onFocus:h(y),onMouseEnter:m(y),onMouseLeave:g(y)})},onClickAway:l}}const lfe=["onChange","maxRows","minRows","style","value"];function Xp(e){return parseInt(e,10)||0}const ufe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function cfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const dfe=f.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Se(t,lfe),{current:l}=f.useRef(s!=null),c=f.useRef(null),d=rr(r,c),p=f.useRef(null),h=f.useCallback(()=>{const _=c.current,y=fo(_).getComputedStyle(_);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=p.current;b.style.width=y.width,b.value=_.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const E=y.boxSizing,v=Xp(y.paddingBottom)+Xp(y.paddingTop),w=Xp(y.borderBottomWidth)+Xp(y.borderTopWidth),S=b.scrollHeight;b.value="x";const O=b.scrollHeight;let C=S;o&&(C=Math.max(Number(o)*O,C)),a&&(C=Math.min(Number(a)*O,C)),C=Math.max(C,O);const P=C+(E==="border-box"?v+w:0),$=Math.abs(C-S)<=1;return{outerHeightStyle:P,overflowing:$}},[a,o,t.placeholder]),m=f.useCallback(()=>{const _=h();if(cfe(_))return;const x=c.current;x.style.height=`${_.outerHeightStyle}px`,x.style.overflow=_.overflowing?"hidden":""},[h]);ma(()=>{const _=()=>{m()};let x;const y=sy(_),b=c.current,E=fo(b);E.addEventListener("resize",y);let v;return typeof ResizeObserver<"u"&&(v=new ResizeObserver(_),v.observe(b)),()=>{y.clear(),cancelAnimationFrame(x),E.removeEventListener("resize",y),v&&v.disconnect()}},[h,m]),ma(()=>{m()});const g=_=>{l||m(),n&&n(_)};return N.jsxs(f.Fragment,{children:[N.jsx("textarea",R({value:s,onChange:g,ref:d,rows:o,style:i},u)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:R({},ufe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var kS={};Object.defineProperty(kS,"__esModule",{value:!0});var k5=kS.default=void 0,ffe=vfe(f),pfe=c5;function T5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(T5=function(n){return n?r:t})(e)}function vfe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=T5(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function hfe(e){return Object.keys(e).length===0}function mfe(e=null){const t=ffe.useContext(pfe.ThemeContext);return!t||hfe(t)?e:t}k5=kS.default=mfe;const gfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],yfe=ne(ife,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j5=f.forwardRef(function(t,r){var n;const a=k5(),o=Qe({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:g,popperOptions:_,popperRef:x,transition:y,slots:b,slotProps:E}=o,v=Se(o,gfe),w=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,S=R({anchorEl:i,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:g,popperOptions:_,popperRef:x,transition:y},v);return N.jsx(yfe,R({as:s,direction:a==null?void 0:a.direction,slots:{root:w},slotProps:E??l},S,{ref:r}))}),bfe=Ln(N.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 xfe(e){return Ke("MuiChip",e)}const Ct=qe("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"]),wfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],_fe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${de(n)}`,`color${de(a)}`,s&&"clickable",s&&`clickableColor${de(a)}`,i&&"deletable",i&&`deletableColor${de(a)}`,`${u}${de(a)}`],label:["label",`label${de(n)}`],avatar:["avatar",`avatar${de(n)}`,`avatarColor${de(a)}`],icon:["icon",`icon${de(n)}`,`iconColor${de(o)}`],deleteIcon:["deleteIcon",`deleteIcon${de(n)}`,`deleteIconColor${de(a)}`,`deleteIcon${de(u)}Color${de(a)}`]};return Ge(l,xfe,t)},Efe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Ct.avatar}`]:t.avatar},{[`& .${Ct.avatar}`]:t[`avatar${de(s)}`]},{[`& .${Ct.avatar}`]:t[`avatarColor${de(n)}`]},{[`& .${Ct.icon}`]:t.icon},{[`& .${Ct.icon}`]:t[`icon${de(s)}`]},{[`& .${Ct.icon}`]:t[`iconColor${de(a)}`]},{[`& .${Ct.deleteIcon}`]:t.deleteIcon},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${de(s)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIconColor${de(n)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${de(u)}Color${de(n)}`]},t.root,t[`size${de(s)}`],t[`color${de(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${de(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${de(n)}`],t[u],t[`${u}${de(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return R({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",[`&.${Ct.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ct.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Ct.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ct.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ct.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ct.icon}`]:R({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&R({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Ct.deleteIcon}`]:R({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(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)`:gt(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)`:gt(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&&{[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>R({},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}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(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, &.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>R({},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]}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ct.avatar}`]:{marginLeft:4},[`& .${Ct.avatarSmall}`]:{marginLeft:2},[`& .${Ct.icon}`]:{marginLeft:4},[`& .${Ct.iconSmall}`]:{marginLeft:2},[`& .${Ct.deleteIcon}`]:{marginRight:5},[`& .${Ct.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)`:gt(e.palette[t.color].main,.7)}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Sfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${de(n)}`]]}})(({ownerState:e})=>R({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 $R(e){return e.key==="Backspace"||e.key==="Delete"}const I5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:_,size:x="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:E=!1}=n,v=Se(n,wfe),w=f.useRef(null),S=rr(w,r),O=V=>{V.stopPropagation(),m&&m(V)},C=V=>{V.currentTarget===V.target&&$R(V)&&V.preventDefault(),g&&g(V)},P=V=>{V.currentTarget===V.target&&(m&&$R(V)?m(V):V.key==="Escape"&&w.current&&w.current.blur()),_&&_(V)},$=i!==!1&&h?!0:i,T=$||m?Go:u||"div",A=R({},n,{component:T,disabled:c,size:x,color:s,iconColor:f.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:$,variant:y}),M=_fe(A),I=T===Go?R({component:u||"div",focusVisibleClassName:M.focusVisible},m&&{disableRipple:!0}):{};let U=null;m&&(U=l&&f.isValidElement(l)?f.cloneElement(l,{className:ue(l.props.className,M.deleteIcon),onClick:O}):N.jsx(bfe,{className:ue(M.deleteIcon),onClick:O}));let W=null;a&&f.isValidElement(a)&&(W=f.cloneElement(a,{className:ue(M.avatar,a.props.className)}));let j=null;return d&&f.isValidElement(d)&&(j=f.cloneElement(d,{className:ue(M.icon,d.props.className)})),N.jsxs(Efe,R({as:T,className:ue(M.root,o),disabled:$&&c?!0:void 0,onClick:h,onKeyDown:C,onKeyUp:P,ref:S,tabIndex:E&&c?-1:b,ownerState:A},I,v,{children:[W||j,N.jsx(Sfe,{className:ue(M.label),ownerState:A,children:p}),U]}))});function Lc({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Ey=f.createContext(void 0);function is(){return f.useContext(Ey)}function Ofe(e){return N.jsx(pse,R({},e,{defaultTheme:cy,themeId:cl}))}function RR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Jh(e,t=!1){return e&&(RR(e.value)&&e.value!==""||t&&RR(e.defaultValue)&&e.defaultValue!=="")}function Cfe(e){return e.startAdornment}function Pfe(e){return Ke("MuiInputBase",e)}const sc=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$fe=["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"],Sy=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${de(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Oy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Rfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${de(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${de(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Ge(g,Pfe,t)},Cy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sy})(({theme:e,ownerState:t})=>R({},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",[`&.${sc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&R({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Py=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Oy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=R({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return R({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${sc.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"})}),kfe=N.jsx(Ofe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$y=f.forwardRef(function(t,r){var n;const a=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:g=!1,id:_,inputComponent:x="input",inputProps:y={},inputRef:b,maxRows:E,minRows:v,multiline:w=!1,name:S,onBlur:O,onChange:C,onClick:P,onFocus:$,onKeyDown:T,onKeyUp:A,placeholder:M,readOnly:I,renderSuffix:U,rows:W,slotProps:j={},slots:V={},startAdornment:J,type:se="text",value:oe}=a,ve=Se(a,$fe),be=y.value!=null?y.value:oe,{current:xe}=f.useRef(be!=null),_e=f.useRef(),Te=f.useCallback(re=>{},[]),$e=rr(_e,b,y.ref,Te),[Ee,Ve]=f.useState(!1),je=is(),De=Lc({props:a,muiFormControl:je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=je?je.focused:Ee,f.useEffect(()=>{!je&&p&&Ee&&(Ve(!1),O&&O())},[je,p,Ee,O]);const Fe=je&&je.onFilled,He=je&&je.onEmpty,et=f.useCallback(re=>{Jh(re)?Fe&&Fe():He&&He()},[Fe,He]);ma(()=>{xe&&et({value:be})},[be,et,xe]);const ft=re=>{if(De.disabled){re.stopPropagation();return}$&&$(re),y.onFocus&&y.onFocus(re),je&&je.onFocus?je.onFocus(re):Ve(!0)},xt=re=>{O&&O(re),y.onBlur&&y.onBlur(re),je&&je.onBlur?je.onBlur(re):Ve(!1)},z=(re,...ie)=>{if(!xe){const Ie=re.target||_e.current;if(Ie==null)throw new Error(Ko(1));et({value:Ie.value})}y.onChange&&y.onChange(re,...ie),C&&C(re,...ie)};f.useEffect(()=>{et(_e.current)},[]);const X=re=>{_e.current&&re.currentTarget===re.target&&_e.current.focus(),P&&P(re)};let te=x,le=y;w&&te==="input"&&(W?le=R({type:void 0,minRows:W,maxRows:W},le):le=R({type:void 0,maxRows:E,minRows:v},le),te=dfe);const ye=re=>{et(re.animationName==="mui-auto-fill-cancel"?_e.current:{value:"x"})};f.useEffect(()=>{je&&je.setAdornedStart(!!J)},[je,J]);const me=R({},a,{color:De.color||"primary",disabled:De.disabled,endAdornment:m,error:De.error,focused:De.focused,formControl:je,fullWidth:g,hiddenLabel:De.hiddenLabel,multiline:w,size:De.size,startAdornment:J,type:se}),ge=Rfe(me),Z=V.root||l.Root||Cy,K=j.root||c.root||{},Q=V.input||l.Input||Py;return le=R({},le,(n=j.input)!=null?n:c.input),N.jsxs(f.Fragment,{children:[!h&&kfe,N.jsxs(Z,R({},K,!kf(Z)&&{ownerState:R({},me,K.ownerState)},{ref:r,onClick:X},ve,{className:ue(ge.root,K.className,u,I&&"MuiInputBase-readOnly"),children:[J,N.jsx(Ey.Provider,{value:null,children:N.jsx(Q,R({ownerState:me,"aria-invalid":De.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:De.disabled,id:_,onAnimationStart:ye,name:S,placeholder:M,readOnly:I,required:De.required,rows:W,value:be,onKeyDown:T,onKeyUp:A,type:se},le,!kf(Q)&&{as:te,ownerState:R({},me,le.ownerState)},{ref:$e,className:ue(ge.input,le.className,I&&"MuiInputBase-readOnly"),onBlur:xt,onChange:z,onFocus:ft}))}),m,U?U(R({},De,{startAdornment:J})):null]}))]})});function Tfe(e){return Ke("MuiInput",e)}const id=R({},sc,qe("MuiInput",["root","underline","input"]));function jfe(e){return Ke("MuiOutlinedInput",e)}const ci=R({},sc,qe("MuiOutlinedInput",["root","notchedOutline","input"]));function Ife(e){return Ke("MuiFilledInput",e)}const cs=R({},sc,qe("MuiFilledInput",["root","underline","input"])),Afe=Ln(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Mfe=Ln(N.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Ffe(e){return Ke("MuiAvatar",e)}qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Lfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Nfe=$ue(),Dfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ge({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Ffe,t)},Bfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:R({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:R({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),zfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Ufe=ne(Mfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Vfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=f.useState(!1);return f.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const gx=f.forwardRef(function(t,r){const n=Nfe({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:d,src:p,srcSet:h,variant:m="circular"}=n,g=Se(n,Lfe);let _=null;const x=Vfe(R({},c,{src:p,srcSet:h})),y=p||h,b=y&&x!=="error",E=R({},n,{colorDefault:!b,component:s,variant:m}),v=Dfe(E),[w,S]=Kue("img",{className:v.img,elementType:zfe,externalForwardedProps:{slots:u,slotProps:{img:R({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:h,sizes:d},ownerState:E});return b?_=N.jsx(w,R({},S)):o||o===0?_=o:y&&a?_=a[0]:_=N.jsx(Ufe,{ownerState:E,className:v.fallback}),N.jsx(Bfe,R({as:s,ownerState:E,className:ue(v.root,i),ref:r},g,{children:_}))}),Wfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hfe={entering:{opacity:1},entered:{opacity:1}},A5=f.forwardRef(function(t,r){const n=ni(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:g,style:_,timeout:x=a,TransitionComponent:y=za}=t,b=Se(t,Wfe),E=f.useRef(null),v=rr(E,s.ref,r),w=M=>I=>{if(M){const U=E.current;I===void 0?M(U):M(U,I)}},S=w(p),O=w((M,I)=>{_S(M);const U=rc({style:_,timeout:x,easing:u},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",U),M.style.transition=n.transitions.create("opacity",U),c&&c(M,I)}),C=w(d),P=w(g),$=w(M=>{const I=rc({style:_,timeout:x,easing:u},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",I),M.style.transition=n.transitions.create("opacity",I),h&&h(M)}),T=w(m),A=M=>{o&&o(E.current,M)};return N.jsx(y,R({appear:i,in:l,nodeRef:E,onEnter:O,onEntered:C,onEntering:S,onExit:$,onExited:T,onExiting:P,addEndListener:A,timeout:x},b,{children:(M,I)=>f.cloneElement(s,R({style:R({opacity:0,visibility:M==="exited"&&!l?"hidden":void 0},Hfe[M],_,s.props.style),ref:v},I))}))});function qfe(e){return Ke("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const Kfe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gfe=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},qfe,t)},Qfe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>R({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"})),M5=f.forwardRef(function(t,r){var n,a,o;const i=Qe({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:g={},TransitionComponent:_=A5,transitionDuration:x}=i,y=Se(i,Kfe),b=R({},i,{component:l,invisible:p}),E=Gfe(b),v=(n=m.root)!=null?n:d.root;return N.jsx(_,R({in:h,timeout:x},y,{children:N.jsx(Qfe,R({"aria-hidden":!0},v,{as:(a=(o=g.root)!=null?o:c.Root)!=null?a:l,className:ue(E.root,u,v==null?void 0:v.className),ownerState:R({},b,v==null?void 0:v.ownerState),classes:E,ref:r,children:s}))}))}),Xfe=qe("MuiBox",["root"]),Yfe=Gh(),F5=bse({themeId:cl,defaultTheme:Yfe,defaultClassName:Xfe.root,generateClassName:lS.generate});function Jfe(e){return Ke("MuiButton",e)}const Yp=qe("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"]),Zfe=f.createContext({}),epe=f.createContext(void 0),tpe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rpe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${de(t)}`,`size${de(a)}`,`${o}Size${de(a)}`,`color${de(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${de(a)}`],endIcon:["icon","endIcon",`iconSize${de(a)}`]},u=Ge(s,Jfe,i);return R({},i,u)},L5=e=>R({},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}}),npe=ne(Go,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${de(r.color)}`],t[`size${de(r.size)}`],t[`${r.variant}Size${de(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return R({},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":R({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(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})`:gt(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})`:gt(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:o,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":R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Yp.focusVisible}`]:R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Yp.disabled}`]:R({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 ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,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"},[`&.${Yp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yp.disabled}`]:{boxShadow:"none"}}),ape=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${de(r.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},L5(e))),ope=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${de(r.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},L5(e))),An=f.forwardRef(function(t,r){const n=f.useContext(Zfe),a=f.useContext(epe),o=dS(n,t),i=Qe({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:_=!1,size:x="medium",startIcon:y,type:b,variant:E="text"}=i,v=Se(i,tpe),w=R({},i,{color:u,component:l,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:_,size:x,type:b,variant:E}),S=rpe(w),O=y&&N.jsx(ape,{className:S.startIcon,ownerState:w,children:y}),C=m&&N.jsx(ope,{className:S.endIcon,ownerState:w,children:m}),P=a||"";return N.jsxs(npe,R({ownerState:w,className:ue(n.className,S.root,c,P),component:l,disabled:d,focusRipple:!h,focusVisibleClassName:ue(S.focusVisible,g),ref:r,type:b},v,{classes:S,children:[O,s,C]}))});function ipe(e){return Ke("MuiCard",e)}qe("MuiCard",["root"]);const spe=["className","raised"],lpe=e=>{const{classes:t}=e;return Ge({root:["root"]},ipe,t)},upe=ne(as,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),pp=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Se(n,spe),s=R({},n,{raised:o}),u=lpe(s);return N.jsx(upe,R({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))});function cpe(e){return Ke("MuiCardContent",e)}qe("MuiCardContent",["root"]);const dpe=["className","component"],fpe=e=>{const{classes:t}=e;return Ge({root:["root"]},cpe,t)},ppe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ry=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Se(n,dpe),s=R({},n,{component:o}),u=fpe(s);return N.jsx(ppe,R({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))});function vpe(e){return Ke("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${de(a)}`],input:["input"]};return Ge(o,vpe,t)},gpe=ne(Go)(({ownerState:e})=>R({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ype=ne("input",{shouldForwardProp:Kr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bpe=f.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:g,onBlur:_,onChange:x,onFocus:y,readOnly:b,required:E=!1,tabIndex:v,type:w,value:S}=t,O=Se(t,hpe),[C,P]=tc({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),$=is(),T=V=>{y&&y(V),$&&$.onFocus&&$.onFocus(V)},A=V=>{_&&_(V),$&&$.onBlur&&$.onBlur(V)},M=V=>{if(V.nativeEvent.defaultPrevented)return;const J=V.target.checked;P(J),x&&x(V,J)};let I=u;$&&typeof I>"u"&&(I=$.disabled);const U=w==="checkbox"||w==="radio",W=R({},t,{checked:C,disabled:I,disableFocusRipple:l,edge:c}),j=mpe(W);return N.jsxs(gpe,R({component:"span",className:ue(j.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:T,onBlur:A,ownerState:W,ref:r},O,{children:[N.jsx(ype,R({autoFocus:n,checked:a,defaultChecked:s,className:j.input,disabled:I,id:U?p:void 0,name:g,onChange:M,readOnly:b,ref:m,required:E,ownerState:W,tabIndex:v,type:w},w==="checkbox"&&S===void 0?{}:{value:S},h)),C?o:d]}))}),xpe=Ln(N.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"),wpe=Ln(N.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"),_pe=Ln(N.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 Epe(e){return Ke("MuiCheckbox",e)}const K0=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Spe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ope=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${de(n)}`,`size${de(a)}`]},i=Ge(o,Epe,t);return R({},t,i)},Cpe=ne(bpe,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${de(r.size)}`],r.color!=="default"&&t[`color${de(r.color)}`]]}})(({theme:e,ownerState:t})=>R({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})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${K0.checked}, &.${K0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${K0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Ppe=N.jsx(wpe,{}),$pe=N.jsx(xpe,{}),Rpe=N.jsx(_pe,{}),Zh=f.forwardRef(function(t,r){var n,a;const o=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=Ppe,color:s="primary",icon:u=$pe,indeterminate:l=!1,indeterminateIcon:c=Rpe,inputProps:d,size:p="medium",className:h}=o,m=Se(o,Spe),g=l?c:u,_=l?c:i,x=R({},o,{color:s,indeterminate:l,size:p}),y=Ope(x);return N.jsx(Cpe,R({type:"checkbox",inputProps:R({"data-indeterminate":l},d),icon:f.cloneElement(g,{fontSize:(n=g.props.fontSize)!=null?n:p}),checkedIcon:f.cloneElement(_,{fontSize:(a=_.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(y.root,h)},m,{classes:y}))});function kpe(e){return Ke("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Tpe=["className","color","disableShrink","size","style","thickness","value","variant"];let ky=e=>e,kR,TR,jR,IR;const di=44,jpe=ri(kR||(kR=ky` +`),oa.rippleVisible,Jue,px,({theme:e})=>e.transitions.easing.easeInOut,oa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,oa.child,oa.childLeaving,Zue,px,({theme:e})=>e.transitions.easing.easeInOut,oa.childPulsate,ece,({theme:e})=>e.transitions.easing.easeInOut),nce=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Se(n,Xue),[u,l]=f.useState([]),c=f.useRef(0),d=f.useRef(null);f.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=f.useRef(!1),h=As(),m=f.useRef(null),g=f.useRef(null),_=f.useCallback(E=>{const{pulsate:v,rippleX:w,rippleY:S,rippleSize:O,cb:C}=E;l(P=>[...P,N.jsx(rce,{classes:{ripple:ue(o.ripple,oa.ripple),rippleVisible:ue(o.rippleVisible,oa.rippleVisible),ripplePulsate:ue(o.ripplePulsate,oa.ripplePulsate),child:ue(o.child,oa.child),childLeaving:ue(o.childLeaving,oa.childLeaving),childPulsate:ue(o.childPulsate,oa.childPulsate)},timeout:px,pulsate:v,rippleX:w,rippleY:S,rippleSize:O},c.current)]),c.current+=1,d.current=C},[o]),x=f.useCallback((E={},v={},w=()=>{})=>{const{pulsate:S=!1,center:O=a||v.pulsate,fakeElement:C=!1}=v;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const P=C?null:g.current,$=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,A,M;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)T=Math.round($.width/2),A=Math.round($.height/2);else{const{clientX:I,clientY:U}=E.touches&&E.touches.length>0?E.touches[0]:E;T=Math.round(I-$.left),A=Math.round(U-$.top)}if(O)M=Math.sqrt((2*$.width**2+$.height**2)/3),M%2===0&&(M+=1);else{const I=Math.max(Math.abs((P?P.clientWidth:0)-T),T)*2+2,U=Math.max(Math.abs((P?P.clientHeight:0)-A),A)*2+2;M=Math.sqrt(I**2+U**2)}E!=null&&E.touches?m.current===null&&(m.current=()=>{_({pulsate:S,rippleX:T,rippleY:A,rippleSize:M,cb:w})},h.start(Yue,()=>{m.current&&(m.current(),m.current=null)})):_({pulsate:S,rippleX:T,rippleY:A,rippleSize:M,cb:w})},[a,_,h]),y=f.useCallback(()=>{x({},{pulsate:!0})},[x]),b=f.useCallback((E,v)=>{if(h.clear(),(E==null?void 0:E.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{b(E,v)});return}m.current=null,l(w=>w.length>0?w.slice(1):w),d.current=v},[h]);return f.useImperativeHandle(r,()=>({pulsate:y,start:x,stop:b}),[y,x,b]),N.jsx(tce,R({className:ue(oa.root,o.root,i),ref:g},s,{children:N.jsx(wS,{component:null,exit:!0,children:u})}))});function ace(e){return Ke("MuiButtonBase",e)}const oce=qe("MuiButtonBase",["root","disabled","focusVisible"]),ice=["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"],sce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=Ge({root:["root",t&&"disabled",r&&"focusVisible"]},ace,a);return r&&n&&(i.root+=` ${n}`),i},lce=ne("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"},[`&.${oce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Go=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:_,onDragLeave:x,onFocus:y,onFocusVisible:b,onKeyDown:E,onKeyUp:v,onMouseDown:w,onMouseLeave:S,onMouseUp:O,onTouchEnd:C,onTouchMove:P,onTouchStart:$,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:M,type:I}=n,U=Se(n,ice),W=f.useRef(null),j=f.useRef(null),V=rr(j,M),{isFocusVisibleRef:J,onFocus:se,onBlur:oe,ref:ve}=uy(),[be,xe]=f.useState(!1);l&&be&&xe(!1),f.useImperativeHandle(a,()=>({focusVisible:()=>{xe(!0),W.current.focus()}}),[]);const[_e,Te]=f.useState(!1);f.useEffect(()=>{Te(!0)},[]);const $e=_e&&!c&&!l;f.useEffect(()=>{be&&p&&!c&&_e&&j.current.pulsate()},[c,p,be,_e]);function Ee(ie,Ie,Xe=d){return ca(Be=>(Ie&&Ie(Be),!Xe&&j.current&&j.current[ie](Be),!0))}const Ve=Ee("start",w),je=Ee("stop",_),De=Ee("stop",x),Fe=Ee("stop",O),He=Ee("stop",ie=>{be&&ie.preventDefault(),S&&S(ie)}),et=Ee("start",$),ft=Ee("stop",C),xt=Ee("stop",P),z=Ee("stop",ie=>{oe(ie),J.current===!1&&xe(!1),m&&m(ie)},!1),X=ca(ie=>{W.current||(W.current=ie.currentTarget),se(ie),J.current===!0&&(xe(!0),b&&b(ie)),y&&y(ie)}),te=()=>{const ie=W.current;return u&&u!=="button"&&!(ie.tagName==="A"&&ie.href)},le=f.useRef(!1),ye=ca(ie=>{p&&!le.current&&be&&j.current&&ie.key===" "&&(le.current=!0,j.current.stop(ie,()=>{j.current.start(ie)})),ie.target===ie.currentTarget&&te()&&ie.key===" "&&ie.preventDefault(),E&&E(ie),ie.target===ie.currentTarget&&te()&&ie.key==="Enter"&&!l&&(ie.preventDefault(),g&&g(ie))}),me=ca(ie=>{p&&ie.key===" "&&j.current&&be&&!ie.defaultPrevented&&(le.current=!1,j.current.stop(ie,()=>{j.current.pulsate(ie)})),v&&v(ie),g&&ie.target===ie.currentTarget&&te()&&ie.key===" "&&!ie.defaultPrevented&&g(ie)});let ge=u;ge==="button"&&(U.href||U.to)&&(ge=h);const Z={};ge==="button"?(Z.type=I===void 0?"button":I,Z.disabled=l):(!U.href&&!U.to&&(Z.role="button"),l&&(Z["aria-disabled"]=l));const K=rr(r,ve,W),Q=R({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:T,focusVisible:be}),re=sce(Q);return N.jsxs(lce,R({as:ge,className:ue(re.root,s),ownerState:Q,onBlur:z,onClick:g,onContextMenu:je,onFocus:X,onKeyDown:ye,onKeyUp:me,onMouseDown:Ve,onMouseLeave:He,onMouseUp:Fe,onDragLeave:De,onTouchEnd:ft,onTouchMove:xt,onTouchStart:et,ref:K,tabIndex:l?-1:T,type:I},Z,U,{children:[i,$e?N.jsx(nce,R({ref:V,center:o},A)):null]}))});function uce(e){return Ke("MuiIconButton",e)}const cce=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dce=["edge","children","className","color","disabled","disableFocusRipple","size"],fce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${de(n)}`,a&&`edge${de(a)}`,`size${de(o)}`]};return Ge(i,uce,t)},pce=ne(Go,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${de(r.color)}`],r.edge&&t[`edge${de(r.edge)}`],t[`size${de(r.size)}`]]}})(({theme:e,ownerState:t})=>R({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})`:gt(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 r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return R({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&R({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":R({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(n.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)},{[`&.${cce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Tr=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,d=Se(n,dce),p=R({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),h=fce(p);return N.jsx(pce,R({className:ue(h.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},d,{ownerState:p,children:o}))});function vce(e){return Ke("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mce=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${de(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return Ge(s,vce,i)},gce=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${de(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>R({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})),hR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bce=e=>yce[e]||e,xr=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTypography"}),a=bce(n.color),o=Xg(R({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=hR}=o,m=Se(o,hce),g=R({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:d,variant:p,variantMapping:h}),_=u||(d?"p":h[p]||hR[p])||"span",x=mce(g);return N.jsx(gce,R({as:_,ref:r,ownerState:g,className:ue(x.root,s)},m))});function xce(e){return Ke("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const wce=["className","color","enableColorOnDark","position"],_ce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${de(t)}`,`position${de(r)}`]};return Ge(a,xce,n)},Gp=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Ece=ne(as,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${de(r.position)}`],t[`color${de(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return R({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&&R({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},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"&&R({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&R({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Gp(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Gp(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:Gp(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Gp(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"}))}),Sce=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Se(n,wce),l=R({},n,{color:o,position:s,enableColorOnDark:i}),c=_ce(l);return N.jsx(Ece,R({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),g5="base";function Oce(e){return`${g5}--${e}`}function Cce(e,t){return`${g5}-${e}-${t}`}function y5(e,t){const r=UF[t];return r?Oce(r):Cce(e,t)}function Pce(e,t){const r={};return t.forEach(n=>{r[n]=y5(e,n)}),r}function mR(e){return e.substring(2).toLowerCase()}function $ce(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=rr(t.ref,s),d=ca(m=>{const g=l.current;l.current=!1;const _=jr(s.current);if(!u.current||!s.current||"clientX"in m&&$ce(m,_))return;if(i.current){i.current=!1;return}let x;m.composedPath?x=m.composedPath().indexOf(s.current)>-1:x=!_.documentElement.contains(m.target)||s.current.contains(m.target),!x&&(r||!g)&&a(m)}),p=m=>g=>{l.current=!0;const _=t.props[m];_&&_(g)},h={ref:c};return o!==!1&&(h[o]=p(o)),f.useEffect(()=>{if(o!==!1){const m=mR(o),g=jr(s.current),_=()=>{i.current=!0};return g.addEventListener(m,d),g.addEventListener("touchmove",_),()=>{g.removeEventListener(m,d),g.removeEventListener("touchmove",_)}}},[d,o]),n!==!1&&(h[n]=p(n)),f.useEffect(()=>{if(n!==!1){const m=mR(n),g=jr(s.current);return g.addEventListener(m,d),()=>{g.removeEventListener(m,d)}}},[d,n]),N.jsx(f.Fragment,{children:f.cloneElement(t,h)})}const kce=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Tce(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 jce(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Ice(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jce(e))}function Ace(e){const t=[],r=[];return Array.from(e.querySelectorAll(kce)).forEach((n,a)=>{const o=Tce(n);o===-1||!Ice(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function Mce(){return!0}function Fce(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=Ace,isEnabled:i=Mce,open:s}=e,u=f.useRef(!1),l=f.useRef(null),c=f.useRef(null),d=f.useRef(null),p=f.useRef(null),h=f.useRef(!1),m=f.useRef(null),g=rr(t.ref,m),_=f.useRef(null);f.useEffect(()=>{!s||!m.current||(h.current=!r)},[r,s]),f.useEffect(()=>{if(!s||!m.current)return;const b=jr(m.current);return m.current.contains(b.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{a||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[s]),f.useEffect(()=>{if(!s||!m.current)return;const b=jr(m.current),E=S=>{_.current=S,!(n||!i()||S.key!=="Tab")&&b.activeElement===m.current&&S.shiftKey&&(u.current=!0,c.current&&c.current.focus())},v=()=>{const S=m.current;if(S===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(S.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let O=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(O=o(m.current)),O.length>0){var C,P;const $=!!((C=_.current)!=null&&C.shiftKey&&((P=_.current)==null?void 0:P.key)==="Tab"),T=O[0],A=O[O.length-1];typeof T!="string"&&typeof A!="string"&&($?A.focus():T.focus())}else S.focus()};b.addEventListener("focusin",v),b.addEventListener("keydown",E,!0);const w=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&v()},50);return()=>{clearInterval(w),b.removeEventListener("focusin",v),b.removeEventListener("keydown",E,!0)}},[r,n,a,i,s,o]);const x=b=>{d.current===null&&(d.current=b.relatedTarget),h.current=!0,p.current=b.target;const E=t.props.onFocus;E&&E(b)},y=b=>{d.current===null&&(d.current=b.relatedTarget),h.current=!0};return N.jsxs(f.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:l,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:g,onFocus:x}),N.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function Lce(e){return typeof e=="function"?e():e}const b5=f.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[i,s]=f.useState(null),u=rr(f.isValidElement(n)?n.ref:null,r);if(ma(()=>{o||s(Lce(a)||document.body)},[a,o]),ma(()=>{if(i&&!o)return Hh(r,i),()=>{Hh(r,null)}},[r,i,o]),o){if(f.isValidElement(n)){const l={ref:u};return f.cloneElement(n,l)}return N.jsx(f.Fragment,{children:n})}return N.jsx(f.Fragment,{children:i&&Gf.createPortal(n,i)})});function Nce(e){const t=jr(e);return t.body===e?fo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ud(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gR(e){return parseInt(fo(e).getComputedStyle(e).paddingRight,10)||0}function Dce(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function yR(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!Dce(i);s&&u&&Ud(i,a)})}function q0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Bce(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Nce(n)){const i=ZF(jr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gR(n)+i}px`;const s=jr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${gR(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=jr(n).body;else{const i=n.parentElement,s=fo(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function zce(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Uce{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Ud(t.modalRef,!1);const a=zce(r);yR(r,t.mount,t.modalRef,a,!0);const o=q0(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=q0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Bce(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=q0(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Ud(t.modalRef,r),yR(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Ud(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Vce(e){return typeof e=="function"?e():e}function Wce(e){return e?e.props.hasOwnProperty("in"):!1}const Hce=new Uce;function qce(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Hce,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:d}=e,p=f.useRef({}),h=f.useRef(null),m=f.useRef(null),g=rr(m,d),[_,x]=f.useState(!c),y=Wce(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const E=()=>jr(h.current),v=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{a.mount(v(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},S=ca(()=>{const U=Vce(t)||E().body;a.add(v(),U),m.current&&w()}),O=f.useCallback(()=>a.isTopModal(v()),[a]),C=ca(U=>{h.current=U,U&&(c&&O()?w():m.current&&Ud(m.current,b))}),P=f.useCallback(()=>{a.remove(v(),b)},[b,a]);f.useEffect(()=>()=>{P()},[P]),f.useEffect(()=>{c?S():(!y||!o)&&P()},[c,P,y,o,S]);const $=U=>W=>{var j;(j=U.onKeyDown)==null||j.call(U,W),!(W.key!=="Escape"||W.which===229||!O())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},T=U=>W=>{var j;(j=U.onClick)==null||j.call(U,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(U={})=>{const W=Qh(e);delete W.onTransitionEnter,delete W.onTransitionExited;const j=R({},W,U);return R({role:"presentation"},j,{onKeyDown:$(j),ref:g})},getBackdropProps:(U={})=>{const W=U;return R({"aria-hidden":!0},W,{onClick:T(W),open:c})},getTransitionProps:()=>{const U=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:sx(U,u==null?void 0:u.props.onEnter),onExited:sx(W,u==null?void 0:u.props.onExited)}},rootRef:g,portalRef:C,isTopModal:O,exited:_,hasTransition:y}}var Tn="top",ya="bottom",ba="right",jn="left",ES="auto",dp=[Tn,ya,ba,jn],nc="start",jf="end",Kce="clippingParents",x5="viewport",od="popper",Gce="reference",bR=dp.reduce(function(e,t){return e.concat([t+"-"+nc,t+"-"+jf])},[]),w5=[].concat(dp,[ES]).reduce(function(e,t){return e.concat([t,t+"-"+nc,t+"-"+jf])},[]),Qce="beforeRead",Xce="read",Yce="afterRead",Jce="beforeMain",Zce="main",ede="afterMain",tde="beforeWrite",rde="write",nde="afterWrite",ade=[Qce,Xce,Yce,Jce,Zce,ede,tde,rde,nde];function po(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pl(e){var t=Xn(e).Element;return e instanceof t||e instanceof Element}function fa(e){var t=Xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SS(e){if(typeof ShadowRoot>"u")return!1;var t=Xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ode(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!fa(o)||!po(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function ide(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!fa(a)||!po(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const sde={name:"applyStyles",enabled:!0,phase:"write",fn:ode,effect:ide,requires:["computeStyles"]};function co(e){return e.split("-")[0]}var Gs=Math.max,Xh=Math.min,ac=Math.round;function vx(){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 _5(){return!/^((?!chrome|android).)*safari/i.test(vx())}function oc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&fa(e)&&(a=e.offsetWidth>0&&ac(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ac(n.height)/e.offsetHeight||1);var i=pl(e)?Xn(e):window,s=i.visualViewport,u=!_5()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,d=n.width/a,p=n.height/o;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function OS(e){var t=oc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E5(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Qo(e){return Xn(e).getComputedStyle(e)}function lde(e){return["table","td","th"].indexOf(po(e))>=0}function os(e){return((pl(e)?e.ownerDocument:e.document)||window.document).documentElement}function _y(e){return po(e)==="html"?e:e.assignedSlot||e.parentNode||(SS(e)?e.host:null)||os(e)}function xR(e){return!fa(e)||Qo(e).position==="fixed"?null:e.offsetParent}function ude(e){var t=/firefox/i.test(vx()),r=/Trident/i.test(vx());if(r&&fa(e)){var n=Qo(e);if(n.position==="fixed")return null}var a=_y(e);for(SS(a)&&(a=a.host);fa(a)&&["html","body"].indexOf(po(a))<0;){var o=Qo(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function fp(e){for(var t=Xn(e),r=xR(e);r&&lde(r)&&Qo(r).position==="static";)r=xR(r);return r&&(po(r)==="html"||po(r)==="body"&&Qo(r).position==="static")?t:r||ude(e)||t}function CS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vd(e,t,r){return Gs(e,Xh(t,r))}function cde(e,t,r){var n=Vd(e,t,r);return n>r?r:n}function S5(){return{top:0,right:0,bottom:0,left:0}}function O5(e){return Object.assign({},S5(),e)}function C5(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var dde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,O5(typeof t!="number"?t:C5(t,dp))};function fde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=co(r.placement),u=CS(s),l=[jn,ba].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var d=dde(a.padding,r),p=OS(o),h=u==="y"?Tn:jn,m=u==="y"?ya:ba,g=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],_=i[u]-r.rects.reference[u],x=fp(o),y=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=g/2-_/2,E=d[h],v=y-p[c]-d[m],w=y/2-p[c]/2+b,S=Vd(E,w,v),O=u;r.modifiersData[n]=(t={},t[O]=S,t.centerOffset=S-w,t)}}function pde(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||E5(t.elements.popper,a)&&(t.elements.arrow=a))}const vde={name:"arrow",enabled:!0,phase:"main",fn:fde,effect:pde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ic(e){return e.split("-")[1]}var hde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ac(r*a)/a||0,y:ac(n*a)/a||0}}function wR(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,h=p===void 0?0:p,m=i.y,g=m===void 0?0:m,_=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=_.x,g=_.y;var x=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=jn,E=Tn,v=window;if(l){var w=fp(r),S="clientHeight",O="clientWidth";if(w===Xn(r)&&(w=os(r),Qo(w).position!=="static"&&s==="absolute"&&(S="scrollHeight",O="scrollWidth")),w=w,a===Tn||(a===jn||a===ba)&&o===jf){E=ya;var C=d&&w===v&&v.visualViewport?v.visualViewport.height:w[S];g-=C-n.height,g*=u?1:-1}if(a===jn||(a===Tn||a===ya)&&o===jf){b=ba;var P=d&&w===v&&v.visualViewport?v.visualViewport.width:w[O];h-=P-n.width,h*=u?1:-1}}var $=Object.assign({position:s},l&&hde),T=c===!0?mde({x:h,y:g},Xn(r)):{x:h,y:g};if(h=T.x,g=T.y,u){var A;return Object.assign({},$,(A={},A[E]=y?"0":"",A[b]=x?"0":"",A.transform=(v.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},$,(t={},t[E]=y?g+"px":"",t[b]=x?h+"px":"",t.transform="",t))}function gde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:co(t.placement),variation:ic(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wR(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wR(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gde,data:{}};var Qp={passive:!0};function bde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Xn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,Qp)}),s&&u.addEventListener("resize",r.update,Qp),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,Qp)}),s&&u.removeEventListener("resize",r.update,Qp)}}const xde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bde,data:{}};var wde={left:"right",right:"left",bottom:"top",top:"bottom"};function Tv(e){return e.replace(/left|right|bottom|top/g,function(t){return wde[t]})}var _de={start:"end",end:"start"};function _R(e){return e.replace(/start|end/g,function(t){return _de[t]})}function PS(e){var t=Xn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function $S(e){return oc(os(e)).left+PS(e).scrollLeft}function Ede(e,t){var r=Xn(e),n=os(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=_5();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+$S(e),y:u}}function Sde(e){var t,r=os(e),n=PS(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Gs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Gs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+$S(e),u=-n.scrollTop;return Qo(a||r).direction==="rtl"&&(s+=Gs(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function RS(e){var t=Qo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function P5(e){return["html","body","#document"].indexOf(po(e))>=0?e.ownerDocument.body:fa(e)&&RS(e)?e:P5(_y(e))}function Wd(e,t){var r;t===void 0&&(t=[]);var n=P5(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Xn(n),i=a?[o].concat(o.visualViewport||[],RS(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Wd(_y(i)))}function hx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ode(e,t){var r=oc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ER(e,t,r){return t===x5?hx(Ede(e,r)):pl(t)?Ode(t,r):hx(Sde(os(e)))}function Cde(e){var t=Wd(_y(e)),r=["absolute","fixed"].indexOf(Qo(e).position)>=0,n=r&&fa(e)?fp(e):e;return pl(n)?t.filter(function(a){return pl(a)&&E5(a,n)&&po(a)!=="body"}):[]}function Pde(e,t,r,n){var a=t==="clippingParents"?Cde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=ER(e,l,n);return u.top=Gs(c.top,u.top),u.right=Xh(c.right,u.right),u.bottom=Xh(c.bottom,u.bottom),u.left=Gs(c.left,u.left),u},ER(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function $5(e){var t=e.reference,r=e.element,n=e.placement,a=n?co(n):null,o=n?ic(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ya:u={x:i,y:t.y+t.height};break;case ba:u={x:t.x+t.width,y:s};break;case jn:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CS(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case nc:u[l]=u[l]-(t[c]/2-r[c]/2);break;case jf:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function If(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Kce:s,l=r.rootBoundary,c=l===void 0?x5:l,d=r.elementContext,p=d===void 0?od:d,h=r.altBoundary,m=h===void 0?!1:h,g=r.padding,_=g===void 0?0:g,x=O5(typeof _!="number"?_:C5(_,dp)),y=p===od?Gce:od,b=e.rects.popper,E=e.elements[m?y:p],v=Pde(pl(E)?E:E.contextElement||os(e.elements.popper),u,c,i),w=oc(e.elements.reference),S=$5({reference:w,element:b,strategy:"absolute",placement:a}),O=hx(Object.assign({},b,S)),C=p===od?O:w,P={top:v.top-C.top+x.top,bottom:C.bottom-v.bottom+x.bottom,left:v.left-C.left+x.left,right:C.right-v.right+x.right},$=e.modifiersData.offset;if(p===od&&$){var T=$[a];Object.keys(P).forEach(function(A){var M=[ba,ya].indexOf(A)>=0?1:-1,I=[Tn,ya].indexOf(A)>=0?"y":"x";P[A]+=T[I]*M})}return P}function $de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?w5:u,c=ic(n),d=c?s?bR:bR.filter(function(m){return ic(m)===c}):dp,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,g){return m[g]=If(e,{placement:g,boundary:a,rootBoundary:o,padding:i})[co(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function Rde(e){if(co(e)===ES)return[];var t=Tv(e);return[_R(e),t,_R(t)]}function kde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,g=r.allowedAutoPlacements,_=t.options.placement,x=co(_),y=x===_,b=u||(y||!m?[Tv(_)]:Rde(_)),E=[_].concat(b).reduce(function(be,xe){return be.concat(co(xe)===ES?$de(t,{placement:xe,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:g}):xe)},[]),v=t.rects.reference,w=t.rects.popper,S=new Map,O=!0,C=E[0],P=0;P=0,I=M?"width":"height",U=If(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),W=M?A?ba:jn:A?ya:Tn;v[I]>w[I]&&(W=Tv(W));var j=Tv(W),V=[];if(o&&V.push(U[T]<=0),s&&V.push(U[W]<=0,U[j]<=0),V.every(function(be){return be})){C=$,O=!1;break}S.set($,V)}if(O)for(var J=m?3:1,se=function(xe){var _e=E.find(function(Te){var $e=S.get(Te);if($e)return $e.slice(0,xe).every(function(Ee){return Ee})});if(_e)return C=_e,"break"},oe=J;oe>0;oe--){var ve=se(oe);if(ve==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}const Tde={name:"flip",enabled:!0,phase:"main",fn:kde,requiresIfExists:["offset"],data:{_skip:!1}};function SR(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function OR(e){return[Tn,ba,ya,jn].some(function(t){return e[t]>=0})}function jde(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=If(t,{elementContext:"reference"}),s=If(t,{altBoundary:!0}),u=SR(i,n),l=SR(s,a,o),c=OR(u),d=OR(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Ide={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jde};function Ade(e,t,r){var n=co(e),a=[jn,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[jn,ba].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Mde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=w5.reduce(function(c,d){return c[d]=Ade(d,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Fde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mde};function Lde(e){var t=e.state,r=e.name;t.modifiersData[r]=$5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Nde={name:"popperOffsets",enabled:!0,phase:"read",fn:Lde,data:{}};function Dde(e){return e==="x"?"y":"x"}function Bde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,d=r.padding,p=r.tether,h=p===void 0?!0:p,m=r.tetherOffset,g=m===void 0?0:m,_=If(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),x=co(t.placement),y=ic(t.placement),b=!y,E=CS(x),v=Dde(E),w=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(o){var A,M=E==="y"?Tn:jn,I=E==="y"?ya:ba,U=E==="y"?"height":"width",W=w[E],j=W+_[M],V=W-_[I],J=h?-O[U]/2:0,se=y===nc?S[U]:O[U],oe=y===nc?-O[U]:-S[U],ve=t.elements.arrow,be=h&&ve?OS(ve):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:S5(),_e=xe[M],Te=xe[I],$e=Vd(0,S[U],be[U]),Ee=b?S[U]/2-J-$e-_e-P.mainAxis:se-$e-_e-P.mainAxis,Ve=b?-S[U]/2+J+$e+Te+P.mainAxis:oe+$e+Te+P.mainAxis,je=t.elements.arrow&&fp(t.elements.arrow),De=je?E==="y"?je.clientTop||0:je.clientLeft||0:0,Fe=(A=$==null?void 0:$[E])!=null?A:0,He=W+Ee-Fe-De,et=W+Ve-Fe,ft=Vd(h?Xh(j,He):j,W,h?Gs(V,et):V);w[E]=ft,T[E]=ft-W}if(s){var xt,z=E==="x"?Tn:jn,X=E==="x"?ya:ba,te=w[v],le=v==="y"?"height":"width",ye=te+_[z],me=te-_[X],ge=[Tn,jn].indexOf(x)!==-1,Z=(xt=$==null?void 0:$[v])!=null?xt:0,K=ge?ye:te-S[le]-O[le]-Z+P.altAxis,Q=ge?te+S[le]+O[le]-Z-P.altAxis:me,re=h&&ge?cde(K,te,Q):Vd(h?K:ye,te,h?Q:me);w[v]=re,T[v]=re-te}t.modifiersData[n]=T}}const zde={name:"preventOverflow",enabled:!0,phase:"main",fn:Bde,requiresIfExists:["offset"]};function Ude(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vde(e){return e===Xn(e)||!fa(e)?PS(e):Ude(e)}function Wde(e){var t=e.getBoundingClientRect(),r=ac(t.width)/e.offsetWidth||1,n=ac(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Hde(e,t,r){r===void 0&&(r=!1);var n=fa(t),a=fa(t)&&Wde(t),o=os(t),i=oc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((po(t)!=="body"||RS(o))&&(s=Vde(t)),fa(t)?(u=oc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=$S(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function qde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Kde(e){var t=qde(e);return ade.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Gde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Qde(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var CR={placement:"bottom",modifiers:[],strategy:"absolute"};function PR(){for(var e=arguments.length,t=new Array(e),r=0;rGe({root:["root"]},Vue(Zde)),ofe={},ife=f.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:g}=t,_=Se(t,efe),x=f.useRef(null),y=rr(x,r),b=f.useRef(null),E=rr(b,p),v=f.useRef(E);ma(()=>{v.current=E},[E]),f.useImperativeHandle(p,()=>b.current,[]);const w=rfe(c,i),[S,O]=f.useState(w),[C,P]=f.useState(mx(a));f.useEffect(()=>{b.current&&b.current.forceUpdate()}),f.useEffect(()=>{a&&P(mx(a))},[a]),ma(()=>{if(!C||!l)return;const I=j=>{O(j.placement)};let U=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{I(j)}}];u!=null&&(U=U.concat(u)),d&&d.modifiers!=null&&(U=U.concat(d.modifiers));const W=Jde(C,x.current,R({placement:w},d,{modifiers:U}));return v.current(W),()=>{W.destroy(),v.current(null)}},[C,s,u,l,d,w]);const $={placement:S};g!==null&&($.TransitionProps=g);const T=afe(),A=(n=m.root)!=null?n:"div",M=Ki({elementType:A,externalSlotProps:h.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:T.root});return N.jsx(A,R({},M,{children:typeof o=="function"?o($):o}))}),sfe=f.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=ofe,popperRef:h,style:m,transition:g=!1,slotProps:_={},slots:x={}}=t,y=Se(t,tfe),[b,E]=f.useState(!0),v=()=>{E(!1)},w=()=>{E(!0)};if(!u&&!c&&(!g||b))return null;let S;if(o)S=o;else if(n){const P=mx(n);S=P&&nfe(P)?jr(P).body:jr(null).body}const O=!c&&u&&(!g||b)?"none":void 0,C=g?{in:c,onEnter:v,onExited:w}:void 0;return N.jsx(b5,{disablePortal:s,container:S,children:N.jsx(ife,R({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:g?!b:c,placement:d,popperOptions:p,popperRef:h,slotProps:_,slots:x},y,{style:R({position:"fixed",top:0,left:0,display:O},m),TransitionProps:C,children:a}))})});function lfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=As();f.useEffect(()=>{if(!a)return;function x(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=ca((x,y)=>{n==null||n(x,y)}),u=ca(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});f.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,d=f.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>y=>{const b=x.onBlur;b==null||b(y),d()},h=x=>y=>{const b=x.onFocus;b==null||b(y),c()},m=x=>y=>{const b=x.onMouseEnter;b==null||b(y),c()},g=x=>y=>{const b=x.onMouseLeave;b==null||b(y),d()};return f.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[r,a,d,c]),{getRootProps:(x={})=>{const y=R({},Qh(e),Qh(x));return R({role:"presentation"},x,y,{onBlur:p(y),onFocus:h(y),onMouseEnter:m(y),onMouseLeave:g(y)})},onClickAway:l}}const ufe=["onChange","maxRows","minRows","style","value"];function Xp(e){return parseInt(e,10)||0}const cfe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function dfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const ffe=f.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Se(t,ufe),{current:l}=f.useRef(s!=null),c=f.useRef(null),d=rr(r,c),p=f.useRef(null),h=f.useCallback(()=>{const _=c.current,y=fo(_).getComputedStyle(_);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const b=p.current;b.style.width=y.width,b.value=_.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const E=y.boxSizing,v=Xp(y.paddingBottom)+Xp(y.paddingTop),w=Xp(y.borderBottomWidth)+Xp(y.borderTopWidth),S=b.scrollHeight;b.value="x";const O=b.scrollHeight;let C=S;o&&(C=Math.max(Number(o)*O,C)),a&&(C=Math.min(Number(a)*O,C)),C=Math.max(C,O);const P=C+(E==="border-box"?v+w:0),$=Math.abs(C-S)<=1;return{outerHeightStyle:P,overflowing:$}},[a,o,t.placeholder]),m=f.useCallback(()=>{const _=h();if(dfe(_))return;const x=c.current;x.style.height=`${_.outerHeightStyle}px`,x.style.overflow=_.overflowing?"hidden":""},[h]);ma(()=>{const _=()=>{m()};let x;const y=sy(_),b=c.current,E=fo(b);E.addEventListener("resize",y);let v;return typeof ResizeObserver<"u"&&(v=new ResizeObserver(_),v.observe(b)),()=>{y.clear(),cancelAnimationFrame(x),E.removeEventListener("resize",y),v&&v.disconnect()}},[h,m]),ma(()=>{m()});const g=_=>{l||m(),n&&n(_)};return N.jsxs(f.Fragment,{children:[N.jsx("textarea",R({value:s,onChange:g,ref:d,rows:o,style:i},u)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:R({},cfe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var kS={};Object.defineProperty(kS,"__esModule",{value:!0});var k5=kS.default=void 0,pfe=hfe(f),vfe=c5;function T5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(T5=function(n){return n?r:t})(e)}function hfe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=T5(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function mfe(e){return Object.keys(e).length===0}function gfe(e=null){const t=pfe.useContext(vfe.ThemeContext);return!t||mfe(t)?e:t}k5=kS.default=gfe;const yfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],bfe=ne(sfe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),j5=f.forwardRef(function(t,r){var n;const a=k5(),o=Qe({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:g,popperOptions:_,popperRef:x,transition:y,slots:b,slotProps:E}=o,v=Se(o,yfe),w=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,S=R({anchorEl:i,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:g,popperOptions:_,popperRef:x,transition:y},v);return N.jsx(bfe,R({as:s,direction:a==null?void 0:a.direction,slots:{root:w},slotProps:E??l},S,{ref:r}))}),xfe=Ln(N.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 wfe(e){return Ke("MuiChip",e)}const Ct=qe("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"]),_fe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Efe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${de(n)}`,`color${de(a)}`,s&&"clickable",s&&`clickableColor${de(a)}`,i&&"deletable",i&&`deletableColor${de(a)}`,`${u}${de(a)}`],label:["label",`label${de(n)}`],avatar:["avatar",`avatar${de(n)}`,`avatarColor${de(a)}`],icon:["icon",`icon${de(n)}`,`iconColor${de(o)}`],deleteIcon:["deleteIcon",`deleteIcon${de(n)}`,`deleteIconColor${de(a)}`,`deleteIcon${de(u)}Color${de(a)}`]};return Ge(l,wfe,t)},Sfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Ct.avatar}`]:t.avatar},{[`& .${Ct.avatar}`]:t[`avatar${de(s)}`]},{[`& .${Ct.avatar}`]:t[`avatarColor${de(n)}`]},{[`& .${Ct.icon}`]:t.icon},{[`& .${Ct.icon}`]:t[`icon${de(s)}`]},{[`& .${Ct.icon}`]:t[`iconColor${de(a)}`]},{[`& .${Ct.deleteIcon}`]:t.deleteIcon},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${de(s)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIconColor${de(n)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${de(u)}Color${de(n)}`]},t.root,t[`size${de(s)}`],t[`color${de(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${de(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${de(n)}`],t[u],t[`${u}${de(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return R({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",[`&.${Ct.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ct.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Ct.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ct.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ct.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ct.icon}`]:R({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&R({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Ct.deleteIcon}`]:R({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(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)`:gt(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)`:gt(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&&{[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>R({},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}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(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, &.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>R({},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]}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ct.avatar}`]:{marginLeft:4},[`& .${Ct.avatarSmall}`]:{marginLeft:2},[`& .${Ct.icon}`]:{marginLeft:4},[`& .${Ct.iconSmall}`]:{marginLeft:2},[`& .${Ct.deleteIcon}`]:{marginRight:5},[`& .${Ct.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)`:gt(e.palette[t.color].main,.7)}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Ofe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${de(n)}`]]}})(({ownerState:e})=>R({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 $R(e){return e.key==="Backspace"||e.key==="Delete"}const I5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:_,size:x="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:E=!1}=n,v=Se(n,_fe),w=f.useRef(null),S=rr(w,r),O=V=>{V.stopPropagation(),m&&m(V)},C=V=>{V.currentTarget===V.target&&$R(V)&&V.preventDefault(),g&&g(V)},P=V=>{V.currentTarget===V.target&&(m&&$R(V)?m(V):V.key==="Escape"&&w.current&&w.current.blur()),_&&_(V)},$=i!==!1&&h?!0:i,T=$||m?Go:u||"div",A=R({},n,{component:T,disabled:c,size:x,color:s,iconColor:f.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:$,variant:y}),M=Efe(A),I=T===Go?R({component:u||"div",focusVisibleClassName:M.focusVisible},m&&{disableRipple:!0}):{};let U=null;m&&(U=l&&f.isValidElement(l)?f.cloneElement(l,{className:ue(l.props.className,M.deleteIcon),onClick:O}):N.jsx(xfe,{className:ue(M.deleteIcon),onClick:O}));let W=null;a&&f.isValidElement(a)&&(W=f.cloneElement(a,{className:ue(M.avatar,a.props.className)}));let j=null;return d&&f.isValidElement(d)&&(j=f.cloneElement(d,{className:ue(M.icon,d.props.className)})),N.jsxs(Sfe,R({as:T,className:ue(M.root,o),disabled:$&&c?!0:void 0,onClick:h,onKeyDown:C,onKeyUp:P,ref:S,tabIndex:E&&c?-1:b,ownerState:A},I,v,{children:[W||j,N.jsx(Ofe,{className:ue(M.label),ownerState:A,children:p}),U]}))});function Lc({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Ey=f.createContext(void 0);function is(){return f.useContext(Ey)}function Cfe(e){return N.jsx(vse,R({},e,{defaultTheme:cy,themeId:cl}))}function RR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Yh(e,t=!1){return e&&(RR(e.value)&&e.value!==""||t&&RR(e.defaultValue)&&e.defaultValue!=="")}function Pfe(e){return e.startAdornment}function $fe(e){return Ke("MuiInputBase",e)}const sc=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Rfe=["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"],Sy=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${de(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Oy=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},kfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${de(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${de(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Ge(g,$fe,t)},Cy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sy})(({theme:e,ownerState:t})=>R({},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",[`&.${sc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&R({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Py=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Oy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=R({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return R({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${sc.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"})}),Tfe=N.jsx(Cfe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$y=f.forwardRef(function(t,r){var n;const a=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:g=!1,id:_,inputComponent:x="input",inputProps:y={},inputRef:b,maxRows:E,minRows:v,multiline:w=!1,name:S,onBlur:O,onChange:C,onClick:P,onFocus:$,onKeyDown:T,onKeyUp:A,placeholder:M,readOnly:I,renderSuffix:U,rows:W,slotProps:j={},slots:V={},startAdornment:J,type:se="text",value:oe}=a,ve=Se(a,Rfe),be=y.value!=null?y.value:oe,{current:xe}=f.useRef(be!=null),_e=f.useRef(),Te=f.useCallback(re=>{},[]),$e=rr(_e,b,y.ref,Te),[Ee,Ve]=f.useState(!1),je=is(),De=Lc({props:a,muiFormControl:je,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=je?je.focused:Ee,f.useEffect(()=>{!je&&p&&Ee&&(Ve(!1),O&&O())},[je,p,Ee,O]);const Fe=je&&je.onFilled,He=je&&je.onEmpty,et=f.useCallback(re=>{Yh(re)?Fe&&Fe():He&&He()},[Fe,He]);ma(()=>{xe&&et({value:be})},[be,et,xe]);const ft=re=>{if(De.disabled){re.stopPropagation();return}$&&$(re),y.onFocus&&y.onFocus(re),je&&je.onFocus?je.onFocus(re):Ve(!0)},xt=re=>{O&&O(re),y.onBlur&&y.onBlur(re),je&&je.onBlur?je.onBlur(re):Ve(!1)},z=(re,...ie)=>{if(!xe){const Ie=re.target||_e.current;if(Ie==null)throw new Error(Ko(1));et({value:Ie.value})}y.onChange&&y.onChange(re,...ie),C&&C(re,...ie)};f.useEffect(()=>{et(_e.current)},[]);const X=re=>{_e.current&&re.currentTarget===re.target&&_e.current.focus(),P&&P(re)};let te=x,le=y;w&&te==="input"&&(W?le=R({type:void 0,minRows:W,maxRows:W},le):le=R({type:void 0,maxRows:E,minRows:v},le),te=ffe);const ye=re=>{et(re.animationName==="mui-auto-fill-cancel"?_e.current:{value:"x"})};f.useEffect(()=>{je&&je.setAdornedStart(!!J)},[je,J]);const me=R({},a,{color:De.color||"primary",disabled:De.disabled,endAdornment:m,error:De.error,focused:De.focused,formControl:je,fullWidth:g,hiddenLabel:De.hiddenLabel,multiline:w,size:De.size,startAdornment:J,type:se}),ge=kfe(me),Z=V.root||l.Root||Cy,K=j.root||c.root||{},Q=V.input||l.Input||Py;return le=R({},le,(n=j.input)!=null?n:c.input),N.jsxs(f.Fragment,{children:[!h&&Tfe,N.jsxs(Z,R({},K,!Tf(Z)&&{ownerState:R({},me,K.ownerState)},{ref:r,onClick:X},ve,{className:ue(ge.root,K.className,u,I&&"MuiInputBase-readOnly"),children:[J,N.jsx(Ey.Provider,{value:null,children:N.jsx(Q,R({ownerState:me,"aria-invalid":De.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:De.disabled,id:_,onAnimationStart:ye,name:S,placeholder:M,readOnly:I,required:De.required,rows:W,value:be,onKeyDown:T,onKeyUp:A,type:se},le,!Tf(Q)&&{as:te,ownerState:R({},me,le.ownerState)},{ref:$e,className:ue(ge.input,le.className,I&&"MuiInputBase-readOnly"),onBlur:xt,onChange:z,onFocus:ft}))}),m,U?U(R({},De,{startAdornment:J})):null]}))]})});function jfe(e){return Ke("MuiInput",e)}const id=R({},sc,qe("MuiInput",["root","underline","input"]));function Ife(e){return Ke("MuiOutlinedInput",e)}const ci=R({},sc,qe("MuiOutlinedInput",["root","notchedOutline","input"]));function Afe(e){return Ke("MuiFilledInput",e)}const cs=R({},sc,qe("MuiFilledInput",["root","underline","input"])),Mfe=Ln(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ffe=Ln(N.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Lfe(e){return Ke("MuiAvatar",e)}qe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Nfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Dfe=Rue(),Bfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Ge({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Lfe,t)},zfe=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:R({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:R({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Ufe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Vfe=ne(Ffe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Wfe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=f.useState(!1);return f.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const gx=f.forwardRef(function(t,r){const n=Dfe({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:d,src:p,srcSet:h,variant:m="circular"}=n,g=Se(n,Nfe);let _=null;const x=Wfe(R({},c,{src:p,srcSet:h})),y=p||h,b=y&&x!=="error",E=R({},n,{colorDefault:!b,component:s,variant:m}),v=Bfe(E),[w,S]=Gue("img",{className:v.img,elementType:Ufe,externalForwardedProps:{slots:u,slotProps:{img:R({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:h,sizes:d},ownerState:E});return b?_=N.jsx(w,R({},S)):o||o===0?_=o:y&&a?_=a[0]:_=N.jsx(Vfe,{ownerState:E,className:v.fallback}),N.jsx(zfe,R({as:s,ownerState:E,className:ue(v.root,i),ref:r},g,{children:_}))}),Hfe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qfe={entering:{opacity:1},entered:{opacity:1}},A5=f.forwardRef(function(t,r){const n=ni(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:g,style:_,timeout:x=a,TransitionComponent:y=za}=t,b=Se(t,Hfe),E=f.useRef(null),v=rr(E,s.ref,r),w=M=>I=>{if(M){const U=E.current;I===void 0?M(U):M(U,I)}},S=w(p),O=w((M,I)=>{_S(M);const U=rc({style:_,timeout:x,easing:u},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",U),M.style.transition=n.transitions.create("opacity",U),c&&c(M,I)}),C=w(d),P=w(g),$=w(M=>{const I=rc({style:_,timeout:x,easing:u},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",I),M.style.transition=n.transitions.create("opacity",I),h&&h(M)}),T=w(m),A=M=>{o&&o(E.current,M)};return N.jsx(y,R({appear:i,in:l,nodeRef:E,onEnter:O,onEntered:C,onEntering:S,onExit:$,onExited:T,onExiting:P,addEndListener:A,timeout:x},b,{children:(M,I)=>f.cloneElement(s,R({style:R({opacity:0,visibility:M==="exited"&&!l?"hidden":void 0},qfe[M],_,s.props.style),ref:v},I))}))});function Kfe(e){return Ke("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const Gfe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qfe=e=>{const{classes:t,invisible:r}=e;return Ge({root:["root",r&&"invisible"]},Kfe,t)},Xfe=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>R({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"})),M5=f.forwardRef(function(t,r){var n,a,o;const i=Qe({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:g={},TransitionComponent:_=A5,transitionDuration:x}=i,y=Se(i,Gfe),b=R({},i,{component:l,invisible:p}),E=Qfe(b),v=(n=m.root)!=null?n:d.root;return N.jsx(_,R({in:h,timeout:x},y,{children:N.jsx(Xfe,R({"aria-hidden":!0},v,{as:(a=(o=g.root)!=null?o:c.Root)!=null?a:l,className:ue(E.root,u,v==null?void 0:v.className),ownerState:R({},b,v==null?void 0:v.ownerState),classes:E,ref:r,children:s}))}))}),Yfe=qe("MuiBox",["root"]),Jfe=Kh(),F5=xse({themeId:cl,defaultTheme:Jfe,defaultClassName:Yfe.root,generateClassName:lS.generate});function Zfe(e){return Ke("MuiButton",e)}const Yp=qe("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"]),epe=f.createContext({}),tpe=f.createContext(void 0),rpe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],npe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${de(t)}`,`size${de(a)}`,`${o}Size${de(a)}`,`color${de(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${de(a)}`],endIcon:["icon","endIcon",`iconSize${de(a)}`]},u=Ge(s,Zfe,i);return R({},i,u)},L5=e=>R({},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}}),ape=ne(Go,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${de(r.color)}`],t[`size${de(r.size)}`],t[`${r.variant}Size${de(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return R({},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":R({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(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})`:gt(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})`:gt(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:o,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":R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Yp.focusVisible}`]:R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Yp.disabled}`]:R({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 ${gt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,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"},[`&.${Yp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yp.disabled}`]:{boxShadow:"none"}}),ope=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${de(r.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},L5(e))),ipe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${de(r.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},L5(e))),An=f.forwardRef(function(t,r){const n=f.useContext(epe),a=f.useContext(tpe),o=dS(n,t),i=Qe({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:_=!1,size:x="medium",startIcon:y,type:b,variant:E="text"}=i,v=Se(i,rpe),w=R({},i,{color:u,component:l,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:_,size:x,type:b,variant:E}),S=npe(w),O=y&&N.jsx(ope,{className:S.startIcon,ownerState:w,children:y}),C=m&&N.jsx(ipe,{className:S.endIcon,ownerState:w,children:m}),P=a||"";return N.jsxs(ape,R({ownerState:w,className:ue(n.className,S.root,c,P),component:l,disabled:d,focusRipple:!h,focusVisibleClassName:ue(S.focusVisible,g),ref:r,type:b},v,{classes:S,children:[O,s,C]}))});function spe(e){return Ke("MuiCard",e)}qe("MuiCard",["root"]);const lpe=["className","raised"],upe=e=>{const{classes:t}=e;return Ge({root:["root"]},spe,t)},cpe=ne(as,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),pp=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Se(n,lpe),s=R({},n,{raised:o}),u=upe(s);return N.jsx(cpe,R({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))});function dpe(e){return Ke("MuiCardContent",e)}qe("MuiCardContent",["root"]);const fpe=["className","component"],ppe=e=>{const{classes:t}=e;return Ge({root:["root"]},dpe,t)},vpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ry=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Se(n,fpe),s=R({},n,{component:o}),u=ppe(s);return N.jsx(vpe,R({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))});function hpe(e){return Ke("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],gpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${de(a)}`],input:["input"]};return Ge(o,hpe,t)},ype=ne(Go)(({ownerState:e})=>R({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),bpe=ne("input",{shouldForwardProp:Kr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xpe=f.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:g,onBlur:_,onChange:x,onFocus:y,readOnly:b,required:E=!1,tabIndex:v,type:w,value:S}=t,O=Se(t,mpe),[C,P]=tc({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),$=is(),T=V=>{y&&y(V),$&&$.onFocus&&$.onFocus(V)},A=V=>{_&&_(V),$&&$.onBlur&&$.onBlur(V)},M=V=>{if(V.nativeEvent.defaultPrevented)return;const J=V.target.checked;P(J),x&&x(V,J)};let I=u;$&&typeof I>"u"&&(I=$.disabled);const U=w==="checkbox"||w==="radio",W=R({},t,{checked:C,disabled:I,disableFocusRipple:l,edge:c}),j=gpe(W);return N.jsxs(ype,R({component:"span",className:ue(j.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:T,onBlur:A,ownerState:W,ref:r},O,{children:[N.jsx(bpe,R({autoFocus:n,checked:a,defaultChecked:s,className:j.input,disabled:I,id:U?p:void 0,name:g,onChange:M,readOnly:b,ref:m,required:E,ownerState:W,tabIndex:v,type:w},w==="checkbox"&&S===void 0?{}:{value:S},h)),C?o:d]}))}),wpe=Ln(N.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"),_pe=Ln(N.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"),Epe=Ln(N.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 Spe(e){return Ke("MuiCheckbox",e)}const K0=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ope=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Cpe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${de(n)}`,`size${de(a)}`]},i=Ge(o,Spe,t);return R({},t,i)},Ppe=ne(xpe,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${de(r.size)}`],r.color!=="default"&&t[`color${de(r.color)}`]]}})(({theme:e,ownerState:t})=>R({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})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${K0.checked}, &.${K0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${K0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),$pe=N.jsx(_pe,{}),Rpe=N.jsx(wpe,{}),kpe=N.jsx(Epe,{}),Jh=f.forwardRef(function(t,r){var n,a;const o=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=$pe,color:s="primary",icon:u=Rpe,indeterminate:l=!1,indeterminateIcon:c=kpe,inputProps:d,size:p="medium",className:h}=o,m=Se(o,Ope),g=l?c:u,_=l?c:i,x=R({},o,{color:s,indeterminate:l,size:p}),y=Cpe(x);return N.jsx(Ppe,R({type:"checkbox",inputProps:R({"data-indeterminate":l},d),icon:f.cloneElement(g,{fontSize:(n=g.props.fontSize)!=null?n:p}),checkedIcon:f.cloneElement(_,{fontSize:(a=_.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(y.root,h)},m,{classes:y}))});function Tpe(e){return Ke("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const jpe=["className","color","disableShrink","size","style","thickness","value","variant"];let ky=e=>e,kR,TR,jR,IR;const di=44,Ipe=ri(kR||(kR=ky` 0% { transform: rotate(0deg); } @@ -196,7 +196,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu 100% { transform: rotate(360deg); } -`)),Ipe=ri(TR||(TR=ky` +`)),Ape=ri(TR||(TR=ky` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -211,11 +211,11 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Ape=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${de(n)}`],svg:["svg"],circle:["circle",`circle${de(r)}`,a&&"circleDisableShrink"]};return Ge(o,kpe,t)},Mpe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${de(r.color)}`]]}})(({ownerState:e,theme:t})=>R({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&yl(jR||(jR=ky` +`)),Mpe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${de(n)}`],svg:["svg"],circle:["circle",`circle${de(r)}`,a&&"circleDisableShrink"]};return Ge(o,Tpe,t)},Fpe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${de(r.color)}`]]}})(({ownerState:e,theme:t})=>R({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&yl(jR||(jR=ky` animation: ${0} 1.4s linear infinite; - `),jpe)),Fpe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Lpe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${de(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>R({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&&yl(IR||(IR=ky` + `),Ipe)),Lpe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Npe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${de(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>R({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&&yl(IR||(IR=ky` animation: ${0} 1.4s ease-in-out infinite; - `),Ipe)),Ty=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,p=Se(n,Tpe),h=R({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:d}),m=Ape(h),g={},_={},x={};if(d==="determinate"){const y=2*Math.PI*((di-l)/2);g.strokeDasharray=y.toFixed(3),x["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,_.transform="rotate(-90deg)"}return N.jsx(Mpe,R({className:ue(m.root,a),style:R({width:s,height:s},_,u),ownerState:h,ref:r,role:"progressbar"},x,p,{children:N.jsx(Fpe,{className:m.svg,ownerState:h,viewBox:`${di/2} ${di/2} ${di} ${di}`,children:N.jsx(Lpe,{className:m.circle,style:g,ownerState:h,cx:di,cy:di,r:(di-l)/2,fill:"none",strokeWidth:l})})}))}),Npe=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Dpe=e=>R({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}});function Bpe(e){return Ke("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const zpe=["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"],Upe=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Bpe,n)},Vpe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>R({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Wpe=ne(M5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TS=f.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Qe({name:"MuiModal",props:t}),{BackdropComponent:c=Wpe,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:g,component:_,components:x={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:v=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:P=!1,onBackdropClick:$,open:T,slotProps:A,slots:M}=l,I=Se(l,zpe),U=R({},l,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:v,disablePortal:w,disableRestoreFocus:S,disableScrollLock:O,hideBackdrop:C,keepMounted:P}),{getRootProps:W,getBackdropProps:j,getTransitionProps:V,portalRef:J,isTopModal:se,exited:oe,hasTransition:ve}=Hce(R({},U,{rootRef:r})),be=R({},U,{exited:oe}),xe=Upe(be),_e={};if(m.props.tabIndex===void 0&&(_e.tabIndex="-1"),ve){const{onEnter:Fe,onExited:He}=V();_e.onEnter=Fe,_e.onExited=He}const Te=(n=(a=M==null?void 0:M.root)!=null?a:x.Root)!=null?n:Vpe,$e=(o=(i=M==null?void 0:M.backdrop)!=null?i:x.Backdrop)!=null?o:c,Ee=(s=A==null?void 0:A.root)!=null?s:y.root,Ve=(u=A==null?void 0:A.backdrop)!=null?u:y.backdrop,je=Ki({elementType:Te,externalSlotProps:Ee,externalForwardedProps:I,getSlotProps:W,additionalProps:{ref:r,as:_},ownerState:be,className:ue(p,Ee==null?void 0:Ee.className,xe==null?void 0:xe.root,!be.open&&be.exited&&(xe==null?void 0:xe.hidden))}),De=Ki({elementType:$e,externalSlotProps:Ve,additionalProps:d,getSlotProps:Fe=>j(R({},Fe,{onClick:He=>{$&&$(He),Fe!=null&&Fe.onClick&&Fe.onClick(He)}})),className:ue(Ve==null?void 0:Ve.className,d==null?void 0:d.className,xe==null?void 0:xe.backdrop),ownerState:be});return!P&&!T&&(!ve||oe)?null:N.jsx(b5,{ref:J,container:g,disablePortal:w,children:N.jsxs(Te,R({},je,{children:[!C&&c?N.jsx($e,R({},De)):null,N.jsx(Mce,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:se,open:T,children:f.cloneElement(m,_e)})]}))})});function Hpe(e){return Ke("MuiDialog",e)}const G0=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),N5=f.createContext({}),qpe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Kpe=ne(M5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Gpe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${de(r)}`],paper:["paper",`paperScroll${de(r)}`,`paperWidth${de(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return Ge(i,Hpe,t)},Qpe=ne(TS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Xpe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${de(r.scroll)}`]]}})(({ownerState:e})=>R({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Ype=ne(as,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${de(r.scroll)}`],t[`paperWidth${de(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>R({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${G0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${G0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${G0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialog"}),a=ni(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:_,onClick:x,onClose:y,open:b,PaperComponent:E=as,PaperProps:v={},scroll:w="paper",TransitionComponent:S=A5,transitionDuration:O=o,TransitionProps:C}=n,P=Se(n,qpe),$=R({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:g,scroll:w}),T=Gpe($),A=f.useRef(),M=j=>{A.current=j.target===j.currentTarget},I=j=>{x&&x(j),A.current&&(A.current=null,_&&_(j),y&&y(j,"backdropClick"))},U=fl(s),W=f.useMemo(()=>({titleId:U}),[U]);return N.jsx(Qpe,R({className:ue(T.root,d),closeAfterTransition:!0,components:{Backdrop:Kpe},componentsProps:{backdrop:R({transitionDuration:O,as:u},l)},disableEscapeKeyDown:p,onClose:y,open:b,ref:r,onClick:I,ownerState:$},P,{children:N.jsx(S,R({appear:!0,in:b,timeout:O,role:"presentation"},C,{children:N.jsx(Xpe,{className:ue(T.container),onMouseDown:M,ownerState:$,children:N.jsx(Ype,R({as:E,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":U},v,{className:ue(T.paper,v.className),ownerState:$,children:N.jsx(N5.Provider,{value:W,children:c})}))})}))}))});function Jpe(e){return Ke("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const Zpe=["className","disableSpacing"],eve=e=>{const{classes:t,disableSpacing:r}=e;return Ge({root:["root",!r&&"spacing"]},Jpe,t)},tve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>R({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),IS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Se(n,Zpe),s=R({},n,{disableSpacing:o}),u=eve(s);return N.jsx(tve,R({className:ue(u.root,a),ownerState:s,ref:r},i))});function rve(e){return Ke("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function nve(e){return Ke("MuiDialogTitle",e)}const ave=qe("MuiDialogTitle",["root"]),ove=["className","dividers"],ive=e=>{const{classes:t,dividers:r}=e;return Ge({root:["root",r&&"dividers"]},rve,t)},sve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>R({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${ave.root} + &`]:{paddingTop:0}})),AS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Se(n,ove),s=R({},n,{dividers:o}),u=ive(s);return N.jsx(sve,R({className:ue(u.root,a),ownerState:s,ref:r},i))});function lve(e){return Ke("MuiDialogContentText",e)}qe("MuiDialogContentText",["root"]);const uve=["children","className"],cve=e=>{const{classes:t}=e,n=Ge({root:["root"]},lve,t);return R({},t,n)},dve=ne(xr,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Se(n,uve),i=cve(o);return N.jsx(dve,R({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),fve=["className","id"],pve=e=>{const{classes:t}=e;return Ge({root:["root"]},nve,t)},vve=ne(xr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),MS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Se(n,fve),s=n,u=pve(s),{titleId:l=o}=f.useContext(N5);return N.jsx(vve,R({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),AR=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=fo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function gve(e){return typeof e=="function"?e():e}function Jp(e,t,r){const n=gve(r),a=mve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const B5=f.forwardRef(function(t,r){const n=ni(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:d=a,in:p,onEnter:h,onEntered:m,onEntering:g,onExit:_,onExited:x,onExiting:y,style:b,timeout:E=o,TransitionComponent:v=za}=t,w=Se(t,hve),S=f.useRef(null),O=rr(u.ref,S,r),C=j=>V=>{j&&(V===void 0?j(S.current):j(S.current,V))},P=C((j,V)=>{Jp(c,j,l),_S(j),h&&h(j,V)}),$=C((j,V)=>{const J=rc({timeout:E,style:b,easing:d},{mode:"enter"});j.style.webkitTransition=n.transitions.create("-webkit-transform",R({},J)),j.style.transition=n.transitions.create("transform",R({},J)),j.style.webkitTransform="none",j.style.transform="none",g&&g(j,V)}),T=C(m),A=C(y),M=C(j=>{const V=rc({timeout:E,style:b,easing:d},{mode:"exit"});j.style.webkitTransition=n.transitions.create("-webkit-transform",V),j.style.transition=n.transitions.create("transform",V),Jp(c,j,l),_&&_(j)}),I=C(j=>{j.style.webkitTransition="",j.style.transition="",x&&x(j)}),U=j=>{i&&i(S.current,j)},W=f.useCallback(()=>{S.current&&Jp(c,S.current,l)},[c,l]);return f.useEffect(()=>{if(p||c==="down"||c==="right")return;const j=sy(()=>{S.current&&Jp(c,S.current,l)}),V=fo(S.current);return V.addEventListener("resize",j),()=>{j.clear(),V.removeEventListener("resize",j)}},[c,p,l]),f.useEffect(()=>{p||W()},[p,W]),N.jsx(v,R({nodeRef:S,onEnter:P,onEntered:T,onEntering:$,onExit:M,onExited:I,onExiting:A,addEndListener:U,appear:s,in:p,timeout:E},w,{children:(j,V)=>f.cloneElement(u,R({ref:O,style:R({visibility:j==="exited"&&!p?"hidden":void 0},b,u.props.style)},V))}))});function yve(e){return Ke("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const bve=["BackdropProps"],xve=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],z5=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},wve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${de(r)}`,n!=="temporary"&&`paperAnchorDocked${de(r)}`]};return Ge(a,yve,t)},_ve=ne(TS,{name:"MuiDrawer",slot:"Root",overridesResolver:z5})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),MR=ne("div",{shouldForwardProp:Kr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:z5})({flex:"0 0 auto"}),Eve=ne(as,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${de(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${de(r.anchor)}`]]}})(({theme:e,ownerState:t})=>R({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),U5={left:"right",right:"left",top:"down",bottom:"up"};function Sve(e){return["left","right"].indexOf(e)!==-1}function Ove({direction:e},t){return e==="rtl"&&Sve(t)?U5[t]:t}const Cve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDrawer"}),a=ni(),o=Ac(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:g=!1,PaperProps:_={},SlideProps:x,TransitionComponent:y=B5,transitionDuration:b=i,variant:E="temporary"}=n,v=Se(n.ModalProps,bve),w=Se(n,xve),S=f.useRef(!1);f.useEffect(()=>{S.current=!0},[]);const O=Ove({direction:o?"rtl":"ltr"},s),P=R({},n,{anchor:s,elevation:d,open:g,variant:E},w),$=wve(P),T=N.jsx(Eve,R({elevation:E==="temporary"?d:0,square:!0},_,{className:ue($.paper,_.className),ownerState:P,children:l}));if(E==="permanent")return N.jsx(MR,R({className:ue($.root,$.docked,c),ownerState:P,ref:r},w,{children:T}));const A=N.jsx(y,R({in:g,direction:U5[O],timeout:b,appear:S.current},x,{children:T}));return E==="persistent"?N.jsx(MR,R({className:ue($.root,$.docked,c),ownerState:P,ref:r},w,{children:A})):N.jsx(_ve,R({BackdropProps:R({},u,h,{transitionDuration:b}),className:ue($.root,$.modal,c),open:g,ownerState:P,onClose:m,hideBackdrop:p,ref:r},w,v,{children:A}))});function Pve(e){return Ke("MuiFab",e)}const FR=qe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),$ve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Rve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${de(a)}`,t==="inherit"?"colorInherit":t]},i=Ge(o,Pve,n);return R({},n,i)},kve=ne(Go,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Kr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${de(r.size)}`],r.color==="inherit"&&t.colorInherit,t[de(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return R({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${FR.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>R({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${FR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Tve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:d="large",variant:p="circular"}=n,h=Se(n,$ve),m=R({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:d,variant:p}),g=Rve(m);return N.jsx(kve,R({className:ue(g.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(g.focusVisible,c),ownerState:m,ref:r},h,{classes:g,children:a}))}),jve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ive=e=>{const{classes:t,disableUnderline:r}=e,a=Ge({root:["root",!r&&"underline"],input:["input"]},Ife,t);return R({},t,a)},Ave=ne(Cy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sy(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return R({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${cs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${cs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.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"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.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})`:a}`,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(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&R({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}))}),Mve=ne(Py,{name:"MuiFilledInput",slot:"Input",overridesResolver:Oy})(({theme:e,ownerState:t})=>R({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})),FS=f.forwardRef(function(t,r){var n,a,o,i;const s=Qe({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:g="text"}=s,_=Se(s,jve),x=R({},s,{fullWidth:c,inputComponent:d,multiline:p,type:g}),y=Ive(s),b={root:{ownerState:x},input:{ownerState:x}},E=h??l?Hr(b,h??l):b,v=(n=(a=m.root)!=null?a:u.Root)!=null?n:Ave,w=(o=(i=m.input)!=null?i:u.Input)!=null?o:Mve;return N.jsx($y,R({slots:{root:v,input:w},componentsProps:E,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:g},_,{classes:y}))});FS.muiName="Input";function Fve(e){return Ke("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Lve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nve=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${de(r)}`,n&&"fullWidth"]};return Ge(a,Fve,t)},Dve=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>R({},t.root,t[`margin${de(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>R({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%"})),Bve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:_="outlined"}=n,x=Se(n,Lve),y=R({},n,{color:i,component:s,disabled:u,error:l,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:g,variant:_}),b=Nve(y),[E,v]=f.useState(()=>{let A=!1;return a&&f.Children.forEach(a,M=>{if(!Rv(M,["Input","Select"]))return;const I=Rv(M,["Select"])?M.props.input:M;I&&Cfe(I.props)&&(A=!0)}),A}),[w,S]=f.useState(()=>{let A=!1;return a&&f.Children.forEach(a,M=>{Rv(M,["Input","Select"])&&(Jh(M.props,!0)||Jh(M.props.inputProps,!0))&&(A=!0)}),A}),[O,C]=f.useState(!1);u&&O&&C(!1);const P=c!==void 0&&!u?c:O;let $;const T=f.useMemo(()=>({adornedStart:E,setAdornedStart:v,color:i,disabled:u,error:l,filled:w,focused:P,fullWidth:d,hiddenLabel:p,size:g,onBlur:()=>{C(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:m,variant:_}),[E,i,u,l,w,P,d,p,$,m,g,_]);return N.jsx(Ey.Provider,{value:T,children:N.jsx(Dve,R({as:s,ownerState:y,className:ue(b.root,o),ref:r},x,{children:a}))})}),jy=vle({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Qe({props:e,name:"MuiStack"})});function zve(e){return Ke("MuiFormHelperText",e)}const LR=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var NR;const Uve=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Vve=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${de(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return Ge(l,zve,t)},Wve=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${de(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>R({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${LR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${LR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),V5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Se(n,Uve),u=is(),l=Lc({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=R({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=Vve(c);return N.jsx(Wve,R({as:i,ownerState:c,className:ue(d.root,o),ref:r},s,{children:a===" "?NR||(NR=N.jsx("span",{className:"notranslate",children:"​"})):a}))});function Hve(e){return Ke("MuiFormLabel",e)}const Wd=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),qve=["children","className","color","component","disabled","error","filled","focused","required"],Kve=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${de(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Ge(u,Hve,t)},Gve=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>R({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>R({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Wd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Wd.error}`]:{color:(e.vars||e).palette.error.main}})),Qve=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wd.error}`]:{color:(e.vars||e).palette.error.main}})),Xve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Se(n,qve),u=is(),l=Lc({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=R({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=Kve(c);return N.jsxs(Gve,R({as:i,ownerState:c,className:ue(d.root,o),ref:r},s,{children:[a,l.required&&N.jsxs(Qve,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Yve=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yx(e){return`scale(${e}, ${e**2})`}const Jve={entering:{opacity:1,transform:yx(1)},entered:{opacity:1,transform:"none"}},Q0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),If=f.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:_=za}=t,x=Se(t,Yve),y=As(),b=f.useRef(),E=ni(),v=f.useRef(null),w=rr(v,o.ref,r),S=I=>U=>{if(I){const W=v.current;U===void 0?I(W):I(W,U)}},O=S(c),C=S((I,U)=>{_S(I);const{duration:W,delay:j,easing:V}=rc({style:m,timeout:g,easing:i},{mode:"enter"});let J;g==="auto"?(J=E.transitions.getAutoHeightDuration(I.clientHeight),b.current=J):J=W,I.style.transition=[E.transitions.create("opacity",{duration:J,delay:j}),E.transitions.create("transform",{duration:Q0?J:J*.666,delay:j,easing:V})].join(","),u&&u(I,U)}),P=S(l),$=S(h),T=S(I=>{const{duration:U,delay:W,easing:j}=rc({style:m,timeout:g,easing:i},{mode:"exit"});let V;g==="auto"?(V=E.transitions.getAutoHeightDuration(I.clientHeight),b.current=V):V=U,I.style.transition=[E.transitions.create("opacity",{duration:V,delay:W}),E.transitions.create("transform",{duration:Q0?V:V*.666,delay:Q0?W:W||V*.333,easing:j})].join(","),I.style.opacity=0,I.style.transform=yx(.75),d&&d(I)}),A=S(p),M=I=>{g==="auto"&&y.start(b.current||0,I),n&&n(v.current,I)};return N.jsx(_,R({appear:a,in:s,nodeRef:v,onEnter:C,onEntered:P,onEntering:O,onExit:T,onExited:A,onExiting:$,addEndListener:M,timeout:g==="auto"?null:g},x,{children:(I,U)=>f.cloneElement(o,R({style:R({opacity:0,transform:yx(.75),visibility:I==="exited"&&!s?"hidden":void 0},Jve[I],m,o.props.style),ref:w},U))}))});If.muiSupportAuto=!0;const Zve=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ehe=e=>{const{classes:t,disableUnderline:r}=e,a=Ge({root:["root",!r&&"underline"],input:["input"]},Tfe,t);return R({},t,a)},the=ne(Cy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sy(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),R({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"},[`&.${id.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${id.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${id.disabled}, .${id.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${id.disabled}:before`]:{borderBottomStyle:"dotted"}})}),rhe=ne(Py,{name:"MuiInput",slot:"Input",overridesResolver:Oy})({}),LS=f.forwardRef(function(t,r){var n,a,o,i;const s=Qe({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:g={},type:_="text"}=s,x=Se(s,Zve),y=ehe(s),E={root:{ownerState:{disableUnderline:u}}},v=m??c?Hr(m??c,E):E,w=(n=(a=g.root)!=null?a:l.Root)!=null?n:the,S=(o=(i=g.input)!=null?i:l.Input)!=null?o:rhe;return N.jsx($y,R({slots:{root:w,input:S},slotProps:v,fullWidth:d,inputComponent:p,multiline:h,ref:r,type:_},x,{classes:y}))});LS.muiName="Input";function nhe(e){return Ke("MuiInputAdornment",e)}const DR=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var BR;const ahe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ohe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${de(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},ihe=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${de(a)}`,i,n&&"hiddenLabel",o&&`size${de(o)}`]};return Ge(s,nhe,t)},she=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ohe})(({theme:e,ownerState:t})=>R({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${DR.positionStart}&:not(.${DR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),X0=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,d=Se(n,ahe),p=is()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=R({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:h}),g=ihe(m);return N.jsx(Ey.Provider,{value:null,children:N.jsx(she,R({as:i,ownerState:m,className:ue(g.root,o),ref:r},d,{children:typeof a=="string"&&!u?N.jsx(xr,{color:"text.secondary",children:a}):N.jsxs(f.Fragment,{children:[l==="start"?BR||(BR=N.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function lhe(e){return Ke("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const uhe=["disableAnimation","margin","shrink","variant","className"],che=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${de(n)}`,i],asterisk:[s&&"asterisk"]},l=Ge(u,lhe,t);return R({},t,l)},dhe=ne(Xve,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Wd.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>R({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"&&R({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&&R({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"&&R({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)"}))),fhe=f.forwardRef(function(t,r){const n=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Se(n,uhe),u=is();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Lc({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),d=R({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=che(d);return N.jsx(dhe,R({"data-shrink":l,ownerState:d,ref:r,className:ue(p.root,i)},s,{classes:p}))});function phe(e){return Ke("MuiLinearProgress",e)}qe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const vhe=["className","color","value","valueBuffer","variant"];let Nc=e=>e,zR,UR,VR,WR,HR,qR;const bx=4,hhe=ri(zR||(zR=Nc` + `),Ape)),Ty=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,p=Se(n,jpe),h=R({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:d}),m=Mpe(h),g={},_={},x={};if(d==="determinate"){const y=2*Math.PI*((di-l)/2);g.strokeDasharray=y.toFixed(3),x["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*y).toFixed(3)}px`,_.transform="rotate(-90deg)"}return N.jsx(Fpe,R({className:ue(m.root,a),style:R({width:s,height:s},_,u),ownerState:h,ref:r,role:"progressbar"},x,p,{children:N.jsx(Lpe,{className:m.svg,ownerState:h,viewBox:`${di/2} ${di/2} ${di} ${di}`,children:N.jsx(Npe,{className:m.circle,style:g,ownerState:h,cx:di,cy:di,r:(di-l)/2,fill:"none",strokeWidth:l})})}))}),Dpe=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Bpe=e=>R({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}});function zpe(e){return Ke("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const Upe=["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"],Vpe=e=>{const{open:t,exited:r,classes:n}=e;return Ge({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},zpe,n)},Wpe=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>R({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Hpe=ne(M5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),TS=f.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Qe({name:"MuiModal",props:t}),{BackdropComponent:c=Hpe,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:g,component:_,components:x={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:v=!1,disablePortal:w=!1,disableRestoreFocus:S=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:P=!1,onBackdropClick:$,open:T,slotProps:A,slots:M}=l,I=Se(l,Upe),U=R({},l,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:v,disablePortal:w,disableRestoreFocus:S,disableScrollLock:O,hideBackdrop:C,keepMounted:P}),{getRootProps:W,getBackdropProps:j,getTransitionProps:V,portalRef:J,isTopModal:se,exited:oe,hasTransition:ve}=qce(R({},U,{rootRef:r})),be=R({},U,{exited:oe}),xe=Vpe(be),_e={};if(m.props.tabIndex===void 0&&(_e.tabIndex="-1"),ve){const{onEnter:Fe,onExited:He}=V();_e.onEnter=Fe,_e.onExited=He}const Te=(n=(a=M==null?void 0:M.root)!=null?a:x.Root)!=null?n:Wpe,$e=(o=(i=M==null?void 0:M.backdrop)!=null?i:x.Backdrop)!=null?o:c,Ee=(s=A==null?void 0:A.root)!=null?s:y.root,Ve=(u=A==null?void 0:A.backdrop)!=null?u:y.backdrop,je=Ki({elementType:Te,externalSlotProps:Ee,externalForwardedProps:I,getSlotProps:W,additionalProps:{ref:r,as:_},ownerState:be,className:ue(p,Ee==null?void 0:Ee.className,xe==null?void 0:xe.root,!be.open&&be.exited&&(xe==null?void 0:xe.hidden))}),De=Ki({elementType:$e,externalSlotProps:Ve,additionalProps:d,getSlotProps:Fe=>j(R({},Fe,{onClick:He=>{$&&$(He),Fe!=null&&Fe.onClick&&Fe.onClick(He)}})),className:ue(Ve==null?void 0:Ve.className,d==null?void 0:d.className,xe==null?void 0:xe.backdrop),ownerState:be});return!P&&!T&&(!ve||oe)?null:N.jsx(b5,{ref:J,container:g,disablePortal:w,children:N.jsxs(Te,R({},je,{children:[!C&&c?N.jsx($e,R({},De)):null,N.jsx(Fce,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:se,open:T,children:f.cloneElement(m,_e)})]}))})});function qpe(e){return Ke("MuiDialog",e)}const G0=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),N5=f.createContext({}),Kpe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Gpe=ne(M5,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qpe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${de(r)}`],paper:["paper",`paperScroll${de(r)}`,`paperWidth${de(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return Ge(i,qpe,t)},Xpe=ne(TS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ype=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${de(r.scroll)}`]]}})(({ownerState:e})=>R({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Jpe=ne(as,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${de(r.scroll)}`],t[`paperWidth${de(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>R({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${G0.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${G0.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${G0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialog"}),a=ni(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:_,onClick:x,onClose:y,open:b,PaperComponent:E=as,PaperProps:v={},scroll:w="paper",TransitionComponent:S=A5,transitionDuration:O=o,TransitionProps:C}=n,P=Se(n,Kpe),$=R({},n,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:g,scroll:w}),T=Qpe($),A=f.useRef(),M=j=>{A.current=j.target===j.currentTarget},I=j=>{x&&x(j),A.current&&(A.current=null,_&&_(j),y&&y(j,"backdropClick"))},U=fl(s),W=f.useMemo(()=>({titleId:U}),[U]);return N.jsx(Xpe,R({className:ue(T.root,d),closeAfterTransition:!0,components:{Backdrop:Gpe},componentsProps:{backdrop:R({transitionDuration:O,as:u},l)},disableEscapeKeyDown:p,onClose:y,open:b,ref:r,onClick:I,ownerState:$},P,{children:N.jsx(S,R({appear:!0,in:b,timeout:O,role:"presentation"},C,{children:N.jsx(Ype,{className:ue(T.container),onMouseDown:M,ownerState:$,children:N.jsx(Jpe,R({as:E,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":U},v,{className:ue(T.paper,v.className),ownerState:$,children:N.jsx(N5.Provider,{value:W,children:c})}))})}))}))});function Zpe(e){return Ke("MuiDialogActions",e)}qe("MuiDialogActions",["root","spacing"]);const eve=["className","disableSpacing"],tve=e=>{const{classes:t,disableSpacing:r}=e;return Ge({root:["root",!r&&"spacing"]},Zpe,t)},rve=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>R({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),IS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Se(n,eve),s=R({},n,{disableSpacing:o}),u=tve(s);return N.jsx(rve,R({className:ue(u.root,a),ownerState:s,ref:r},i))});function nve(e){return Ke("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function ave(e){return Ke("MuiDialogTitle",e)}const ove=qe("MuiDialogTitle",["root"]),ive=["className","dividers"],sve=e=>{const{classes:t,dividers:r}=e;return Ge({root:["root",r&&"dividers"]},nve,t)},lve=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>R({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${ove.root} + &`]:{paddingTop:0}})),AS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Se(n,ive),s=R({},n,{dividers:o}),u=sve(s);return N.jsx(lve,R({className:ue(u.root,a),ownerState:s,ref:r},i))});function uve(e){return Ke("MuiDialogContentText",e)}qe("MuiDialogContentText",["root"]);const cve=["children","className"],dve=e=>{const{classes:t}=e,n=Ge({root:["root"]},uve,t);return R({},t,n)},fve=ne(xr,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Se(n,cve),i=dve(o);return N.jsx(fve,R({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),pve=["className","id"],vve=e=>{const{classes:t}=e;return Ge({root:["root"]},ave,t)},hve=ne(xr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),MS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Se(n,pve),s=n,u=vve(s),{titleId:l=o}=f.useContext(N5);return N.jsx(hve,R({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),AR=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=fo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function yve(e){return typeof e=="function"?e():e}function Jp(e,t,r){const n=yve(r),a=gve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const B5=f.forwardRef(function(t,r){const n=ni(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:d=a,in:p,onEnter:h,onEntered:m,onEntering:g,onExit:_,onExited:x,onExiting:y,style:b,timeout:E=o,TransitionComponent:v=za}=t,w=Se(t,mve),S=f.useRef(null),O=rr(u.ref,S,r),C=j=>V=>{j&&(V===void 0?j(S.current):j(S.current,V))},P=C((j,V)=>{Jp(c,j,l),_S(j),h&&h(j,V)}),$=C((j,V)=>{const J=rc({timeout:E,style:b,easing:d},{mode:"enter"});j.style.webkitTransition=n.transitions.create("-webkit-transform",R({},J)),j.style.transition=n.transitions.create("transform",R({},J)),j.style.webkitTransform="none",j.style.transform="none",g&&g(j,V)}),T=C(m),A=C(y),M=C(j=>{const V=rc({timeout:E,style:b,easing:d},{mode:"exit"});j.style.webkitTransition=n.transitions.create("-webkit-transform",V),j.style.transition=n.transitions.create("transform",V),Jp(c,j,l),_&&_(j)}),I=C(j=>{j.style.webkitTransition="",j.style.transition="",x&&x(j)}),U=j=>{i&&i(S.current,j)},W=f.useCallback(()=>{S.current&&Jp(c,S.current,l)},[c,l]);return f.useEffect(()=>{if(p||c==="down"||c==="right")return;const j=sy(()=>{S.current&&Jp(c,S.current,l)}),V=fo(S.current);return V.addEventListener("resize",j),()=>{j.clear(),V.removeEventListener("resize",j)}},[c,p,l]),f.useEffect(()=>{p||W()},[p,W]),N.jsx(v,R({nodeRef:S,onEnter:P,onEntered:T,onEntering:$,onExit:M,onExited:I,onExiting:A,addEndListener:U,appear:s,in:p,timeout:E},w,{children:(j,V)=>f.cloneElement(u,R({ref:O,style:R({visibility:j==="exited"&&!p?"hidden":void 0},b,u.props.style)},V))}))});function bve(e){return Ke("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const xve=["BackdropProps"],wve=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],z5=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},_ve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${de(r)}`,n!=="temporary"&&`paperAnchorDocked${de(r)}`]};return Ge(a,bve,t)},Eve=ne(TS,{name:"MuiDrawer",slot:"Root",overridesResolver:z5})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),MR=ne("div",{shouldForwardProp:Kr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:z5})({flex:"0 0 auto"}),Sve=ne(as,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${de(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${de(r.anchor)}`]]}})(({theme:e,ownerState:t})=>R({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),U5={left:"right",right:"left",top:"down",bottom:"up"};function Ove(e){return["left","right"].indexOf(e)!==-1}function Cve({direction:e},t){return e==="rtl"&&Ove(t)?U5[t]:t}const Pve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDrawer"}),a=ni(),o=Ac(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:g=!1,PaperProps:_={},SlideProps:x,TransitionComponent:y=B5,transitionDuration:b=i,variant:E="temporary"}=n,v=Se(n.ModalProps,xve),w=Se(n,wve),S=f.useRef(!1);f.useEffect(()=>{S.current=!0},[]);const O=Cve({direction:o?"rtl":"ltr"},s),P=R({},n,{anchor:s,elevation:d,open:g,variant:E},w),$=_ve(P),T=N.jsx(Sve,R({elevation:E==="temporary"?d:0,square:!0},_,{className:ue($.paper,_.className),ownerState:P,children:l}));if(E==="permanent")return N.jsx(MR,R({className:ue($.root,$.docked,c),ownerState:P,ref:r},w,{children:T}));const A=N.jsx(y,R({in:g,direction:U5[O],timeout:b,appear:S.current},x,{children:T}));return E==="persistent"?N.jsx(MR,R({className:ue($.root,$.docked,c),ownerState:P,ref:r},w,{children:A})):N.jsx(Eve,R({BackdropProps:R({},u,h,{transitionDuration:b}),className:ue($.root,$.modal,c),open:g,ownerState:P,onClose:m,hideBackdrop:p,ref:r},w,v,{children:A}))});function $ve(e){return Ke("MuiFab",e)}const FR=qe("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Rve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],kve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${de(a)}`,t==="inherit"?"colorInherit":t]},i=Ge(o,$ve,n);return R({},n,i)},Tve=ne(Go,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Kr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${de(r.size)}`],r.color==="inherit"&&t.colorInherit,t[de(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return R({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${FR.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>R({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${FR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),jve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:d="large",variant:p="circular"}=n,h=Se(n,Rve),m=R({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:d,variant:p}),g=kve(m);return N.jsx(Tve,R({className:ue(g.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(g.focusVisible,c),ownerState:m,ref:r},h,{classes:g,children:a}))}),Ive=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ave=e=>{const{classes:t,disableUnderline:r}=e,a=Ge({root:["root",!r&&"underline"],input:["input"]},Afe,t);return R({},t,a)},Mve=ne(Cy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sy(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return R({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${cs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${cs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.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"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.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})`:a}`,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(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&R({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}))}),Fve=ne(Py,{name:"MuiFilledInput",slot:"Input",overridesResolver:Oy})(({theme:e,ownerState:t})=>R({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})),FS=f.forwardRef(function(t,r){var n,a,o,i;const s=Qe({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:g="text"}=s,_=Se(s,Ive),x=R({},s,{fullWidth:c,inputComponent:d,multiline:p,type:g}),y=Ave(s),b={root:{ownerState:x},input:{ownerState:x}},E=h??l?Hr(b,h??l):b,v=(n=(a=m.root)!=null?a:u.Root)!=null?n:Mve,w=(o=(i=m.input)!=null?i:u.Input)!=null?o:Fve;return N.jsx($y,R({slots:{root:v,input:w},componentsProps:E,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:g},_,{classes:y}))});FS.muiName="Input";function Lve(e){return Ke("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Nve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Dve=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${de(r)}`,n&&"fullWidth"]};return Ge(a,Lve,t)},Bve=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>R({},t.root,t[`margin${de(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>R({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%"})),zve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:_="outlined"}=n,x=Se(n,Nve),y=R({},n,{color:i,component:s,disabled:u,error:l,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:g,variant:_}),b=Dve(y),[E,v]=f.useState(()=>{let A=!1;return a&&f.Children.forEach(a,M=>{if(!$v(M,["Input","Select"]))return;const I=$v(M,["Select"])?M.props.input:M;I&&Pfe(I.props)&&(A=!0)}),A}),[w,S]=f.useState(()=>{let A=!1;return a&&f.Children.forEach(a,M=>{$v(M,["Input","Select"])&&(Yh(M.props,!0)||Yh(M.props.inputProps,!0))&&(A=!0)}),A}),[O,C]=f.useState(!1);u&&O&&C(!1);const P=c!==void 0&&!u?c:O;let $;const T=f.useMemo(()=>({adornedStart:E,setAdornedStart:v,color:i,disabled:u,error:l,filled:w,focused:P,fullWidth:d,hiddenLabel:p,size:g,onBlur:()=>{C(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:m,variant:_}),[E,i,u,l,w,P,d,p,$,m,g,_]);return N.jsx(Ey.Provider,{value:T,children:N.jsx(Bve,R({as:s,ownerState:y,className:ue(b.root,o),ref:r},x,{children:a}))})}),jy=hle({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Qe({props:e,name:"MuiStack"})});function Uve(e){return Ke("MuiFormHelperText",e)}const LR=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var NR;const Vve=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Wve=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${de(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return Ge(l,Uve,t)},Hve=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${de(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>R({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${LR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${LR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),V5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Se(n,Vve),u=is(),l=Lc({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=R({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=Wve(c);return N.jsx(Hve,R({as:i,ownerState:c,className:ue(d.root,o),ref:r},s,{children:a===" "?NR||(NR=N.jsx("span",{className:"notranslate",children:"​"})):a}))});function qve(e){return Ke("MuiFormLabel",e)}const Hd=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Kve=["children","className","color","component","disabled","error","filled","focused","required"],Gve=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${de(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Ge(u,qve,t)},Qve=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>R({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>R({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Hd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Hd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hd.error}`]:{color:(e.vars||e).palette.error.main}})),Xve=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Hd.error}`]:{color:(e.vars||e).palette.error.main}})),Yve=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Se(n,Kve),u=is(),l=Lc({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=R({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),d=Gve(c);return N.jsxs(Qve,R({as:i,ownerState:c,className:ue(d.root,o),ref:r},s,{children:[a,l.required&&N.jsxs(Xve,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Jve=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yx(e){return`scale(${e}, ${e**2})`}const Zve={entering:{opacity:1,transform:yx(1)},entered:{opacity:1,transform:"none"}},Q0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Af=f.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:_=za}=t,x=Se(t,Jve),y=As(),b=f.useRef(),E=ni(),v=f.useRef(null),w=rr(v,o.ref,r),S=I=>U=>{if(I){const W=v.current;U===void 0?I(W):I(W,U)}},O=S(c),C=S((I,U)=>{_S(I);const{duration:W,delay:j,easing:V}=rc({style:m,timeout:g,easing:i},{mode:"enter"});let J;g==="auto"?(J=E.transitions.getAutoHeightDuration(I.clientHeight),b.current=J):J=W,I.style.transition=[E.transitions.create("opacity",{duration:J,delay:j}),E.transitions.create("transform",{duration:Q0?J:J*.666,delay:j,easing:V})].join(","),u&&u(I,U)}),P=S(l),$=S(h),T=S(I=>{const{duration:U,delay:W,easing:j}=rc({style:m,timeout:g,easing:i},{mode:"exit"});let V;g==="auto"?(V=E.transitions.getAutoHeightDuration(I.clientHeight),b.current=V):V=U,I.style.transition=[E.transitions.create("opacity",{duration:V,delay:W}),E.transitions.create("transform",{duration:Q0?V:V*.666,delay:Q0?W:W||V*.333,easing:j})].join(","),I.style.opacity=0,I.style.transform=yx(.75),d&&d(I)}),A=S(p),M=I=>{g==="auto"&&y.start(b.current||0,I),n&&n(v.current,I)};return N.jsx(_,R({appear:a,in:s,nodeRef:v,onEnter:C,onEntered:P,onEntering:O,onExit:T,onExited:A,onExiting:$,addEndListener:M,timeout:g==="auto"?null:g},x,{children:(I,U)=>f.cloneElement(o,R({style:R({opacity:0,transform:yx(.75),visibility:I==="exited"&&!s?"hidden":void 0},Zve[I],m,o.props.style),ref:w},U))}))});Af.muiSupportAuto=!0;const ehe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],the=e=>{const{classes:t,disableUnderline:r}=e,a=Ge({root:["root",!r&&"underline"],input:["input"]},jfe,t);return R({},t,a)},rhe=ne(Cy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sy(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),R({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"},[`&.${id.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${id.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${id.disabled}, .${id.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${id.disabled}:before`]:{borderBottomStyle:"dotted"}})}),nhe=ne(Py,{name:"MuiInput",slot:"Input",overridesResolver:Oy})({}),LS=f.forwardRef(function(t,r){var n,a,o,i;const s=Qe({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:g={},type:_="text"}=s,x=Se(s,ehe),y=the(s),E={root:{ownerState:{disableUnderline:u}}},v=m??c?Hr(m??c,E):E,w=(n=(a=g.root)!=null?a:l.Root)!=null?n:rhe,S=(o=(i=g.input)!=null?i:l.Input)!=null?o:nhe;return N.jsx($y,R({slots:{root:w,input:S},slotProps:v,fullWidth:d,inputComponent:p,multiline:h,ref:r,type:_},x,{classes:y}))});LS.muiName="Input";function ahe(e){return Ke("MuiInputAdornment",e)}const DR=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var BR;const ohe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ihe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${de(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},she=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${de(a)}`,i,n&&"hiddenLabel",o&&`size${de(o)}`]};return Ge(s,ahe,t)},lhe=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ihe})(({theme:e,ownerState:t})=>R({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${DR.positionStart}&:not(.${DR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),X0=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,d=Se(n,ohe),p=is()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=R({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:h}),g=she(m);return N.jsx(Ey.Provider,{value:null,children:N.jsx(lhe,R({as:i,ownerState:m,className:ue(g.root,o),ref:r},d,{children:typeof a=="string"&&!u?N.jsx(xr,{color:"text.secondary",children:a}):N.jsxs(f.Fragment,{children:[l==="start"?BR||(BR=N.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function uhe(e){return Ke("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const che=["disableAnimation","margin","shrink","variant","className"],dhe=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${de(n)}`,i],asterisk:[s&&"asterisk"]},l=Ge(u,uhe,t);return R({},t,l)},fhe=ne(Yve,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hd.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>R({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"&&R({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&&R({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"&&R({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)"}))),phe=f.forwardRef(function(t,r){const n=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Se(n,che),u=is();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Lc({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),d=R({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=dhe(d);return N.jsx(fhe,R({"data-shrink":l,ownerState:d,ref:r,className:ue(p.root,i)},s,{classes:p}))});function vhe(e){return Ke("MuiLinearProgress",e)}qe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const hhe=["className","color","value","valueBuffer","variant"];let Nc=e=>e,zR,UR,VR,WR,HR,qR;const bx=4,mhe=ri(zR||(zR=Nc` 0% { left: -35%; right: 100%; @@ -230,7 +230,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu left: 100%; right: -90%; } -`)),mhe=ri(UR||(UR=Nc` +`)),ghe=ri(UR||(UR=Nc` 0% { left: -200%; right: 100%; @@ -245,7 +245,7 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu left: 107%; right: -8%; } -`)),ghe=ri(VR||(VR=Nc` +`)),yhe=ri(VR||(VR=Nc` 0% { opacity: 1; background-position: 0 -23px; @@ -260,19 +260,19 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu opacity: 1; background-position: -200px -23px; } -`)),yhe=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${de(n)}`,r],dashed:["dashed",`dashedColor${de(n)}`],bar1:["bar",`barColor${de(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${de(n)}`,r==="buffer"&&`color${de(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ge(a,phe,t)},NS=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?vS(e.palette[t].main,.62):pS(e.palette[t].main,.5),bhe=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${de(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>R({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:NS(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),xhe=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${de(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=NS(t,e.color);return R({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},yl(WR||(WR=Nc` +`)),bhe=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${de(n)}`,r],dashed:["dashed",`dashedColor${de(n)}`],bar1:["bar",`barColor${de(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${de(n)}`,r==="buffer"&&`color${de(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Ge(a,vhe,t)},NS=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?vS(e.palette[t].main,.62):pS(e.palette[t].main,.5),xhe=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${de(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>R({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:NS(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),whe=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${de(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=NS(t,e.color);return R({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},yl(WR||(WR=Nc` animation: ${0} 3s infinite linear; - `),ghe)),whe=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${de(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>R({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${bx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${bx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yl(HR||(HR=Nc` + `),yhe)),_he=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${de(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>R({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${bx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${bx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yl(HR||(HR=Nc` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),hhe)),_he=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${de(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>R({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:NS(t,e.color),transition:`transform .${bx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yl(qR||(qR=Nc` + `),mhe)),Ehe=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${de(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>R({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:NS(t,e.color),transition:`transform .${bx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yl(qR||(qR=Nc` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),mhe)),Ehe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:s,variant:u="indeterminate"}=n,l=Se(n,vhe),c=R({},n,{color:o,variant:u}),d=yhe(c),p=Ac(),h={},m={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let g=i-100;p&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(u==="buffer"&&s!==void 0){let g=(s||0)-100;p&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return N.jsxs(bhe,R({className:ue(d.root,a),ownerState:c,role:"progressbar"},h,{ref:r},l,{children:[u==="buffer"?N.jsx(xhe,{className:d.dashed,ownerState:c}):null,N.jsx(whe,{className:d.bar1,ownerState:c,style:m.bar1}),u==="determinate"?null:N.jsx(_he,{className:d.bar2,ownerState:c,style:m.bar2})]}))});function She(e){return Ke("MuiLink",e)}const Ohe=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),W5={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Che=e=>W5[e]||e,Phe=({theme:e,ownerState:t})=>{const r=Che(t.color),n=ec(e,`palette.${r}`,!1)||t.color,a=ec(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},$he=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Rhe=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${de(a)}`,r==="button"&&"button",n&&"focusVisible"]};return Ge(o,She,t)},khe=ne(xr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${de(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>R({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&R({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Phe({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"},[`&.${Ohe.focusVisible}`]:{outline:"auto"}})),The=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:d="inherit",sx:p}=n,h=Se(n,$he),{isFocusVisibleRef:m,onBlur:g,onFocus:_,ref:x}=uy(),[y,b]=f.useState(!1),E=rr(r,x),v=C=>{g(C),m.current===!1&&b(!1),s&&s(C)},w=C=>{_(C),m.current===!0&&b(!0),u&&u(C)},S=R({},n,{color:o,component:i,focusVisible:y,underline:c,variant:d}),O=Rhe(S);return N.jsx(khe,R({color:o,className:ue(O.root,a),classes:l,component:i,onBlur:v,onFocus:w,ref:E,ownerState:S,variant:d,sx:[...Object.keys(W5).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))}),Af=f.createContext({});function jhe(e){return Ke("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const Ihe=["children","className","component","dense","disablePadding","subheader"],Ahe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return Ge({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},jhe,t)},Mhe=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>R({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Se(n,Ihe),d=f.useMemo(()=>({dense:s}),[s]),p=R({},n,{component:i,dense:s,disablePadding:u}),h=Ahe(p);return N.jsx(Af.Provider,{value:d,children:N.jsxs(Mhe,R({as:i,className:ue(h.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})});function Lhe(e){return Ke("MuiListItemIcon",e)}const KR=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),Nhe=["className"],Dhe=e=>{const{alignItems:t,classes:r}=e;return Ge({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Lhe,r)},Bhe=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>R({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),H5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Se(n,Nhe),i=f.useContext(Af),s=R({},n,{alignItems:i.alignItems}),u=Dhe(s);return N.jsx(Bhe,R({className:ue(u.root,a),ownerState:s,ref:r},o))});function zhe(e){return Ke("MuiListItemText",e)}const em=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Uhe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Vhe=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return Ge({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},zhe,t)},Whe=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${em.primary}`]:t.primary},{[`& .${em.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>R({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Hhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d}=n,p=Se(n,Uhe),{dense:h}=f.useContext(Af);let m=u??a,g=c;const _=R({},n,{disableTypography:i,inset:s,primary:!!m,secondary:!!g,dense:h}),x=Vhe(_);return m!=null&&m.type!==xr&&!i&&(m=N.jsx(xr,R({variant:h?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:m}))),g!=null&&g.type!==xr&&!i&&(g=N.jsx(xr,R({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},d,{children:g}))),N.jsxs(Whe,R({className:ue(x.root,o),ownerState:_,ref:r},p,{children:[m,g]}))}),qhe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Y0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function GR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function q5(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function sd(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!q5(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const K5=f.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Se(t,qhe),h=f.useRef(null),m=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ma(()=>{a&&h.current.focus()},[a]),f.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:E})=>{const v=!h.current.style.width;if(b.clientHeight{const E=h.current,v=b.key,w=jr(E).activeElement;if(v==="ArrowDown")b.preventDefault(),sd(E,w,l,u,Y0);else if(v==="ArrowUp")b.preventDefault(),sd(E,w,l,u,GR);else if(v==="Home")b.preventDefault(),sd(E,null,l,u,Y0);else if(v==="End")b.preventDefault(),sd(E,null,l,u,GR);else if(v.length===1){const S=m.current,O=v.toLowerCase(),C=performance.now();S.keys.length>0&&(C-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&O!==S.keys[0]&&(S.repeating=!1)),S.lastTime=C,S.keys.push(O);const P=w&&!S.repeating&&q5(w,S);S.previousKeyMatched&&(P||sd(E,w,!1,u,Y0,S))?b.preventDefault():S.previousKeyMatched=!1}c&&c(b)},_=rr(h,r);let x=-1;f.Children.forEach(i,(b,E)=>{if(!f.isValidElement(b)){x===E&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||x===-1)&&(x=E),x===E&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const y=f.Children.map(i,(b,E)=>{if(E===x){const v={};return o&&(v.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(v.tabIndex=0),f.cloneElement(b,v)}return b});return N.jsx(Fhe,R({role:"menu",ref:_,className:s,onKeyDown:g,tabIndex:a?0:-1},p,{children:y}))});function Khe(e){return Ke("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const Ghe=["onEntering"],Qhe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xhe=["slotProps"];function QR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function XR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function YR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function J0(e){return typeof e=="function"?e():e}const Yhe=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},Khe,t)},Jhe=ne(TS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G5=ne(as,{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}),Q5=f.forwardRef(function(t,r){var n,a,o;const i=Qe({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:g=8,marginThreshold:_=16,open:x,PaperProps:y={},slots:b,slotProps:E,transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:w=If,transitionDuration:S="auto",TransitionProps:{onEntering:O}={},disableScrollLock:C=!1}=i,P=Se(i.TransitionProps,Ghe),$=Se(i,Qhe),T=(n=E==null?void 0:E.paper)!=null?n:y,A=f.useRef(),M=rr(A,T.ref),I=R({},i,{anchorOrigin:l,anchorReference:d,elevation:g,marginThreshold:_,externalPaperSlotProps:T,transformOrigin:v,TransitionComponent:w,transitionDuration:S,TransitionProps:P}),U=Yhe(I),W=f.useCallback(()=>{if(d==="anchorPosition")return c;const Fe=J0(u),et=(Fe&&Fe.nodeType===1?Fe:jr(A.current).body).getBoundingClientRect();return{top:et.top+QR(et,l.vertical),left:et.left+XR(et,l.horizontal)}},[u,l.horizontal,l.vertical,c,d]),j=f.useCallback(Fe=>({vertical:QR(Fe,v.vertical),horizontal:XR(Fe,v.horizontal)}),[v.horizontal,v.vertical]),V=f.useCallback(Fe=>{const He={width:Fe.offsetWidth,height:Fe.offsetHeight},et=j(He);if(d==="none")return{top:null,left:null,transformOrigin:YR(et)};const ft=W();let xt=ft.top-et.vertical,z=ft.left-et.horizontal;const X=xt+He.height,te=z+He.width,le=fo(J0(u)),ye=le.innerHeight-_,me=le.innerWidth-_;if(_!==null&&xt<_){const ge=xt-_;xt-=ge,et.vertical+=ge}else if(_!==null&&X>ye){const ge=X-ye;xt-=ge,et.vertical+=ge}if(_!==null&&z<_){const ge=z-_;z-=ge,et.horizontal+=ge}else if(te>me){const ge=te-me;z-=ge,et.horizontal+=ge}return{top:`${Math.round(xt)}px`,left:`${Math.round(z)}px`,transformOrigin:YR(et)}},[u,d,W,j,_]),[J,se]=f.useState(x),oe=f.useCallback(()=>{const Fe=A.current;if(!Fe)return;const He=V(Fe);He.top!==null&&(Fe.style.top=He.top),He.left!==null&&(Fe.style.left=He.left),Fe.style.transformOrigin=He.transformOrigin,se(!0)},[V]);f.useEffect(()=>(C&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,C,oe]);const ve=(Fe,He)=>{O&&O(Fe,He),oe()},be=()=>{se(!1)};f.useEffect(()=>{x&&oe()}),f.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),f.useEffect(()=>{if(!x)return;const Fe=sy(()=>{oe()}),He=fo(u);return He.addEventListener("resize",Fe),()=>{Fe.clear(),He.removeEventListener("resize",Fe)}},[u,x,oe]);let xe=S;S==="auto"&&!w.muiSupportAuto&&(xe=void 0);const _e=m||(u?jr(J0(u)).body:void 0),Te=(a=b==null?void 0:b.root)!=null?a:Jhe,$e=(o=b==null?void 0:b.paper)!=null?o:G5,Ee=Ki({elementType:$e,externalSlotProps:R({},T,{style:J?T.style:R({},T.style,{opacity:0})}),additionalProps:{elevation:g,ref:M},ownerState:I,className:ue(U.paper,T==null?void 0:T.className)}),Ve=Ki({elementType:Te,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:$,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:_e,open:x},ownerState:I,className:ue(U.root,h)}),{slotProps:je}=Ve,De=Se(Ve,Xhe);return N.jsx(Te,R({},De,!kf(Te)&&{slotProps:je,disableScrollLock:C},{children:N.jsx(w,R({appear:!0,in:x,onEntering:ve,onExited:be,timeout:xe},P,{children:N.jsx($e,R({},Ee,{children:p}))}))}))});function Zhe(e){return Ke("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const eme=["onEntering"],tme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rme={vertical:"top",horizontal:"right"},nme={vertical:"top",horizontal:"left"},ame=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},Zhe,t)},ome=ne(Q5,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ime=ne(G5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sme=ne(K5,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Iy=f.forwardRef(function(t,r){var n,a;const o=Qe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:_}={},variant:x="selectedMenu",slots:y={},slotProps:b={}}=o,E=Se(o.TransitionProps,eme),v=Se(o,tme),w=Ac(),S=R({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:_,PaperProps:h,transitionDuration:g,TransitionProps:E,variant:x}),O=ame(S),C=i&&!l&&p,P=f.useRef(null),$=(j,V)=>{P.current&&P.current.adjustStyleForScrollbar(j,{direction:w?"rtl":"ltr"}),_&&_(j,V)},T=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let A=-1;f.Children.map(s,(j,V)=>{f.isValidElement(j)&&(j.props.disabled||(x==="selectedMenu"&&j.props.selected||A===-1)&&(A=V))});const M=(n=y.paper)!=null?n:ime,I=(a=b.paper)!=null?a:h,U=Ki({elementType:y.root,externalSlotProps:b.root,ownerState:S,className:[O.root,u]}),W=Ki({elementType:M,externalSlotProps:I,ownerState:S,className:O.paper});return N.jsx(ome,R({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?rme:nme,slots:{paper:M,root:y.root},slotProps:{root:U,paper:W},open:p,ref:r,transitionDuration:g,TransitionProps:R({onEntering:$},E),ownerState:S},v,{classes:m,children:N.jsx(sme,R({onKeyDown:T,actions:P,autoFocus:i&&(A===-1||l),autoFocusItem:C,variant:x},c,{className:ue(O.list,c.className),children:s}))}))});function lme(e){return Ke("MuiMenuItem",e)}const ld=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ume=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},dme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=Ge({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},lme,i);return R({},i,u)},fme=ne(Go,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cme})(({theme:e,ownerState:t})=>R({},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"}},[`&.${ld.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ld.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ld.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(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})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${AR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${AR.inset}`]:{marginLeft:52},[`& .${em.root}`]:{marginTop:0,marginBottom:0},[`& .${em.inset}`]:{paddingLeft:36},[`& .${KR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&R({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${KR.root} svg`]:{fontSize:"1.25rem"}}))),No=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p}=n,h=Se(n,ume),m=f.useContext(Af),g=f.useMemo(()=>({dense:i||m.dense||!1,disableGutters:u}),[m.dense,i,u]),_=f.useRef(null);ma(()=>{a&&_.current&&_.current.focus()},[a]);const x=R({},n,{dense:g.dense,divider:s,disableGutters:u}),y=dme(n),b=rr(_,r);let E;return n.disabled||(E=d!==void 0?d:-1),N.jsx(Af.Provider,{value:g,children:N.jsx(fme,R({ref:b,role:c,tabIndex:E,component:o,focusVisibleClassName:ue(y.focusVisible,l),className:ue(y.root,p)},h,{ownerState:x,classes:y}))})});function pme(e){return Ke("MuiNativeSelect",e)}const DS=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vme=["className","disabled","error","IconComponent","inputRef","variant"],hme=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${de(r)}`,o&&"iconOpen",n&&"disabled"]};return Ge(s,pme,t)},X5=({ownerState:e,theme:t})=>R({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":R({},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"},[`&.${DS.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}}),mme=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Kr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${DS.multiple}`]:t.multiple}]}})(X5),Y5=({ownerState:e,theme:t})=>R({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${DS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),gme=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${de(r.variant)}`],r.open&&t.iconOpen]}})(Y5),yme=f.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Se(t,vme),c=R({},t,{disabled:a,variant:u,error:o}),d=hme(c);return N.jsxs(f.Fragment,{children:[N.jsx(mme,R({ownerState:c,className:ue(d.select,n),disabled:a,ref:s||r},l)),t.multiple?null:N.jsx(gme,{as:i,ownerState:c,className:d.icon})]})});var JR;const bme=["children","classes","className","label","notched"],xme=ne("fieldset",{shouldForwardProp:Kr})({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%"}),wme=ne("legend",{shouldForwardProp:Kr})(({ownerState:e,theme:t})=>R({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&&R({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 _me(e){const{className:t,label:r,notched:n}=e,a=Se(e,bme),o=r!=null&&r!=="",i=R({},e,{notched:n,withLabel:o});return N.jsx(xme,R({"aria-hidden":!0,className:t,ownerState:i},a,{children:N.jsx(wme,{ownerState:i,children:o?N.jsx("span",{children:r}):JR||(JR=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const Eme=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Sme=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jfe,t);return R({},t,n)},Ome=ne(Cy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return R({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ci.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ci.focused} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ci.error} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ci.disabled} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&R({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Cme=ne(_me,{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}}),Pme=ne(Py,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Oy})(({theme:e,ownerState:t})=>R({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})),BS=f.forwardRef(function(t,r){var n,a,o,i,s;const u=Qe({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:g={},type:_="text"}=u,x=Se(u,Eme),y=Sme(u),b=is(),E=Lc({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v=R({},u,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:c,hiddenLabel:E.hiddenLabel,multiline:h,size:E.size,type:_}),w=(n=(a=g.root)!=null?a:l.Root)!=null?n:Ome,S=(o=(i=g.input)!=null?i:l.Input)!=null?o:Pme;return N.jsx($y,R({slots:{root:w,input:S},renderSuffix:O=>N.jsx(Cme,{ownerState:v,className:y.notchedOutline,label:p!=null&&p!==""&&E.required?s||(s=N.jsxs(f.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:r,type:_},x,{classes:R({},y,{notchedOutline:null})}))});BS.muiName="Input";function $me(e){return Ke("MuiPagination",e)}qe("MuiPagination",["root","ul","outlined","text"]);const Rme=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function kme(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:p=1}=e,h=Se(e,Rme),[m,g]=tc({controlled:l,default:a,name:r,state:"page"}),_=(C,P)=>{l||g(P),u&&u(C,P)},x=(C,P)=>{const $=P-C+1;return Array.from({length:$},(T,A)=>C+A)},y=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),E=Math.max(Math.min(m-p,n-t-p*2-1),t+2),v=Math.min(Math.max(m+p,t+p*2+2),b.length>0?b[0]-2:n-1),w=[...c?["first"]:[],...s?[]:["previous"],...y,...E>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=C=>{switch(C){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},O=w.map(C=>typeof C=="number"?{onClick:P=>{_(P,C)},type:"page",page:C,selected:C===m,disabled:o,"aria-current":C===m?"true":void 0}:{onClick:P=>{_(P,S(C))},type:C,page:S(C),selected:!1,disabled:o||C.indexOf("ellipsis")===-1&&(C==="next"||C==="last"?m>=n:m<=1)});return R({items:O},h)}function Tme(e){return Ke("MuiPaginationItem",e)}const ta=qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),xx=Ln(N.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),wx=Ln(N.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ZR=Ln(N.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ek=Ln(N.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),jme=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],J5=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${de(r.size)}`],r.variant==="text"&&t[`text${de(r.color)}`],r.variant==="outlined"&&t[`outlined${de(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Ime=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${de(o)}`,u,i,r!=="standard"&&`color${de(r)}`,r!=="standard"&&`${u}${de(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Ge(l,Tme,t)},Ame=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:J5})(({theme:e,ownerState:t})=>R({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Mme=ne(Go,{name:"MuiPaginationItem",slot:"Root",overridesResolver:J5})(({theme:e,ownerState:t})=>R({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ta.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ta.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${ta.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>R({},t.variant==="text"&&{[`&.${ta.selected}`]:R({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${ta.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ta.selected}`]:R({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ta.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${ta.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Fme=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>R({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Lme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:d="circular",size:p="medium",slots:h={},type:m="page",variant:g="text"}=n,_=Se(n,jme),x=R({},n,{color:o,disabled:u,selected:c,shape:d,size:p,type:m,variant:g}),y=Ac(),b=Ime(x),v=(y?{previous:h.next||s.next||ek,next:h.previous||s.previous||ZR,last:h.first||s.first||xx,first:h.last||s.last||wx}:{previous:h.previous||s.previous||ZR,next:h.next||s.next||ek,first:h.first||s.first||xx,last:h.last||s.last||wx})[m];return m==="start-ellipsis"||m==="end-ellipsis"?N.jsx(Ame,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):N.jsxs(Mme,R({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},_,{children:[m==="page"&&l,v?N.jsx(Fme,{as:v,ownerState:x,className:b.icon}):null]}))}),Nme=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Dme=e=>{const{classes:t,variant:r}=e;return Ge({root:["root",r],ul:["ul"]},$me,t)},Bme=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),zme=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Ume(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Vme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Ume,hideNextButton:d=!1,hidePrevButton:p=!1,renderItem:h=O=>N.jsx(Lme,R({},O)),shape:m="circular",showFirstButton:g=!1,showLastButton:_=!1,siblingCount:x=1,size:y="medium",variant:b="text"}=n,E=Se(n,Nme),{items:v}=kme(R({},n,{componentName:"Pagination"})),w=R({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:d,hidePrevButton:p,renderItem:h,shape:m,showFirstButton:g,showLastButton:_,siblingCount:x,size:y,variant:b}),S=Dme(w);return N.jsx(Bme,R({"aria-label":"pagination navigation",className:ue(S.root,o),ownerState:w,ref:r},E,{children:N.jsx(zme,{className:S.ul,ownerState:w,children:v.map((O,C)=>N.jsx("li",{children:h(R({},O,{color:i,"aria-label":c(O.type,O.page,O.selected),shape:m,size:y,variant:b}))},C))})}))});function Wme(e){return Ke("MuiScopedCssBaseline",e)}qe("MuiScopedCssBaseline",["root"]);const Hme=["className","component","enableColorScheme"],qme=e=>{const{classes:t}=e;return Ge({root:["root"]},Wme,t)},Kme=ne("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,a])=>{var o;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(o=a.palette)==null?void 0:o.mode}}),R({},Npe(e,t.enableColorScheme),Dpe(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),Gme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiScopedCssBaseline"}),{className:a,component:o="div"}=n,i=Se(n,Hme),s=R({},n,{component:o}),u=qme(s);return N.jsx(Kme,R({as:o,className:ue(u.root,a),ref:r,ownerState:s},i))});function Qme(e){return Ke("MuiSelect",e)}const ud=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var tk;const Xme=["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"],Yme=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ud.select}`]:t.select},{[`&.${ud.select}`]:t[r.variant]},{[`&.${ud.error}`]:t.error},{[`&.${ud.multiple}`]:t.multiple}]}})(X5,{[`&.${ud.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Jme=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${de(r.variant)}`],r.open&&t.iconOpen]}})(Y5),Zme=ne("input",{shouldForwardProp:e=>f5(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 rk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ege(e){return e==null||typeof e=="string"&&!e.trim()}const tge=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${de(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,Qme,t)},rge=f.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:_,labelId:x,MenuProps:y={},multiple:b,name:E,onBlur:v,onChange:w,onClose:S,onFocus:O,onOpen:C,open:P,readOnly:$,renderValue:T,SelectDisplayProps:A={},tabIndex:M,value:I,variant:U="standard"}=t,W=Se(t,Xme),[j,V]=tc({controlled:I,default:d,name:"Select"}),[J,se]=tc({controlled:P,default:c,name:"Select"}),oe=f.useRef(null),ve=f.useRef(null),[be,xe]=f.useState(null),{current:_e}=f.useRef(P!=null),[Te,$e]=f.useState(),Ee=rr(r,_),Ve=f.useCallback(Oe=>{ve.current=Oe,Oe&&xe(Oe)},[]),je=be==null?void 0:be.parentNode;f.useImperativeHandle(Ee,()=>({focus:()=>{ve.current.focus()},node:oe.current,value:j}),[j]),f.useEffect(()=>{c&&J&&be&&!_e&&($e(s?null:je.clientWidth),ve.current.focus())},[be,s]),f.useEffect(()=>{i&&ve.current.focus()},[i]),f.useEffect(()=>{if(!x)return;const Oe=jr(ve.current).getElementById(x);if(Oe){const Je=()=>{getSelection().isCollapsed&&ve.current.focus()};return Oe.addEventListener("click",Je),()=>{Oe.removeEventListener("click",Je)}}},[x]);const De=(Oe,Je)=>{Oe?C&&C(Je):S&&S(Je),_e||($e(s?null:je.clientWidth),se(Oe))},Fe=Oe=>{Oe.button===0&&(Oe.preventDefault(),ve.current.focus(),De(!0,Oe))},He=Oe=>{De(!1,Oe)},et=f.Children.toArray(u),ft=Oe=>{const Je=et.find(rt=>rt.props.value===Oe.target.value);Je!==void 0&&(V(Je.props.value),w&&w(Oe,Je))},xt=Oe=>Je=>{let rt;if(Je.currentTarget.hasAttribute("tabindex")){if(b){rt=Array.isArray(j)?j.slice():[];const St=j.indexOf(Oe.props.value);St===-1?rt.push(Oe.props.value):rt.splice(St,1)}else rt=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(Je),j!==rt&&(V(rt),w)){const St=Je.nativeEvent||Je,At=new St.constructor(St.type,St);Object.defineProperty(At,"target",{writable:!0,value:{value:rt,name:E}}),w(At,Oe)}b||De(!1,Je)}},z=Oe=>{$||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Oe.key)!==-1&&(Oe.preventDefault(),De(!0,Oe))},X=be!==null&&J,te=Oe=>{!X&&v&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:j,name:E}}),v(Oe))};delete W["aria-invalid"];let le,ye;const me=[];let ge=!1;(Jh({value:j})||h)&&(T?le=T(j):ge=!0);const Z=et.map(Oe=>{if(!f.isValidElement(Oe))return null;let Je;if(b){if(!Array.isArray(j))throw new Error(Ko(2));Je=j.some(rt=>rk(rt,Oe.props.value)),Je&&ge&&me.push(Oe.props.children)}else Je=rk(j,Oe.props.value),Je&&ge&&(ye=Oe.props.children);return f.cloneElement(Oe,{"aria-selected":Je?"true":"false",onClick:xt(Oe),onKeyUp:rt=>{rt.key===" "&&rt.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(rt)},role:"option",selected:Je,value:void 0,"data-value":Oe.props.value})});ge&&(b?me.length===0?le=null:le=me.reduce((Oe,Je,rt)=>(Oe.push(Je),rt{const{classes:t}=e;return t},zS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Kr(e)&&e!=="variant",slot:"Root"},ige=ne(LS,zS)(""),sge=ne(BS,zS)(""),lge=ne(FS,zS)(""),US=f.forwardRef(function(t,r){const n=Qe({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Afe,id:d,input:p,inputProps:h,label:m,labelId:g,MenuProps:_,multiple:x=!1,native:y=!1,onClose:b,onOpen:E,open:v,renderValue:w,SelectDisplayProps:S,variant:O="outlined"}=n,C=Se(n,nge),P=y?yme:rge,$=is(),T=Lc({props:n,muiFormControl:$,states:["variant","error"]}),A=T.variant||O,M=R({},n,{variant:A,classes:i}),I=oge(M),U=Se(I,age),W=p||{standard:N.jsx(ige,{ownerState:M}),outlined:N.jsx(sge,{label:m,ownerState:M}),filled:N.jsx(lge,{ownerState:M})}[A],j=rr(r,W.ref);return N.jsx(f.Fragment,{children:f.cloneElement(W,R({inputComponent:P,inputProps:R({children:o,error:T.error,IconComponent:c,variant:A,type:void 0,multiple:x},y?{id:d}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:g,MenuProps:_,onClose:b,onOpen:E,open:v,renderValue:w,SelectDisplayProps:R({id:d},S)},h,{classes:h?Hr(U,h.classes):U},p?p.props.inputProps:{})},(x&&y||l)&&A==="outlined"?{notched:!0}:{},{ref:j,className:ue(W.props.className,s,I.root)},!p&&{variant:A},C))})});US.muiName="Select";function uge(e){return Ke("MuiSnackbarContent",e)}qe("MuiSnackbarContent",["root","message","action"]);const cge=["action","className","message","role"],dge=e=>{const{classes:t}=e;return Ge({root:["root"],action:["action"],message:["message"]},uge,t)},fge=ne(as,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=yle(e.palette.background.default,t);return R({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),pge=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),vge=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),hge=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Se(n,cge),l=n,c=dge(l);return N.jsxs(fge,R({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[N.jsx(pge,{className:c.message,ownerState:l,children:i}),a?N.jsx(vge,{className:c.action,ownerState:l,children:a}):null]}))});function mge(e){return Ke("MuiSnackbar",e)}qe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const gge=["onEnter","onExited"],yge=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],bge=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${de(r.vertical)}${de(r.horizontal)}`]};return Ge(n,mge,t)},nk=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${de(r.anchorOrigin.vertical)}${de(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return R({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:R({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),xge=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSnackbar"}),a=ni(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:m=!1,message:g,open:_,TransitionComponent:x=If,transitionDuration:y=o,TransitionProps:{onEnter:b,onExited:E}={}}=n,v=Se(n.TransitionProps,gge),w=Se(n,yge),S=R({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:m,TransitionComponent:x,transitionDuration:y}),O=bge(S),{getRootProps:C,onClickAway:P}=sfe(R({},S)),[$,T]=f.useState(!0),A=Ki({elementType:nk,getSlotProps:C,externalForwardedProps:w,ownerState:S,additionalProps:{ref:r},className:[O.root,d]}),M=U=>{T(!0),E&&E(U)},I=(U,W)=>{T(!1),b&&b(U,W)};return!_&&$?null:N.jsx($ce,R({onClickAway:P},p,{children:N.jsx(nk,R({},A,{children:N.jsx(x,R({appear:!0,in:_,timeout:y,direction:s==="top"?"down":"up",onEnter:I,onExited:M},v,{children:c||N.jsx(hge,R({message:g,action:i},h))}))}))}))});function wge(e){return Ke("MuiTooltip",e)}const ji=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_ge=["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 Ege(e){return Math.round(e*1e5)/1e5}const Sge=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${de(o.split("-")[0])}`],arrow:["arrow"]};return Ge(i,wge,t)},Oge=ne(j5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>R({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ji.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ji.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ji.arrow}`]:R({},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"] .${ji.arrow}`]:R({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cge=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>R({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(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:`${Ege(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ji.popper}[data-popper-placement*="left"] &`]:R({transformOrigin:"right center"},t.isRtl?R({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):R({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ji.popper}[data-popper-placement*="right"] &`]:R({transformOrigin:"left center"},t.isRtl?R({marginRight:"14px"},t.touch&&{marginRight:"24px"}):R({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ji.popper}[data-popper-placement*="top"] &`]:R({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ji.popper}[data-popper-placement*="bottom"] &`]:R({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Pge=ne("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:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zp=!1;const ak=new up;let cd={x:0,y:0};function ev(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const bl=f.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,d,p,h,m,g,_,x,y,b,E,v;const w=Qe({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:O,components:C={},componentsProps:P={},describeChild:$=!1,disableFocusListener:T=!1,disableHoverListener:A=!1,disableInteractive:M=!1,disableTouchListener:I=!1,enterDelay:U=100,enterNextDelay:W=0,enterTouchDelay:j=700,followCursor:V=!1,id:J,leaveDelay:se=0,leaveTouchDelay:oe=1500,onClose:ve,onOpen:be,open:xe,placement:_e="bottom",PopperComponent:Te,PopperProps:$e={},slotProps:Ee={},slots:Ve={},title:je,TransitionComponent:De=If,TransitionProps:Fe}=w,He=Se(w,_ge),et=f.isValidElement(O)?O:N.jsx("span",{children:O}),ft=ni(),xt=Ac(),[z,X]=f.useState(),[te,le]=f.useState(null),ye=f.useRef(!1),me=M||V,ge=As(),Z=As(),K=As(),Q=As(),[re,ie]=tc({controlled:xe,default:!1,name:"Tooltip",state:"open"});let Ie=re;const Xe=fl(J),Be=f.useRef(),Oe=ca(()=>{Be.current!==void 0&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),Q.clear()});f.useEffect(()=>Oe,[Oe]);const Je=Ye=>{ak.clear(),Zp=!0,ie(!0),be&&!Ie&&be(Ye)},rt=ca(Ye=>{ak.start(800+se,()=>{Zp=!1}),ie(!1),ve&&Ie&&ve(Ye),ge.start(ft.transitions.duration.shortest,()=>{ye.current=!1})}),St=Ye=>{ye.current&&Ye.type!=="touchstart"||(z&&z.removeAttribute("title"),Z.clear(),K.clear(),U||Zp&&W?Z.start(Zp?W:U,()=>{Je(Ye)}):Je(Ye))},At=Ye=>{Z.clear(),K.start(se,()=>{rt(Ye)})},{isFocusVisibleRef:Ar,onBlur:Er,onFocus:xn,ref:Mr}=uy(),[,Qt]=f.useState(!1),$t=Ye=>{Er(Ye),Ar.current===!1&&(Qt(!1),At(Ye))},vr=Ye=>{z||X(Ye.currentTarget),xn(Ye),Ar.current===!0&&(Qt(!0),St(Ye))},hr=Ye=>{ye.current=!0;const dt=et.props;dt.onTouchStart&&dt.onTouchStart(Ye)},Nn=Ye=>{hr(Ye),K.clear(),ge.clear(),Oe(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Q.start(j,()=>{document.body.style.WebkitUserSelect=Be.current,St(Ye)})},nn=Ye=>{et.props.onTouchEnd&&et.props.onTouchEnd(Ye),Oe(),K.start(oe,()=>{rt(Ye)})};f.useEffect(()=>{if(!Ie)return;function Ye(dt){(dt.key==="Escape"||dt.key==="Esc")&&rt(dt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[rt,Ie]);const Br=rr(et.ref,Mr,X,r);!je&&je!==0&&(Ie=!1);const Pr=f.useRef(),xo=Ye=>{const dt=et.props;dt.onMouseMove&&dt.onMouseMove(Ye),cd={x:Ye.clientX,y:Ye.clientY},Pr.current&&Pr.current.update()},H={},Y=typeof je=="string";$?(H.title=!Ie&&Y&&!A?je:null,H["aria-describedby"]=Ie?Xe:null):(H["aria-label"]=Y?je:null,H["aria-labelledby"]=Ie&&!Y?Xe:null);const ae=R({},H,He,et.props,{className:ue(He.className,et.props.className),onTouchStart:hr,ref:Br},V?{onMouseMove:xo}:{}),he={};I||(ae.onTouchStart=Nn,ae.onTouchEnd=nn),A||(ae.onMouseOver=ev(St,ae.onMouseOver),ae.onMouseLeave=ev(At,ae.onMouseLeave),me||(he.onMouseOver=St,he.onMouseLeave=At)),T||(ae.onFocus=ev(vr,ae.onFocus),ae.onBlur=ev($t,ae.onBlur),me||(he.onFocus=vr,he.onBlur=$t));const Ae=f.useMemo(()=>{var Ye;let dt=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Ye=$e.popperOptions)!=null&&Ye.modifiers&&(dt=dt.concat($e.popperOptions.modifiers)),R({},$e.popperOptions,{modifiers:dt})},[te,$e]),Le=R({},w,{isRtl:xt,arrow:S,disableInteractive:me,placement:_e,PopperComponentProp:Te,touch:ye.current}),Ne=Sge(Le),Re=(n=(a=Ve.popper)!=null?a:C.Popper)!=null?n:Oge,ot=(o=(i=(s=Ve.transition)!=null?s:C.Transition)!=null?i:De)!=null?o:If,We=(u=(l=Ve.tooltip)!=null?l:C.Tooltip)!=null?u:Cge,it=(c=(d=Ve.arrow)!=null?d:C.Arrow)!=null?c:Pge,_t=au(Re,R({},$e,(p=Ee.popper)!=null?p:P.popper,{className:ue(Ne.popper,$e==null?void 0:$e.className,(h=(m=Ee.popper)!=null?m:P.popper)==null?void 0:h.className)}),Le),ht=au(ot,R({},Fe,(g=Ee.transition)!=null?g:P.transition),Le),Rt=au(We,R({},(_=Ee.tooltip)!=null?_:P.tooltip,{className:ue(Ne.tooltip,(x=(y=Ee.tooltip)!=null?y:P.tooltip)==null?void 0:x.className)}),Le),yt=au(it,R({},(b=Ee.arrow)!=null?b:P.arrow,{className:ue(Ne.arrow,(E=(v=Ee.arrow)!=null?v:P.arrow)==null?void 0:E.className)}),Le);return N.jsxs(f.Fragment,{children:[f.cloneElement(et,ae),N.jsx(Re,R({as:Te??j5,placement:_e,anchorEl:V?{getBoundingClientRect:()=>({top:cd.y,left:cd.x,right:cd.x,bottom:cd.y,width:0,height:0})}:z,popperRef:Pr,open:z?Ie:!1,id:Xe,transition:!0},he,_t,{popperOptions:Ae,children:({TransitionProps:Ye})=>N.jsx(ot,R({timeout:ft.transitions.duration.shorter},Ye,ht,{children:N.jsxs(We,R({},Rt,{children:[je,S?N.jsx(it,R({},yt,{ref:le})):null]}))}))}))]})}),Z5=f.createContext();function $ge(e){return Ke("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const Rge=["className","component","padding","size","stickyHeader"],kge=e=>{const{classes:t,stickyHeader:r}=e;return Ge({root:["root",r&&"stickyHeader"]},$ge,t)},Tge=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>R({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":R({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),ok="table",e4=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTable"}),{className:a,component:o=ok,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Se(n,Rge),c=R({},n,{component:o,padding:i,size:s,stickyHeader:u}),d=kge(c),p=f.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return N.jsx(Z5.Provider,{value:p,children:N.jsx(Tge,R({as:o,role:o===ok?null:"table",ref:r,className:ue(d.root,a),ownerState:c},l))})}),Ay=f.createContext();function jge(e){return Ke("MuiTableBody",e)}qe("MuiTableBody",["root"]);const Ige=["className","component"],Age=e=>{const{classes:t}=e;return Ge({root:["root"]},jge,t)},Mge=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Fge={variant:"body"},ik="tbody",t4=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableBody"}),{className:a,component:o=ik}=n,i=Se(n,Ige),s=R({},n,{component:o}),u=Age(s);return N.jsx(Ay.Provider,{value:Fge,children:N.jsx(Mge,R({className:ue(u.root,a),as:o,ref:r,role:o===ik?null:"rowgroup",ownerState:s},i))})});function Lge(e){return Ke("MuiTableCell",e)}const Nge=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Dge=["align","className","component","padding","scope","size","sortDirection","variant"],Bge=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${de(n)}`,a!=="normal"&&`padding${de(a)}`,`size${de(o)}`]};return Ge(s,Lge,t)},zge=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${de(r.size)}`],r.padding!=="normal"&&t[`padding${de(r.padding)}`],r.align!=="inherit"&&t[`align${de(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>R({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?vS(gt(e.palette.divider,1),.88):pS(gt(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",[`&.${Nge.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})),en=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:d}=n,p=Se(n,Dge),h=f.useContext(Z5),m=f.useContext(Ay),g=m&&m.variant==="head";let _;i?_=i:_=g?"th":"td";let x=u;_==="td"?x=void 0:!x&&g&&(x="col");const y=d||m&&m.variant,b=R({},n,{align:a,component:_,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),E=Bge(b);let v=null;return c&&(v=c==="asc"?"ascending":"descending"),N.jsx(zge,R({as:_,ref:r,className:ue(E.root,o),"aria-sort":v,scope:x,ownerState:b},p))});function Uge(e){return Ke("MuiTableHead",e)}qe("MuiTableHead",["root"]);const Vge=["className","component"],Wge=e=>{const{classes:t}=e;return Ge({root:["root"]},Uge,t)},Hge=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),qge={variant:"head"},sk="thead",r4=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableHead"}),{className:a,component:o=sk}=n,i=Se(n,Vge),s=R({},n,{component:o}),u=Wge(s);return N.jsx(Ay.Provider,{value:qge,children:N.jsx(Hge,R({as:o,className:ue(u.root,a),ref:r,role:o===sk?null:"rowgroup",ownerState:s},i))})});function Kge(e){return Ke("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const Gge=["className","component","disableGutters","variant"],Qge=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ge({root:["root",!r&&"gutters",n]},Kge,t)},Xge=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>R({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),Dc=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Se(n,Gge),l=R({},n,{component:o,disableGutters:i,variant:s}),c=Qge(l);return N.jsx(Xge,R({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),Yge=Ln(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Jge=Ln(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Zge=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],eye=f.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:d,count:p,disabled:h=!1,getItemAriaLabel:m,nextIconButtonProps:g,onPageChange:_,page:x,rowsPerPage:y,showFirstButton:b,showLastButton:E,slots:v={},slotProps:w={}}=t,S=Se(t,Zge),O=Ac(),C=Ee=>{_(Ee,0)},P=Ee=>{_(Ee,x-1)},$=Ee=>{_(Ee,x+1)},T=Ee=>{_(Ee,Math.max(0,Math.ceil(p/y)-1))},A=(n=v.firstButton)!=null?n:Tr,M=(a=v.lastButton)!=null?a:Tr,I=(o=v.nextButton)!=null?o:Tr,U=(i=v.previousButton)!=null?i:Tr,W=(s=v.firstButtonIcon)!=null?s:xx,j=(u=v.lastButtonIcon)!=null?u:wx,V=(l=v.nextButtonIcon)!=null?l:Jge,J=(c=v.previousButtonIcon)!=null?c:Yge,se=O?M:A,oe=O?I:U,ve=O?U:I,be=O?A:M,xe=O?w.lastButton:w.firstButton,_e=O?w.nextButton:w.previousButton,Te=O?w.previousButton:w.nextButton,$e=O?w.firstButton:w.lastButton;return N.jsxs("div",R({ref:r},S,{children:[b&&N.jsx(se,R({onClick:C,disabled:h||x===0,"aria-label":m("first",x),title:m("first",x)},xe,{children:O?N.jsx(j,R({},w.lastButtonIcon)):N.jsx(W,R({},w.firstButtonIcon))})),N.jsx(oe,R({onClick:P,disabled:h||x===0,color:"inherit","aria-label":m("previous",x),title:m("previous",x)},_e??d,{children:O?N.jsx(V,R({},w.nextButtonIcon)):N.jsx(J,R({},w.previousButtonIcon))})),N.jsx(ve,R({onClick:$,disabled:h||(p!==-1?x>=Math.ceil(p/y)-1:!1),color:"inherit","aria-label":m("next",x),title:m("next",x)},Te??g,{children:O?N.jsx(J,R({},w.previousButtonIcon)):N.jsx(V,R({},w.nextButtonIcon))})),E&&N.jsx(be,R({onClick:T,disabled:h||x>=Math.ceil(p/y)-1,"aria-label":m("last",x),title:m("last",x)},$e,{children:O?N.jsx(W,R({},w.firstButtonIcon)):N.jsx(j,R({},w.lastButtonIcon))}))]}))});function tye(e){return Ke("MuiTablePagination",e)}const Hd=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var lk;const rye=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],nye=ne(en,{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}})),aye=ne(Dc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>R({[`& .${Hd.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},[`& .${Hd.actions}`]:{flexShrink:0,marginLeft:20}})),oye=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),iye=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>R({},e.typography.body2,{flexShrink:0})),sye=ne(US,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>R({[`& .${Hd.selectIcon}`]:t.selectIcon,[`& .${Hd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Hd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),lye=ne(No,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),uye=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>R({},e.typography.body2,{flexShrink:0}));function cye({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function dye(e){return`Go to ${e} page`}const fye=e=>{const{classes:t}=e;return Ge({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},tye,t)},uk=f.forwardRef(function(t,r){var n;const a=Qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=eye,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:d=!1,getItemAriaLabel:p=dye,labelDisplayedRows:h=cye,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:_,onRowsPerPageChange:x,page:y,rowsPerPage:b,rowsPerPageOptions:E=[10,25,50,100],SelectProps:v={},showFirstButton:w=!1,showLastButton:S=!1,slotProps:O={},slots:C={}}=a,P=Se(a,rye),$=a,T=fye($),A=(n=O==null?void 0:O.select)!=null?n:v,M=A.native?"option":lye;let I;(l===en||l==="td")&&(I=u||1e3);const U=fl(A.id),W=fl(A.labelId),j=()=>c===-1?(y+1)*b:b===-1?c:Math.min(c,(y+1)*b);return N.jsx(nye,R({colSpan:I,ref:r,as:l,ownerState:$,className:ue(T.root,s)},P,{children:N.jsxs(aye,{className:T.toolbar,children:[N.jsx(oye,{className:T.spacer}),E.length>1&&N.jsx(iye,{className:T.selectLabel,id:W,children:m}),E.length>1&&N.jsx(sye,R({variant:"standard"},!A.variant&&{input:lk||(lk=N.jsx($y,{}))},{value:b,onChange:x,id:U,labelId:W},A,{classes:R({},A.classes,{root:ue(T.input,T.selectRoot,(A.classes||{}).root),select:ue(T.select,(A.classes||{}).select),icon:ue(T.selectIcon,(A.classes||{}).icon)}),disabled:d,children:E.map(V=>f.createElement(M,R({},!kf(M)&&{ownerState:$},{className:T.menuItem,key:V.label?V.label:V,value:V.value?V.value:V}),V.label?V.label:V))})),N.jsx(uye,{className:T.displayedRows,children:h({from:c===0?0:y*b+1,to:j(),count:c===-1?-1:c,page:y})}),N.jsx(o,{className:T.actions,backIconButtonProps:i,count:c,nextIconButtonProps:g,onPageChange:_,page:y,rowsPerPage:b,showFirstButton:w,showLastButton:S,slotProps:O.actions,slots:C.actions,getItemAriaLabel:p,disabled:d})]})}))});function pye(e){return Ke("MuiTableRow",e)}const ck=qe("MuiTableRow",["root","selected","hover","head","footer"]),vye=["className","component","hover","selected"],hye=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return Ge({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},pye,t)},mye=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ck.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ck.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(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}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),dk="tr",Mf=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableRow"}),{className:a,component:o=dk,hover:i=!1,selected:s=!1}=n,u=Se(n,vye),l=f.useContext(Ay),c=R({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),d=hye(c);return N.jsx(mye,R({as:o,ref:r,className:ue(d.root,a),role:o===dk?null:"row",ownerState:c},u))}),gye=Ln(N.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function yye(e){return Ke("MuiTableSortLabel",e)}const Z0=qe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),bye=["active","children","className","direction","hideSortIcon","IconComponent"],xye=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${de(r)}`]};return Ge(a,yye,t)},wye=ne(Go,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Z0.icon}`]:{opacity:.5}},[`&.${Z0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Z0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),_ye=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${de(r.direction)}`]]}})(({theme:e,ownerState:t})=>R({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),Eye=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=gye}=n,c=Se(n,bye),d=R({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=xye(d);return N.jsxs(wye,R({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:d,ref:r},c,{children:[o,u&&!a?null:N.jsx(_ye,{as:l,className:ue(p.icon),ownerState:d})]}))});function Sye(e){return Ke("MuiTextField",e)}qe("MuiTextField",["root"]);const Oye=["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"],Cye={standard:LS,filled:FS,outlined:BS},Pye=e=>{const{classes:t}=e;return Ge({root:["root"]},Sye,t)},$ye=ne(Bve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:_,inputProps:x,InputProps:y,inputRef:b,label:E,maxRows:v,minRows:w,multiline:S=!1,name:O,onBlur:C,onChange:P,onFocus:$,placeholder:T,required:A=!1,rows:M,select:I=!1,SelectProps:U,type:W,value:j,variant:V="outlined"}=n,J=Se(n,Oye),se=R({},n,{autoFocus:o,color:u,disabled:c,error:d,fullWidth:h,multiline:S,required:A,select:I,variant:V}),oe=Pye(se),ve={};V==="outlined"&&(_&&typeof _.shrink<"u"&&(ve.notched=_.shrink),ve.label=E),I&&((!U||!U.native)&&(ve.id=void 0),ve["aria-describedby"]=void 0);const be=fl(g),xe=m&&be?`${be}-helper-text`:void 0,_e=E&&be?`${be}-label`:void 0,Te=Cye[V],$e=N.jsx(Te,R({"aria-describedby":xe,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:h,multiline:S,name:O,rows:M,maxRows:v,minRows:w,type:W,value:j,id:be,inputRef:b,onBlur:C,onChange:P,onFocus:$,placeholder:T,inputProps:x},ve,y));return N.jsxs($ye,R({className:ue(oe.root,s),disabled:c,error:d,fullWidth:h,ref:r,required:A,color:u,variant:V,ownerState:se},J,{children:[E!=null&&E!==""&&N.jsx(fhe,R({htmlFor:be,id:_e},_,{children:E})),I?N.jsx(US,R({"aria-describedby":xe,id:be,labelId:_e,value:j,input:$e},U,{children:i})):$e,m&&N.jsx(V5,R({id:xe},p,{children:m}))]}))}),Rye=["getTrigger","target"];function kye(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const Tye=typeof window<"u"?window:null;function n4(e={}){const{getTrigger:t=kye,target:r=Tye}=e,n=Se(e,Rye),a=f.useRef(),[o,i]=f.useState(()=>t(a,n));return f.useEffect(()=>{const s=()=>{i(t(a,R({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var WS={},eb={};const jye=vo(Oue);var fk;function Pt(){return fk||(fk=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jye}(eb)),eb}var Iye=wt;Object.defineProperty(WS,"__esModule",{value:!0});var HS=WS.default=void 0,Aye=Iye(Pt()),Mye=N;HS=WS.default=(0,Aye.default)((0,Mye.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var qd=function(){return qd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?f.createElement(K1e,null):null,t&&f.createElement(_4,null),f.createElement(f0e,null))},D0e=f.createElement(N0e,null),B0e=f.createElement(v4,null),ys="RaAppBar",Fs={appBar:"".concat(ys,"-appBar"),toolbar:"".concat(ys,"-toolbar"),menuButton:"".concat(ys,"-menuButton"),menuButtonIconClosed:"".concat(ys,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ys,"-menuButtonIconOpen"),title:"".concat(ys,"-title")},z0e=ne(Ece,{name:ys,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Fs.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Fs.menuButton)]={marginRight:"0.2em"},t["& .".concat(Fs.title)]={},t}),tO={},U0e=wt;Object.defineProperty(tO,"__esModule",{value:!0});var S4=tO.default=void 0,V0e=U0e(Pt()),W0e=N;S4=tO.default=(0,V0e.default)((0,W0e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var rO={},H0e=wt;Object.defineProperty(rO,"__esModule",{value:!0});var O4=rO.default=void 0,q0e=H0e(Pt()),K0e=N;O4=rO.default=(0,q0e.default)((0,K0e.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Gd=function(){return Gd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),f.createElement(f.Fragment,null,Kf.createPortal(f.createElement(Rbe,Ix({title:r,defaultTitle:t,preferenceKey:n},a)),i))):null},Ax=function(){return Ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=fxe(_===!1||_===void 0?void 0:!_,l||!C||S||O);HE(d==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var $=f.useCallback(function(M){return gk(void 0,void 0,void 0,function(){var I;return yk(this,function(U){switch(U.label){case 0:return E!=null&&E.save?[4,E.save(M,Yd(Yd({},u),{transform:p}))]:[3,2];case 1:I=U.sent(),U.label=2;case 2:return I!=null&&P3(I,b.setError),[2]}})})},[b.setError,E,u,p]),T=f.useCallback(function(M){return gk(void 0,void 0,void 0,function(){return yk(this,function(I){switch(I.label){case 0:return s&&s(M),M.defaultPrevented?[2]:d!=="button"?[3,2]:(M.stopPropagation(),[4,b.handleSubmit($)(M)]);case 1:I.sent(),I.label=2;case 2:return[2]}})})},[s,d,b,$]),A=i&&y(i,{_:i});return f.createElement(dxe,Yd({variant:m,type:d,color:r,"aria-label":A,disabled:P,onClick:T},x),O?f.createElement(Ty,{sx:lxe,size:14,thickness:3,color:"inherit"}):a,A)},lxe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},uxe=f.createElement(X4,null),cxe="RaSaveButton",dxe=ne(An,{name:cxe,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),fxe=function(e,t){return typeof e>"u"?t:e},pxe=function(){return Pe.createElement(hxe,{onClick:mxe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},vxe="RaSkipNavigationButton",hxe=ne(Ua,{name:vxe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),mxe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Qx=function(){return Qx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var S=tL(),O=at(),C=yn(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var P=Nt(e);if(!P)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!S||!S.isRowExpandable||S.isRowExpandable(C))&&u,T=es(),A=Pre(P,h,S&&S.expandSingle),M=A[0],I=A[1],U=f.useState(function(){return bk($,i,c)}),W=U[0],j=U[1];f.useEffect(function(){var ve=bk($,i,c);ve!==W&&j(ve)},[$,W,i,c]);var V=go(),J=f.useCallback(function(ve){I(),ve.stopPropagation()},[I]),se=f.useCallback(function(ve){!v||!m||(m(h,ve),ve.stopPropagation())},[h,m,v]),oe=f.useCallback(function(ve){return Axe(void 0,void 0,void 0,function(){var be,xe;return Mxe(this,function(_e){switch(_e.label){case 0:return ve.persist(),typeof _!="function"?[3,2]:[4,_(h,P,C)];case 1:return xe=_e.sent(),[3,3];case 2:xe=_,_e.label=3;case 3:return be=xe,be===!1||be==null?[2]:["edit","show"].includes(be)?(V(T({resource:P,id:h,type:be}),{state:{_scrollToTop:!0}}),[2]):be==="expand"?(J(ve),[2]):be==="toggleSelection"?(se(ve),[2]):(V(be),[2])}})})},[_,h,P,C,V,T,J,se]);return Pe.createElement(Pe.Fragment,null,Pe.createElement(Mf,tw({ref:t,className:ue(s,(r={},r[Ze.expandable]=$,r[Ze.selectable]=v,r[Ze.clickableRow]=typeof _=="function"?!0:_,r)),key:h,style:b,hover:p,onClick:oe},w),u&&Pe.createElement(en,{padding:"none",className:Ze.expandIconCell},$&&Pe.createElement(Ixe,{className:ue(Ze.expandIcon,(n={},n[Ze.expanded]=M,n)),expanded:M,onClick:J,expandContentId:"".concat(h,"-expand")})),c&&Pe.createElement(en,{padding:"checkbox"},Pe.createElement(Zh,{"aria-label":O("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(Ze.checkbox),checked:v&&y,onClick:se,disabled:!v})),Pe.Children.map(i,function(ve,be){return f.isValidElement(ve)?Pe.createElement(eL,{key:"".concat(h,"-").concat(ve.props.source||be),className:ue("column-".concat(ve.props.source),Ze.rowCell),record:C,field:ve,resource:P}):null})),$&&M&&Pe.createElement(Mf,{key:"".concat(h,"-expand"),id:"".concat(h,"-expand"),className:Ze.expandedPanel},Pe.createElement(en,{colSpan:W},f.isValidElement(u)?u:f.createElement(u))))}),Fxe=function(e,t){e.children,e.expand;var r=rw(e,["children","expand"]);t.children,t.expand;var n=rw(t,["children","expand"]);return NM(r,n)},nL=f.memo(rL,Fxe);nL.displayName="PureDatagridRow";var mm=function(){return mm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=twe&&(o=ewe,i=!1,t=new Qxe(t));e:for(;++a0&&b.length>0&&b.every(function(E){return h.includes(E)}),onChange:y,onClick:function(E){return E.stopPropagation()}})),f.Children.map(t,function(E,v){return f.isValidElement(E)?f.createElement(Uxe,{className:ue(Ze.headerCell,"column-".concat(E.props.source)),sort:c,field:E,isSorting:(c==null?void 0:c.field)===(E.props.sortBy||E.props.source),key:E.props.source||v,updateSort:x||void 0}):null})))};iL.displayName="DatagridHeader";var fwe=function(e){var t=e.children,r=e.value;return Pe.createElement(_O.Provider,{value:r},t)},SO={},pwe=wt;Object.defineProperty(SO,"__esModule",{value:!0});var sL=SO.default=void 0,vwe=pwe(Pt()),hwe=N;sL=SO.default=(0,vwe.default)((0,hwe.jsx)("path",{d:"M19 6.41 17.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");var aw=function(){return aw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var h=o.getValues();return r.filter(function(m){var g=fr(h,m.props.source);return m.props.alwaysOn||u[m.props.source]||!uL(g)})},d=f.useCallback(function(h){return l(h.currentTarget.dataset.key)},[l]),p=f.useMemo(function(){return{getSource:function(h){return h},getLabel:function(h){return"resources.".concat(a,".fields.").concat(h)}}},[a]);return f.createElement(V3,{value:p},f.createElement(Mwe,Vi({className:t},jwe(n),{onSubmit:Twe}),c().map(function(h){return f.createElement(Swe,{key:h.key||h.props.source,filterElement:h,handleHide:d,resource:a,className:ym.filterFormInput})}),f.createElement("div",{className:ym.clearFix})))},Twe=function(e){return e.preventDefault(),!1},jwe=function(e){e.hasCreate,e.resource;var t=CO(e,["hasCreate","resource"]);return t},Iwe=function(e,t){return Vi(Vi({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return rE(Vi({},r),n.props.source,n.props.defaultValue)},{})),e)},Awe=function(e){return e.preventDefault(),e.stopPropagation(),!1},iw="RaFilterForm",ym={clearFix:"".concat(iw,"-clearFix"),filterFormInput:"".concat(iw,"-filterFormInput")},Mwe=ne("form",{name:iw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(ym.clearFix)]={clear:"right"},t["& .".concat(ym.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Fwe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=lL(e,a,t),n},(r=OM(t))!==null&&r!==void 0?r:{})},lL=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return fr(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=lL(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return fr(r,t,"")},uL=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return uL(e[t])}):!1},PO={},Lwe=wt;Object.defineProperty(PO,"__esModule",{value:!0});var cL=PO.default=void 0,Nwe=Lwe(Pt()),Dwe=N;cL=PO.default=(0,Nwe.default)((0,Dwe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var Bwe=f.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.autoFocus,o=Nt(e),i=f.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return f.createElement(No,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:a,ref:t,disabled:r.props.disabled},f.createElement(Sf,{label:r.props.label,source:r.props.source,resource:o}))}),$O=function(e){return _a("".concat(e,".savedQueries"),[])},RO=function(e){return Array.isArray(e)?e.filter(function(t){return zwe(t)}):[]},zwe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},Uwe=function(e){var t=e.open,r=e.onClose,n=at(),a=Ba(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=$O(o),d=c[0],p=c[1],h=f.useState(""),m=h[0],g=h[1],_=function(b){g(b.target.value)},x=function(b){b.preventDefault(),y()},y=function(){var b={label:m,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},E=RO(d);p(E.concat(b)),g(""),r()};return f.createElement(jS,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},f.createElement(MS,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),f.createElement(AS,null,f.createElement("form",{onSubmit:x},f.createElement(VS,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:m,onChange:_}))),f.createElement(IS,null,f.createElement(An,{onClick:r},n("ra.action.cancel")),f.createElement(An,{onClick:y,color:"primary"},n("ra.action.save"))))},Sk=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=$O(u||"")[0],d=go(),p=Ba(),h=p.displayedFilters,m=h===void 0?{}:h,g=p.filterValues,_=p.perPage,x=p.setFilters,y=p.showFilter,b=p.sort,E=!lo(g,{}),v=RO(c),w=v.some(function(xe){return lo(xe.value,{filter:g,sort:b,perPage:_,displayedFilters:m})}),S=f.useState(!1),O=S[0],C=S[1],P=f.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var $=s.filter(function(xe){return!xe.props.alwaysOn&&!m[xe.props.source]&&typeof fr(g,xe.props.source)>"u"}),T=f.useCallback(function(xe){xe.preventDefault(),C(!0),P.current=xe.currentTarget},[P,C]),A=f.useCallback(function(){C(!1)},[C]),M=f.useCallback(function(xe){var _e=xe.source,Te=xe.defaultValue;y(_e,Te===""?void 0:Te),setTimeout(function(){var $e=document.querySelector("input[name='".concat(_e,"']"));$e&&$e.focus()},50),C(!1)},[y,C]),I=f.useState(!1),U=I[0],W=I[1],j=function(){W(!1)},V=function(){C(!1),W(!0)},J=f.useState(!1),se=J[0],oe=J[1],ve=function(){oe(!1)},be=function(){C(!1),oe(!0)};return $.length===0&&v.length===0&&!E?null:f.createElement(Kwe,sw({className:r},Hwe(i)),f.createElement(Ua,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:T,variant:o,size:a},f.createElement(cL,null)),f.createElement(Iy,{open:O,anchorEl:P.current,onClose:A},$.map(function(xe,_e){return f.createElement(Bwe,{key:xe.props.source,filter:xe,resource:u,onShow:M,autoFocus:_e===0})}),v.map(function(xe,_e){return lo(xe.value,{filter:g,sort:b,perPage:_,displayedFilters:m})?f.createElement(No,{onClick:be,key:_e},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:xe.label})):f.createElement(No,{onClick:function(){var Te,$e;d({search:ll.stringify({filter:JSON.stringify(xe.value.filter),sort:(Te=xe.value.sort)===null||Te===void 0?void 0:Te.field,order:($e=xe.value.sort)===null||$e===void 0?void 0:$e.order,page:1,perPage:xe.value.perPage,displayedFilters:JSON.stringify(xe.value.displayedFilters)})}),C(!1)},key:_e},xe.label)}),E&&!w&&!n&&f.createElement(No,{onClick:V},l("ra.saved_queries.new_label",{_:"Save current query..."})),E&&f.createElement(No,{onClick:function(){x({},{}),C(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&f.createElement(f.Fragment,null,f.createElement(Uwe,{open:U,onClose:j}),f.createElement(Vwe,{open:se,onClose:ve})))},Hwe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dL(e,["displayedFilters","filterValues","showFilter"]);return t},qwe="RaFilterButton",Kwe=ne("div",{name:qwe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),lw=function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(g("ra.navigation.page_out_of_boundaries",{page:O+1}));h(O+1)},[x,h,g]),b=f.useCallback(function(S){m(S.target.value)},[m]),E=f.useCallback(function(S){var O=S.from,C=S.to,P=S.count;return P===-1&&l?g("ra.navigation.partial_page_range_info",{offsetBegin:O,offsetEnd:C,_:"%{from}-%{to} of more than %{to}"}):g("ra.navigation.page_range_info",{offsetBegin:O,offsetEnd:C,total:P===-1?C:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[g,l]),v=f.useCallback(function(S){return g("ra.navigation.".concat(S),{_:"Go to ".concat(S," page")})},[g]);if(u)return f.createElement(Dc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(_)return f.createElement(uk,bm({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:y,rowsPerPageOptions:e_e,component:"span",labelDisplayedRows:E},Ju(i)));var w=n||(!u&&p!=null?Gwe:void 0);return f.createElement(uk,bm({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:y,onRowsPerPageChange:b,ActionsComponent:w,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:g("ra.navigation.page_rows_per_page"),labelDisplayedRows:E,getItemAriaLabel:v,rowsPerPageOptions:r},Ju(i)))}),Zwe=[5,10,25,50],e_e=[],kO={},t_e=wt;Object.defineProperty(kO,"__esModule",{value:!0});var uw=kO.default=void 0,r_e=t_e(Pt()),n_e=N;uw=kO.default=(0,r_e.default)((0,n_e.jsx)("path",{d:"M19 6.41 17.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");var xm=function(){return xm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!d.message?"ra.auth.sign_in_error":d.message,{type:"error",messageArgs:{_:typeof d=="string"?d:d&&d.message?d.message:void 0}})})};return f.createElement(u_e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},f.createElement(Ry,{className:bu.content},f.createElement(Qs,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:f$()}),f.createElement(Qs,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:f$()}),f.createElement(An,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:bu.button},a?f.createElement(Ty,{className:bu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},Dv="RaLoginForm",bu={content:"".concat(Dv,"-content"),button:"".concat(Dv,"-button"),icon:"".concat(Dv,"-icon")},u_e=ne($3,{name:Dv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(bu.content)]={width:300},t["& .".concat(bu.button)]={marginTop:r.spacing(2)},t["& .".concat(bu.icon)]={margin:r.spacing(.3)},t}),cw=function(){return cw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?S_e:r;return a?f.createElement(C_e,vw({className:ue("edit-page",o)},l),f.createElement(Bc,{title:u,defaultTitle:h,preferenceKey:"".concat(p,".edit.title")}),g,f.createElement("div",{className:ue(_u.main,(t={},t[_u.noActions]=!g,t))},f.createElement(s,{className:_u.card},m?a:f.createElement(Ry,null," ")),n)):null},Uv="RaEdit",_u={main:"".concat(Uv,"-main"),noActions:"".concat(Uv,"-noActions"),card:"".concat(Uv,"-card")},C_e=ne("div",{name:Uv,overridesResolver:function(e,t){return t.root}})((dd={},dd["& .".concat(_u.main)]={display:"flex",alignItems:"flex-start"},dd["& .".concat(_u.noActions)]={marginTop:"1em"},dd["& .".concat(_u.card)]={flex:"1 1 auto"},dd)),hw=function(){return hw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&_?B_e:r;return!a||!g&&l?null:f.createElement(U_e,yw({className:ue("show-page",o)},d),f.createElement(Bc,{title:c,defaultTitle:m,preferenceKey:"".concat(h,".show.title")}),x!==!1&&x,f.createElement("div",{className:ue(Su.main,(t={},t[Su.noActions]=!x,t))},f.createElement(s,{className:Su.card},a),n))},Wv="RaShow",Su={main:"".concat(Wv,"-main"),noActions:"".concat(Wv,"-noActions"),card:"".concat(Wv,"-card")},U_e=ne("div",{name:Wv,overridesResolver:function(e,t){return t.root}})((fd={},fd["& .".concat(Su.main)]={display:"flex"},fd["& .".concat(Su.noActions)]={marginTop:"1em"},fd["& .".concat(Su.card)]={flex:"1 1 auto"},fd)),bw=function(){return bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),oEe=function(e){return e.stopPropagation()},Pk=function(e){var t=e.clickable;return f.createElement(I5,{sx:{cursor:"inherit"},size:"small",label:f.createElement(Lee,null),clickable:t})},Ew=function(){return Ew=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&Rk.call(t.callee)==="[object Function]"),n},ob,kk;function IEe(){if(kk)return ob;kk=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=PL,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var h=p.constructor;return h&&h.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(h){var m=h!==null&&typeof h=="object",g=r.call(h)==="[object Function]",_=n(h),x=m&&r.call(h)==="[object String]",y=[];if(!m&&!g&&!_)throw new TypeError("Object.keys called on a non-object");var b=i&&g;if(x&&h.length>0&&!t.call(h,0))for(var E=0;E0)for(var v=0;v"u"||!Fr?mt:Fr(Uint8Array),Ys={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Al&&Fr?Fr([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":zl,"%AsyncGenerator%":zl,"%AsyncGeneratorFunction%":zl,"%AsyncIteratorPrototype%":zl,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nSe,"%eval%":eval,"%EvalError%":aSe,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":TL,"%GeneratorFunction%":zl,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Al&&Fr?Fr(Fr([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Al||!Fr?mt:Fr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":oSe,"%ReferenceError%":iSe,"%Reflect%":typeof Reflect>"u"?mt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Al||!Fr?mt:Fr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Al&&Fr?Fr(""[Symbol.iterator]()):mt,"%Symbol%":Al?Symbol:mt,"%SyntaxError%":lc,"%ThrowTypeError%":lSe,"%TypedArray%":cSe,"%TypeError%":Cu,"%Uint8Array%":typeof Uint8Array>"u"?mt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mt:Uint32Array,"%URIError%":sSe,"%WeakMap%":typeof WeakMap>"u"?mt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mt:WeakSet};if(Fr)try{null.error}catch(e){var dSe=Fr(Fr(e));Ys["%Error.prototype%"]=dSe}var fSe=function e(t){var r;if(t==="%AsyncFunction%")r=sb("async function () {}");else if(t==="%GeneratorFunction%")r=sb("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=sb("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Fr&&(r=Fr(a.prototype))}return Ys[t]=r,r},Mk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gp=IO,Om=rSe,pSe=gp.call(Function.call,Array.prototype.concat),vSe=gp.call(Function.apply,Array.prototype.splice),Fk=gp.call(Function.call,String.prototype.replace),Cm=gp.call(Function.call,String.prototype.slice),hSe=gp.call(Function.call,RegExp.prototype.exec),mSe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gSe=/\\(\\)?/g,ySe=function(t){var r=Cm(t,0,1),n=Cm(t,-1);if(r==="%"&&n!=="%")throw new lc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lc("invalid intrinsic syntax, expected opening `%`");var a=[];return Fk(t,mSe,function(o,i,s,u){a[a.length]=s?Fk(u,gSe,"$1"):i||o}),a},bSe=function(t,r){var n=t,a;if(Om(Mk,n)&&(a=Mk[n],n="%"+a[0]+"%"),Om(Ys,n)){var o=Ys[n];if(o===zl&&(o=fSe(n)),typeof o>"u"&&!r)throw new Cu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new lc("intrinsic "+t+" does not exist!")},bo=function(t,r){if(typeof t!="string"||t.length===0)throw new Cu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Cu('"allowMissing" argument must be a boolean');if(hSe(/^%?[^%]*%?$/,t)===null)throw new lc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ySe(t),a=n.length>0?n[0]:"",o=bSe("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],vSe(n,pSe([0,1],l)));for(var c=1,d=!0;c=n.length){var g=Xs(s,p);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[p]}else d=Om(s,p),s=s[p];d&&!u&&(Ys[i]=s)}}return s},xSe=bo,Kv=xSe("%Object.defineProperty%",!0)||!1;if(Kv)try{Kv({},"a",{value:1})}catch{Kv=!1}var AO=Kv,wSe=bo,Gv=wSe("%Object.getOwnPropertyDescriptor%",!0);if(Gv)try{Gv([],"length")}catch{Gv=null}var jL=Gv,Lk=AO,_Se=$L,Ml=bn,Nk=jL,IL=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ml("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ml("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ml("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ml("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ml("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ml("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!Nk&&Nk(t,r);if(Lk)Lk(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new _Se("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Tw=AO,AL=function(){return!!Tw};AL.hasArrayLengthDefineBug=function(){if(!Tw)return null;try{return Tw([],"length",{value:1}).length!==1}catch{return!0}};var ML=AL,ESe=FEe,SSe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",OSe=Object.prototype.toString,CSe=Array.prototype.concat,Dk=IL,PSe=function(e){return typeof e=="function"&&OSe.call(e)==="[object Function]"},FL=ML(),$Se=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!PSe(n)||!n())return}FL?Dk(e,t,r,!0):Dk(e,t,r)},LL=function(e,t){var r=arguments.length>2?arguments[2]:{},n=ESe(t);SSe&&(n=CSe.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||TSe(r)!==r)throw new Uk("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&zk){var i=zk(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(kSe?Bk(t,"length",r,!0,!0):Bk(t,"length",r)),t};(function(e){var t=IO,r=bo,n=jSe,a=bn,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=AO,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(NL);var Dy=NL.exports,DL=bo,BL=Dy,ISe=BL(DL("String.prototype.indexOf")),ai=function(t,r){var n=DL(t,!!r);return typeof n=="function"&&ISe(t,".prototype.")>-1?BL(n):n},ASe=bn,yp=function(t){if(t==null)throw new ASe(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},MSe=bo,zL=MSe("%Array%"),FSe=!zL.isArray&&ai("Object.prototype.toString"),LSe=zL.isArray||function(t){return FSe(t)==="[object Array]"},NSe=LSe,DSe=bo,BSe=ai,zSe=bn,USe=NSe,VSe=DSe("%Reflect.apply%",!0)||BSe("Function.prototype.apply"),WSe=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!USe(n))throw new zSe("Assertion failed: optional `argumentsList`, if provided, must be a List");return VSe(t,r,n)};const HSe={},qSe=Object.freeze(Object.defineProperty({__proto__:null,default:HSe},Symbol.toStringTag,{value:"Module"})),KSe=vo(qSe);var MO=typeof Map=="function"&&Map.prototype,ub=Object.getOwnPropertyDescriptor&&MO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pm=MO&&ub&&typeof ub.get=="function"?ub.get:null,Vk=MO&&Map.prototype.forEach,FO=typeof Set=="function"&&Set.prototype,cb=Object.getOwnPropertyDescriptor&&FO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$m=FO&&cb&&typeof cb.get=="function"?cb.get:null,Wk=FO&&Set.prototype.forEach,GSe=typeof WeakMap=="function"&&WeakMap.prototype,Jd=GSe?WeakMap.prototype.has:null,QSe=typeof WeakSet=="function"&&WeakSet.prototype,Zd=QSe?WeakSet.prototype.has:null,XSe=typeof WeakRef=="function"&&WeakRef.prototype,Hk=XSe?WeakRef.prototype.deref:null,YSe=Boolean.prototype.valueOf,JSe=Object.prototype.toString,ZSe=Function.prototype.toString,eOe=String.prototype.match,LO=String.prototype.slice,Ai=String.prototype.replace,tOe=String.prototype.toUpperCase,qk=String.prototype.toLowerCase,UL=RegExp.prototype.test,Kk=Array.prototype.concat,eo=Array.prototype.join,rOe=Array.prototype.slice,Gk=Math.floor,jw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,db=Object.getOwnPropertySymbols,Iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,uc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===uc||!0)?Symbol.toStringTag:null,VL=Object.prototype.propertyIsEnumerable,Qk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Xk(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||UL.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Gk(-e):Gk(e);if(n!==e){var a=String(n),o=LO.call(t,a.length+1);return Ai.call(a,r,"$&_")+"."+Ai.call(Ai.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ai.call(t,r,"$&_")}var Aw=KSe,Yk=Aw.custom,Jk=HL(Yk)?Yk:null,nOe=function e(t,r,n,a){var o=r||{};if(gi(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gi(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=gi(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gi(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gi(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return KL(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?Xk(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?Xk(t,l):l}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Mw(t)?"[Array]":"[Object]";var d=wOe(o,n);if(typeof a>"u")a=[];else if(qL(a,t)>=0)return"[Circular]";function p(A,M,I){if(M&&(a=rOe.call(a),a.push(M)),I){var U={depth:o.depth};return gi(o,"quoteStyle")&&(U.quoteStyle=o.quoteStyle),e(A,U,n+1,a)}return e(A,o,n+1,a)}if(typeof t=="function"&&!Zk(t)){var h=fOe(t),m=av(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+eo.call(m,", ")+" }":"")}if(HL(t)){var g=uc?Ai.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Iw.call(t);return typeof t=="object"&&!uc?pd(g):g}if(yOe(t)){for(var _="<"+qk.call(String(t.nodeName)),x=t.attributes||[],y=0;y",_}if(Mw(t)){if(t.length===0)return"[]";var b=av(t,p);return d&&!xOe(b)?"["+Fw(b,d)+"]":"[ "+eo.call(b,", ")+" ]"}if(iOe(t)){var E=av(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!VL.call(t,"cause")?"{ ["+String(t)+"] "+eo.call(Kk.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+eo.call(E,", ")+" }"}if(typeof t=="object"&&i){if(Jk&&typeof t[Jk]=="function"&&Aw)return Aw(t,{depth:c-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(pOe(t)){var v=[];return Vk&&Vk.call(t,function(A,M){v.push(p(M,t,!0)+" => "+p(A,t))}),eT("Map",Pm.call(t),v,d)}if(mOe(t)){var w=[];return Wk&&Wk.call(t,function(A){w.push(p(A,t))}),eT("Set",$m.call(t),w,d)}if(vOe(t))return fb("WeakMap");if(gOe(t))return fb("WeakSet");if(hOe(t))return fb("WeakRef");if(lOe(t))return pd(p(Number(t)));if(cOe(t))return pd(p(jw.call(t)));if(uOe(t))return pd(YSe.call(t));if(sOe(t))return pd(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Ps)return"{ [object globalThis] }";if(!oOe(t)&&!Zk(t)){var S=av(t,p),O=Qk?Qk(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",P=!O&&rn&&Object(t)===t&&rn in t?LO.call(ss(t),8,-1):C?"Object":"",$=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",T=$+(P||C?"["+eo.call(Kk.call([],P||[],C||[]),": ")+"] ":"");return S.length===0?T+"{}":d?T+"{"+Fw(S,d)+"}":T+"{ "+eo.call(S,", ")+" }"}return String(t)};function WL(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function aOe(e){return Ai.call(String(e),/"/g,""")}function Mw(e){return ss(e)==="[object Array]"&&(!rn||!(typeof e=="object"&&rn in e))}function oOe(e){return ss(e)==="[object Date]"&&(!rn||!(typeof e=="object"&&rn in e))}function Zk(e){return ss(e)==="[object RegExp]"&&(!rn||!(typeof e=="object"&&rn in e))}function iOe(e){return ss(e)==="[object Error]"&&(!rn||!(typeof e=="object"&&rn in e))}function sOe(e){return ss(e)==="[object String]"&&(!rn||!(typeof e=="object"&&rn in e))}function lOe(e){return ss(e)==="[object Number]"&&(!rn||!(typeof e=="object"&&rn in e))}function uOe(e){return ss(e)==="[object Boolean]"&&(!rn||!(typeof e=="object"&&rn in e))}function HL(e){if(uc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Iw)return!1;try{return Iw.call(e),!0}catch{}return!1}function cOe(e){if(!e||typeof e!="object"||!jw)return!1;try{return jw.call(e),!0}catch{}return!1}var dOe=Object.prototype.hasOwnProperty||function(e){return e in this};function gi(e,t){return dOe.call(e,t)}function ss(e){return JSe.call(e)}function fOe(e){if(e.name)return e.name;var t=eOe.call(ZSe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function qL(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return KL(LO.call(e,0,t.maxStringLength),t)+n}var a=Ai.call(Ai.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bOe);return WL(a,"single",t)}function bOe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+tOe.call(t.toString(16))}function pd(e){return"Object("+e+")"}function fb(e){return e+" { ? }"}function eT(e,t,r,n){var a=n?Fw(r,n):eo.call(r,", ");return e+" ("+t+") {"+a+"}"}function xOe(e){for(var t=0;t=0)return!1;return!0}function wOe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=eo.call(Array(e.indent+1)," ");else return null;return{base:r,prev:eo.call(Array(t+1),r)}}function Fw(e,t){if(e.length===0)return"";var r=` + `),ghe)),She=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:s,variant:u="indeterminate"}=n,l=Se(n,hhe),c=R({},n,{color:o,variant:u}),d=bhe(c),p=Ac(),h={},m={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let g=i-100;p&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(u==="buffer"&&s!==void 0){let g=(s||0)-100;p&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return N.jsxs(xhe,R({className:ue(d.root,a),ownerState:c,role:"progressbar"},h,{ref:r},l,{children:[u==="buffer"?N.jsx(whe,{className:d.dashed,ownerState:c}):null,N.jsx(_he,{className:d.bar1,ownerState:c,style:m.bar1}),u==="determinate"?null:N.jsx(Ehe,{className:d.bar2,ownerState:c,style:m.bar2})]}))});function Ohe(e){return Ke("MuiLink",e)}const Che=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),W5={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Phe=e=>W5[e]||e,$he=({theme:e,ownerState:t})=>{const r=Phe(t.color),n=ec(e,`palette.${r}`,!1)||t.color,a=ec(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},Rhe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],khe=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${de(a)}`,r==="button"&&"button",n&&"focusVisible"]};return Ge(o,Ohe,t)},The=ne(xr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${de(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>R({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&R({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:$he({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"},[`&.${Che.focusVisible}`]:{outline:"auto"}})),jhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:d="inherit",sx:p}=n,h=Se(n,Rhe),{isFocusVisibleRef:m,onBlur:g,onFocus:_,ref:x}=uy(),[y,b]=f.useState(!1),E=rr(r,x),v=C=>{g(C),m.current===!1&&b(!1),s&&s(C)},w=C=>{_(C),m.current===!0&&b(!0),u&&u(C)},S=R({},n,{color:o,component:i,focusVisible:y,underline:c,variant:d}),O=khe(S);return N.jsx(The,R({color:o,className:ue(O.root,a),classes:l,component:i,onBlur:v,onFocus:w,ref:E,ownerState:S,variant:d,sx:[...Object.keys(W5).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},h))}),Mf=f.createContext({});function Ihe(e){return Ke("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const Ahe=["children","className","component","dense","disablePadding","subheader"],Mhe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return Ge({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},Ihe,t)},Fhe=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>R({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Lhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Se(n,Ahe),d=f.useMemo(()=>({dense:s}),[s]),p=R({},n,{component:i,dense:s,disablePadding:u}),h=Mhe(p);return N.jsx(Mf.Provider,{value:d,children:N.jsxs(Fhe,R({as:i,className:ue(h.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})});function Nhe(e){return Ke("MuiListItemIcon",e)}const KR=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),Dhe=["className"],Bhe=e=>{const{alignItems:t,classes:r}=e;return Ge({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Nhe,r)},zhe=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>R({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),H5=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Se(n,Dhe),i=f.useContext(Mf),s=R({},n,{alignItems:i.alignItems}),u=Bhe(s);return N.jsx(zhe,R({className:ue(u.root,a),ownerState:s,ref:r},o))});function Uhe(e){return Ke("MuiListItemText",e)}const Zh=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Vhe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Whe=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return Ge({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Uhe,t)},Hhe=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zh.primary}`]:t.primary},{[`& .${Zh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>R({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),qhe=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d}=n,p=Se(n,Vhe),{dense:h}=f.useContext(Mf);let m=u??a,g=c;const _=R({},n,{disableTypography:i,inset:s,primary:!!m,secondary:!!g,dense:h}),x=Whe(_);return m!=null&&m.type!==xr&&!i&&(m=N.jsx(xr,R({variant:h?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:m}))),g!=null&&g.type!==xr&&!i&&(g=N.jsx(xr,R({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},d,{children:g}))),N.jsxs(Hhe,R({className:ue(x.root,o),ownerState:_,ref:r},p,{children:[m,g]}))}),Khe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Y0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function GR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function q5(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function sd(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!q5(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const K5=f.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Se(t,Khe),h=f.useRef(null),m=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ma(()=>{a&&h.current.focus()},[a]),f.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:E})=>{const v=!h.current.style.width;if(b.clientHeight{const E=h.current,v=b.key,w=jr(E).activeElement;if(v==="ArrowDown")b.preventDefault(),sd(E,w,l,u,Y0);else if(v==="ArrowUp")b.preventDefault(),sd(E,w,l,u,GR);else if(v==="Home")b.preventDefault(),sd(E,null,l,u,Y0);else if(v==="End")b.preventDefault(),sd(E,null,l,u,GR);else if(v.length===1){const S=m.current,O=v.toLowerCase(),C=performance.now();S.keys.length>0&&(C-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&O!==S.keys[0]&&(S.repeating=!1)),S.lastTime=C,S.keys.push(O);const P=w&&!S.repeating&&q5(w,S);S.previousKeyMatched&&(P||sd(E,w,!1,u,Y0,S))?b.preventDefault():S.previousKeyMatched=!1}c&&c(b)},_=rr(h,r);let x=-1;f.Children.forEach(i,(b,E)=>{if(!f.isValidElement(b)){x===E&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(d==="selectedMenu"&&b.props.selected||x===-1)&&(x=E),x===E&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const y=f.Children.map(i,(b,E)=>{if(E===x){const v={};return o&&(v.autoFocus=!0),b.props.tabIndex===void 0&&d==="selectedMenu"&&(v.tabIndex=0),f.cloneElement(b,v)}return b});return N.jsx(Lhe,R({role:"menu",ref:_,className:s,onKeyDown:g,tabIndex:a?0:-1},p,{children:y}))});function Ghe(e){return Ke("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const Qhe=["onEntering"],Xhe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yhe=["slotProps"];function QR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function XR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function YR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function J0(e){return typeof e=="function"?e():e}const Jhe=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"]},Ghe,t)},Zhe=ne(TS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G5=ne(as,{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}),Q5=f.forwardRef(function(t,r){var n,a,o;const i=Qe({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:g=8,marginThreshold:_=16,open:x,PaperProps:y={},slots:b,slotProps:E,transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:w=Af,transitionDuration:S="auto",TransitionProps:{onEntering:O}={},disableScrollLock:C=!1}=i,P=Se(i.TransitionProps,Qhe),$=Se(i,Xhe),T=(n=E==null?void 0:E.paper)!=null?n:y,A=f.useRef(),M=rr(A,T.ref),I=R({},i,{anchorOrigin:l,anchorReference:d,elevation:g,marginThreshold:_,externalPaperSlotProps:T,transformOrigin:v,TransitionComponent:w,transitionDuration:S,TransitionProps:P}),U=Jhe(I),W=f.useCallback(()=>{if(d==="anchorPosition")return c;const Fe=J0(u),et=(Fe&&Fe.nodeType===1?Fe:jr(A.current).body).getBoundingClientRect();return{top:et.top+QR(et,l.vertical),left:et.left+XR(et,l.horizontal)}},[u,l.horizontal,l.vertical,c,d]),j=f.useCallback(Fe=>({vertical:QR(Fe,v.vertical),horizontal:XR(Fe,v.horizontal)}),[v.horizontal,v.vertical]),V=f.useCallback(Fe=>{const He={width:Fe.offsetWidth,height:Fe.offsetHeight},et=j(He);if(d==="none")return{top:null,left:null,transformOrigin:YR(et)};const ft=W();let xt=ft.top-et.vertical,z=ft.left-et.horizontal;const X=xt+He.height,te=z+He.width,le=fo(J0(u)),ye=le.innerHeight-_,me=le.innerWidth-_;if(_!==null&&xt<_){const ge=xt-_;xt-=ge,et.vertical+=ge}else if(_!==null&&X>ye){const ge=X-ye;xt-=ge,et.vertical+=ge}if(_!==null&&z<_){const ge=z-_;z-=ge,et.horizontal+=ge}else if(te>me){const ge=te-me;z-=ge,et.horizontal+=ge}return{top:`${Math.round(xt)}px`,left:`${Math.round(z)}px`,transformOrigin:YR(et)}},[u,d,W,j,_]),[J,se]=f.useState(x),oe=f.useCallback(()=>{const Fe=A.current;if(!Fe)return;const He=V(Fe);He.top!==null&&(Fe.style.top=He.top),He.left!==null&&(Fe.style.left=He.left),Fe.style.transformOrigin=He.transformOrigin,se(!0)},[V]);f.useEffect(()=>(C&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,C,oe]);const ve=(Fe,He)=>{O&&O(Fe,He),oe()},be=()=>{se(!1)};f.useEffect(()=>{x&&oe()}),f.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),f.useEffect(()=>{if(!x)return;const Fe=sy(()=>{oe()}),He=fo(u);return He.addEventListener("resize",Fe),()=>{Fe.clear(),He.removeEventListener("resize",Fe)}},[u,x,oe]);let xe=S;S==="auto"&&!w.muiSupportAuto&&(xe=void 0);const _e=m||(u?jr(J0(u)).body:void 0),Te=(a=b==null?void 0:b.root)!=null?a:Zhe,$e=(o=b==null?void 0:b.paper)!=null?o:G5,Ee=Ki({elementType:$e,externalSlotProps:R({},T,{style:J?T.style:R({},T.style,{opacity:0})}),additionalProps:{elevation:g,ref:M},ownerState:I,className:ue(U.paper,T==null?void 0:T.className)}),Ve=Ki({elementType:Te,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:$,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:_e,open:x},ownerState:I,className:ue(U.root,h)}),{slotProps:je}=Ve,De=Se(Ve,Yhe);return N.jsx(Te,R({},De,!Tf(Te)&&{slotProps:je,disableScrollLock:C},{children:N.jsx(w,R({appear:!0,in:x,onEntering:ve,onExited:be,timeout:xe},P,{children:N.jsx($e,R({},Ee,{children:p}))}))}))});function eme(e){return Ke("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const tme=["onEntering"],rme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nme={vertical:"top",horizontal:"right"},ame={vertical:"top",horizontal:"left"},ome=e=>{const{classes:t}=e;return Ge({root:["root"],paper:["paper"],list:["list"]},eme,t)},ime=ne(Q5,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sme=ne(G5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),lme=ne(K5,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Iy=f.forwardRef(function(t,r){var n,a;const o=Qe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:_}={},variant:x="selectedMenu",slots:y={},slotProps:b={}}=o,E=Se(o.TransitionProps,tme),v=Se(o,rme),w=Ac(),S=R({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:_,PaperProps:h,transitionDuration:g,TransitionProps:E,variant:x}),O=ome(S),C=i&&!l&&p,P=f.useRef(null),$=(j,V)=>{P.current&&P.current.adjustStyleForScrollbar(j,{direction:w?"rtl":"ltr"}),_&&_(j,V)},T=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let A=-1;f.Children.map(s,(j,V)=>{f.isValidElement(j)&&(j.props.disabled||(x==="selectedMenu"&&j.props.selected||A===-1)&&(A=V))});const M=(n=y.paper)!=null?n:sme,I=(a=b.paper)!=null?a:h,U=Ki({elementType:y.root,externalSlotProps:b.root,ownerState:S,className:[O.root,u]}),W=Ki({elementType:M,externalSlotProps:I,ownerState:S,className:O.paper});return N.jsx(ime,R({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?nme:ame,slots:{paper:M,root:y.root},slotProps:{root:U,paper:W},open:p,ref:r,transitionDuration:g,TransitionProps:R({onEntering:$},E),ownerState:S},v,{classes:m,children:N.jsx(lme,R({onKeyDown:T,actions:P,autoFocus:i&&(A===-1||l),autoFocusItem:C,variant:x},c,{className:ue(O.list,c.className),children:s}))}))});function ume(e){return Ke("MuiMenuItem",e)}const ld=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},fme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=Ge({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},ume,i);return R({},i,u)},pme=ne(Go,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:dme})(({theme:e,ownerState:t})=>R({},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"}},[`&.${ld.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ld.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ld.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(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})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${AR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${AR.inset}`]:{marginLeft:52},[`& .${Zh.root}`]:{marginTop:0,marginBottom:0},[`& .${Zh.inset}`]:{paddingLeft:36},[`& .${KR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&R({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${KR.root} svg`]:{fontSize:"1.25rem"}}))),No=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p}=n,h=Se(n,cme),m=f.useContext(Mf),g=f.useMemo(()=>({dense:i||m.dense||!1,disableGutters:u}),[m.dense,i,u]),_=f.useRef(null);ma(()=>{a&&_.current&&_.current.focus()},[a]);const x=R({},n,{dense:g.dense,divider:s,disableGutters:u}),y=fme(n),b=rr(_,r);let E;return n.disabled||(E=d!==void 0?d:-1),N.jsx(Mf.Provider,{value:g,children:N.jsx(pme,R({ref:b,role:c,tabIndex:E,component:o,focusVisibleClassName:ue(y.focusVisible,l),className:ue(y.root,p)},h,{ownerState:x,classes:y}))})});function vme(e){return Ke("MuiNativeSelect",e)}const DS=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hme=["className","disabled","error","IconComponent","inputRef","variant"],mme=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${de(r)}`,o&&"iconOpen",n&&"disabled"]};return Ge(s,vme,t)},X5=({ownerState:e,theme:t})=>R({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":R({},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"},[`&.${DS.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}}),gme=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Kr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${DS.multiple}`]:t.multiple}]}})(X5),Y5=({ownerState:e,theme:t})=>R({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${DS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),yme=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${de(r.variant)}`],r.open&&t.iconOpen]}})(Y5),bme=f.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Se(t,hme),c=R({},t,{disabled:a,variant:u,error:o}),d=mme(c);return N.jsxs(f.Fragment,{children:[N.jsx(gme,R({ownerState:c,className:ue(d.select,n),disabled:a,ref:s||r},l)),t.multiple?null:N.jsx(yme,{as:i,ownerState:c,className:d.icon})]})});var JR;const xme=["children","classes","className","label","notched"],wme=ne("fieldset",{shouldForwardProp:Kr})({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%"}),_me=ne("legend",{shouldForwardProp:Kr})(({ownerState:e,theme:t})=>R({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&&R({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 Eme(e){const{className:t,label:r,notched:n}=e,a=Se(e,xme),o=r!=null&&r!=="",i=R({},e,{notched:n,withLabel:o});return N.jsx(wme,R({"aria-hidden":!0,className:t,ownerState:i},a,{children:N.jsx(_me,{ownerState:i,children:o?N.jsx("span",{children:r}):JR||(JR=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const Sme=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ome=e=>{const{classes:t}=e,n=Ge({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ife,t);return R({},t,n)},Cme=ne(Cy,{shouldForwardProp:e=>Kr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sy})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return R({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ci.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ci.focused} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ci.error} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ci.disabled} .${ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&R({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Pme=ne(Eme,{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}}),$me=ne(Py,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Oy})(({theme:e,ownerState:t})=>R({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})),BS=f.forwardRef(function(t,r){var n,a,o,i,s;const u=Qe({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:g={},type:_="text"}=u,x=Se(u,Sme),y=Ome(u),b=is(),E=Lc({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v=R({},u,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:c,hiddenLabel:E.hiddenLabel,multiline:h,size:E.size,type:_}),w=(n=(a=g.root)!=null?a:l.Root)!=null?n:Cme,S=(o=(i=g.input)!=null?i:l.Input)!=null?o:$me;return N.jsx($y,R({slots:{root:w,input:S},renderSuffix:O=>N.jsx(Pme,{ownerState:v,className:y.notchedOutline,label:p!=null&&p!==""&&E.required?s||(s=N.jsxs(f.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:r,type:_},x,{classes:R({},y,{notchedOutline:null})}))});BS.muiName="Input";function Rme(e){return Ke("MuiPagination",e)}qe("MuiPagination",["root","ul","outlined","text"]);const kme=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Tme(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:p=1}=e,h=Se(e,kme),[m,g]=tc({controlled:l,default:a,name:r,state:"page"}),_=(C,P)=>{l||g(P),u&&u(C,P)},x=(C,P)=>{const $=P-C+1;return Array.from({length:$},(T,A)=>C+A)},y=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),E=Math.max(Math.min(m-p,n-t-p*2-1),t+2),v=Math.min(Math.max(m+p,t+p*2+2),b.length>0?b[0]-2:n-1),w=[...c?["first"]:[],...s?[]:["previous"],...y,...E>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=C=>{switch(C){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},O=w.map(C=>typeof C=="number"?{onClick:P=>{_(P,C)},type:"page",page:C,selected:C===m,disabled:o,"aria-current":C===m?"true":void 0}:{onClick:P=>{_(P,S(C))},type:C,page:S(C),selected:!1,disabled:o||C.indexOf("ellipsis")===-1&&(C==="next"||C==="last"?m>=n:m<=1)});return R({items:O},h)}function jme(e){return Ke("MuiPaginationItem",e)}const ta=qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),xx=Ln(N.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),wx=Ln(N.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ZR=Ln(N.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ek=Ln(N.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Ime=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],J5=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${de(r.size)}`],r.variant==="text"&&t[`text${de(r.color)}`],r.variant==="outlined"&&t[`outlined${de(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},Ame=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${de(o)}`,u,i,r!=="standard"&&`color${de(r)}`,r!=="standard"&&`${u}${de(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Ge(l,jme,t)},Mme=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:J5})(({theme:e,ownerState:t})=>R({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),Fme=ne(Go,{name:"MuiPaginationItem",slot:"Root",overridesResolver:J5})(({theme:e,ownerState:t})=>R({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ta.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ta.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${ta.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>R({},t.variant==="text"&&{[`&.${ta.selected}`]:R({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${ta.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${ta.selected}`]:R({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ta.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${ta.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Lme=ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>R({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Nme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:d="circular",size:p="medium",slots:h={},type:m="page",variant:g="text"}=n,_=Se(n,Ime),x=R({},n,{color:o,disabled:u,selected:c,shape:d,size:p,type:m,variant:g}),y=Ac(),b=Ame(x),v=(y?{previous:h.next||s.next||ek,next:h.previous||s.previous||ZR,last:h.first||s.first||xx,first:h.last||s.last||wx}:{previous:h.previous||s.previous||ZR,next:h.next||s.next||ek,first:h.first||s.first||xx,last:h.last||s.last||wx})[m];return m==="start-ellipsis"||m==="end-ellipsis"?N.jsx(Mme,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):N.jsxs(Fme,R({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},_,{children:[m==="page"&&l,v?N.jsx(Lme,{as:v,ownerState:x,className:b.icon}):null]}))}),Dme=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Bme=e=>{const{classes:t,variant:r}=e;return Ge({root:["root",r],ul:["ul"]},Rme,t)},zme=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Ume=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Vme(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Wme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Vme,hideNextButton:d=!1,hidePrevButton:p=!1,renderItem:h=O=>N.jsx(Nme,R({},O)),shape:m="circular",showFirstButton:g=!1,showLastButton:_=!1,siblingCount:x=1,size:y="medium",variant:b="text"}=n,E=Se(n,Dme),{items:v}=Tme(R({},n,{componentName:"Pagination"})),w=R({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:d,hidePrevButton:p,renderItem:h,shape:m,showFirstButton:g,showLastButton:_,siblingCount:x,size:y,variant:b}),S=Bme(w);return N.jsx(zme,R({"aria-label":"pagination navigation",className:ue(S.root,o),ownerState:w,ref:r},E,{children:N.jsx(Ume,{className:S.ul,ownerState:w,children:v.map((O,C)=>N.jsx("li",{children:h(R({},O,{color:i,"aria-label":c(O.type,O.page,O.selected),shape:m,size:y,variant:b}))},C))})}))});function Hme(e){return Ke("MuiScopedCssBaseline",e)}qe("MuiScopedCssBaseline",["root"]);const qme=["className","component","enableColorScheme"],Kme=e=>{const{classes:t}=e;return Ge({root:["root"]},Hme,t)},Gme=ne("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,a])=>{var o;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(o=a.palette)==null?void 0:o.mode}}),R({},Dpe(e,t.enableColorScheme),Bpe(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),Qme=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiScopedCssBaseline"}),{className:a,component:o="div"}=n,i=Se(n,qme),s=R({},n,{component:o}),u=Kme(s);return N.jsx(Gme,R({as:o,className:ue(u.root,a),ref:r,ownerState:s},i))});function Xme(e){return Ke("MuiSelect",e)}const ud=qe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var tk;const Yme=["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"],Jme=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ud.select}`]:t.select},{[`&.${ud.select}`]:t[r.variant]},{[`&.${ud.error}`]:t.error},{[`&.${ud.multiple}`]:t.multiple}]}})(X5,{[`&.${ud.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Zme=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${de(r.variant)}`],r.open&&t.iconOpen]}})(Y5),ege=ne("input",{shouldForwardProp:e=>f5(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 rk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tge(e){return e==null||typeof e=="string"&&!e.trim()}const rge=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${de(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ge(s,Xme,t)},nge=f.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:_,labelId:x,MenuProps:y={},multiple:b,name:E,onBlur:v,onChange:w,onClose:S,onFocus:O,onOpen:C,open:P,readOnly:$,renderValue:T,SelectDisplayProps:A={},tabIndex:M,value:I,variant:U="standard"}=t,W=Se(t,Yme),[j,V]=tc({controlled:I,default:d,name:"Select"}),[J,se]=tc({controlled:P,default:c,name:"Select"}),oe=f.useRef(null),ve=f.useRef(null),[be,xe]=f.useState(null),{current:_e}=f.useRef(P!=null),[Te,$e]=f.useState(),Ee=rr(r,_),Ve=f.useCallback(Oe=>{ve.current=Oe,Oe&&xe(Oe)},[]),je=be==null?void 0:be.parentNode;f.useImperativeHandle(Ee,()=>({focus:()=>{ve.current.focus()},node:oe.current,value:j}),[j]),f.useEffect(()=>{c&&J&&be&&!_e&&($e(s?null:je.clientWidth),ve.current.focus())},[be,s]),f.useEffect(()=>{i&&ve.current.focus()},[i]),f.useEffect(()=>{if(!x)return;const Oe=jr(ve.current).getElementById(x);if(Oe){const Je=()=>{getSelection().isCollapsed&&ve.current.focus()};return Oe.addEventListener("click",Je),()=>{Oe.removeEventListener("click",Je)}}},[x]);const De=(Oe,Je)=>{Oe?C&&C(Je):S&&S(Je),_e||($e(s?null:je.clientWidth),se(Oe))},Fe=Oe=>{Oe.button===0&&(Oe.preventDefault(),ve.current.focus(),De(!0,Oe))},He=Oe=>{De(!1,Oe)},et=f.Children.toArray(u),ft=Oe=>{const Je=et.find(rt=>rt.props.value===Oe.target.value);Je!==void 0&&(V(Je.props.value),w&&w(Oe,Je))},xt=Oe=>Je=>{let rt;if(Je.currentTarget.hasAttribute("tabindex")){if(b){rt=Array.isArray(j)?j.slice():[];const St=j.indexOf(Oe.props.value);St===-1?rt.push(Oe.props.value):rt.splice(St,1)}else rt=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(Je),j!==rt&&(V(rt),w)){const St=Je.nativeEvent||Je,At=new St.constructor(St.type,St);Object.defineProperty(At,"target",{writable:!0,value:{value:rt,name:E}}),w(At,Oe)}b||De(!1,Je)}},z=Oe=>{$||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Oe.key)!==-1&&(Oe.preventDefault(),De(!0,Oe))},X=be!==null&&J,te=Oe=>{!X&&v&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:j,name:E}}),v(Oe))};delete W["aria-invalid"];let le,ye;const me=[];let ge=!1;(Yh({value:j})||h)&&(T?le=T(j):ge=!0);const Z=et.map(Oe=>{if(!f.isValidElement(Oe))return null;let Je;if(b){if(!Array.isArray(j))throw new Error(Ko(2));Je=j.some(rt=>rk(rt,Oe.props.value)),Je&&ge&&me.push(Oe.props.children)}else Je=rk(j,Oe.props.value),Je&&ge&&(ye=Oe.props.children);return f.cloneElement(Oe,{"aria-selected":Je?"true":"false",onClick:xt(Oe),onKeyUp:rt=>{rt.key===" "&&rt.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(rt)},role:"option",selected:Je,value:void 0,"data-value":Oe.props.value})});ge&&(b?me.length===0?le=null:le=me.reduce((Oe,Je,rt)=>(Oe.push(Je),rt{const{classes:t}=e;return t},zS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Kr(e)&&e!=="variant",slot:"Root"},sge=ne(LS,zS)(""),lge=ne(BS,zS)(""),uge=ne(FS,zS)(""),US=f.forwardRef(function(t,r){const n=Qe({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Mfe,id:d,input:p,inputProps:h,label:m,labelId:g,MenuProps:_,multiple:x=!1,native:y=!1,onClose:b,onOpen:E,open:v,renderValue:w,SelectDisplayProps:S,variant:O="outlined"}=n,C=Se(n,age),P=y?bme:nge,$=is(),T=Lc({props:n,muiFormControl:$,states:["variant","error"]}),A=T.variant||O,M=R({},n,{variant:A,classes:i}),I=ige(M),U=Se(I,oge),W=p||{standard:N.jsx(sge,{ownerState:M}),outlined:N.jsx(lge,{label:m,ownerState:M}),filled:N.jsx(uge,{ownerState:M})}[A],j=rr(r,W.ref);return N.jsx(f.Fragment,{children:f.cloneElement(W,R({inputComponent:P,inputProps:R({children:o,error:T.error,IconComponent:c,variant:A,type:void 0,multiple:x},y?{id:d}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:g,MenuProps:_,onClose:b,onOpen:E,open:v,renderValue:w,SelectDisplayProps:R({id:d},S)},h,{classes:h?Hr(U,h.classes):U},p?p.props.inputProps:{})},(x&&y||l)&&A==="outlined"?{notched:!0}:{},{ref:j,className:ue(W.props.className,s,I.root)},!p&&{variant:A},C))})});US.muiName="Select";function cge(e){return Ke("MuiSnackbarContent",e)}qe("MuiSnackbarContent",["root","message","action"]);const dge=["action","className","message","role"],fge=e=>{const{classes:t}=e;return Ge({root:["root"],action:["action"],message:["message"]},cge,t)},pge=ne(as,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=ble(e.palette.background.default,t);return R({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),vge=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),hge=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),mge=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Se(n,dge),l=n,c=fge(l);return N.jsxs(pge,R({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[N.jsx(vge,{className:c.message,ownerState:l,children:i}),a?N.jsx(hge,{className:c.action,ownerState:l,children:a}):null]}))});function gge(e){return Ke("MuiSnackbar",e)}qe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const yge=["onEnter","onExited"],bge=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],xge=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${de(r.vertical)}${de(r.horizontal)}`]};return Ge(n,gge,t)},nk=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${de(r.anchorOrigin.vertical)}${de(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return R({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:R({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),wge=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSnackbar"}),a=ni(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:m=!1,message:g,open:_,TransitionComponent:x=Af,transitionDuration:y=o,TransitionProps:{onEnter:b,onExited:E}={}}=n,v=Se(n.TransitionProps,yge),w=Se(n,bge),S=R({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:m,TransitionComponent:x,transitionDuration:y}),O=xge(S),{getRootProps:C,onClickAway:P}=lfe(R({},S)),[$,T]=f.useState(!0),A=Ki({elementType:nk,getSlotProps:C,externalForwardedProps:w,ownerState:S,additionalProps:{ref:r},className:[O.root,d]}),M=U=>{T(!0),E&&E(U)},I=(U,W)=>{T(!1),b&&b(U,W)};return!_&&$?null:N.jsx(Rce,R({onClickAway:P},p,{children:N.jsx(nk,R({},A,{children:N.jsx(x,R({appear:!0,in:_,timeout:y,direction:s==="top"?"down":"up",onEnter:I,onExited:M},v,{children:c||N.jsx(mge,R({message:g,action:i},h))}))}))}))});function _ge(e){return Ke("MuiTooltip",e)}const ji=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ege=["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 Sge(e){return Math.round(e*1e5)/1e5}const Oge=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${de(o.split("-")[0])}`],arrow:["arrow"]};return Ge(i,_ge,t)},Cge=ne(j5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>R({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ji.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ji.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ji.arrow}`]:R({},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"] .${ji.arrow}`]:R({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Pge=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>R({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(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:`${Sge(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ji.popper}[data-popper-placement*="left"] &`]:R({transformOrigin:"right center"},t.isRtl?R({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):R({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ji.popper}[data-popper-placement*="right"] &`]:R({transformOrigin:"left center"},t.isRtl?R({marginRight:"14px"},t.touch&&{marginRight:"24px"}):R({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ji.popper}[data-popper-placement*="top"] &`]:R({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ji.popper}[data-popper-placement*="bottom"] &`]:R({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),$ge=ne("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:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zp=!1;const ak=new up;let cd={x:0,y:0};function ev(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const bl=f.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,d,p,h,m,g,_,x,y,b,E,v;const w=Qe({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:O,components:C={},componentsProps:P={},describeChild:$=!1,disableFocusListener:T=!1,disableHoverListener:A=!1,disableInteractive:M=!1,disableTouchListener:I=!1,enterDelay:U=100,enterNextDelay:W=0,enterTouchDelay:j=700,followCursor:V=!1,id:J,leaveDelay:se=0,leaveTouchDelay:oe=1500,onClose:ve,onOpen:be,open:xe,placement:_e="bottom",PopperComponent:Te,PopperProps:$e={},slotProps:Ee={},slots:Ve={},title:je,TransitionComponent:De=Af,TransitionProps:Fe}=w,He=Se(w,Ege),et=f.isValidElement(O)?O:N.jsx("span",{children:O}),ft=ni(),xt=Ac(),[z,X]=f.useState(),[te,le]=f.useState(null),ye=f.useRef(!1),me=M||V,ge=As(),Z=As(),K=As(),Q=As(),[re,ie]=tc({controlled:xe,default:!1,name:"Tooltip",state:"open"});let Ie=re;const Xe=fl(J),Be=f.useRef(),Oe=ca(()=>{Be.current!==void 0&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),Q.clear()});f.useEffect(()=>Oe,[Oe]);const Je=Ye=>{ak.clear(),Zp=!0,ie(!0),be&&!Ie&&be(Ye)},rt=ca(Ye=>{ak.start(800+se,()=>{Zp=!1}),ie(!1),ve&&Ie&&ve(Ye),ge.start(ft.transitions.duration.shortest,()=>{ye.current=!1})}),St=Ye=>{ye.current&&Ye.type!=="touchstart"||(z&&z.removeAttribute("title"),Z.clear(),K.clear(),U||Zp&&W?Z.start(Zp?W:U,()=>{Je(Ye)}):Je(Ye))},At=Ye=>{Z.clear(),K.start(se,()=>{rt(Ye)})},{isFocusVisibleRef:Ar,onBlur:Er,onFocus:xn,ref:Mr}=uy(),[,Qt]=f.useState(!1),$t=Ye=>{Er(Ye),Ar.current===!1&&(Qt(!1),At(Ye))},vr=Ye=>{z||X(Ye.currentTarget),xn(Ye),Ar.current===!0&&(Qt(!0),St(Ye))},hr=Ye=>{ye.current=!0;const dt=et.props;dt.onTouchStart&&dt.onTouchStart(Ye)},Nn=Ye=>{hr(Ye),K.clear(),ge.clear(),Oe(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Q.start(j,()=>{document.body.style.WebkitUserSelect=Be.current,St(Ye)})},nn=Ye=>{et.props.onTouchEnd&&et.props.onTouchEnd(Ye),Oe(),K.start(oe,()=>{rt(Ye)})};f.useEffect(()=>{if(!Ie)return;function Ye(dt){(dt.key==="Escape"||dt.key==="Esc")&&rt(dt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[rt,Ie]);const Br=rr(et.ref,Mr,X,r);!je&&je!==0&&(Ie=!1);const Pr=f.useRef(),xo=Ye=>{const dt=et.props;dt.onMouseMove&&dt.onMouseMove(Ye),cd={x:Ye.clientX,y:Ye.clientY},Pr.current&&Pr.current.update()},H={},Y=typeof je=="string";$?(H.title=!Ie&&Y&&!A?je:null,H["aria-describedby"]=Ie?Xe:null):(H["aria-label"]=Y?je:null,H["aria-labelledby"]=Ie&&!Y?Xe:null);const ae=R({},H,He,et.props,{className:ue(He.className,et.props.className),onTouchStart:hr,ref:Br},V?{onMouseMove:xo}:{}),he={};I||(ae.onTouchStart=Nn,ae.onTouchEnd=nn),A||(ae.onMouseOver=ev(St,ae.onMouseOver),ae.onMouseLeave=ev(At,ae.onMouseLeave),me||(he.onMouseOver=St,he.onMouseLeave=At)),T||(ae.onFocus=ev(vr,ae.onFocus),ae.onBlur=ev($t,ae.onBlur),me||(he.onFocus=vr,he.onBlur=$t));const Ae=f.useMemo(()=>{var Ye;let dt=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Ye=$e.popperOptions)!=null&&Ye.modifiers&&(dt=dt.concat($e.popperOptions.modifiers)),R({},$e.popperOptions,{modifiers:dt})},[te,$e]),Le=R({},w,{isRtl:xt,arrow:S,disableInteractive:me,placement:_e,PopperComponentProp:Te,touch:ye.current}),Ne=Oge(Le),Re=(n=(a=Ve.popper)!=null?a:C.Popper)!=null?n:Cge,ot=(o=(i=(s=Ve.transition)!=null?s:C.Transition)!=null?i:De)!=null?o:Af,We=(u=(l=Ve.tooltip)!=null?l:C.Tooltip)!=null?u:Pge,it=(c=(d=Ve.arrow)!=null?d:C.Arrow)!=null?c:$ge,_t=au(Re,R({},$e,(p=Ee.popper)!=null?p:P.popper,{className:ue(Ne.popper,$e==null?void 0:$e.className,(h=(m=Ee.popper)!=null?m:P.popper)==null?void 0:h.className)}),Le),ht=au(ot,R({},Fe,(g=Ee.transition)!=null?g:P.transition),Le),Rt=au(We,R({},(_=Ee.tooltip)!=null?_:P.tooltip,{className:ue(Ne.tooltip,(x=(y=Ee.tooltip)!=null?y:P.tooltip)==null?void 0:x.className)}),Le),yt=au(it,R({},(b=Ee.arrow)!=null?b:P.arrow,{className:ue(Ne.arrow,(E=(v=Ee.arrow)!=null?v:P.arrow)==null?void 0:E.className)}),Le);return N.jsxs(f.Fragment,{children:[f.cloneElement(et,ae),N.jsx(Re,R({as:Te??j5,placement:_e,anchorEl:V?{getBoundingClientRect:()=>({top:cd.y,left:cd.x,right:cd.x,bottom:cd.y,width:0,height:0})}:z,popperRef:Pr,open:z?Ie:!1,id:Xe,transition:!0},he,_t,{popperOptions:Ae,children:({TransitionProps:Ye})=>N.jsx(ot,R({timeout:ft.transitions.duration.shorter},Ye,ht,{children:N.jsxs(We,R({},Rt,{children:[je,S?N.jsx(it,R({},yt,{ref:le})):null]}))}))}))]})}),Z5=f.createContext();function Rge(e){return Ke("MuiTable",e)}qe("MuiTable",["root","stickyHeader"]);const kge=["className","component","padding","size","stickyHeader"],Tge=e=>{const{classes:t,stickyHeader:r}=e;return Ge({root:["root",r&&"stickyHeader"]},Rge,t)},jge=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>R({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":R({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),ok="table",e4=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTable"}),{className:a,component:o=ok,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Se(n,kge),c=R({},n,{component:o,padding:i,size:s,stickyHeader:u}),d=Tge(c),p=f.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return N.jsx(Z5.Provider,{value:p,children:N.jsx(jge,R({as:o,role:o===ok?null:"table",ref:r,className:ue(d.root,a),ownerState:c},l))})}),Ay=f.createContext();function Ige(e){return Ke("MuiTableBody",e)}qe("MuiTableBody",["root"]);const Age=["className","component"],Mge=e=>{const{classes:t}=e;return Ge({root:["root"]},Ige,t)},Fge=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Lge={variant:"body"},ik="tbody",t4=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableBody"}),{className:a,component:o=ik}=n,i=Se(n,Age),s=R({},n,{component:o}),u=Mge(s);return N.jsx(Ay.Provider,{value:Lge,children:N.jsx(Fge,R({className:ue(u.root,a),as:o,ref:r,role:o===ik?null:"rowgroup",ownerState:s},i))})});function Nge(e){return Ke("MuiTableCell",e)}const Dge=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Bge=["align","className","component","padding","scope","size","sortDirection","variant"],zge=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${de(n)}`,a!=="normal"&&`padding${de(a)}`,`size${de(o)}`]};return Ge(s,Nge,t)},Uge=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${de(r.size)}`],r.padding!=="normal"&&t[`padding${de(r.padding)}`],r.align!=="inherit"&&t[`align${de(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>R({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?vS(gt(e.palette.divider,1),.88):pS(gt(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",[`&.${Dge.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})),en=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:d}=n,p=Se(n,Bge),h=f.useContext(Z5),m=f.useContext(Ay),g=m&&m.variant==="head";let _;i?_=i:_=g?"th":"td";let x=u;_==="td"?x=void 0:!x&&g&&(x="col");const y=d||m&&m.variant,b=R({},n,{align:a,component:_,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),E=zge(b);let v=null;return c&&(v=c==="asc"?"ascending":"descending"),N.jsx(Uge,R({as:_,ref:r,className:ue(E.root,o),"aria-sort":v,scope:x,ownerState:b},p))});function Vge(e){return Ke("MuiTableHead",e)}qe("MuiTableHead",["root"]);const Wge=["className","component"],Hge=e=>{const{classes:t}=e;return Ge({root:["root"]},Vge,t)},qge=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Kge={variant:"head"},sk="thead",r4=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableHead"}),{className:a,component:o=sk}=n,i=Se(n,Wge),s=R({},n,{component:o}),u=Hge(s);return N.jsx(Ay.Provider,{value:Kge,children:N.jsx(qge,R({as:o,className:ue(u.root,a),ref:r,role:o===sk?null:"rowgroup",ownerState:s},i))})});function Gge(e){return Ke("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const Qge=["className","component","disableGutters","variant"],Xge=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ge({root:["root",!r&&"gutters",n]},Gge,t)},Yge=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>R({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),Dc=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Se(n,Qge),l=R({},n,{component:o,disableGutters:i,variant:s}),c=Xge(l);return N.jsx(Yge,R({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),Jge=Ln(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Zge=Ln(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),eye=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],tye=f.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:d,count:p,disabled:h=!1,getItemAriaLabel:m,nextIconButtonProps:g,onPageChange:_,page:x,rowsPerPage:y,showFirstButton:b,showLastButton:E,slots:v={},slotProps:w={}}=t,S=Se(t,eye),O=Ac(),C=Ee=>{_(Ee,0)},P=Ee=>{_(Ee,x-1)},$=Ee=>{_(Ee,x+1)},T=Ee=>{_(Ee,Math.max(0,Math.ceil(p/y)-1))},A=(n=v.firstButton)!=null?n:Tr,M=(a=v.lastButton)!=null?a:Tr,I=(o=v.nextButton)!=null?o:Tr,U=(i=v.previousButton)!=null?i:Tr,W=(s=v.firstButtonIcon)!=null?s:xx,j=(u=v.lastButtonIcon)!=null?u:wx,V=(l=v.nextButtonIcon)!=null?l:Zge,J=(c=v.previousButtonIcon)!=null?c:Jge,se=O?M:A,oe=O?I:U,ve=O?U:I,be=O?A:M,xe=O?w.lastButton:w.firstButton,_e=O?w.nextButton:w.previousButton,Te=O?w.previousButton:w.nextButton,$e=O?w.firstButton:w.lastButton;return N.jsxs("div",R({ref:r},S,{children:[b&&N.jsx(se,R({onClick:C,disabled:h||x===0,"aria-label":m("first",x),title:m("first",x)},xe,{children:O?N.jsx(j,R({},w.lastButtonIcon)):N.jsx(W,R({},w.firstButtonIcon))})),N.jsx(oe,R({onClick:P,disabled:h||x===0,color:"inherit","aria-label":m("previous",x),title:m("previous",x)},_e??d,{children:O?N.jsx(V,R({},w.nextButtonIcon)):N.jsx(J,R({},w.previousButtonIcon))})),N.jsx(ve,R({onClick:$,disabled:h||(p!==-1?x>=Math.ceil(p/y)-1:!1),color:"inherit","aria-label":m("next",x),title:m("next",x)},Te??g,{children:O?N.jsx(J,R({},w.previousButtonIcon)):N.jsx(V,R({},w.nextButtonIcon))})),E&&N.jsx(be,R({onClick:T,disabled:h||x>=Math.ceil(p/y)-1,"aria-label":m("last",x),title:m("last",x)},$e,{children:O?N.jsx(W,R({},w.firstButtonIcon)):N.jsx(j,R({},w.lastButtonIcon))}))]}))});function rye(e){return Ke("MuiTablePagination",e)}const qd=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var lk;const nye=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],aye=ne(en,{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}})),oye=ne(Dc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>R({[`& .${qd.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},[`& .${qd.actions}`]:{flexShrink:0,marginLeft:20}})),iye=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),sye=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>R({},e.typography.body2,{flexShrink:0})),lye=ne(US,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>R({[`& .${qd.selectIcon}`]:t.selectIcon,[`& .${qd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${qd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),uye=ne(No,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),cye=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>R({},e.typography.body2,{flexShrink:0}));function dye({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function fye(e){return`Go to ${e} page`}const pye=e=>{const{classes:t}=e;return Ge({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},rye,t)},uk=f.forwardRef(function(t,r){var n;const a=Qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=tye,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:d=!1,getItemAriaLabel:p=fye,labelDisplayedRows:h=dye,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:_,onRowsPerPageChange:x,page:y,rowsPerPage:b,rowsPerPageOptions:E=[10,25,50,100],SelectProps:v={},showFirstButton:w=!1,showLastButton:S=!1,slotProps:O={},slots:C={}}=a,P=Se(a,nye),$=a,T=pye($),A=(n=O==null?void 0:O.select)!=null?n:v,M=A.native?"option":uye;let I;(l===en||l==="td")&&(I=u||1e3);const U=fl(A.id),W=fl(A.labelId),j=()=>c===-1?(y+1)*b:b===-1?c:Math.min(c,(y+1)*b);return N.jsx(aye,R({colSpan:I,ref:r,as:l,ownerState:$,className:ue(T.root,s)},P,{children:N.jsxs(oye,{className:T.toolbar,children:[N.jsx(iye,{className:T.spacer}),E.length>1&&N.jsx(sye,{className:T.selectLabel,id:W,children:m}),E.length>1&&N.jsx(lye,R({variant:"standard"},!A.variant&&{input:lk||(lk=N.jsx($y,{}))},{value:b,onChange:x,id:U,labelId:W},A,{classes:R({},A.classes,{root:ue(T.input,T.selectRoot,(A.classes||{}).root),select:ue(T.select,(A.classes||{}).select),icon:ue(T.selectIcon,(A.classes||{}).icon)}),disabled:d,children:E.map(V=>f.createElement(M,R({},!Tf(M)&&{ownerState:$},{className:T.menuItem,key:V.label?V.label:V,value:V.value?V.value:V}),V.label?V.label:V))})),N.jsx(cye,{className:T.displayedRows,children:h({from:c===0?0:y*b+1,to:j(),count:c===-1?-1:c,page:y})}),N.jsx(o,{className:T.actions,backIconButtonProps:i,count:c,nextIconButtonProps:g,onPageChange:_,page:y,rowsPerPage:b,showFirstButton:w,showLastButton:S,slotProps:O.actions,slots:C.actions,getItemAriaLabel:p,disabled:d})]})}))});function vye(e){return Ke("MuiTableRow",e)}const ck=qe("MuiTableRow",["root","selected","hover","head","footer"]),hye=["className","component","hover","selected"],mye=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return Ge({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},vye,t)},gye=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ck.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ck.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(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}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),dk="tr",Ff=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableRow"}),{className:a,component:o=dk,hover:i=!1,selected:s=!1}=n,u=Se(n,hye),l=f.useContext(Ay),c=R({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),d=mye(c);return N.jsx(gye,R({as:o,ref:r,className:ue(d.root,a),role:o===dk?null:"row",ownerState:c},u))}),yye=Ln(N.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function bye(e){return Ke("MuiTableSortLabel",e)}const Z0=qe("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),xye=["active","children","className","direction","hideSortIcon","IconComponent"],wye=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${de(r)}`]};return Ge(a,bye,t)},_ye=ne(Go,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Z0.icon}`]:{opacity:.5}},[`&.${Z0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Z0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),Eye=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${de(r.direction)}`]]}})(({theme:e,ownerState:t})=>R({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),Sye=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=yye}=n,c=Se(n,xye),d=R({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=wye(d);return N.jsxs(_ye,R({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:d,ref:r},c,{children:[o,u&&!a?null:N.jsx(Eye,{as:l,className:ue(p.icon),ownerState:d})]}))});function Oye(e){return Ke("MuiTextField",e)}qe("MuiTextField",["root"]);const Cye=["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"],Pye={standard:LS,filled:FS,outlined:BS},$ye=e=>{const{classes:t}=e;return Ge({root:["root"]},Oye,t)},Rye=ne(zve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VS=f.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:_,inputProps:x,InputProps:y,inputRef:b,label:E,maxRows:v,minRows:w,multiline:S=!1,name:O,onBlur:C,onChange:P,onFocus:$,placeholder:T,required:A=!1,rows:M,select:I=!1,SelectProps:U,type:W,value:j,variant:V="outlined"}=n,J=Se(n,Cye),se=R({},n,{autoFocus:o,color:u,disabled:c,error:d,fullWidth:h,multiline:S,required:A,select:I,variant:V}),oe=$ye(se),ve={};V==="outlined"&&(_&&typeof _.shrink<"u"&&(ve.notched=_.shrink),ve.label=E),I&&((!U||!U.native)&&(ve.id=void 0),ve["aria-describedby"]=void 0);const be=fl(g),xe=m&&be?`${be}-helper-text`:void 0,_e=E&&be?`${be}-label`:void 0,Te=Pye[V],$e=N.jsx(Te,R({"aria-describedby":xe,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:h,multiline:S,name:O,rows:M,maxRows:v,minRows:w,type:W,value:j,id:be,inputRef:b,onBlur:C,onChange:P,onFocus:$,placeholder:T,inputProps:x},ve,y));return N.jsxs(Rye,R({className:ue(oe.root,s),disabled:c,error:d,fullWidth:h,ref:r,required:A,color:u,variant:V,ownerState:se},J,{children:[E!=null&&E!==""&&N.jsx(phe,R({htmlFor:be,id:_e},_,{children:E})),I?N.jsx(US,R({"aria-describedby":xe,id:be,labelId:_e,value:j,input:$e},U,{children:i})):$e,m&&N.jsx(V5,R({id:xe},p,{children:m}))]}))}),kye=["getTrigger","target"];function Tye(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const jye=typeof window<"u"?window:null;function n4(e={}){const{getTrigger:t=Tye,target:r=jye}=e,n=Se(e,kye),a=f.useRef(),[o,i]=f.useState(()=>t(a,n));return f.useEffect(()=>{const s=()=>{i(t(a,R({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var WS={},eb={};const Iye=vo(Cue);var fk;function Pt(){return fk||(fk=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Iye}(eb)),eb}var Aye=wt;Object.defineProperty(WS,"__esModule",{value:!0});var HS=WS.default=void 0,Mye=Aye(Pt()),Fye=N;HS=WS.default=(0,Mye.default)((0,Fye.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Kd=function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?f.createElement(G1e,null):null,t&&f.createElement(_4,null),f.createElement(p0e,null))},B0e=f.createElement(D0e,null),z0e=f.createElement(v4,null),ys="RaAppBar",Fs={appBar:"".concat(ys,"-appBar"),toolbar:"".concat(ys,"-toolbar"),menuButton:"".concat(ys,"-menuButton"),menuButtonIconClosed:"".concat(ys,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ys,"-menuButtonIconOpen"),title:"".concat(ys,"-title")},U0e=ne(Sce,{name:ys,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Fs.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Fs.menuButton)]={marginRight:"0.2em"},t["& .".concat(Fs.title)]={},t}),tO={},V0e=wt;Object.defineProperty(tO,"__esModule",{value:!0});var S4=tO.default=void 0,W0e=V0e(Pt()),H0e=N;S4=tO.default=(0,W0e.default)((0,H0e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var rO={},q0e=wt;Object.defineProperty(rO,"__esModule",{value:!0});var O4=rO.default=void 0,K0e=q0e(Pt()),G0e=N;O4=rO.default=(0,K0e.default)((0,G0e.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var Qd=function(){return Qd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),f.createElement(f.Fragment,null,Gf.createPortal(f.createElement(kbe,Ix({title:r,defaultTitle:t,preferenceKey:n},a)),i))):null},Ax=function(){return Ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=pxe(_===!1||_===void 0?void 0:!_,l||!C||S||O);HE(d==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var $=f.useCallback(function(M){return gk(void 0,void 0,void 0,function(){var I;return yk(this,function(U){switch(U.label){case 0:return E!=null&&E.save?[4,E.save(M,Jd(Jd({},u),{transform:p}))]:[3,2];case 1:I=U.sent(),U.label=2;case 2:return I!=null&&P3(I,b.setError),[2]}})})},[b.setError,E,u,p]),T=f.useCallback(function(M){return gk(void 0,void 0,void 0,function(){return yk(this,function(I){switch(I.label){case 0:return s&&s(M),M.defaultPrevented?[2]:d!=="button"?[3,2]:(M.stopPropagation(),[4,b.handleSubmit($)(M)]);case 1:I.sent(),I.label=2;case 2:return[2]}})})},[s,d,b,$]),A=i&&y(i,{_:i});return f.createElement(fxe,Jd({variant:m,type:d,color:r,"aria-label":A,disabled:P,onClick:T},x),O?f.createElement(Ty,{sx:uxe,size:14,thickness:3,color:"inherit"}):a,A)},uxe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},cxe=f.createElement(X4,null),dxe="RaSaveButton",fxe=ne(An,{name:dxe,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),pxe=function(e,t){return typeof e>"u"?t:e},vxe=function(){return Pe.createElement(mxe,{onClick:gxe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},hxe="RaSkipNavigationButton",mxe=ne(Ua,{name:hxe,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),gxe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Qx=function(){return Qx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var S=tL(),O=at(),C=yn(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var P=Nt(e);if(!P)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!S||!S.isRowExpandable||S.isRowExpandable(C))&&u,T=es(),A=Pre(P,h,S&&S.expandSingle),M=A[0],I=A[1],U=f.useState(function(){return bk($,i,c)}),W=U[0],j=U[1];f.useEffect(function(){var ve=bk($,i,c);ve!==W&&j(ve)},[$,W,i,c]);var V=go(),J=f.useCallback(function(ve){I(),ve.stopPropagation()},[I]),se=f.useCallback(function(ve){!v||!m||(m(h,ve),ve.stopPropagation())},[h,m,v]),oe=f.useCallback(function(ve){return Mxe(void 0,void 0,void 0,function(){var be,xe;return Fxe(this,function(_e){switch(_e.label){case 0:return ve.persist(),typeof _!="function"?[3,2]:[4,_(h,P,C)];case 1:return xe=_e.sent(),[3,3];case 2:xe=_,_e.label=3;case 3:return be=xe,be===!1||be==null?[2]:["edit","show"].includes(be)?(V(T({resource:P,id:h,type:be}),{state:{_scrollToTop:!0}}),[2]):be==="expand"?(J(ve),[2]):be==="toggleSelection"?(se(ve),[2]):(V(be),[2])}})})},[_,h,P,C,V,T,J,se]);return Pe.createElement(Pe.Fragment,null,Pe.createElement(Ff,tw({ref:t,className:ue(s,(r={},r[Ze.expandable]=$,r[Ze.selectable]=v,r[Ze.clickableRow]=typeof _=="function"?!0:_,r)),key:h,style:b,hover:p,onClick:oe},w),u&&Pe.createElement(en,{padding:"none",className:Ze.expandIconCell},$&&Pe.createElement(Axe,{className:ue(Ze.expandIcon,(n={},n[Ze.expanded]=M,n)),expanded:M,onClick:J,expandContentId:"".concat(h,"-expand")})),c&&Pe.createElement(en,{padding:"checkbox"},Pe.createElement(Jh,{"aria-label":O("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(Ze.checkbox),checked:v&&y,onClick:se,disabled:!v})),Pe.Children.map(i,function(ve,be){return f.isValidElement(ve)?Pe.createElement(eL,{key:"".concat(h,"-").concat(ve.props.source||be),className:ue("column-".concat(ve.props.source),Ze.rowCell),record:C,field:ve,resource:P}):null})),$&&M&&Pe.createElement(Ff,{key:"".concat(h,"-expand"),id:"".concat(h,"-expand"),className:Ze.expandedPanel},Pe.createElement(en,{colSpan:W},f.isValidElement(u)?u:f.createElement(u))))}),Lxe=function(e,t){e.children,e.expand;var r=rw(e,["children","expand"]);t.children,t.expand;var n=rw(t,["children","expand"]);return NM(r,n)},nL=f.memo(rL,Lxe);nL.displayName="PureDatagridRow";var hm=function(){return hm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=rwe&&(o=twe,i=!1,t=new Xxe(t));e:for(;++a0&&b.length>0&&b.every(function(E){return h.includes(E)}),onChange:y,onClick:function(E){return E.stopPropagation()}})),f.Children.map(t,function(E,v){return f.isValidElement(E)?f.createElement(Vxe,{className:ue(Ze.headerCell,"column-".concat(E.props.source)),sort:c,field:E,isSorting:(c==null?void 0:c.field)===(E.props.sortBy||E.props.source),key:E.props.source||v,updateSort:x||void 0}):null})))};iL.displayName="DatagridHeader";var pwe=function(e){var t=e.children,r=e.value;return Pe.createElement(_O.Provider,{value:r},t)},SO={},vwe=wt;Object.defineProperty(SO,"__esModule",{value:!0});var sL=SO.default=void 0,hwe=vwe(Pt()),mwe=N;sL=SO.default=(0,hwe.default)((0,mwe.jsx)("path",{d:"M19 6.41 17.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");var aw=function(){return aw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var h=o.getValues();return r.filter(function(m){var g=fr(h,m.props.source);return m.props.alwaysOn||u[m.props.source]||!uL(g)})},d=f.useCallback(function(h){return l(h.currentTarget.dataset.key)},[l]),p=f.useMemo(function(){return{getSource:function(h){return h},getLabel:function(h){return"resources.".concat(a,".fields.").concat(h)}}},[a]);return f.createElement(V3,{value:p},f.createElement(Fwe,Vi({className:t},Iwe(n),{onSubmit:jwe}),c().map(function(h){return f.createElement(Owe,{key:h.key||h.props.source,filterElement:h,handleHide:d,resource:a,className:gm.filterFormInput})}),f.createElement("div",{className:gm.clearFix})))},jwe=function(e){return e.preventDefault(),!1},Iwe=function(e){e.hasCreate,e.resource;var t=CO(e,["hasCreate","resource"]);return t},Awe=function(e,t){return Vi(Vi({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return rE(Vi({},r),n.props.source,n.props.defaultValue)},{})),e)},Mwe=function(e){return e.preventDefault(),e.stopPropagation(),!1},iw="RaFilterForm",gm={clearFix:"".concat(iw,"-clearFix"),filterFormInput:"".concat(iw,"-filterFormInput")},Fwe=ne("form",{name:iw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(gm.clearFix)]={clear:"right"},t["& .".concat(gm.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Lwe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=lL(e,a,t),n},(r=OM(t))!==null&&r!==void 0?r:{})},lL=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return fr(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,s=lL(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return fr(r,t,"")},uL=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return uL(e[t])}):!1},PO={},Nwe=wt;Object.defineProperty(PO,"__esModule",{value:!0});var cL=PO.default=void 0,Dwe=Nwe(Pt()),Bwe=N;cL=PO.default=(0,Dwe.default)((0,Bwe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var zwe=f.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.autoFocus,o=Nt(e),i=f.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return f.createElement(No,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:a,ref:t,disabled:r.props.disabled},f.createElement(Of,{label:r.props.label,source:r.props.source,resource:o}))}),$O=function(e){return _a("".concat(e,".savedQueries"),[])},RO=function(e){return Array.isArray(e)?e.filter(function(t){return Uwe(t)}):[]},Uwe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},Vwe=function(e){var t=e.open,r=e.onClose,n=at(),a=Ba(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=$O(o),d=c[0],p=c[1],h=f.useState(""),m=h[0],g=h[1],_=function(b){g(b.target.value)},x=function(b){b.preventDefault(),y()},y=function(){var b={label:m,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},E=RO(d);p(E.concat(b)),g(""),r()};return f.createElement(jS,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},f.createElement(MS,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),f.createElement(AS,null,f.createElement("form",{onSubmit:x},f.createElement(VS,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:m,onChange:_}))),f.createElement(IS,null,f.createElement(An,{onClick:r},n("ra.action.cancel")),f.createElement(An,{onClick:y,color:"primary"},n("ra.action.save"))))},Sk=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=$O(u||"")[0],d=go(),p=Ba(),h=p.displayedFilters,m=h===void 0?{}:h,g=p.filterValues,_=p.perPage,x=p.setFilters,y=p.showFilter,b=p.sort,E=!lo(g,{}),v=RO(c),w=v.some(function(xe){return lo(xe.value,{filter:g,sort:b,perPage:_,displayedFilters:m})}),S=f.useState(!1),O=S[0],C=S[1],P=f.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var $=s.filter(function(xe){return!xe.props.alwaysOn&&!m[xe.props.source]&&typeof fr(g,xe.props.source)>"u"}),T=f.useCallback(function(xe){xe.preventDefault(),C(!0),P.current=xe.currentTarget},[P,C]),A=f.useCallback(function(){C(!1)},[C]),M=f.useCallback(function(xe){var _e=xe.source,Te=xe.defaultValue;y(_e,Te===""?void 0:Te),setTimeout(function(){var $e=document.querySelector("input[name='".concat(_e,"']"));$e&&$e.focus()},50),C(!1)},[y,C]),I=f.useState(!1),U=I[0],W=I[1],j=function(){W(!1)},V=function(){C(!1),W(!0)},J=f.useState(!1),se=J[0],oe=J[1],ve=function(){oe(!1)},be=function(){C(!1),oe(!0)};return $.length===0&&v.length===0&&!E?null:f.createElement(Gwe,sw({className:r},qwe(i)),f.createElement(Ua,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:T,variant:o,size:a},f.createElement(cL,null)),f.createElement(Iy,{open:O,anchorEl:P.current,onClose:A},$.map(function(xe,_e){return f.createElement(zwe,{key:xe.props.source,filter:xe,resource:u,onShow:M,autoFocus:_e===0})}),v.map(function(xe,_e){return lo(xe.value,{filter:g,sort:b,perPage:_,displayedFilters:m})?f.createElement(No,{onClick:be,key:_e},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:xe.label})):f.createElement(No,{onClick:function(){var Te,$e;d({search:ll.stringify({filter:JSON.stringify(xe.value.filter),sort:(Te=xe.value.sort)===null||Te===void 0?void 0:Te.field,order:($e=xe.value.sort)===null||$e===void 0?void 0:$e.order,page:1,perPage:xe.value.perPage,displayedFilters:JSON.stringify(xe.value.displayedFilters)})}),C(!1)},key:_e},xe.label)}),E&&!w&&!n&&f.createElement(No,{onClick:V},l("ra.saved_queries.new_label",{_:"Save current query..."})),E&&f.createElement(No,{onClick:function(){x({},{}),C(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&f.createElement(f.Fragment,null,f.createElement(Vwe,{open:U,onClose:j}),f.createElement(Wwe,{open:se,onClose:ve})))},qwe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dL(e,["displayedFilters","filterValues","showFilter"]);return t},Kwe="RaFilterButton",Gwe=ne("div",{name:Kwe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),lw=function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(g("ra.navigation.page_out_of_boundaries",{page:O+1}));h(O+1)},[x,h,g]),b=f.useCallback(function(S){m(S.target.value)},[m]),E=f.useCallback(function(S){var O=S.from,C=S.to,P=S.count;return P===-1&&l?g("ra.navigation.partial_page_range_info",{offsetBegin:O,offsetEnd:C,_:"%{from}-%{to} of more than %{to}"}):g("ra.navigation.page_range_info",{offsetBegin:O,offsetEnd:C,total:P===-1?C:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[g,l]),v=f.useCallback(function(S){return g("ra.navigation.".concat(S),{_:"Go to ".concat(S," page")})},[g]);if(u)return f.createElement(Dc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(_)return f.createElement(uk,ym({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:y,rowsPerPageOptions:t_e,component:"span",labelDisplayedRows:E},Ju(i)));var w=n||(!u&&p!=null?Qwe:void 0);return f.createElement(uk,ym({count:p??-1,rowsPerPage:d,page:c-1,onPageChange:y,onRowsPerPageChange:b,ActionsComponent:w,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:g("ra.navigation.page_rows_per_page"),labelDisplayedRows:E,getItemAriaLabel:v,rowsPerPageOptions:r},Ju(i)))}),e_e=[5,10,25,50],t_e=[],kO={},r_e=wt;Object.defineProperty(kO,"__esModule",{value:!0});var uw=kO.default=void 0,n_e=r_e(Pt()),a_e=N;uw=kO.default=(0,n_e.default)((0,a_e.jsx)("path",{d:"M19 6.41 17.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");var bm=function(){return bm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!d.message?"ra.auth.sign_in_error":d.message,{type:"error",messageArgs:{_:typeof d=="string"?d:d&&d.message?d.message:void 0}})})};return f.createElement(c_e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},f.createElement(Ry,{className:bu.content},f.createElement(Qs,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:f$()}),f.createElement(Qs,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:f$()}),f.createElement(An,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:bu.button},a?f.createElement(Ty,{className:bu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},Nv="RaLoginForm",bu={content:"".concat(Nv,"-content"),button:"".concat(Nv,"-button"),icon:"".concat(Nv,"-icon")},c_e=ne($3,{name:Nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(bu.content)]={width:300},t["& .".concat(bu.button)]={marginTop:r.spacing(2)},t["& .".concat(bu.icon)]={margin:r.spacing(.3)},t}),cw=function(){return cw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?O_e:r;return a?f.createElement(P_e,vw({className:ue("edit-page",o)},l),f.createElement(Bc,{title:u,defaultTitle:h,preferenceKey:"".concat(p,".edit.title")}),g,f.createElement("div",{className:ue(_u.main,(t={},t[_u.noActions]=!g,t))},f.createElement(s,{className:_u.card},m?a:f.createElement(Ry,null," ")),n)):null},zv="RaEdit",_u={main:"".concat(zv,"-main"),noActions:"".concat(zv,"-noActions"),card:"".concat(zv,"-card")},P_e=ne("div",{name:zv,overridesResolver:function(e,t){return t.root}})((dd={},dd["& .".concat(_u.main)]={display:"flex",alignItems:"flex-start"},dd["& .".concat(_u.noActions)]={marginTop:"1em"},dd["& .".concat(_u.card)]={flex:"1 1 auto"},dd)),hw=function(){return hw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&_?z_e:r;return!a||!g&&l?null:f.createElement(V_e,yw({className:ue("show-page",o)},d),f.createElement(Bc,{title:c,defaultTitle:m,preferenceKey:"".concat(h,".show.title")}),x!==!1&&x,f.createElement("div",{className:ue(Su.main,(t={},t[Su.noActions]=!x,t))},f.createElement(s,{className:Su.card},a),n))},Vv="RaShow",Su={main:"".concat(Vv,"-main"),noActions:"".concat(Vv,"-noActions"),card:"".concat(Vv,"-card")},V_e=ne("div",{name:Vv,overridesResolver:function(e,t){return t.root}})((fd={},fd["& .".concat(Su.main)]={display:"flex"},fd["& .".concat(Su.noActions)]={marginTop:"1em"},fd["& .".concat(Su.card)]={flex:"1 1 auto"},fd)),bw=function(){return bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),iEe=function(e){return e.stopPropagation()},Pk=function(e){var t=e.clickable;return f.createElement(I5,{sx:{cursor:"inherit"},size:"small",label:f.createElement(Lee,null),clickable:t})},Ew=function(){return Ew=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&Rk.call(t.callee)==="[object Function]"),n},ob,kk;function AEe(){if(kk)return ob;kk=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=PL,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var h=p.constructor;return h&&h.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(h){var m=h!==null&&typeof h=="object",g=r.call(h)==="[object Function]",_=n(h),x=m&&r.call(h)==="[object String]",y=[];if(!m&&!g&&!_)throw new TypeError("Object.keys called on a non-object");var b=i&&g;if(x&&h.length>0&&!t.call(h,0))for(var E=0;E0)for(var v=0;v"u"||!Fr?mt:Fr(Uint8Array),Ys={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Al&&Fr?Fr([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":zl,"%AsyncGenerator%":zl,"%AsyncGeneratorFunction%":zl,"%AsyncIteratorPrototype%":zl,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":aSe,"%eval%":eval,"%EvalError%":oSe,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":TL,"%GeneratorFunction%":zl,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Al&&Fr?Fr(Fr([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Al||!Fr?mt:Fr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":iSe,"%ReferenceError%":sSe,"%Reflect%":typeof Reflect>"u"?mt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Al||!Fr?mt:Fr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Al&&Fr?Fr(""[Symbol.iterator]()):mt,"%Symbol%":Al?Symbol:mt,"%SyntaxError%":lc,"%ThrowTypeError%":uSe,"%TypedArray%":dSe,"%TypeError%":Cu,"%Uint8Array%":typeof Uint8Array>"u"?mt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mt:Uint32Array,"%URIError%":lSe,"%WeakMap%":typeof WeakMap>"u"?mt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mt:WeakSet};if(Fr)try{null.error}catch(e){var fSe=Fr(Fr(e));Ys["%Error.prototype%"]=fSe}var pSe=function e(t){var r;if(t==="%AsyncFunction%")r=sb("async function () {}");else if(t==="%GeneratorFunction%")r=sb("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=sb("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Fr&&(r=Fr(a.prototype))}return Ys[t]=r,r},Mk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gp=IO,Sm=nSe,vSe=gp.call(Function.call,Array.prototype.concat),hSe=gp.call(Function.apply,Array.prototype.splice),Fk=gp.call(Function.call,String.prototype.replace),Om=gp.call(Function.call,String.prototype.slice),mSe=gp.call(Function.call,RegExp.prototype.exec),gSe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ySe=/\\(\\)?/g,bSe=function(t){var r=Om(t,0,1),n=Om(t,-1);if(r==="%"&&n!=="%")throw new lc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new lc("invalid intrinsic syntax, expected opening `%`");var a=[];return Fk(t,gSe,function(o,i,s,u){a[a.length]=s?Fk(u,ySe,"$1"):i||o}),a},xSe=function(t,r){var n=t,a;if(Sm(Mk,n)&&(a=Mk[n],n="%"+a[0]+"%"),Sm(Ys,n)){var o=Ys[n];if(o===zl&&(o=pSe(n)),typeof o>"u"&&!r)throw new Cu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new lc("intrinsic "+t+" does not exist!")},bo=function(t,r){if(typeof t!="string"||t.length===0)throw new Cu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Cu('"allowMissing" argument must be a boolean');if(mSe(/^%?[^%]*%?$/,t)===null)throw new lc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bSe(t),a=n.length>0?n[0]:"",o=xSe("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],hSe(n,vSe([0,1],l)));for(var c=1,d=!0;c=n.length){var g=Xs(s,p);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?s=g.get:s=s[p]}else d=Sm(s,p),s=s[p];d&&!u&&(Ys[i]=s)}}return s},wSe=bo,qv=wSe("%Object.defineProperty%",!0)||!1;if(qv)try{qv({},"a",{value:1})}catch{qv=!1}var AO=qv,_Se=bo,Kv=_Se("%Object.getOwnPropertyDescriptor%",!0);if(Kv)try{Kv([],"length")}catch{Kv=null}var jL=Kv,Lk=AO,ESe=$L,Ml=bn,Nk=jL,IL=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ml("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ml("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ml("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ml("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ml("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ml("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!Nk&&Nk(t,r);if(Lk)Lk(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new ESe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Tw=AO,AL=function(){return!!Tw};AL.hasArrayLengthDefineBug=function(){if(!Tw)return null;try{return Tw([],"length",{value:1}).length!==1}catch{return!0}};var ML=AL,SSe=LEe,OSe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",CSe=Object.prototype.toString,PSe=Array.prototype.concat,Dk=IL,$Se=function(e){return typeof e=="function"&&CSe.call(e)==="[object Function]"},FL=ML(),RSe=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!$Se(n)||!n())return}FL?Dk(e,t,r,!0):Dk(e,t,r)},LL=function(e,t){var r=arguments.length>2?arguments[2]:{},n=SSe(t);OSe&&(n=PSe.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||jSe(r)!==r)throw new Uk("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&zk){var i=zk(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(TSe?Bk(t,"length",r,!0,!0):Bk(t,"length",r)),t};(function(e){var t=IO,r=bo,n=ISe,a=bn,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=AO,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(NL);var Dy=NL.exports,DL=bo,BL=Dy,ASe=BL(DL("String.prototype.indexOf")),ai=function(t,r){var n=DL(t,!!r);return typeof n=="function"&&ASe(t,".prototype.")>-1?BL(n):n},MSe=bn,yp=function(t){if(t==null)throw new MSe(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},FSe=bo,zL=FSe("%Array%"),LSe=!zL.isArray&&ai("Object.prototype.toString"),NSe=zL.isArray||function(t){return LSe(t)==="[object Array]"},DSe=NSe,BSe=bo,zSe=ai,USe=bn,VSe=DSe,WSe=BSe("%Reflect.apply%",!0)||zSe("Function.prototype.apply"),HSe=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!VSe(n))throw new USe("Assertion failed: optional `argumentsList`, if provided, must be a List");return WSe(t,r,n)};const qSe={},KSe=Object.freeze(Object.defineProperty({__proto__:null,default:qSe},Symbol.toStringTag,{value:"Module"})),GSe=vo(KSe);var MO=typeof Map=="function"&&Map.prototype,ub=Object.getOwnPropertyDescriptor&&MO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Cm=MO&&ub&&typeof ub.get=="function"?ub.get:null,Vk=MO&&Map.prototype.forEach,FO=typeof Set=="function"&&Set.prototype,cb=Object.getOwnPropertyDescriptor&&FO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pm=FO&&cb&&typeof cb.get=="function"?cb.get:null,Wk=FO&&Set.prototype.forEach,QSe=typeof WeakMap=="function"&&WeakMap.prototype,Zd=QSe?WeakMap.prototype.has:null,XSe=typeof WeakSet=="function"&&WeakSet.prototype,ef=XSe?WeakSet.prototype.has:null,YSe=typeof WeakRef=="function"&&WeakRef.prototype,Hk=YSe?WeakRef.prototype.deref:null,JSe=Boolean.prototype.valueOf,ZSe=Object.prototype.toString,eOe=Function.prototype.toString,tOe=String.prototype.match,LO=String.prototype.slice,Ai=String.prototype.replace,rOe=String.prototype.toUpperCase,qk=String.prototype.toLowerCase,UL=RegExp.prototype.test,Kk=Array.prototype.concat,eo=Array.prototype.join,nOe=Array.prototype.slice,Gk=Math.floor,jw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,db=Object.getOwnPropertySymbols,Iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,uc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===uc||!0)?Symbol.toStringTag:null,VL=Object.prototype.propertyIsEnumerable,Qk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Xk(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||UL.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Gk(-e):Gk(e);if(n!==e){var a=String(n),o=LO.call(t,a.length+1);return Ai.call(a,r,"$&_")+"."+Ai.call(Ai.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ai.call(t,r,"$&_")}var Aw=GSe,Yk=Aw.custom,Jk=HL(Yk)?Yk:null,aOe=function e(t,r,n,a){var o=r||{};if(gi(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gi(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=gi(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gi(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gi(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return KL(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?Xk(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?Xk(t,l):l}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Mw(t)?"[Array]":"[Object]";var d=_Oe(o,n);if(typeof a>"u")a=[];else if(qL(a,t)>=0)return"[Circular]";function p(A,M,I){if(M&&(a=nOe.call(a),a.push(M)),I){var U={depth:o.depth};return gi(o,"quoteStyle")&&(U.quoteStyle=o.quoteStyle),e(A,U,n+1,a)}return e(A,o,n+1,a)}if(typeof t=="function"&&!Zk(t)){var h=pOe(t),m=av(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+eo.call(m,", ")+" }":"")}if(HL(t)){var g=uc?Ai.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Iw.call(t);return typeof t=="object"&&!uc?pd(g):g}if(bOe(t)){for(var _="<"+qk.call(String(t.nodeName)),x=t.attributes||[],y=0;y",_}if(Mw(t)){if(t.length===0)return"[]";var b=av(t,p);return d&&!wOe(b)?"["+Fw(b,d)+"]":"[ "+eo.call(b,", ")+" ]"}if(sOe(t)){var E=av(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!VL.call(t,"cause")?"{ ["+String(t)+"] "+eo.call(Kk.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+eo.call(E,", ")+" }"}if(typeof t=="object"&&i){if(Jk&&typeof t[Jk]=="function"&&Aw)return Aw(t,{depth:c-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(vOe(t)){var v=[];return Vk&&Vk.call(t,function(A,M){v.push(p(M,t,!0)+" => "+p(A,t))}),eT("Map",Cm.call(t),v,d)}if(gOe(t)){var w=[];return Wk&&Wk.call(t,function(A){w.push(p(A,t))}),eT("Set",Pm.call(t),w,d)}if(hOe(t))return fb("WeakMap");if(yOe(t))return fb("WeakSet");if(mOe(t))return fb("WeakRef");if(uOe(t))return pd(p(Number(t)));if(dOe(t))return pd(p(jw.call(t)));if(cOe(t))return pd(JSe.call(t));if(lOe(t))return pd(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===Ps)return"{ [object globalThis] }";if(!iOe(t)&&!Zk(t)){var S=av(t,p),O=Qk?Qk(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",P=!O&&rn&&Object(t)===t&&rn in t?LO.call(ss(t),8,-1):C?"Object":"",$=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",T=$+(P||C?"["+eo.call(Kk.call([],P||[],C||[]),": ")+"] ":"");return S.length===0?T+"{}":d?T+"{"+Fw(S,d)+"}":T+"{ "+eo.call(S,", ")+" }"}return String(t)};function WL(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function oOe(e){return Ai.call(String(e),/"/g,""")}function Mw(e){return ss(e)==="[object Array]"&&(!rn||!(typeof e=="object"&&rn in e))}function iOe(e){return ss(e)==="[object Date]"&&(!rn||!(typeof e=="object"&&rn in e))}function Zk(e){return ss(e)==="[object RegExp]"&&(!rn||!(typeof e=="object"&&rn in e))}function sOe(e){return ss(e)==="[object Error]"&&(!rn||!(typeof e=="object"&&rn in e))}function lOe(e){return ss(e)==="[object String]"&&(!rn||!(typeof e=="object"&&rn in e))}function uOe(e){return ss(e)==="[object Number]"&&(!rn||!(typeof e=="object"&&rn in e))}function cOe(e){return ss(e)==="[object Boolean]"&&(!rn||!(typeof e=="object"&&rn in e))}function HL(e){if(uc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Iw)return!1;try{return Iw.call(e),!0}catch{}return!1}function dOe(e){if(!e||typeof e!="object"||!jw)return!1;try{return jw.call(e),!0}catch{}return!1}var fOe=Object.prototype.hasOwnProperty||function(e){return e in this};function gi(e,t){return fOe.call(e,t)}function ss(e){return ZSe.call(e)}function pOe(e){if(e.name)return e.name;var t=tOe.call(eOe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function qL(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return KL(LO.call(e,0,t.maxStringLength),t)+n}var a=Ai.call(Ai.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xOe);return WL(a,"single",t)}function xOe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+rOe.call(t.toString(16))}function pd(e){return"Object("+e+")"}function fb(e){return e+" { ? }"}function eT(e,t,r,n){var a=n?Fw(r,n):eo.call(r,", ");return e+" ("+t+") {"+a+"}"}function wOe(e){for(var t=0;t=0)return!1;return!0}function _Oe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=eo.call(Array(e.indent+1)," ");else return null;return{base:r,prev:eo.call(Array(t+1),r)}}function Fw(e,t){if(e.length===0)return"";var r=` `+t.prev+t.base;return r+eo.call(e,","+r)+` -`+t.prev}function av(e,t){var r=Mw(e),n=[];if(r){n.length=e.length;for(var a=0;a"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},EOe=_Oe,NO=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":EOe(t)},tT=bn,SOe=nOe,OOe=GL,COe=NO,QL=function(t,r){if(COe(t)!=="Object")throw new tT("Assertion failed: Type(O) is not Object");if(!OOe(r))throw new tT("Assertion failed: IsPropertyKey(P) is not true, got "+SOe(r));return t[r]},rT=bn,POe=GL,$Oe=NO,ROe=function(t,r){if($Oe(t)!=="Object")throw new rT("Assertion failed: `O` must be an Object");if(!POe(r))throw new rT("Assertion failed: `P` must be a Property Key");return r in t},XL=Function.prototype.toString,ou=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Lw,Qv;if(typeof ou=="function"&&typeof Object.defineProperty=="function")try{Lw=Object.defineProperty({},"length",{get:function(){throw Qv}}),Qv={},ou(function(){throw 42},null,Lw)}catch(e){e!==Qv&&(ou=null)}else ou=null;var kOe=/^\s*class\b/,Nw=function(t){try{var r=XL.call(t);return kOe.test(r)}catch{return!1}},pb=function(t){try{return Nw(t)?!1:(XL.call(t),!0)}catch{return!1}},Xv=Object.prototype.toString,TOe="[object Object]",jOe="[object Function]",IOe="[object GeneratorFunction]",AOe="[object HTMLAllCollection]",MOe="[object HTML document.all class]",FOe="[object HTMLCollection]",LOe=typeof Symbol=="function"&&!!Symbol.toStringTag,NOe=!(0 in[,]),Dw=function(){return!1};if(typeof document=="object"){var DOe=document.all;Xv.call(DOe)===Xv.call(document.all)&&(Dw=function(t){if((NOe||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Xv.call(t);return(r===AOe||r===MOe||r===FOe||r===TOe)&&t("")==null}catch{}return!1})}var YL=ou?function(t){if(Dw(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ou(t,null,Lw)}catch(r){if(r!==Qv)return!1}return!Nw(t)&&pb(t)}:function(t){if(Dw(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(LOe)return pb(t);if(Nw(t))return!1;var r=Xv.call(t);return r!==jOe&&r!==IOe&&!/^\[object HTML/.test(r)?!1:pb(t)},BOe=YL,zOe=Number.MAX_SAFE_INTEGER||9007199254740991,vb,nT;function UOe(){return nT||(nT=1,vb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),vb}var hb,aT;function VOe(){return aT||(aT=1,hb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),hb}var WOe=RL,DO=function(){return WOe()&&!!Symbol.toStringTag},mb,oT;function HOe(){if(oT)return mb;oT=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",a=DO();return mb=function(i){return typeof i!="object"||i===null?!1:a?t(i):r.call(i)===n},mb}var ov={exports:{}},iT;function qOe(){if(iT)return ov.exports;iT=1;var e=Object.prototype.toString,t=kL();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,a=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};ov.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return a(i)}catch{return!1}}}else ov.exports=function(i){return!1};return ov.exports}var gb,sT;function KOe(){if(sT)return gb;sT=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=VOe(),r=YL,n=HOe(),a=qOe(),o=function(u,l){if(typeof u>"u"||u===null)throw new TypeError("Cannot call method on "+u);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var c=l==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var c;if(e&&(Symbol.toPrimitive?c=i(u,Symbol.toPrimitive):a(u)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(u,l);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(u)||a(u))&&(l="string"),o(u,l==="default"?"number":l)},gb}var yb,lT;function GOe(){if(lT)return yb;lT=1;var e=KOe();return yb=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},yb}var bb,uT;function QOe(){if(uT)return bb;uT=1;var e=ai,t=DO(),r,n,a,o;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),a={};var i=function(){throw a};o={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(o[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,l="[object RegExp]";return bb=t?function(d){if(!d||typeof d!="object")return!1;var p=u(d,"lastIndex"),h=p&&r(p,"value");if(!h)return!1;try{n(d,o)}catch(m){return m===a}}:function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:s(d)===l},bb}var xb,cT;function XOe(){if(cT)return xb;cT=1;var e=ai,t=QOe(),r=e("RegExp.prototype.exec"),n=bn;return xb=function(o){if(!t(o))throw new n("`regex` must be a RegExp");return function(s){return r(o,s)!==null}},xb}var YOe=bo,JOe=YOe("%String%"),ZOe=bn,JL=function(t){if(typeof t=="symbol")throw new ZOe("Cannot convert a Symbol value to a string");return JOe(t)},eCe=yp,tCe=JL,rCe=ai,dT=rCe("String.prototype.replace"),ZL=/^\s$/.test("᠎"),nCe=ZL?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,aCe=ZL?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,eN=function(){var t=tCe(eCe(this));return dT(dT(t,nCe,""),aCe,"")},oCe=eN,fT="​",Fl="᠎",tN=function(){return String.prototype.trim&&fT.trim()===fT&&Fl.trim()===Fl&&("_"+Fl).trim()==="_"+Fl&&(Fl+"_").trim()===Fl+"_"?String.prototype.trim:oCe},iCe=zc,sCe=tN,lCe=function(){var t=sCe();return iCe(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},uCe=Dy,cCe=zc,dCe=yp,fCe=eN,rN=tN,pCe=lCe,vCe=uCe(rN()),nN=function(t){return dCe(t),vCe(t)};cCe(nN,{getPolyfill:rN,implementation:fCe,shim:pCe});var aN=nN,wb,pT;function hCe(){if(pT)return wb;pT=1;var e=bo,t=e("%Number%"),r=e("%RegExp%"),n=bn,a=e("%parseInt%"),o=ai,i=XOe(),s=o("String.prototype.slice"),u=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),c=i(/^[-+]0x[0-9a-f]+$/i),d=["…","​","￾"].join(""),p=new r("["+d+"]","g"),h=i(p),m=aN;return wb=function g(_){if(typeof _!="string")throw new n("Assertion failed: `argument` is not a String");if(u(_))return t(a(s(_,2),2));if(l(_))return t(a(s(_,2),8));if(h(_)||c(_))return NaN;var x=m(_);return x!==_?g(x):t(_)},wb}var mCe=bo,vT=bn,hT=mCe("%Number%"),gCe=UOe(),yCe=GOe(),bCe=hCe(),xCe=function(t){var r=gCe(t)?t:yCe(t,hT);if(typeof r=="symbol")throw new vT("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new vT("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?bCe(r):hT(r)},wCe=Math.floor,_Ce=function(t){return typeof t=="bigint"?t:wCe(t)},mT=_Ce,ECe=bn,SCe=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new ECe("argument must be a Number or a BigInt");var r=t<0?-mT(-t):mT(t);return r===0?0:r},oN=Number.isNaN||function(t){return t!==t},OCe=oN,CCe=function(e){return(typeof e=="number"||typeof e=="bigint")&&!OCe(e)&&e!==1/0&&e!==-1/0},PCe=xCe,$Ce=SCe,RCe=oN,kCe=CCe,TCe=function(t){var r=PCe(t);return RCe(r)||r===0?0:kCe(r)?$Ce(r):r},gT=zOe,jCe=TCe,ICe=function(t){var r=jCe(t);return r<=0?0:r>gT?gT:r},ACe=bn,MCe=QL,FCe=ICe,LCe=NO,NCe=function(t){if(LCe(t)!=="Object")throw new ACe("Assertion failed: `obj` must be an Object");return FCe(MCe(t,"length"))},DCe=Object,BCe=DCe,zCe=yp,UCe=function(t){return zCe(t),BCe(t)},VCe=String.prototype.valueOf,WCe=function(t){try{return VCe.call(t),!0}catch{return!1}},HCe=Object.prototype.toString,qCe="[object String]",KCe=DO(),GCe=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:KCe?WCe(t):HCe.call(t)===qCe},QCe=ai,XCe=bn,YCe=WSe,JCe=QL,ZCe=ROe,ePe=BOe,tPe=NCe,rPe=UCe,nPe=JL,aPe=GCe,oPe=QCe("String.prototype.split"),yT=Object("a"),iPe=yT[0]!=="a"||!(0 in yT),iN=function(t){var r=rPe(this),n=iPe&&aPe(this)?oPe(this,""):r,a=tPe(n);if(!ePe(t))throw new XCe("Array.prototype.forEach callback must be a function");var o;arguments.length>1&&(o=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},yN={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Sb,chinese:function(){return 0},croatian:Sb,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Sb,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function FPe(e){var t={};return Rm(BO(e),function(r){var n=r[0],a=r[1];Rm(a,function(o){t[o]=n})}),t}function LPe(e,t){var r=FPe(e.pluralTypeToLanguages);return r[t]||r[gN.call(t,/-/,1)[0]]||r.en}function NPe(e,t,r){return e.pluralTypes[t](r)}function DPe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=LPe(t,r),n&&(e[r]=n)),n}}function wT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function BPe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Yv||r===Yv)throw new RangeError('"'+Yv+'" token is reserved for pluralization');return new RegExp(wT(t)+"(.*?)"+wT(r),"g")}var zPe=DPe(),UPe=/%\{(.*?)\}/g;function zO(e,t,r,n,a,o){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||UPe,u=o||mN,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var c=a||yN,d=gN.call(e,Yv),p=r||"en",h=zPe(c,p),m=NPe(c,h,l.smart_count);i=APe(d[m]||d[0])}return i=u.call(i,s,function(g,_){return!hN(l,_)||l[_]==null?g:l[_]}),i}function oi(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?zO:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||MPe,this.replaceImplementation=t.replace||mN,this.tokenRegex=BPe(t.interpolation),this.pluralRules=t.pluralRules||yN}oi.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};oi.prototype.extend=function(e,t){Rm(BO(e||{}),function(r){var n=r[0],a=r[1],o=t?t+"."+n:n;typeof a=="object"?this.extend(a,o):this.phrases[o]=a},this)};oi.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Rm(BO(e||{}),function(r){var n=r[0],a=r[1],o=t?t+"."+n:n;typeof a=="object"?this.unset(a,o):delete this.phrases[o]},this)};oi.prototype.clear=function(){this.phrases={}};oi.prototype.replace=function(e){this.clear(),this.extend(e)};oi.prototype.t=function(e,t){var r,n,a=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof a._=="string")r=a._;else if(this.onMissingKey){var o=this.onMissingKey;n=o(e,a,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=zO(r,a,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};oi.prototype.has=function(e){return hN(this.phrases,e)};oi.transformPhrase=function(t,r,n){return zO(t,r,n)};var VPe=oi;const _T=pr(VPe);var iu=function(){return iu=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt||o&&i&&u&&!s&&!l||n&&i&&u||!r&&u||!a)return 1;if(!n&&!o&&!l&&e=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var v2e=p2e,Ob=ag,h2e=Yf,m2e=vg,g2e=s2e,y2e=u2e,b2e=Jf,x2e=v2e,w2e=dg,_2e=Mn;function E2e(e,t,r){t.length?t=Ob(t,function(o){return _2e(o)?function(i){return h2e(i,o.length===1?o[0]:o)}:o}):t=[w2e];var n=-1;t=Ob(t,b2e(m2e));var a=g2e(e,function(o,i,s){var u=Ob(t,function(l){return l(o)});return{criteria:u,index:++n,value:o}});return y2e(a,function(o,i){return x2e(o,i,r)})}var S2e=E2e,O2e=S2e,ST=Mn;function C2e(e,t,r,n){return e==null?[]:(ST(t)||(t=t==null?[]:[t]),r=n?void 0:r,ST(r)||(r=r==null?[]:[r]),O2e(e,t,r))}var P2e=C2e;const $2e=pr(P2e);var R2e=bN;function k2e(e,t){var r=[];return R2e(e,function(n,a,o){t(n,a,o)&&r.push(n)}),r}var T2e=k2e,j2e=qA,I2e=T2e,A2e=vg,M2e=Mn;function F2e(e,t){var r=M2e(e)?j2e:I2e;return r(e,A2e(t))}var L2e=F2e;const N2e=pr(L2e);var D2e=SM,B2e=vg,z2e=1;function U2e(e){return B2e(typeof e=="function"?e:D2e(e,z2e))}var V2e=U2e;const W2e=pr(V2e);function Xo(e){return Array.isArray?Array.isArray(e):_N(e)==="[object Array]"}const H2e=1/0;function q2e(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-H2e?"-0":t}function K2e(e){return e==null?"":q2e(e)}function oo(e){return typeof e=="string"}function xN(e){return typeof e=="number"}function G2e(e){return e===!0||e===!1||Q2e(e)&&_N(e)=="[object Boolean]"}function wN(e){return typeof e=="object"}function Q2e(e){return wN(e)&&e!==null}function Wn(e){return e!=null}function Cb(e){return!e.trim().length}function _N(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const X2e="Incorrect 'index' type",Y2e=e=>`Invalid value for key ${e}`,J2e=e=>`Pattern length exceeds max of ${e}.`,Z2e=e=>`Missing ${e} property in key`,e$e=e=>`Property 'weight' in key '${e}' must be a positive integer`,OT=Object.prototype.hasOwnProperty;class t$e{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let a=EN(n);this._keys.push(a),this._keyMap[a.id]=a,r+=a.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function EN(e){let t=null,r=null,n=null,a=1,o=null;if(oo(e)||Xo(e))n=e,t=CT(e),r=Bw(e);else{if(!OT.call(e,"name"))throw new Error(Z2e("name"));const i=e.name;if(n=i,OT.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(e$e(i));t=CT(i),r=Bw(i),o=e.getFn}return{path:t,id:r,weight:a,src:n,getFn:o}}function CT(e){return Xo(e)?e:e.split(".")}function Bw(e){return Xo(e)?e.join("."):e}function r$e(e,t){let r=[],n=!1;const a=(o,i,s)=>{if(Wn(o))if(!i[s])r.push(o);else{let u=i[s];const l=o[u];if(!Wn(l))return;if(s===i.length-1&&(oo(l)||xN(l)||G2e(l)))r.push(K2e(l));else if(Xo(l)){n=!0;for(let c=0,d=l.length;ce.score===t.score?e.idx{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,oo(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();oo(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r{let i=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Wn(i)){if(Xo(i)){let s=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:l,value:c}=u.pop();if(Wn(c))if(oo(c)&&!Cb(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xo(c)&&c.forEach((d,p)=>{u.push({nestedArrIndex:p,value:d})})}n.$[o]=s}else if(oo(i)&&!Cb(i)){let s={v:i,n:this.norm.get(i)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function SN(e,t,{getFn:r=st.getFn,fieldNormWeight:n=st.fieldNormWeight}={}){const a=new UO({getFn:r,fieldNormWeight:n});return a.setKeys(e.map(EN)),a.setSources(t),a.create(),a}function u$e(e,{getFn:t=st.getFn,fieldNormWeight:r=st.fieldNormWeight}={}){const{keys:n,records:a}=e,o=new UO({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(a),o}function iv(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:a=st.distance,ignoreLocation:o=st.ignoreLocation}={}){const i=t/e.length;if(o)return i;const s=Math.abs(n-r);return a?i+s/a:s?1:i}function c$e(e=[],t=st.minMatchCharLength){let r=[],n=-1,a=-1,o=0;for(let i=e.length;o=t&&r.push([n,a]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}const Cs=32;function d$e(e,t,r,{location:n=st.location,distance:a=st.distance,threshold:o=st.threshold,findAllMatches:i=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,includeMatches:u=st.includeMatches,ignoreLocation:l=st.ignoreLocation}={}){if(t.length>Cs)throw new Error(J2e(Cs));const c=t.length,d=e.length,p=Math.max(0,Math.min(n,d));let h=o,m=p;const g=s>1||u,_=g?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let S=iv(t,{currentLocation:x,expectedLocation:p,distance:a,ignoreLocation:l});if(h=Math.min(S,h),m=x+c,g){let O=0;for(;O=P;M-=1){let I=M-1,U=r[e.charAt(I)];if(g&&(_[I]=+!!U),T[M]=(T[M+1]<<1|1)&U,S&&(T[M]|=(y[M+1]|y[M])<<1|1|y[M+1]),T[M]&v&&(b=iv(t,{errors:S,currentLocation:I,expectedLocation:p,distance:a,ignoreLocation:l}),b<=h)){if(h=b,m=I,m<=p)break;P=Math.max(1,2*p-m)}}if(iv(t,{errors:S+1,currentLocation:p,expectedLocation:p,distance:a,ignoreLocation:l})>h)break;y=T}const w={isMatch:m>=0,score:Math.max(.001,b)};if(g){const S=c$e(_,s);S.length?u&&(w.indices=S):w.isMatch=!1}return w}function f$e(e){let t={};for(let r=0,n=e.length;r{this.chunks.push({pattern:p,alphabet:f$e(p),startIndex:h})},d=this.pattern.length;if(d>Cs){let p=0;const h=d%Cs,m=d-h;for(;p{const{isMatch:x,score:y,indices:b}=d$e(t,m,g,{location:a+_,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:u,includeMatches:n,ignoreLocation:l});x&&(p=!0),d+=y,x&&b&&(c=[...c,...b])});let h={isMatch:p,score:p?d/this.chunks.length:1};return p&&n&&(h.indices=c),h}}class ls{constructor(t){this.pattern=t}static isMultiMatch(t){return PT(t,this.multiRegex)}static isSingleMatch(t){return PT(t,this.singleRegex)}search(){}}function PT(e,t){const r=e.match(t);return r?r[1]:null}class p$e extends ls{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class v$e extends ls{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class h$e extends ls{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class m$e extends ls{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class g$e extends ls{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class y$e extends ls{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class CN extends ls{constructor(t,{location:r=st.location,threshold:n=st.threshold,distance:a=st.distance,includeMatches:o=st.includeMatches,findAllMatches:i=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,isCaseSensitive:u=st.isCaseSensitive,ignoreLocation:l=st.ignoreLocation}={}){super(t),this._bitapSearch=new ON(t,{location:r,threshold:n,distance:a,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class PN extends ls{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const a=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+o,a.push([n,r-1]);const i=!!a.length;return{isMatch:i,score:i?0:1,indices:a}}}const zw=[p$e,PN,h$e,m$e,y$e,g$e,v$e,CN],$T=zw.length,b$e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,x$e="|";function w$e(e,t={}){return e.split(x$e).map(r=>{let n=r.trim().split(b$e).filter(o=>o&&!!o.trim()),a=[];for(let o=0,i=n.length;o!!(e[km.AND]||e[km.OR]),O$e=e=>!!e[Ww.PATH],C$e=e=>!Xo(e)&&wN(e)&&!Hw(e),RT=e=>({[km.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function $N(e,t,{auto:r=!0}={}){const n=a=>{let o=Object.keys(a);const i=O$e(a);if(!i&&o.length>1&&!Hw(a))return n(RT(a));if(C$e(a)){const u=i?a[Ww.PATH]:o[0],l=i?a[Ww.PATTERN]:a[u];if(!oo(l))throw new Error(Y2e(u));const c={keyId:Bw(u),pattern:l};return r&&(c.searcher=Vw(l,t)),c}let s={children:[],operator:o[0]};return o.forEach(u=>{const l=a[u];Xo(l)&&l.forEach(c=>{s.children.push(n(c))})}),s};return Hw(e)||(e=RT(e)),n(e)}function P$e(e,{ignoreFieldNorm:t=st.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:a,norm:o,score:i})=>{const s=a?a.weight:null;n*=Math.pow(i===0&&s?Number.EPSILON:i,(s||1)*(t?1:o))}),r.score=n})}function $$e(e,t){const r=e.matches;t.matches=[],Wn(r)&&r.forEach(n=>{if(!Wn(n.indices)||!n.indices.length)return;const{indices:a,value:o}=n;let i={indices:a,value:o};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),t.matches.push(i)})}function R$e(e,t){t.score=e.score}function k$e(e,t,{includeMatches:r=st.includeMatches,includeScore:n=st.includeScore}={}){const a=[];return r&&a.push($$e),n&&a.push(R$e),e.map(o=>{const{idx:i}=o,s={item:t[i],refIndex:i};return a.length&&a.forEach(u=>{u(o,s)}),s})}class Uc{constructor(t,r={},n){this.options={...st,...r},this.options.useExtendedSearch,this._keyStore=new t$e(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof UO))throw new Error(X2e);this._myIndex=r||SN(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Wn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,a=this._docs.length;n-1&&(u=u.slice(0,r)),k$e(u,this._docs,{includeMatches:n,includeScore:a})}_searchStringList(t){const r=Vw(t,this.options),{records:n}=this._myIndex,a=[];return n.forEach(({v:o,i,n:s})=>{if(!Wn(o))return;const{isMatch:u,score:l,indices:c}=r.searchIn(o);u&&a.push({item:o,idx:i,matches:[{score:l,value:o,norm:s,indices:c}]})}),a}_searchLogical(t){const r=$N(t,this.options),n=(s,u,l)=>{if(!s.children){const{keyId:d,searcher:p}=s,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(u,d),searcher:p});return h&&h.length?[{idx:l,item:u,matches:h}]:[]}const c=[];for(let d=0,p=s.children.length;d{if(Wn(s)){let l=n(r,s,u);l.length&&(o[u]||(o[u]={idx:u,item:s,matches:[]},i.push(o[u])),l.forEach(({matches:c})=>{o[u].matches.push(...c)}))}}),i}_searchObjectList(t){const r=Vw(t,this.options),{keys:n,records:a}=this._myIndex,o=[];return a.forEach(({$:i,i:s})=>{if(!Wn(i))return;let u=[];n.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:i[c],searcher:r}))}),u.length&&o.push({idx:s,item:i,matches:u})}),o}_findMatches({key:t,value:r,searcher:n}){if(!Wn(r))return[];let a=[];if(Xo(r))r.forEach(({v:o,i,n:s})=>{if(!Wn(o))return;const{isMatch:u,score:l,indices:c}=n.searchIn(o);u&&a.push({score:l,key:t,value:o,idx:i,norm:s,indices:c})});else{const{v:o,n:i}=r,{isMatch:s,score:u,indices:l}=n.searchIn(o);s&&a.push({score:u,key:t,value:o,norm:i,indices:l})}return a}}Uc.version="7.0.0";Uc.createIndex=SN;Uc.parseIndex=u$e;Uc.config=st;Uc.parseQuery=$N;S$e(E$e);const Po=(e,t={})=>{const r="/api";return t.headers=t.headers||new Headers({Accept:"application/json"}),t.headers.set("X-GripMock-RequestInternal","92b4d5a9-c74b-4ac0-989c-717f80acba22"),AJ(`${r}${e}`,t)},T$e=(e,t)=>{const r=new Uc(e,{keys:Object.keys(t),includeScore:!0});for(const n of Object.values(t))console.log("$fuse",n,r.search(n));return e},j$e=(e,t)=>{const{fuse:r}=t;return delete t.fuse,Object.keys(t).length>0&&(e=N2e(e,W2e(t))),r!==void 0&&(e=T$e(e,r)),e},Pb=(e,t,r)=>{if(t===void 0&&r===void 0)return e;const{field:n,order:a}=r;return $2e(j$e(e,t),[n],[a.toLowerCase()])},I$e={getList:async(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={sort:JSON.stringify([a,o]),range:JSON.stringify([(r-1)*n,r*n-1]),filter:JSON.stringify(t.filter)},s=`/${e}?${ll.stringify(i)}`,{json:u}=await Po(s);return console.log("$list",u,t),{data:Pb(u,t.filter,t.sort),total:u.length}},getOne:async(e,t)=>{const{json:r}=await Po(`/${e}/${t.id}`);return{data:r}},getMany:async(e,t)=>{const r={filter:JSON.stringify({ids:t.ids})},n=`/${e}?${ll.stringify(r)}`,{json:a}=await Po(n);return{data:Pb(a,t.filter,t.sort)}},getManyReference:async(e,t)=>{const r=`/${e}/${t.id}/${t.target}`,{json:n}=await Po(r);return{data:Pb(n,t.filter,t.sort),total:n.length}},create:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:t.data}),update:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{id:t.data.id,data:t.data}),updateMany:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:[]}),delete:async(e,t)=>{const r=`/${e}/batchDelete`;return await Po(r,{method:"POST",body:JSON.stringify([t.id])}),{data:[]}},deleteMany:async(e,t)=>{const r=`/${e}/batchDelete`;return await Po(r,{method:"POST",body:JSON.stringify(t.ids)}),{data:[]}}};var RN={exports:{}};(function(e,t){(function(r,n){e.exports=n(f)})(Ps,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,d,p){if(i(c),d=u(d,!0),i(p),s)try{return l(c,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[d]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),d=function(p,h,m){var g,_,x,y=p&d.F,b=p&d.G,E=p&d.S,v=p&d.P,w=p&d.B,S=p&d.W,O=b?s:s[h]||(s[h]={}),C=O.prototype,P=b?i:E?i[h]:(i[h]||{}).prototype;for(g in b&&(m=h),m)(_=!y&&P&&P[g]!==void 0)&&c(O,g)||(x=_?P[g]:m[g],O[g]=b&&typeof P[g]!="function"?m[g]:w&&_?u(x,i):S&&P[g]==x?function($){var T=function(A,M,I){if(this instanceof $){switch(arguments.length){case 0:return new $;case 1:return new $(A);case 2:return new $(A,M)}return new $(A,M,I)}return $.apply(this,arguments)};return T.prototype=$.prototype,T}(x):v&&typeof x=="function"?u(Function.call,x):x,v&&((O.virtual||(O.virtual={}))[g]=x,p&d.R&&C&&!C[g]&&l(C,g,x)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,d){l&&!s(l=d?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;ddocument.F=Object<\/script>"),p.close(),d=p.F;m--;)delete d.prototype[u[m]];return d()};n.exports=Object.create||function(p,h){var m;return p!==null?(c.prototype=i(p),m=new c,c.prototype=null,m[l]=p):m=d(),h===void 0?m:s(m,h)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,d){var p,h=s(c),m=0,g=[];for(p in h)p!=l&&i(h,p)&&g.push(p);for(;d.length>m;)i(h,p=d[m++])&&(~u(g,p)||g.push(p));return g}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,d,p;return l===void 0?"Undefined":l===null?"Null":typeof(d=function(h,m){try{return h[m]}catch{}}(c=Object(l),s))=="string"?d:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=_(o(49)),s=_(o(76)),u=_(o(81)),l=_(o(89)),c=_(o(93)),d=function(C){if(C&&C.__esModule)return C;var P={};if(C!=null)for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(P[$]=C[$]);return P.default=C,P}(o(94)),p=_(o(132)),h=_(o(133)),m=_(o(138)),g=o(139);function _(C){return C&&C.__esModule?C:{default:C}}var x=d.default,y=(0,l.default)(x),b=(0,m.default)(h.default,g.rgb2yuv,function(C){var P,$=(0,u.default)(C,3),T=$[0],A=$[1],M=$[2];return[(P=T,P<.25?1:P<.5?.9-P:1.1-P),A,M]},g.yuv2rgb,p.default),E=function(C){return function(P){return{className:[P.className,C.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},C.style||{})}}},v=function(C,P){var $=(0,l.default)(P);for(var T in C)$.indexOf(T)===-1&&$.push(T);return $.reduce(function(A,M){return A[M]=function(I,U){if(I===void 0)return U;if(U===void 0)return I;var W=I===void 0?"undefined":(0,i.default)(I),j=U===void 0?"undefined":(0,i.default)(U);switch(W){case"string":switch(j){case"string":return[U,I].filter(Boolean).join(" ");case"object":return E({className:I,style:U});case"function":return function(V){for(var J=arguments.length,se=Array(J>1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe2?$-2:0),A=2;A<$;A++)T[A-2]=arguments[A];if(P===null)return C;Array.isArray(P)||(P=[P]);var M=P.map(function(U){return C[U]}).filter(Boolean),I=M.reduce(function(U,W){return typeof W=="string"?U.className=[U.className,W].filter(Boolean).join(" "):(W===void 0?"undefined":(0,i.default)(W))==="object"?U.style=(0,s.default)({},U.style,W):typeof W=="function"&&(U=(0,s.default)({},U,W.apply(void 0,[U].concat(T)))),U},{className:"",style:{}});return I.className||delete I.className,(0,l.default)(I.style).length===0&&delete I.style,I},S=a.invertTheme=function(C){return(0,l.default)(C).reduce(function(P,$){return P[$]=/^base/.test($)?b(C[$]):$==="scheme"?C[$]+":inverted":C[$],P},{})},O=(a.createStyling=(0,c.default)(function(C){for(var P=arguments.length,$=Array(P>3?P-3:0),T=3;T1&&arguments[1]!==void 0?arguments[1]:{},M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=A.defaultBase16,U=I===void 0?x:I,W=A.base16Themes,j=W===void 0?null:W,V=O(M,j);V&&(M=(0,s.default)({},V,M));var J=y.reduce(function(be,xe){return be[xe]=M[xe]||U[xe],be},{}),se=(0,l.default)(M).reduce(function(be,xe){return y.indexOf(xe)===-1&&(be[xe]=M[xe]),be},{}),oe=C(J),ve=v(se,oe);return(0,c.default)(w,2).apply(void 0,[ve].concat($))},3),a.getBase16Theme=function(C,P){if(C&&C.extend&&(C=C.extend),typeof C=="string"){var $=C.split(":"),T=(0,u.default)($,2),A=T[0],M=T[1];C=(P||{})[A]||d[A],M==="inverted"&&(C=S(C))}return C&&C.hasOwnProperty("base00")?C:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(v,w,S){return Function.prototype.apply.call(v,w,S)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:function(v){return Object.getOwnPropertyNames(v)};var l=Number.isNaN||function(v){return v!=v};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(v,w){return new Promise(function(S,O){function C($){v.removeListener(w,P),O($)}function P(){typeof v.removeListener=="function"&&v.removeListener("error",C),S([].slice.call(arguments))}E(v,w,P,{once:!0}),w!=="error"&&function($,T,A){typeof $.on=="function"&&E($,"error",T,A)}(v,C,{once:!0})})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var d=10;function p(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function h(v){return v._maxListeners===void 0?c.defaultMaxListeners:v._maxListeners}function m(v,w,S,O){var C,P,$,T;if(p(S),(P=v._events)===void 0?(P=v._events=Object.create(null),v._eventsCount=0):(P.newListener!==void 0&&(v.emit("newListener",w,S.listener?S.listener:S),P=v._events),$=P[w]),$===void 0)$=P[w]=S,++v._eventsCount;else if(typeof $=="function"?$=P[w]=O?[S,$]:[$,S]:O?$.unshift(S):$.push(S),(C=h(v))>0&&$.length>C&&!$.warned){$.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=v,A.type=w,A.count=$.length,T=A,console&&console.warn&&console.warn(T)}return v}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(v,w,S){var O={fired:!1,wrapFn:void 0,target:v,type:w,listener:S},C=g.bind(O);return C.listener=S,O.wrapFn=C,C}function x(v,w,S){var O=v._events;if(O===void 0)return[];var C=O[w];return C===void 0?[]:typeof C=="function"?S?[C.listener||C]:[C]:S?function(P){for(var $=new Array(P.length),T=0;T<$.length;++T)$[T]=P[T].listener||P[T];return $}(C):b(C,C.length)}function y(v){var w=this._events;if(w!==void 0){var S=w[v];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}function b(v,w){for(var S=new Array(w),O=0;O0&&(P=w[0]),P instanceof Error)throw P;var $=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw $.context=P,$}var T=C[v];if(T===void 0)return!1;if(typeof T=="function")u(T,this,w);else{var A=T.length,M=b(T,A);for(S=0;S=0;P--)if(S[P]===w||S[P].listener===w){$=S[P].listener,C=P;break}if(C<0)return this;C===0?S.shift():function(T,A){for(;A+1=0;O--)this.removeListener(v,w[O]);return this},c.prototype.listeners=function(v){return x(this,v,!0)},c.prototype.rawListeners=function(v){return x(this,v,!1)},c.listenerCount=function(v,w){return typeof v.listenerCount=="function"?v.listenerCount(w):y.call(v,w)},c.prototype.listenerCount=y,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var d,p,h=String(s(l)),m=i(c),g=h.length;return m<0||m>=g?u?"":void 0:(d=h.charCodeAt(m))<55296||d>56319||m+1===g||(p=h.charCodeAt(m+1))<56320||p>57343?u?h.charAt(m):d:u?h.slice(m,m+2):p-56320+(d-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,d){return s.call(u,c,d)};case 3:return function(c,d,p){return s.call(u,c,d,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,d,p){c.prototype=i(l,{next:s(1,p)}),u(c,d+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var d,p=u(c),h=p.length,m=0;h>m;)i.f(l,d=p[m++],c[d]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,d,p){var h,m=i(c),g=s(m.length),_=u(p,g);if(l&&d!=d){for(;g>_;)if((h=m[_++])!=h)return!0}else for(;g>_;_++)if((l||_ in m)&&m[_]===d)return l||_||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,d){this._t=l(c),this._i=0,this._k=d},function(){var c=this._t,d=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,d=="keys"?p:d=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),d=o(68).KEY,p=o(8),h=o(26),m=o(28),g=o(17),_=o(2),x=o(30),y=o(31),b=o(69),E=o(70),v=o(10),w=o(11),S=o(18),O=o(9),C=o(23),P=o(16),$=o(38),T=o(71),A=o(72),M=o(32),I=o(7),U=o(13),W=A.f,j=I.f,V=T.f,J=i.Symbol,se=i.JSON,oe=se&&se.stringify,ve=_("_hidden"),be=_("toPrimitive"),xe={}.propertyIsEnumerable,_e=h("symbol-registry"),Te=h("symbols"),$e=h("op-symbols"),Ee=Object.prototype,Ve=typeof J=="function"&&!!M.f,je=i.QObject,De=!je||!je.prototype||!je.prototype.findChild,Fe=u&&p(function(){return $(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a!=7})?function(Q,re,ie){var Ie=W(Ee,re);Ie&&delete Ee[re],j(Q,re,ie),Ie&&Q!==Ee&&j(Ee,re,Ie)}:j,He=function(Q){var re=Te[Q]=$(J.prototype);return re._k=Q,re},et=Ve&&typeof J.iterator=="symbol"?function(Q){return typeof Q=="symbol"}:function(Q){return Q instanceof J},ft=function(Q,re,ie){return Q===Ee&&ft($e,re,ie),v(Q),re=C(re,!0),v(ie),s(Te,re)?(ie.enumerable?(s(Q,ve)&&Q[ve][re]&&(Q[ve][re]=!1),ie=$(ie,{enumerable:P(0,!1)})):(s(Q,ve)||j(Q,ve,P(1,{})),Q[ve][re]=!0),Fe(Q,re,ie)):j(Q,re,ie)},xt=function(Q,re){v(Q);for(var ie,Ie=b(re=O(re)),Xe=0,Be=Ie.length;Be>Xe;)ft(Q,ie=Ie[Xe++],re[ie]);return Q},z=function(Q){var re=xe.call(this,Q=C(Q,!0));return!(this===Ee&&s(Te,Q)&&!s($e,Q))&&(!(re||!s(this,Q)||!s(Te,Q)||s(this,ve)&&this[ve][Q])||re)},X=function(Q,re){if(Q=O(Q),re=C(re,!0),Q!==Ee||!s(Te,re)||s($e,re)){var ie=W(Q,re);return!ie||!s(Te,re)||s(Q,ve)&&Q[ve][re]||(ie.enumerable=!0),ie}},te=function(Q){for(var re,ie=V(O(Q)),Ie=[],Xe=0;ie.length>Xe;)s(Te,re=ie[Xe++])||re==ve||re==d||Ie.push(re);return Ie},le=function(Q){for(var re,ie=Q===Ee,Ie=V(ie?$e:O(Q)),Xe=[],Be=0;Ie.length>Be;)!s(Te,re=Ie[Be++])||ie&&!s(Ee,re)||Xe.push(Te[re]);return Xe};Ve||(c((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor!");var Q=g(arguments.length>0?arguments[0]:void 0),re=function(ie){this===Ee&&re.call($e,ie),s(this,ve)&&s(this[ve],Q)&&(this[ve][Q]=!1),Fe(this,Q,P(1,ie))};return u&&De&&Fe(Ee,Q,{configurable:!0,set:re}),He(Q)}).prototype,"toString",function(){return this._k}),A.f=X,I.f=ft,o(41).f=T.f=te,o(19).f=z,M.f=le,u&&!o(14)&&c(Ee,"propertyIsEnumerable",z,!0),x.f=function(Q){return He(_(Q))}),l(l.G+l.W+l.F*!Ve,{Symbol:J});for(var ye="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),me=0;ye.length>me;)_(ye[me++]);for(var ge=U(_.store),Z=0;ge.length>Z;)y(ge[Z++]);l(l.S+l.F*!Ve,"Symbol",{for:function(Q){return s(_e,Q+="")?_e[Q]:_e[Q]=J(Q)},keyFor:function(Q){if(!et(Q))throw TypeError(Q+" is not a symbol!");for(var re in _e)if(_e[re]===Q)return re},useSetter:function(){De=!0},useSimple:function(){De=!1}}),l(l.S+l.F*!Ve,"Object",{create:function(Q,re){return re===void 0?$(Q):xt($(Q),re)},defineProperty:ft,defineProperties:xt,getOwnPropertyDescriptor:X,getOwnPropertyNames:te,getOwnPropertySymbols:le});var K=p(function(){M.f(1)});l(l.S+l.F*K,"Object",{getOwnPropertySymbols:function(Q){return M.f(S(Q))}}),se&&l(l.S+l.F*(!Ve||p(function(){var Q=J();return oe([Q])!="[null]"||oe({a:Q})!="{}"||oe(Object(Q))!="{}"})),"JSON",{stringify:function(Q){for(var re,ie,Ie=[Q],Xe=1;arguments.length>Xe;)Ie.push(arguments[Xe++]);if(ie=re=Ie[1],(w(re)||Q!==void 0)&&!et(Q))return E(re)||(re=function(Be,Oe){if(typeof ie=="function"&&(Oe=ie.call(this,Be,Oe)),!et(Oe))return Oe}),Ie[1]=re,oe.apply(se,Ie)}}),J.prototype[be]||o(6)(J.prototype,be,J.prototype.valueOf),m(J,"Symbol"),m(Math,"Math",!0),m(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,d=Object.isExtensible||function(){return!0},p=!o(8)(function(){return d(Object.preventExtensions({}))}),h=function(g){l(g,i,{value:{i:"O"+ ++c,w:{}}})},m=n.exports={KEY:i,NEED:!1,fastKey:function(g,_){if(!s(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!u(g,i)){if(!d(g))return"F";if(!_)return"E";h(g)}return g[i].i},getWeak:function(g,_){if(!u(g,i)){if(!d(g))return!0;if(!_)return!1;h(g)}return g[i].w},onFreeze:function(g){return p&&m.NEED&&d(g)&&!u(g,i)&&h(g),g}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),d=s.f;if(d)for(var p,h=d(l),m=u.f,g=0;h.length>g;)m.call(l,p=h[g++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(d){try{return s(d)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),d=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(h,m){if(h=u(h),m=l(m,!0),d)try{return p(h,m)}catch{}if(c(h,m))return s(!i.f.call(h,m),h[m])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var E,v=d(arguments[x++]),w=y?s(v).concat(y(v)):s(v),S=w.length,O=0;S>O;)E=w[O++],i&&!b.call(v,E)||(g[E]=v[E]);return g}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(d,p){var h=[],m=!0,g=!1,_=void 0;try{for(var x,y=(0,s.default)(d);!(m=(x=y.next()).done)&&(h.push(x.value),!p||h.length!==p);m=!0);}catch(b){g=!0,_=b}finally{try{!m&&y.return&&y.return()}finally{if(g)throw _}}return h}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var d=(s.Object||{})[l]||Object[l],p={};p[l]=c(d),i(i.S+i.F*u(function(){d(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^\[object .+?Constructor\]$/,g=/^0o[0-7]+$/i,_=/^(?:0|[1-9]\d*)$/,x=parseInt,y=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,E=y||b||Function("return this")();function v(Z,K,Q){switch(Q.length){case 0:return Z.call(K);case 1:return Z.call(K,Q[0]);case 2:return Z.call(K,Q[0],Q[1]);case 3:return Z.call(K,Q[0],Q[1],Q[2])}return Z.apply(K,Q)}function w(Z,K){return!!(Z&&Z.length)&&function(Q,re,ie){if(re!=re)return function(Be,Oe,Je,rt){for(var St=Be.length,At=Je+-1;++At-1}function S(Z){return Z!=Z}function O(Z,K){for(var Q=Z.length,re=0;Q--;)Z[Q]===K&&re++;return re}function C(Z,K){for(var Q=-1,re=Z.length,ie=0,Ie=[];++Q2?$:void 0);function xe(Z){return ye(Z)?se(Z):{}}function _e(Z){return!(!ye(Z)||function(K){return!!U&&U in K}(Z))&&(function(K){var Q=ye(K)?V.call(K):"";return Q=="[object Function]"||Q=="[object GeneratorFunction]"}(Z)||function(K){var Q=!1;if(K!=null&&typeof K.toString!="function")try{Q=!!(K+"")}catch{}return Q}(Z)?J:m).test(function(K){if(K!=null){try{return W.call(K)}catch{}try{return K+""}catch{}}return""}(Z))}function Te(Z,K,Q,re){for(var ie=-1,Ie=Z.length,Xe=Q.length,Be=-1,Oe=K.length,Je=oe(Ie-Xe,0),rt=Array(Oe+Je),St=!re;++Be1&&$t.reverse(),rt&&Oe1?"& ":"")+K[re],K=K.join(Q>2?", ":" "),Z.replace(l,`{ +`+t.prev}function av(e,t){var r=Mw(e),n=[];if(r){n.length=e.length;for(var a=0;a"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},SOe=EOe,NO=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":SOe(t)},tT=bn,OOe=aOe,COe=GL,POe=NO,QL=function(t,r){if(POe(t)!=="Object")throw new tT("Assertion failed: Type(O) is not Object");if(!COe(r))throw new tT("Assertion failed: IsPropertyKey(P) is not true, got "+OOe(r));return t[r]},rT=bn,$Oe=GL,ROe=NO,kOe=function(t,r){if(ROe(t)!=="Object")throw new rT("Assertion failed: `O` must be an Object");if(!$Oe(r))throw new rT("Assertion failed: `P` must be a Property Key");return r in t},XL=Function.prototype.toString,ou=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Lw,Gv;if(typeof ou=="function"&&typeof Object.defineProperty=="function")try{Lw=Object.defineProperty({},"length",{get:function(){throw Gv}}),Gv={},ou(function(){throw 42},null,Lw)}catch(e){e!==Gv&&(ou=null)}else ou=null;var TOe=/^\s*class\b/,Nw=function(t){try{var r=XL.call(t);return TOe.test(r)}catch{return!1}},pb=function(t){try{return Nw(t)?!1:(XL.call(t),!0)}catch{return!1}},Qv=Object.prototype.toString,jOe="[object Object]",IOe="[object Function]",AOe="[object GeneratorFunction]",MOe="[object HTMLAllCollection]",FOe="[object HTML document.all class]",LOe="[object HTMLCollection]",NOe=typeof Symbol=="function"&&!!Symbol.toStringTag,DOe=!(0 in[,]),Dw=function(){return!1};if(typeof document=="object"){var BOe=document.all;Qv.call(BOe)===Qv.call(document.all)&&(Dw=function(t){if((DOe||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Qv.call(t);return(r===MOe||r===FOe||r===LOe||r===jOe)&&t("")==null}catch{}return!1})}var YL=ou?function(t){if(Dw(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ou(t,null,Lw)}catch(r){if(r!==Gv)return!1}return!Nw(t)&&pb(t)}:function(t){if(Dw(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(NOe)return pb(t);if(Nw(t))return!1;var r=Qv.call(t);return r!==IOe&&r!==AOe&&!/^\[object HTML/.test(r)?!1:pb(t)},zOe=YL,UOe=Number.MAX_SAFE_INTEGER||9007199254740991,vb,nT;function VOe(){return nT||(nT=1,vb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),vb}var hb,aT;function WOe(){return aT||(aT=1,hb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),hb}var HOe=RL,DO=function(){return HOe()&&!!Symbol.toStringTag},mb,oT;function qOe(){if(oT)return mb;oT=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",a=DO();return mb=function(i){return typeof i!="object"||i===null?!1:a?t(i):r.call(i)===n},mb}var ov={exports:{}},iT;function KOe(){if(iT)return ov.exports;iT=1;var e=Object.prototype.toString,t=kL();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,a=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};ov.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return a(i)}catch{return!1}}}else ov.exports=function(i){return!1};return ov.exports}var gb,sT;function GOe(){if(sT)return gb;sT=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=WOe(),r=YL,n=qOe(),a=KOe(),o=function(u,l){if(typeof u>"u"||u===null)throw new TypeError("Cannot call method on "+u);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var c=l==="string"?["toString","valueOf"]:["valueOf","toString"],d,p,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var c;if(e&&(Symbol.toPrimitive?c=i(u,Symbol.toPrimitive):a(u)&&(c=Symbol.prototype.valueOf)),typeof c<"u"){var d=c.call(u,l);if(t(d))return d;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(u)||a(u))&&(l="string"),o(u,l==="default"?"number":l)},gb}var yb,lT;function QOe(){if(lT)return yb;lT=1;var e=GOe();return yb=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},yb}var bb,uT;function XOe(){if(uT)return bb;uT=1;var e=ai,t=DO(),r,n,a,o;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),a={};var i=function(){throw a};o={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(o[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor,l="[object RegExp]";return bb=t?function(d){if(!d||typeof d!="object")return!1;var p=u(d,"lastIndex"),h=p&&r(p,"value");if(!h)return!1;try{n(d,o)}catch(m){return m===a}}:function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:s(d)===l},bb}var xb,cT;function YOe(){if(cT)return xb;cT=1;var e=ai,t=XOe(),r=e("RegExp.prototype.exec"),n=bn;return xb=function(o){if(!t(o))throw new n("`regex` must be a RegExp");return function(s){return r(o,s)!==null}},xb}var JOe=bo,ZOe=JOe("%String%"),eCe=bn,JL=function(t){if(typeof t=="symbol")throw new eCe("Cannot convert a Symbol value to a string");return ZOe(t)},tCe=yp,rCe=JL,nCe=ai,dT=nCe("String.prototype.replace"),ZL=/^\s$/.test("᠎"),aCe=ZL?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,oCe=ZL?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,eN=function(){var t=rCe(tCe(this));return dT(dT(t,aCe,""),oCe,"")},iCe=eN,fT="​",Fl="᠎",tN=function(){return String.prototype.trim&&fT.trim()===fT&&Fl.trim()===Fl&&("_"+Fl).trim()==="_"+Fl&&(Fl+"_").trim()===Fl+"_"?String.prototype.trim:iCe},sCe=zc,lCe=tN,uCe=function(){var t=lCe();return sCe(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},cCe=Dy,dCe=zc,fCe=yp,pCe=eN,rN=tN,vCe=uCe,hCe=cCe(rN()),nN=function(t){return fCe(t),hCe(t)};dCe(nN,{getPolyfill:rN,implementation:pCe,shim:vCe});var aN=nN,wb,pT;function mCe(){if(pT)return wb;pT=1;var e=bo,t=e("%Number%"),r=e("%RegExp%"),n=bn,a=e("%parseInt%"),o=ai,i=YOe(),s=o("String.prototype.slice"),u=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),c=i(/^[-+]0x[0-9a-f]+$/i),d=["…","​","￾"].join(""),p=new r("["+d+"]","g"),h=i(p),m=aN;return wb=function g(_){if(typeof _!="string")throw new n("Assertion failed: `argument` is not a String");if(u(_))return t(a(s(_,2),2));if(l(_))return t(a(s(_,2),8));if(h(_)||c(_))return NaN;var x=m(_);return x!==_?g(x):t(_)},wb}var gCe=bo,vT=bn,hT=gCe("%Number%"),yCe=VOe(),bCe=QOe(),xCe=mCe(),wCe=function(t){var r=yCe(t)?t:bCe(t,hT);if(typeof r=="symbol")throw new vT("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new vT("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?xCe(r):hT(r)},_Ce=Math.floor,ECe=function(t){return typeof t=="bigint"?t:_Ce(t)},mT=ECe,SCe=bn,OCe=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new SCe("argument must be a Number or a BigInt");var r=t<0?-mT(-t):mT(t);return r===0?0:r},oN=Number.isNaN||function(t){return t!==t},CCe=oN,PCe=function(e){return(typeof e=="number"||typeof e=="bigint")&&!CCe(e)&&e!==1/0&&e!==-1/0},$Ce=wCe,RCe=OCe,kCe=oN,TCe=PCe,jCe=function(t){var r=$Ce(t);return kCe(r)||r===0?0:TCe(r)?RCe(r):r},gT=UOe,ICe=jCe,ACe=function(t){var r=ICe(t);return r<=0?0:r>gT?gT:r},MCe=bn,FCe=QL,LCe=ACe,NCe=NO,DCe=function(t){if(NCe(t)!=="Object")throw new MCe("Assertion failed: `obj` must be an Object");return LCe(FCe(t,"length"))},BCe=Object,zCe=BCe,UCe=yp,VCe=function(t){return UCe(t),zCe(t)},WCe=String.prototype.valueOf,HCe=function(t){try{return WCe.call(t),!0}catch{return!1}},qCe=Object.prototype.toString,KCe="[object String]",GCe=DO(),QCe=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:GCe?HCe(t):qCe.call(t)===KCe},XCe=ai,YCe=bn,JCe=HSe,ZCe=QL,ePe=kOe,tPe=zOe,rPe=DCe,nPe=VCe,aPe=JL,oPe=QCe,iPe=XCe("String.prototype.split"),yT=Object("a"),sPe=yT[0]!=="a"||!(0 in yT),iN=function(t){var r=nPe(this),n=sPe&&oPe(this)?iPe(this,""):r,a=rPe(n);if(!tPe(t))throw new YCe("Array.prototype.forEach callback must be a function");var o;arguments.length>1&&(o=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},yN={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:Sb,chinese:function(){return 0},croatian:Sb,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Sb,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function LPe(e){var t={};return $m(BO(e),function(r){var n=r[0],a=r[1];$m(a,function(o){t[o]=n})}),t}function NPe(e,t){var r=LPe(e.pluralTypeToLanguages);return r[t]||r[gN.call(t,/-/,1)[0]]||r.en}function DPe(e,t,r){return e.pluralTypes[t](r)}function BPe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=NPe(t,r),n&&(e[r]=n)),n}}function wT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zPe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Xv||r===Xv)throw new RangeError('"'+Xv+'" token is reserved for pluralization');return new RegExp(wT(t)+"(.*?)"+wT(r),"g")}var UPe=BPe(),VPe=/%\{(.*?)\}/g;function zO(e,t,r,n,a,o){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||VPe,u=o||mN,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var c=a||yN,d=gN.call(e,Xv),p=r||"en",h=UPe(c,p),m=DPe(c,h,l.smart_count);i=MPe(d[m]||d[0])}return i=u.call(i,s,function(g,_){return!hN(l,_)||l[_]==null?g:l[_]}),i}function oi(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?zO:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||FPe,this.replaceImplementation=t.replace||mN,this.tokenRegex=zPe(t.interpolation),this.pluralRules=t.pluralRules||yN}oi.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};oi.prototype.extend=function(e,t){$m(BO(e||{}),function(r){var n=r[0],a=r[1],o=t?t+"."+n:n;typeof a=="object"?this.extend(a,o):this.phrases[o]=a},this)};oi.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:$m(BO(e||{}),function(r){var n=r[0],a=r[1],o=t?t+"."+n:n;typeof a=="object"?this.unset(a,o):delete this.phrases[o]},this)};oi.prototype.clear=function(){this.phrases={}};oi.prototype.replace=function(e){this.clear(),this.extend(e)};oi.prototype.t=function(e,t){var r,n,a=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof a._=="string")r=a._;else if(this.onMissingKey){var o=this.onMissingKey;n=o(e,a,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=zO(r,a,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};oi.prototype.has=function(e){return hN(this.phrases,e)};oi.transformPhrase=function(t,r,n){return zO(t,r,n)};var WPe=oi;const _T=pr(WPe);var iu=function(){return iu=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt||o&&i&&u&&!s&&!l||n&&i&&u||!r&&u||!a)return 1;if(!n&&!o&&!l&&e=s)return u;var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var h2e=v2e,Ob=ng,m2e=Jf,g2e=pg,y2e=l2e,b2e=c2e,x2e=Zf,w2e=h2e,_2e=cg,E2e=Mn;function S2e(e,t,r){t.length?t=Ob(t,function(o){return E2e(o)?function(i){return m2e(i,o.length===1?o[0]:o)}:o}):t=[_2e];var n=-1;t=Ob(t,x2e(g2e));var a=y2e(e,function(o,i,s){var u=Ob(t,function(l){return l(o)});return{criteria:u,index:++n,value:o}});return b2e(a,function(o,i){return w2e(o,i,r)})}var O2e=S2e,C2e=O2e,ST=Mn;function P2e(e,t,r,n){return e==null?[]:(ST(t)||(t=t==null?[]:[t]),r=n?void 0:r,ST(r)||(r=r==null?[]:[r]),C2e(e,t,r))}var $2e=P2e;const R2e=pr($2e);var k2e=bN;function T2e(e,t){var r=[];return k2e(e,function(n,a,o){t(n,a,o)&&r.push(n)}),r}var j2e=T2e,I2e=qA,A2e=j2e,M2e=pg,F2e=Mn;function L2e(e,t){var r=F2e(e)?I2e:A2e;return r(e,M2e(t))}var N2e=L2e;const D2e=pr(N2e);var B2e=SM,z2e=pg,U2e=1;function V2e(e){return z2e(typeof e=="function"?e:B2e(e,U2e))}var W2e=V2e;const H2e=pr(W2e);function Xo(e){return Array.isArray?Array.isArray(e):_N(e)==="[object Array]"}const q2e=1/0;function K2e(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-q2e?"-0":t}function G2e(e){return e==null?"":K2e(e)}function oo(e){return typeof e=="string"}function xN(e){return typeof e=="number"}function Q2e(e){return e===!0||e===!1||X2e(e)&&_N(e)=="[object Boolean]"}function wN(e){return typeof e=="object"}function X2e(e){return wN(e)&&e!==null}function Wn(e){return e!=null}function Cb(e){return!e.trim().length}function _N(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Y2e="Incorrect 'index' type",J2e=e=>`Invalid value for key ${e}`,Z2e=e=>`Pattern length exceeds max of ${e}.`,e$e=e=>`Missing ${e} property in key`,t$e=e=>`Property 'weight' in key '${e}' must be a positive integer`,OT=Object.prototype.hasOwnProperty;class r$e{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let a=EN(n);this._keys.push(a),this._keyMap[a.id]=a,r+=a.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function EN(e){let t=null,r=null,n=null,a=1,o=null;if(oo(e)||Xo(e))n=e,t=CT(e),r=Bw(e);else{if(!OT.call(e,"name"))throw new Error(e$e("name"));const i=e.name;if(n=i,OT.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(t$e(i));t=CT(i),r=Bw(i),o=e.getFn}return{path:t,id:r,weight:a,src:n,getFn:o}}function CT(e){return Xo(e)?e:e.split(".")}function Bw(e){return Xo(e)?e.join("."):e}function n$e(e,t){let r=[],n=!1;const a=(o,i,s)=>{if(Wn(o))if(!i[s])r.push(o);else{let u=i[s];const l=o[u];if(!Wn(l))return;if(s===i.length-1&&(oo(l)||xN(l)||Q2e(l)))r.push(G2e(l));else if(Xo(l)){n=!0;for(let c=0,d=l.length;ce.score===t.score?e.idx{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,oo(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();oo(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r{let i=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Wn(i)){if(Xo(i)){let s=[];const u=[{nestedArrIndex:-1,value:i}];for(;u.length;){const{nestedArrIndex:l,value:c}=u.pop();if(Wn(c))if(oo(c)&&!Cb(c)){let d={v:c,i:l,n:this.norm.get(c)};s.push(d)}else Xo(c)&&c.forEach((d,p)=>{u.push({nestedArrIndex:p,value:d})})}n.$[o]=s}else if(oo(i)&&!Cb(i)){let s={v:i,n:this.norm.get(i)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function SN(e,t,{getFn:r=st.getFn,fieldNormWeight:n=st.fieldNormWeight}={}){const a=new UO({getFn:r,fieldNormWeight:n});return a.setKeys(e.map(EN)),a.setSources(t),a.create(),a}function c$e(e,{getFn:t=st.getFn,fieldNormWeight:r=st.fieldNormWeight}={}){const{keys:n,records:a}=e,o=new UO({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(a),o}function iv(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:a=st.distance,ignoreLocation:o=st.ignoreLocation}={}){const i=t/e.length;if(o)return i;const s=Math.abs(n-r);return a?i+s/a:s?1:i}function d$e(e=[],t=st.minMatchCharLength){let r=[],n=-1,a=-1,o=0;for(let i=e.length;o=t&&r.push([n,a]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}const Cs=32;function f$e(e,t,r,{location:n=st.location,distance:a=st.distance,threshold:o=st.threshold,findAllMatches:i=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,includeMatches:u=st.includeMatches,ignoreLocation:l=st.ignoreLocation}={}){if(t.length>Cs)throw new Error(Z2e(Cs));const c=t.length,d=e.length,p=Math.max(0,Math.min(n,d));let h=o,m=p;const g=s>1||u,_=g?Array(d):[];let x;for(;(x=e.indexOf(t,m))>-1;){let S=iv(t,{currentLocation:x,expectedLocation:p,distance:a,ignoreLocation:l});if(h=Math.min(S,h),m=x+c,g){let O=0;for(;O=P;M-=1){let I=M-1,U=r[e.charAt(I)];if(g&&(_[I]=+!!U),T[M]=(T[M+1]<<1|1)&U,S&&(T[M]|=(y[M+1]|y[M])<<1|1|y[M+1]),T[M]&v&&(b=iv(t,{errors:S,currentLocation:I,expectedLocation:p,distance:a,ignoreLocation:l}),b<=h)){if(h=b,m=I,m<=p)break;P=Math.max(1,2*p-m)}}if(iv(t,{errors:S+1,currentLocation:p,expectedLocation:p,distance:a,ignoreLocation:l})>h)break;y=T}const w={isMatch:m>=0,score:Math.max(.001,b)};if(g){const S=d$e(_,s);S.length?u&&(w.indices=S):w.isMatch=!1}return w}function p$e(e){let t={};for(let r=0,n=e.length;r{this.chunks.push({pattern:p,alphabet:p$e(p),startIndex:h})},d=this.pattern.length;if(d>Cs){let p=0;const h=d%Cs,m=d-h;for(;p{const{isMatch:x,score:y,indices:b}=f$e(t,m,g,{location:a+_,distance:o,threshold:i,findAllMatches:s,minMatchCharLength:u,includeMatches:n,ignoreLocation:l});x&&(p=!0),d+=y,x&&b&&(c=[...c,...b])});let h={isMatch:p,score:p?d/this.chunks.length:1};return p&&n&&(h.indices=c),h}}class ls{constructor(t){this.pattern=t}static isMultiMatch(t){return PT(t,this.multiRegex)}static isSingleMatch(t){return PT(t,this.singleRegex)}search(){}}function PT(e,t){const r=e.match(t);return r?r[1]:null}class v$e extends ls{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class h$e extends ls{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class m$e extends ls{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class g$e extends ls{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class y$e extends ls{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class b$e extends ls{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class CN extends ls{constructor(t,{location:r=st.location,threshold:n=st.threshold,distance:a=st.distance,includeMatches:o=st.includeMatches,findAllMatches:i=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,isCaseSensitive:u=st.isCaseSensitive,ignoreLocation:l=st.ignoreLocation}={}){super(t),this._bitapSearch=new ON(t,{location:r,threshold:n,distance:a,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class PN extends ls{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const a=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+o,a.push([n,r-1]);const i=!!a.length;return{isMatch:i,score:i?0:1,indices:a}}}const zw=[v$e,PN,m$e,g$e,b$e,y$e,h$e,CN],$T=zw.length,x$e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,w$e="|";function _$e(e,t={}){return e.split(w$e).map(r=>{let n=r.trim().split(x$e).filter(o=>o&&!!o.trim()),a=[];for(let o=0,i=n.length;o!!(e[Rm.AND]||e[Rm.OR]),C$e=e=>!!e[Ww.PATH],P$e=e=>!Xo(e)&&wN(e)&&!Hw(e),RT=e=>({[Rm.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function $N(e,t,{auto:r=!0}={}){const n=a=>{let o=Object.keys(a);const i=C$e(a);if(!i&&o.length>1&&!Hw(a))return n(RT(a));if(P$e(a)){const u=i?a[Ww.PATH]:o[0],l=i?a[Ww.PATTERN]:a[u];if(!oo(l))throw new Error(J2e(u));const c={keyId:Bw(u),pattern:l};return r&&(c.searcher=Vw(l,t)),c}let s={children:[],operator:o[0]};return o.forEach(u=>{const l=a[u];Xo(l)&&l.forEach(c=>{s.children.push(n(c))})}),s};return Hw(e)||(e=RT(e)),n(e)}function $$e(e,{ignoreFieldNorm:t=st.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:a,norm:o,score:i})=>{const s=a?a.weight:null;n*=Math.pow(i===0&&s?Number.EPSILON:i,(s||1)*(t?1:o))}),r.score=n})}function R$e(e,t){const r=e.matches;t.matches=[],Wn(r)&&r.forEach(n=>{if(!Wn(n.indices)||!n.indices.length)return;const{indices:a,value:o}=n;let i={indices:a,value:o};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),t.matches.push(i)})}function k$e(e,t){t.score=e.score}function T$e(e,t,{includeMatches:r=st.includeMatches,includeScore:n=st.includeScore}={}){const a=[];return r&&a.push(R$e),n&&a.push(k$e),e.map(o=>{const{idx:i}=o,s={item:t[i],refIndex:i};return a.length&&a.forEach(u=>{u(o,s)}),s})}class Uc{constructor(t,r={},n){this.options={...st,...r},this.options.useExtendedSearch,this._keyStore=new r$e(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof UO))throw new Error(Y2e);this._myIndex=r||SN(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Wn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,a=this._docs.length;n-1&&(u=u.slice(0,r)),T$e(u,this._docs,{includeMatches:n,includeScore:a})}_searchStringList(t){const r=Vw(t,this.options),{records:n}=this._myIndex,a=[];return n.forEach(({v:o,i,n:s})=>{if(!Wn(o))return;const{isMatch:u,score:l,indices:c}=r.searchIn(o);u&&a.push({item:o,idx:i,matches:[{score:l,value:o,norm:s,indices:c}]})}),a}_searchLogical(t){const r=$N(t,this.options),n=(s,u,l)=>{if(!s.children){const{keyId:d,searcher:p}=s,h=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(u,d),searcher:p});return h&&h.length?[{idx:l,item:u,matches:h}]:[]}const c=[];for(let d=0,p=s.children.length;d{if(Wn(s)){let l=n(r,s,u);l.length&&(o[u]||(o[u]={idx:u,item:s,matches:[]},i.push(o[u])),l.forEach(({matches:c})=>{o[u].matches.push(...c)}))}}),i}_searchObjectList(t){const r=Vw(t,this.options),{keys:n,records:a}=this._myIndex,o=[];return a.forEach(({$:i,i:s})=>{if(!Wn(i))return;let u=[];n.forEach((l,c)=>{u.push(...this._findMatches({key:l,value:i[c],searcher:r}))}),u.length&&o.push({idx:s,item:i,matches:u})}),o}_findMatches({key:t,value:r,searcher:n}){if(!Wn(r))return[];let a=[];if(Xo(r))r.forEach(({v:o,i,n:s})=>{if(!Wn(o))return;const{isMatch:u,score:l,indices:c}=n.searchIn(o);u&&a.push({score:l,key:t,value:o,idx:i,norm:s,indices:c})});else{const{v:o,n:i}=r,{isMatch:s,score:u,indices:l}=n.searchIn(o);s&&a.push({score:u,key:t,value:o,norm:i,indices:l})}return a}}Uc.version="7.0.0";Uc.createIndex=SN;Uc.parseIndex=c$e;Uc.config=st;Uc.parseQuery=$N;O$e(S$e);const Po=(e,t={})=>{const r="/api";return t.headers=t.headers||new Headers({Accept:"application/json"}),t.headers.set("X-GripMock-RequestInternal","92b4d5a9-c74b-4ac0-989c-717f80acba22"),AJ(`${r}${e}`,t)},j$e=(e,t)=>{const r=new Uc(e,{keys:Object.keys(t),includeScore:!0});for(const n of Object.values(t))console.log("$fuse",n,r.search(n));return e},I$e=(e,t)=>{const{fuse:r}=t;return delete t.fuse,Object.keys(t).length>0&&(e=D2e(e,H2e(t))),r!==void 0&&(e=j$e(e,r)),e},Pb=(e,t,r)=>{if(t===void 0&&r===void 0)return e;const{field:n,order:a}=r;return R2e(I$e(e,t),[n],[a.toLowerCase()])},A$e={getList:async(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={sort:JSON.stringify([a,o]),range:JSON.stringify([(r-1)*n,r*n-1]),filter:JSON.stringify(t.filter)},s=`/${e}?${ll.stringify(i)}`,{json:u}=await Po(s);return console.log("$list",u,t),{data:Pb(u,t.filter,t.sort),total:u.length}},getOne:async(e,t)=>{const{json:r}=await Po(`/${e}/${t.id}`);return{data:r}},getMany:async(e,t)=>{const r={filter:JSON.stringify({ids:t.ids})},n=`/${e}?${ll.stringify(r)}`,{json:a}=await Po(n);return{data:Pb(a,t.filter,t.sort)}},getManyReference:async(e,t)=>{const r=`/${e}/${t.id}/${t.target}`,{json:n}=await Po(r);return{data:Pb(n,t.filter,t.sort),total:n.length}},create:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:t.data}),update:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{id:t.data.id,data:t.data}),updateMany:async(e,t)=>(await Po(`/${e}`,{method:"POST",body:JSON.stringify(t.data)}),{data:[]}),delete:async(e,t)=>{const r=`/${e}/batchDelete`;return await Po(r,{method:"POST",body:JSON.stringify([t.id])}),{data:[]}},deleteMany:async(e,t)=>{const r=`/${e}/batchDelete`;return await Po(r,{method:"POST",body:JSON.stringify(t.ids)}),{data:[]}}};var RN={exports:{}};(function(e,t){(function(r,n){e.exports=n(f)})(Ps,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,d,p){if(i(c),d=u(d,!0),i(p),s)try{return l(c,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[d]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),d=function(p,h,m){var g,_,x,y=p&d.F,b=p&d.G,E=p&d.S,v=p&d.P,w=p&d.B,S=p&d.W,O=b?s:s[h]||(s[h]={}),C=O.prototype,P=b?i:E?i[h]:(i[h]||{}).prototype;for(g in b&&(m=h),m)(_=!y&&P&&P[g]!==void 0)&&c(O,g)||(x=_?P[g]:m[g],O[g]=b&&typeof P[g]!="function"?m[g]:w&&_?u(x,i):S&&P[g]==x?function($){var T=function(A,M,I){if(this instanceof $){switch(arguments.length){case 0:return new $;case 1:return new $(A);case 2:return new $(A,M)}return new $(A,M,I)}return $.apply(this,arguments)};return T.prototype=$.prototype,T}(x):v&&typeof x=="function"?u(Function.call,x):x,v&&((O.virtual||(O.virtual={}))[g]=x,p&d.R&&C&&!C[g]&&l(C,g,x)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,n.exports=d},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,d){l&&!s(l=d?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),d=0;ddocument.F=Object<\/script>"),p.close(),d=p.F;m--;)delete d.prototype[u[m]];return d()};n.exports=Object.create||function(p,h){var m;return p!==null?(c.prototype=i(p),m=new c,c.prototype=null,m[l]=p):m=d(),h===void 0?m:s(m,h)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,d){var p,h=s(c),m=0,g=[];for(p in h)p!=l&&i(h,p)&&g.push(p);for(;d.length>m;)i(h,p=d[m++])&&(~u(g,p)||g.push(p));return g}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,d,p;return l===void 0?"Undefined":l===null?"Null":typeof(d=function(h,m){try{return h[m]}catch{}}(c=Object(l),s))=="string"?d:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=_(o(49)),s=_(o(76)),u=_(o(81)),l=_(o(89)),c=_(o(93)),d=function(C){if(C&&C.__esModule)return C;var P={};if(C!=null)for(var $ in C)Object.prototype.hasOwnProperty.call(C,$)&&(P[$]=C[$]);return P.default=C,P}(o(94)),p=_(o(132)),h=_(o(133)),m=_(o(138)),g=o(139);function _(C){return C&&C.__esModule?C:{default:C}}var x=d.default,y=(0,l.default)(x),b=(0,m.default)(h.default,g.rgb2yuv,function(C){var P,$=(0,u.default)(C,3),T=$[0],A=$[1],M=$[2];return[(P=T,P<.25?1:P<.5?.9-P:1.1-P),A,M]},g.yuv2rgb,p.default),E=function(C){return function(P){return{className:[P.className,C.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},C.style||{})}}},v=function(C,P){var $=(0,l.default)(P);for(var T in C)$.indexOf(T)===-1&&$.push(T);return $.reduce(function(A,M){return A[M]=function(I,U){if(I===void 0)return U;if(U===void 0)return I;var W=I===void 0?"undefined":(0,i.default)(I),j=U===void 0?"undefined":(0,i.default)(U);switch(W){case"string":switch(j){case"string":return[U,I].filter(Boolean).join(" ");case"object":return E({className:I,style:U});case"function":return function(V){for(var J=arguments.length,se=Array(J>1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe1?J-1:0),oe=1;oe2?$-2:0),A=2;A<$;A++)T[A-2]=arguments[A];if(P===null)return C;Array.isArray(P)||(P=[P]);var M=P.map(function(U){return C[U]}).filter(Boolean),I=M.reduce(function(U,W){return typeof W=="string"?U.className=[U.className,W].filter(Boolean).join(" "):(W===void 0?"undefined":(0,i.default)(W))==="object"?U.style=(0,s.default)({},U.style,W):typeof W=="function"&&(U=(0,s.default)({},U,W.apply(void 0,[U].concat(T)))),U},{className:"",style:{}});return I.className||delete I.className,(0,l.default)(I.style).length===0&&delete I.style,I},S=a.invertTheme=function(C){return(0,l.default)(C).reduce(function(P,$){return P[$]=/^base/.test($)?b(C[$]):$==="scheme"?C[$]+":inverted":C[$],P},{})},O=(a.createStyling=(0,c.default)(function(C){for(var P=arguments.length,$=Array(P>3?P-3:0),T=3;T1&&arguments[1]!==void 0?arguments[1]:{},M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=A.defaultBase16,U=I===void 0?x:I,W=A.base16Themes,j=W===void 0?null:W,V=O(M,j);V&&(M=(0,s.default)({},V,M));var J=y.reduce(function(be,xe){return be[xe]=M[xe]||U[xe],be},{}),se=(0,l.default)(M).reduce(function(be,xe){return y.indexOf(xe)===-1&&(be[xe]=M[xe]),be},{}),oe=C(J),ve=v(se,oe);return(0,c.default)(w,2).apply(void 0,[ve].concat($))},3),a.getBase16Theme=function(C,P){if(C&&C.extend&&(C=C.extend),typeof C=="string"){var $=C.split(":"),T=(0,u.default)($,2),A=T[0],M=T[1];C=(P||{})[A]||d[A],M==="inverted"&&(C=S(C))}return C&&C.hasOwnProperty("base00")?C:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(v,w,S){return Function.prototype.apply.call(v,w,S)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:function(v){return Object.getOwnPropertyNames(v)};var l=Number.isNaN||function(v){return v!=v};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(v,w){return new Promise(function(S,O){function C($){v.removeListener(w,P),O($)}function P(){typeof v.removeListener=="function"&&v.removeListener("error",C),S([].slice.call(arguments))}E(v,w,P,{once:!0}),w!=="error"&&function($,T,A){typeof $.on=="function"&&E($,"error",T,A)}(v,C,{once:!0})})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var d=10;function p(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function h(v){return v._maxListeners===void 0?c.defaultMaxListeners:v._maxListeners}function m(v,w,S,O){var C,P,$,T;if(p(S),(P=v._events)===void 0?(P=v._events=Object.create(null),v._eventsCount=0):(P.newListener!==void 0&&(v.emit("newListener",w,S.listener?S.listener:S),P=v._events),$=P[w]),$===void 0)$=P[w]=S,++v._eventsCount;else if(typeof $=="function"?$=P[w]=O?[S,$]:[$,S]:O?$.unshift(S):$.push(S),(C=h(v))>0&&$.length>C&&!$.warned){$.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=v,A.type=w,A.count=$.length,T=A,console&&console.warn&&console.warn(T)}return v}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(v,w,S){var O={fired:!1,wrapFn:void 0,target:v,type:w,listener:S},C=g.bind(O);return C.listener=S,O.wrapFn=C,C}function x(v,w,S){var O=v._events;if(O===void 0)return[];var C=O[w];return C===void 0?[]:typeof C=="function"?S?[C.listener||C]:[C]:S?function(P){for(var $=new Array(P.length),T=0;T<$.length;++T)$[T]=P[T].listener||P[T];return $}(C):b(C,C.length)}function y(v){var w=this._events;if(w!==void 0){var S=w[v];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}function b(v,w){for(var S=new Array(w),O=0;O0&&(P=w[0]),P instanceof Error)throw P;var $=new Error("Unhandled error."+(P?" ("+P.message+")":""));throw $.context=P,$}var T=C[v];if(T===void 0)return!1;if(typeof T=="function")u(T,this,w);else{var A=T.length,M=b(T,A);for(S=0;S=0;P--)if(S[P]===w||S[P].listener===w){$=S[P].listener,C=P;break}if(C<0)return this;C===0?S.shift():function(T,A){for(;A+1=0;O--)this.removeListener(v,w[O]);return this},c.prototype.listeners=function(v){return x(this,v,!0)},c.prototype.rawListeners=function(v){return x(this,v,!1)},c.listenerCount=function(v,w){return typeof v.listenerCount=="function"?v.listenerCount(w):y.call(v,w)},c.prototype.listenerCount=y,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var d,p,h=String(s(l)),m=i(c),g=h.length;return m<0||m>=g?u?"":void 0:(d=h.charCodeAt(m))<55296||d>56319||m+1===g||(p=h.charCodeAt(m+1))<56320||p>57343?u?h.charAt(m):d:u?h.slice(m,m+2):p-56320+(d-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,d){return s.call(u,c,d)};case 3:return function(c,d,p){return s.call(u,c,d,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,d,p){c.prototype=i(l,{next:s(1,p)}),u(c,d+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var d,p=u(c),h=p.length,m=0;h>m;)i.f(l,d=p[m++],c[d]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,d,p){var h,m=i(c),g=s(m.length),_=u(p,g);if(l&&d!=d){for(;g>_;)if((h=m[_++])!=h)return!0}else for(;g>_;_++)if((l||_ in m)&&m[_]===d)return l||_||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,d){this._t=l(c),this._i=0,this._k=d},function(){var c=this._t,d=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,d=="keys"?p:d=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),d=o(68).KEY,p=o(8),h=o(26),m=o(28),g=o(17),_=o(2),x=o(30),y=o(31),b=o(69),E=o(70),v=o(10),w=o(11),S=o(18),O=o(9),C=o(23),P=o(16),$=o(38),T=o(71),A=o(72),M=o(32),I=o(7),U=o(13),W=A.f,j=I.f,V=T.f,J=i.Symbol,se=i.JSON,oe=se&&se.stringify,ve=_("_hidden"),be=_("toPrimitive"),xe={}.propertyIsEnumerable,_e=h("symbol-registry"),Te=h("symbols"),$e=h("op-symbols"),Ee=Object.prototype,Ve=typeof J=="function"&&!!M.f,je=i.QObject,De=!je||!je.prototype||!je.prototype.findChild,Fe=u&&p(function(){return $(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a!=7})?function(Q,re,ie){var Ie=W(Ee,re);Ie&&delete Ee[re],j(Q,re,ie),Ie&&Q!==Ee&&j(Ee,re,Ie)}:j,He=function(Q){var re=Te[Q]=$(J.prototype);return re._k=Q,re},et=Ve&&typeof J.iterator=="symbol"?function(Q){return typeof Q=="symbol"}:function(Q){return Q instanceof J},ft=function(Q,re,ie){return Q===Ee&&ft($e,re,ie),v(Q),re=C(re,!0),v(ie),s(Te,re)?(ie.enumerable?(s(Q,ve)&&Q[ve][re]&&(Q[ve][re]=!1),ie=$(ie,{enumerable:P(0,!1)})):(s(Q,ve)||j(Q,ve,P(1,{})),Q[ve][re]=!0),Fe(Q,re,ie)):j(Q,re,ie)},xt=function(Q,re){v(Q);for(var ie,Ie=b(re=O(re)),Xe=0,Be=Ie.length;Be>Xe;)ft(Q,ie=Ie[Xe++],re[ie]);return Q},z=function(Q){var re=xe.call(this,Q=C(Q,!0));return!(this===Ee&&s(Te,Q)&&!s($e,Q))&&(!(re||!s(this,Q)||!s(Te,Q)||s(this,ve)&&this[ve][Q])||re)},X=function(Q,re){if(Q=O(Q),re=C(re,!0),Q!==Ee||!s(Te,re)||s($e,re)){var ie=W(Q,re);return!ie||!s(Te,re)||s(Q,ve)&&Q[ve][re]||(ie.enumerable=!0),ie}},te=function(Q){for(var re,ie=V(O(Q)),Ie=[],Xe=0;ie.length>Xe;)s(Te,re=ie[Xe++])||re==ve||re==d||Ie.push(re);return Ie},le=function(Q){for(var re,ie=Q===Ee,Ie=V(ie?$e:O(Q)),Xe=[],Be=0;Ie.length>Be;)!s(Te,re=Ie[Be++])||ie&&!s(Ee,re)||Xe.push(Te[re]);return Xe};Ve||(c((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor!");var Q=g(arguments.length>0?arguments[0]:void 0),re=function(ie){this===Ee&&re.call($e,ie),s(this,ve)&&s(this[ve],Q)&&(this[ve][Q]=!1),Fe(this,Q,P(1,ie))};return u&&De&&Fe(Ee,Q,{configurable:!0,set:re}),He(Q)}).prototype,"toString",function(){return this._k}),A.f=X,I.f=ft,o(41).f=T.f=te,o(19).f=z,M.f=le,u&&!o(14)&&c(Ee,"propertyIsEnumerable",z,!0),x.f=function(Q){return He(_(Q))}),l(l.G+l.W+l.F*!Ve,{Symbol:J});for(var ye="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),me=0;ye.length>me;)_(ye[me++]);for(var ge=U(_.store),Z=0;ge.length>Z;)y(ge[Z++]);l(l.S+l.F*!Ve,"Symbol",{for:function(Q){return s(_e,Q+="")?_e[Q]:_e[Q]=J(Q)},keyFor:function(Q){if(!et(Q))throw TypeError(Q+" is not a symbol!");for(var re in _e)if(_e[re]===Q)return re},useSetter:function(){De=!0},useSimple:function(){De=!1}}),l(l.S+l.F*!Ve,"Object",{create:function(Q,re){return re===void 0?$(Q):xt($(Q),re)},defineProperty:ft,defineProperties:xt,getOwnPropertyDescriptor:X,getOwnPropertyNames:te,getOwnPropertySymbols:le});var K=p(function(){M.f(1)});l(l.S+l.F*K,"Object",{getOwnPropertySymbols:function(Q){return M.f(S(Q))}}),se&&l(l.S+l.F*(!Ve||p(function(){var Q=J();return oe([Q])!="[null]"||oe({a:Q})!="{}"||oe(Object(Q))!="{}"})),"JSON",{stringify:function(Q){for(var re,ie,Ie=[Q],Xe=1;arguments.length>Xe;)Ie.push(arguments[Xe++]);if(ie=re=Ie[1],(w(re)||Q!==void 0)&&!et(Q))return E(re)||(re=function(Be,Oe){if(typeof ie=="function"&&(Oe=ie.call(this,Be,Oe)),!et(Oe))return Oe}),Ie[1]=re,oe.apply(se,Ie)}}),J.prototype[be]||o(6)(J.prototype,be,J.prototype.valueOf),m(J,"Symbol"),m(Math,"Math",!0),m(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,d=Object.isExtensible||function(){return!0},p=!o(8)(function(){return d(Object.preventExtensions({}))}),h=function(g){l(g,i,{value:{i:"O"+ ++c,w:{}}})},m=n.exports={KEY:i,NEED:!1,fastKey:function(g,_){if(!s(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!u(g,i)){if(!d(g))return"F";if(!_)return"E";h(g)}return g[i].i},getWeak:function(g,_){if(!u(g,i)){if(!d(g))return!0;if(!_)return!1;h(g)}return g[i].w},onFreeze:function(g){return p&&m.NEED&&d(g)&&!u(g,i)&&h(g),g}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),d=s.f;if(d)for(var p,h=d(l),m=u.f,g=0;h.length>g;)m.call(l,p=h[g++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(d){try{return s(d)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),d=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(h,m){if(h=u(h),m=l(m,!0),d)try{return p(h,m)}catch{}if(c(h,m))return s(!i.f.call(h,m),h[m])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var E,v=d(arguments[x++]),w=y?s(v).concat(y(v)):s(v),S=w.length,O=0;S>O;)E=w[O++],i&&!b.call(v,E)||(g[E]=v[E]);return g}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(d,p){var h=[],m=!0,g=!1,_=void 0;try{for(var x,y=(0,s.default)(d);!(m=(x=y.next()).done)&&(h.push(x.value),!p||h.length!==p);m=!0);}catch(b){g=!0,_=b}finally{try{!m&&y.return&&y.return()}finally{if(g)throw _}}return h}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var d=(s.Object||{})[l]||Object[l],p={};p[l]=c(d),i(i.S+i.F*u(function(){d(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^\[object .+?Constructor\]$/,g=/^0o[0-7]+$/i,_=/^(?:0|[1-9]\d*)$/,x=parseInt,y=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,E=y||b||Function("return this")();function v(Z,K,Q){switch(Q.length){case 0:return Z.call(K);case 1:return Z.call(K,Q[0]);case 2:return Z.call(K,Q[0],Q[1]);case 3:return Z.call(K,Q[0],Q[1],Q[2])}return Z.apply(K,Q)}function w(Z,K){return!!(Z&&Z.length)&&function(Q,re,ie){if(re!=re)return function(Be,Oe,Je,rt){for(var St=Be.length,At=Je+-1;++At-1}function S(Z){return Z!=Z}function O(Z,K){for(var Q=Z.length,re=0;Q--;)Z[Q]===K&&re++;return re}function C(Z,K){for(var Q=-1,re=Z.length,ie=0,Ie=[];++Q2?$:void 0);function xe(Z){return ye(Z)?se(Z):{}}function _e(Z){return!(!ye(Z)||function(K){return!!U&&U in K}(Z))&&(function(K){var Q=ye(K)?V.call(K):"";return Q=="[object Function]"||Q=="[object GeneratorFunction]"}(Z)||function(K){var Q=!1;if(K!=null&&typeof K.toString!="function")try{Q=!!(K+"")}catch{}return Q}(Z)?J:m).test(function(K){if(K!=null){try{return W.call(K)}catch{}try{return K+""}catch{}}return""}(Z))}function Te(Z,K,Q,re){for(var ie=-1,Ie=Z.length,Xe=Q.length,Be=-1,Oe=K.length,Je=oe(Ie-Xe,0),rt=Array(Oe+Je),St=!re;++Be1&&$t.reverse(),rt&&Oe1?"& ":"")+K[re],K=K.join(Q>2?", ":" "),Z.replace(l,`{ /* [wrapped with `+K+`] */ `)}function xt(Z,K){return!!(K=K??9007199254740991)&&(typeof Z=="number"||_.test(Z))&&Z>-1&&Z%1==0&&Z1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[m]=255*c;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(C,P,$){switch($.length){case 0:return C.call(P);case 1:return C.call(P,$[0]);case 2:return C.call(P,$[0],$[1]);case 3:return C.call(P,$[0],$[1],$[2])}return C.apply(P,$)}function d(C,P){for(var $=-1,T=P.length,A=C.length;++$-1&&A%1==0&&A<=9007199254740991}(T.length)&&!function(A){var M=function(I){var U=typeof I;return!!I&&(U=="object"||U=="function")}(A)?m.call(A):"";return M=="[object Function]"||M=="[object GeneratorFunction]"}(T)}($)}(P)&&h.call(P,"callee")&&(!_.call(P,"callee")||m.call(P)=="[object Arguments]")}(C)||!!(x&&C&&C[x])}var E=Array.isArray,v,w,S,O=(w=function(C){var P=(C=function(A,M,I,U,W){var j=-1,V=A.length;for(I||(I=b),W||(W=[]);++j2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,F=_(D);if(B){var L=_(this).constructor;k=Reflect.construct(F,arguments,L)}else k=F.apply(this,arguments);return y(this,k)}}o.r(a);var E=o(0),v=o.n(E);function w(){var D=this.constructor.getDerivedStateFromProps(this.props,this.state);D!=null&&this.setState(D)}function S(D){this.setState((function(B){var k=this.constructor.getDerivedStateFromProps(D,B);return k??null}).bind(this))}function O(D,B){try{var k=this.props,F=this.state;this.props=D,this.state=B,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(k,F)}finally{this.props=k,this.state=F}}function C(D){var B=D.prototype;if(!B||!B.isReactComponent)throw new Error("Can only polyfill class components");if(typeof D.getDerivedStateFromProps!="function"&&typeof B.getSnapshotBeforeUpdate!="function")return D;var k=null,F=null,L=null;if(typeof B.componentWillMount=="function"?k="componentWillMount":typeof B.UNSAFE_componentWillMount=="function"&&(k="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps=="function"?F="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps=="function"&&(F="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate=="function"?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),k!==null||F!==null||L!==null){var G=D.displayName||D.name,ce=typeof D.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. @@ -284,4 +284,4 @@ React-admin requires a valid dataProvider function to work.`);var c=f.useMemo(fu The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof D.getDerivedStateFromProps=="function"&&(B.componentWillMount=w,B.componentWillReceiveProps=S),typeof B.getSnapshotBeforeUpdate=="function"){if(typeof B.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");B.componentWillUpdate=O;var fe=B.componentDidUpdate;B.componentDidUpdate=function(ee,we,Me){var tt=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Me;fe.call(this,ee,we,tt)}}return D}function P(D,B){if(D==null)return{};var k,F,L={},G=Object.keys(D);for(F=0;F=0||(L[k]=D[k]);return L}function $(D,B){if(D==null)return{};var k,F,L=P(D,B);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(D);for(F=0;F=0||Object.prototype.propertyIsEnumerable.call(D,k)&&(L[k]=D[k])}return L}function T(D){var B=function(k){return{}.toString.call(k).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(D);return B==="number"&&(B=isNaN(D)?"nan":(0|D)!=D?"float":"integer"),B}w.__suppressDeprecationWarning=!0,S.__suppressDeprecationWarning=!0,O.__suppressDeprecationWarning=!0;var A={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},M={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},I={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},U=o(45),W=function(D){var B=function(k){return{backgroundColor:k.base00,ellipsisColor:k.base09,braceColor:k.base07,expandedIcon:k.base0D,collapsedIcon:k.base0E,keyColor:k.base07,arrayKeyColor:k.base0C,objectSize:k.base04,copyToClipboard:k.base0F,copyToClipboardCheck:k.base0D,objectBorder:k.base02,dataTypes:{boolean:k.base0E,date:k.base0D,float:k.base0B,function:k.base0D,integer:k.base0F,string:k.base09,nan:k.base08,null:k.base0A,undefined:k.base05,regexp:k.base0A,background:k.base02},editVariable:{editIcon:k.base0E,cancelIcon:k.base09,removeIcon:k.base09,addIcon:k.base0E,checkIcon:k.base0E,background:k.base01,color:k.base0A,border:k.base07},addKeyModal:{background:k.base05,border:k.base04,color:k.base0A,labelColor:k.base01},validationFailure:{background:k.base09,iconColor:k.base01,fontColor:k.base01}}}(D);return{"app-container":{fontFamily:I.globalFontFamily,cursor:I.globalCursor,backgroundColor:B.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:B.ellipsisColor,fontSize:I.ellipsisFontSize,lineHeight:I.ellipsisLineHeight,cursor:I.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:I.braceCursor,fontWeight:I.braceFontWeight,color:B.braceColor},"expanded-icon":{color:B.expandedIcon},"collapsed-icon":{color:B.collapsedIcon},colon:{display:"inline-block",margin:I.keyMargin,color:B.keyColor,verticalAlign:"top"},objectKeyVal:function(k,F){return{style:c({paddingTop:I.keyValPaddingTop,paddingRight:I.keyValPaddingRight,paddingBottom:I.keyValPaddingBottom,borderLeft:I.keyValBorderLeft+" "+B.objectBorder,":hover":{paddingLeft:F.paddingLeft-1+"px",borderLeft:I.keyValBorderHover+" "+B.objectBorder}},F)}},"object-key-val-no-border":{padding:I.keyValPadding},"pushed-content":{marginLeft:I.pushedContentMarginLeft},variableValue:function(k,F){return{style:c({display:"inline-block",paddingRight:I.variableValuePaddingRight,position:"relative"},F)}},"object-name":{display:"inline-block",color:B.keyColor,letterSpacing:I.keyLetterSpacing,fontStyle:I.keyFontStyle,verticalAlign:I.keyVerticalAlign,opacity:I.keyOpacity,":hover":{opacity:I.keyOpacityHover}},"array-key":{display:"inline-block",color:B.arrayKeyColor,letterSpacing:I.keyLetterSpacing,fontStyle:I.keyFontStyle,verticalAlign:I.keyVerticalAlign,opacity:I.keyOpacity,":hover":{opacity:I.keyOpacityHover}},"object-size":{color:B.objectSize,borderRadius:I.objectSizeBorderRadius,fontStyle:I.objectSizeFontStyle,margin:I.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:I.dataTypeFontSize,marginRight:I.dataTypeMarginRight,opacity:I.datatypeOpacity},boolean:{display:"inline-block",color:B.dataTypes.boolean},date:{display:"inline-block",color:B.dataTypes.date},"date-value":{marginLeft:I.dateValueMarginLeft},float:{display:"inline-block",color:B.dataTypes.float},function:{display:"inline-block",color:B.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:B.dataTypes.integer},string:{display:"inline-block",color:B.dataTypes.string},nan:{display:"inline-block",color:B.dataTypes.nan,fontSize:I.nanFontSize,fontWeight:I.nanFontWeight,backgroundColor:B.dataTypes.background,padding:I.nanPadding,borderRadius:I.nanBorderRadius},null:{display:"inline-block",color:B.dataTypes.null,fontSize:I.nullFontSize,fontWeight:I.nullFontWeight,backgroundColor:B.dataTypes.background,padding:I.nullPadding,borderRadius:I.nullBorderRadius},undefined:{display:"inline-block",color:B.dataTypes.undefined,fontSize:I.undefinedFontSize,padding:I.undefinedPadding,borderRadius:I.undefinedBorderRadius,backgroundColor:B.dataTypes.background},regexp:{display:"inline-block",color:B.dataTypes.regexp},"copy-to-clipboard":{cursor:I.clipboardCursor},"copy-icon":{color:B.copyToClipboard,fontSize:I.iconFontSize,marginRight:I.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:B.copyToClipboardCheck,marginLeft:I.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:I.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:I.metaDataPadding},"icon-container":{display:"inline-block",width:I.iconContainerWidth},tooltip:{padding:I.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:B.editVariable.removeIcon,cursor:I.iconCursor,fontSize:I.iconFontSize,marginRight:I.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:B.editVariable.addIcon,cursor:I.iconCursor,fontSize:I.iconFontSize,marginRight:I.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:B.editVariable.editIcon,cursor:I.iconCursor,fontSize:I.iconFontSize,marginRight:I.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:I.iconCursor,color:B.editVariable.checkIcon,fontSize:I.iconFontSize,paddingRight:I.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:I.iconCursor,color:B.editVariable.cancelIcon,fontSize:I.iconFontSize,paddingRight:I.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:I.editInputMinWidth,borderRadius:I.editInputBorderRadius,backgroundColor:B.editVariable.background,color:B.editVariable.color,padding:I.editInputPadding,marginRight:I.editInputMarginRight,fontFamily:I.editInputFontFamily},"detected-row":{paddingTop:I.detectedRowPaddingTop},"key-modal-request":{position:I.addKeyCoverPosition,top:I.addKeyCoverPositionPx,left:I.addKeyCoverPositionPx,right:I.addKeyCoverPositionPx,bottom:I.addKeyCoverPositionPx,backgroundColor:I.addKeyCoverBackground},"key-modal":{width:I.addKeyModalWidth,backgroundColor:B.addKeyModal.background,marginLeft:I.addKeyModalMargin,marginRight:I.addKeyModalMargin,padding:I.addKeyModalPadding,borderRadius:I.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:B.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:B.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:B.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:B.addKeyModal.labelColor,fontSize:I.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:B.editVariable.addIcon,fontSize:I.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:B.ellipsisColor,fontSize:I.ellipsisFontSize,lineHeight:I.ellipsisLineHeight,cursor:I.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:B.validationFailure.fontColor,backgroundColor:B.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:B.validationFailure.iconColor,fontSize:I.iconFontSize,transform:"rotate(45deg)"}}};function j(D,B,k){return D||console.error("theme has not been set"),function(F){var L=A;return F!==!1&&F!=="none"||(L=M),Object(U.createStyling)(W,{defaultBase16:L})(F)}(D)(B,k)}var V=function(D){g(k,D);var B=b(k);function k(){return d(this,k),B.apply(this,arguments)}return h(k,[{key:"render",value:function(){var F=this.props,L=(F.rjvId,F.type_name),G=F.displayDataTypes,ce=F.theme;return G?v.a.createElement("span",Object.assign({className:"data-type-label"},j(ce,"data-type-label")),L):null}}]),k}(v.a.PureComponent),J=function(D){g(k,D);var B=b(k);function k(){return d(this,k),B.apply(this,arguments)}return h(k,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",j(F.theme,"boolean"),v.a.createElement(V,Object.assign({type_name:"bool"},F)),F.value?"true":"false")}}]),k}(v.a.PureComponent),se=function(D){g(k,D);var B=b(k);function k(){return d(this,k),B.apply(this,arguments)}return h(k,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",j(F.theme,"date"),v.a.createElement(V,Object.assign({type_name:"date"},F)),v.a.createElement("span",Object.assign({className:"date-value"},j(F.theme,"date-value")),F.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),k}(v.a.PureComponent),oe=function(D){g(k,D);var B=b(k);function k(){return d(this,k),B.apply(this,arguments)}return h(k,[{key:"render",value:function(){var F=this.props;return v.a.createElement("div",j(F.theme,"float"),v.a.createElement(V,Object.assign({type_name:"float"},F)),this.props.value)}}]),k}(v.a.PureComponent);function ve(D,B){(B==null||B>D.length)&&(B=D.length);for(var k=0,F=new Array(B);k=D.length?{done:!0}:{done:!1,value:D[F++]}},e:function(ee){throw ee},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G,ce=!0,fe=!1;return{s:function(){k=k.call(D)},n:function(){var ee=k.next();return ce=ee.done,ee},e:function(ee){fe=!0,G=ee},f:function(){try{ce||k.return==null||k.return()}finally{if(fe)throw G}}}}function _e(D){return function(B){if(Array.isArray(B))return ve(B)}(D)||function(B){if(typeof Symbol<"u"&&B[Symbol.iterator]!=null||B["@@iterator"]!=null)return Array.from(B)}(D)||be(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),$e=new(o(47)).Dispatcher,Ee=new(function(D){g(k,D);var B=b(k);function k(){var F;d(this,k);for(var L=arguments.length,G=new Array(L),ce=0;ceL&&(fe.style.cursor="pointer",this.state.collapsed&&(ce=v.a.createElement("span",null,ce.substring(0,L),v.a.createElement("span",j(G,"ellipsis")," ...")))),v.a.createElement("div",j(G,"string"),v.a.createElement(V,Object.assign({type_name:"string"},F)),v.a.createElement("span",Object.assign({className:"string-value"},fe,{onClick:this.toggleCollapsed}),'"',ce,'"'))}}]),k}(v.a.PureComponent),xt=function(D){g(k,D);var B=b(k);function k(){return d(this,k),B.apply(this,arguments)}return h(k,[{key:"render",value:function(){return v.a.createElement("div",j(this.props.theme,"undefined"),"undefined")}}]),k}(v.a.PureComponent);function z(){return(z=Object.assign?Object.assign.bind():function(D){for(var B=1;B0?tt:null,namespace:Me.splice(0,Me.length-1),existing_value:pt,variable_removed:!1,key_name:null};T(pt)==="object"?$e.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ot,data:zt}):$e.dispatch({name:"VARIABLE_ADDED",rjvId:Ot,data:c(c({},zt),{},{new_value:[].concat(_e(pt),[null])})})}})))},F.getRemoveObject=function(fe){var ee=F.props,we=ee.theme,Me=(ee.hover,ee.namespace),tt=ee.name,pt=ee.src,Ot=ee.rjvId;if(Me.length!==1)return v.a.createElement("span",{className:"click-to-remove",style:{display:fe?"inline-block":"none"}},v.a.createElement(Y,Object.assign({className:"click-to-remove-icon"},j(we,"removeVarIcon"),{onClick:function(){$e.dispatch({name:"VARIABLE_REMOVED",rjvId:Ot,data:{name:tt,namespace:Me.splice(0,Me.length-1),existing_value:pt,variable_removed:!0}})}})))},F.render=function(){var fe=F.props,ee=fe.theme,we=fe.onDelete,Me=fe.onAdd,tt=fe.enableClipboard,pt=fe.src,Ot=fe.namespace,ut=fe.rowHovered;return v.a.createElement("div",Object.assign({},j(ee,"object-meta-data"),{className:"object-meta-data",onClick:function(zt){zt.stopPropagation()}}),F.getObjectSize(),tt?v.a.createElement(Re,{rowHovered:ut,clickCallback:tt,src:pt,theme:ee,namespace:Ot}):null,Me!==!1?F.getAddAttribute(ut):null,we!==!1?F.getRemoveObject(ut):null)},F}return h(k)}(v.a.PureComponent);function it(D){var B=D.parent_type,k=D.namespace,F=D.quotesOnKeys,L=D.theme,G=D.jsvRoot,ce=D.name,fe=D.displayArrayKey,ee=D.name?D.name:"";return!G||ce!==!1&&ce!==null?B=="array"?fe?v.a.createElement("span",Object.assign({},j(L,"array-key"),{key:k}),v.a.createElement("span",{className:"array-key"},ee),v.a.createElement("span",j(L,"colon"),":")):v.a.createElement("span",null):v.a.createElement("span",Object.assign({},j(L,"object-name"),{key:k}),v.a.createElement("span",{className:"object-key"},F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"'),v.a.createElement("span",null,ee),F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"')),v.a.createElement("span",j(L,"colon"),":")):v.a.createElement("span",null)}function _t(D){var B=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(xo,Object.assign({},j(B,"expanded-icon"),{className:"expanded-icon"}));case"square":return v.a.createElement(nn,Object.assign({},j(B,"expanded-icon"),{className:"expanded-icon"}));default:return v.a.createElement(hr,Object.assign({},j(B,"expanded-icon"),{className:"expanded-icon"}))}}function ht(D){var B=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(Pr,Object.assign({},j(B,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v.a.createElement(Br,Object.assign({},j(B,"collapsed-icon"),{className:"collapsed-icon"}));default:return v.a.createElement(Nn,Object.assign({},j(B,"collapsed-icon"),{className:"collapsed-icon"}))}}var Rt=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],yt=function(D){g(k,D);var B=b(k);function k(F){var L;return d(this,k),(L=B.call(this,F)).toggleCollapsed=function(G){var ce=[];for(var fe in L.state.expanded)ce.push(L.state.expanded[fe]);ce[G]=!ce[G],L.setState({expanded:ce})},L.state={expanded:[]},L}return h(k,[{key:"getExpandedIcon",value:function(F){var L=this.props,G=L.theme,ce=L.iconStyle;return this.state.expanded[F]?v.a.createElement(_t,{theme:G,iconStyle:ce}):v.a.createElement(ht,{theme:G,iconStyle:ce})}},{key:"render",value:function(){var F=this,L=this.props,G=L.src,ce=L.groupArraysAfterLength,fe=(L.depth,L.name),ee=L.theme,we=L.jsvRoot,Me=L.namespace,tt=(L.parent_type,$(L,Rt)),pt=0,Ot=5*this.props.indentWidth;we||(pt=5*this.props.indentWidth);var ut=ce,zt=Math.ceil(G.length/ut);return v.a.createElement("div",Object.assign({className:"object-key-val"},j(ee,we?"jsv-root":"objectKeyVal",{paddingLeft:pt})),v.a.createElement(it,this.props),v.a.createElement("span",null,v.a.createElement(We,Object.assign({size:G.length},this.props))),_e(Array(zt)).map(function(Zt,kt){return v.a.createElement("div",Object.assign({key:kt,className:"object-key-val array-group"},j(ee,"objectKeyVal",{marginLeft:6,paddingLeft:Ot})),v.a.createElement("span",j(ee,"brace-row"),v.a.createElement("div",Object.assign({className:"icon-container"},j(ee,"icon-container"),{onClick:function(an){F.toggleCollapsed(kt)}}),F.getExpandedIcon(kt)),F.state.expanded[kt]?v.a.createElement(Dn,Object.assign({key:fe+kt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:ut,index_offset:kt*ut,src:G.slice(kt*ut,kt*ut+ut),namespace:Me,type:"array",parent_type:"array_group",theme:ee},tt)):v.a.createElement("span",Object.assign({},j(ee,"brace"),{onClick:function(an){F.toggleCollapsed(kt)},className:"array-group-brace"}),"[",v.a.createElement("div",Object.assign({},j(ee,"array-group-meta-data"),{className:"array-group-meta-data"}),v.a.createElement("span",Object.assign({className:"object-size"},j(ee,"object-size")),kt*ut," - ",kt*ut+ut>G.length?G.length:kt*ut+ut)),"]")))}))}}]),k}(v.a.PureComponent),Ye=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],dt=function(D){g(k,D);var B=b(k);function k(F){var L;d(this,k),(L=B.call(this,F)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){Ve.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(ce,fe,ee){return v.a.createElement("div",{className:"pushed-content object-container"},v.a.createElement("div",Object.assign({className:"object-content"},j(L.props.theme,"pushed-content")),L.renderObjectContents(fe,ee)))},L.getEllipsis=function(){return L.state.size===0?null:v.a.createElement("div",Object.assign({},j(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(ce){var fe=L.props,ee=(fe.rjvId,fe.theme,L.state),we=ee.size,Me=ee.hovered;return v.a.createElement(We,Object.assign({rowHovered:Me,size:we},L.props))},L.renderObjectContents=function(ce,fe){var ee,we=L.props,Me=we.depth,tt=we.parent_type,pt=we.index_offset,Ot=we.groupArraysAfterLength,ut=we.namespace,zt=L.state.object_type,Zt=[],kt=Object.keys(ce||{});return L.props.sortKeys&&zt!=="array"&&(kt=kt.sort()),kt.forEach(function(an){if(ee=new us(an,ce[an]),tt==="array_group"&&pt&&(ee.name=parseInt(ee.name)+pt),ce.hasOwnProperty(an))if(ee.type==="object")Zt.push(v.a.createElement(Dn,Object.assign({key:ee.name,depth:Me+1,name:ee.name,src:ee.value,namespace:ut.concat(ee.name),parent_type:zt},fe)));else if(ee.type==="array"){var _o=Dn;Ot&&ee.value.length>Ot&&(_o=yt),Zt.push(v.a.createElement(_o,Object.assign({key:ee.name,depth:Me+1,name:ee.name,src:ee.value,namespace:ut.concat(ee.name),type:"array",parent_type:zt},fe)))}else Zt.push(v.a.createElement(ot,Object.assign({key:ee.name+"_"+ut,variable:ee,singleIndent:5,namespace:ut,type:L.props.type},fe)))}),Zt};var G=k.getState(F);return L.state=c(c({},G),{},{prevProps:{}}),L}return h(k,[{key:"getBraceStart",value:function(F,L){var G=this,ce=this.props,fe=ce.src,ee=ce.theme,we=ce.iconStyle;if(ce.parent_type==="array_group")return v.a.createElement("span",null,v.a.createElement("span",j(ee,"brace"),F==="array"?"[":"{"),L?this.getObjectMetaData(fe):null);var Me=L?_t:ht;return v.a.createElement("span",null,v.a.createElement("span",Object.assign({onClick:function(tt){G.toggleCollapsed()}},j(ee,"brace-row")),v.a.createElement("div",Object.assign({className:"icon-container"},j(ee,"icon-container")),v.a.createElement(Me,{theme:ee,iconStyle:we})),v.a.createElement(it,this.props),v.a.createElement("span",j(ee,"brace"),F==="array"?"[":"{")),L?this.getObjectMetaData(fe):null)}},{key:"render",value:function(){var F=this,L=this.props,G=L.depth,ce=L.src,fe=(L.namespace,L.name,L.type,L.parent_type),ee=L.theme,we=L.jsvRoot,Me=L.iconStyle,tt=$(L,Ye),pt=this.state,Ot=pt.object_type,ut=pt.expanded,zt={};return we||fe==="array_group"?fe==="array_group"&&(zt.borderLeft=0,zt.display="inline"):zt.paddingLeft=5*this.props.indentWidth,v.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return F.setState(c(c({},F.state),{},{hovered:!0}))},onMouseLeave:function(){return F.setState(c(c({},F.state),{},{hovered:!1}))}},j(ee,we?"jsv-root":"objectKeyVal",zt)),this.getBraceStart(Ot,ut),ut?this.getObjectContent(G,ce,c({theme:ee,iconStyle:Me},tt)):this.getEllipsis(),v.a.createElement("span",{className:"brace-row"},v.a.createElement("span",{style:c(c({},j(ee,"brace").style),{},{paddingLeft:ut?"3px":"0px"})},Ot==="array"?"]":"}"),ut?null:this.getObjectMetaData(ce)))}}],[{key:"getDerivedStateFromProps",value:function(F,L){var G=L.prevProps;return F.src!==G.src||F.collapsed!==G.collapsed||F.name!==G.name||F.namespace!==G.namespace||F.rjvId!==G.rjvId?c(c({},k.getState(F)),{},{prevProps:F}):null}}]),k}(v.a.PureComponent);dt.getState=function(D){var B=Object.keys(D.src).length,k=(D.collapsed===!1||D.collapsed!==!0&&D.collapsed>D.depth)&&(!D.shouldCollapse||D.shouldCollapse({name:D.name,src:D.src,type:T(D.src),namespace:D.namespace})===!1)&&B!==0;return{expanded:Ve.get(D.rjvId,D.namespace,"expanded",k),object_type:D.type==="array"?"array":"object",parent_type:D.type==="array"?"array":"object",size:B,hovered:!1}};var us=h(function D(B,k){d(this,D),this.name=B,this.value=k,this.type=T(k)});C(dt);var Dn=dt,ii=function(D){g(k,D);var B=b(k);function k(){var F;d(this,k);for(var L=arguments.length,G=new Array(L),ce=0;cett.groupArraysAfterLength&&(Ot=yt),v.a.createElement("div",{className:"pretty-json-container object-container"},v.a.createElement("div",{className:"object-content"},v.a.createElement(Ot,Object.assign({namespace:pt,depth:0,jsvRoot:!0},tt))))},F}return h(k)}(v.a.PureComponent),si=function(D){g(k,D);var B=b(k);function k(F){var L;return d(this,k),(L=B.call(this,F)).closeModal=function(){$e.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:F.input?F.input:""},L}return h(k,[{key:"render",value:function(){var F=this,L=this.props,G=L.theme,ce=L.rjvId,fe=L.isValid,ee=this.state.input,we=fe(ee);return v.a.createElement("div",Object.assign({className:"key-modal-request"},j(G,"key-modal-request"),{onClick:this.closeModal}),v.a.createElement("div",Object.assign({},j(G,"key-modal"),{onClick:function(Me){Me.stopPropagation()}}),v.a.createElement("div",j(G,"key-modal-label"),"Key Name:"),v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("input",Object.assign({},j(G,"key-modal-input"),{className:"key-modal-input",ref:function(Me){return Me&&Me.focus()},spellCheck:!1,value:ee,placeholder:"...",onChange:function(Me){F.setState({input:Me.target.value})},onKeyPress:function(Me){we&&Me.key==="Enter"?F.submit():Me.key==="Escape"&&F.closeModal()}})),we?v.a.createElement(Le,Object.assign({},j(G,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Me){return F.submit()}})):null),v.a.createElement("span",j(G,"key-modal-cancel"),v.a.createElement(he,Object.assign({},j(G,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){$e.dispatch({rjvId:ce,name:"RESET"})}})))))}}]),k}(v.a.PureComponent),li=function(D){g(k,D);var B=b(k);function k(){var F;d(this,k);for(var L=arguments.length,G=new Array(L),ce=0;ce{const r=document.createElement("a");r.setAttribute("href",encodeURI(`data:application/json;charset=utf-8,${e}`)),r.setAttribute("download",t),r.click()},F$e=e=>{M$e(JSON.stringify(e,null," "),"export.json")},L$e=()=>N.jsx(OL,{exporter:F$e,children:N.jsxs(OO,{rowClick:"show",children:[N.jsx(zo,{source:"id",sortable:!0}),N.jsx(zo,{source:"service",sortable:!0}),N.jsx(zo,{source:"method",sortable:!0}),N.jsx(Pu,{source:"headers",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"input",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"output",sortable:!1,reactJsonOptions:{theme:pa()}})]})}),N$e=()=>N.jsx(y_e,{children:N.jsxs(hL,{children:[N.jsx(Qs,{source:"service"}),N.jsx(Qs,{source:"method"}),N.jsx($u,{source:"headers",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"input",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"output",reactJsonOptions:{theme:pa()}})]})}),D$e=()=>N.jsx($_e,{children:N.jsxs(hL,{children:[N.jsx(Qs,{source:"id"}),N.jsx(Qs,{source:"service"}),N.jsx(Qs,{source:"method"}),N.jsx($u,{source:"headers",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"input",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"output",reactJsonOptions:{theme:pa()}})]})}),B$e=()=>N.jsx(W_e,{children:N.jsxs(sEe,{children:[N.jsx(zo,{source:"id",sortable:!0}),N.jsx(zo,{source:"service",sortable:!0}),N.jsx(zo,{source:"method",sortable:!0}),N.jsx(Pu,{source:"headers",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"input",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"output",sortable:!1,reactJsonOptions:{theme:pa()}})]})}),pa=()=>{const[e]=eO();return e==="dark"?"monokai":"rjv-default"},z$e=()=>N.jsx(OL,{children:N.jsxs(OO,{bulkActionButtons:!1,children:[N.jsx(zo,{source:"id"}),N.jsx(zo,{source:"package"}),N.jsx(zo,{source:"name"}),N.jsx(H_e,{source:"methods",sortable:!1,children:N.jsx(nEe,{linkType:!1,children:N.jsx(Q_e,{source:"name"})})})]})});var VO={},U$e=wt;Object.defineProperty(VO,"__esModule",{value:!0});var TN=VO.default=void 0,V$e=U$e(Pt()),W$e=N;TN=VO.default=(0,V$e.default)((0,W$e.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var WO={},H$e=wt;Object.defineProperty(WO,"__esModule",{value:!0});var jN=WO.default=void 0,q$e=H$e(Pt()),K$e=N;jN=WO.default=(0,q$e.default)((0,K$e.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const G$e={...x4,palette:{primary:coe,secondary:doe,error:hs,contrastThreshold:3,tonalOffset:.2}},Q$e=()=>N.jsxs(E4,{toolbar:N.jsx(_4,{}),children:[N.jsx(h4,{}),N.jsx(xr,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),X$e=e=>N.jsx(B4,{...e,appBar:Q$e}),Y$e=()=>N.jsxs(KPe,{disableTelemetry:!0,dataProvider:I$e,layout:X$e,theme:G$e,darkTheme:w4,children:[N.jsx(zh,{icon:jN,name:"services",list:z$e}),N.jsx(zh,{icon:TN,name:"stubs",list:L$e,edit:D$e,show:B$e,create:N$e})]});$b.createRoot(document.getElementById("root")).render(N.jsx(Pe.StrictMode,{children:N.jsx(Y$e,{})})); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),$e=new(o(47)).Dispatcher,Ee=new(function(D){g(k,D);var B=b(k);function k(){var F;d(this,k);for(var L=arguments.length,G=new Array(L),ce=0;ceL&&(fe.style.cursor="pointer",this.state.collapsed&&(ce=v.a.createElement("span",null,ce.substring(0,L),v.a.createElement("span",j(G,"ellipsis")," ...")))),v.a.createElement("div",j(G,"string"),v.a.createElement(V,Object.assign({type_name:"string"},F)),v.a.createElement("span",Object.assign({className:"string-value"},fe,{onClick:this.toggleCollapsed}),'"',ce,'"'))}}]),k}(v.a.PureComponent),xt=function(D){g(k,D);var B=b(k);function k(){return d(this,k),B.apply(this,arguments)}return h(k,[{key:"render",value:function(){return v.a.createElement("div",j(this.props.theme,"undefined"),"undefined")}}]),k}(v.a.PureComponent);function z(){return(z=Object.assign?Object.assign.bind():function(D){for(var B=1;B0?tt:null,namespace:Me.splice(0,Me.length-1),existing_value:pt,variable_removed:!1,key_name:null};T(pt)==="object"?$e.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Ot,data:zt}):$e.dispatch({name:"VARIABLE_ADDED",rjvId:Ot,data:c(c({},zt),{},{new_value:[].concat(_e(pt),[null])})})}})))},F.getRemoveObject=function(fe){var ee=F.props,we=ee.theme,Me=(ee.hover,ee.namespace),tt=ee.name,pt=ee.src,Ot=ee.rjvId;if(Me.length!==1)return v.a.createElement("span",{className:"click-to-remove",style:{display:fe?"inline-block":"none"}},v.a.createElement(Y,Object.assign({className:"click-to-remove-icon"},j(we,"removeVarIcon"),{onClick:function(){$e.dispatch({name:"VARIABLE_REMOVED",rjvId:Ot,data:{name:tt,namespace:Me.splice(0,Me.length-1),existing_value:pt,variable_removed:!0}})}})))},F.render=function(){var fe=F.props,ee=fe.theme,we=fe.onDelete,Me=fe.onAdd,tt=fe.enableClipboard,pt=fe.src,Ot=fe.namespace,ut=fe.rowHovered;return v.a.createElement("div",Object.assign({},j(ee,"object-meta-data"),{className:"object-meta-data",onClick:function(zt){zt.stopPropagation()}}),F.getObjectSize(),tt?v.a.createElement(Re,{rowHovered:ut,clickCallback:tt,src:pt,theme:ee,namespace:Ot}):null,Me!==!1?F.getAddAttribute(ut):null,we!==!1?F.getRemoveObject(ut):null)},F}return h(k)}(v.a.PureComponent);function it(D){var B=D.parent_type,k=D.namespace,F=D.quotesOnKeys,L=D.theme,G=D.jsvRoot,ce=D.name,fe=D.displayArrayKey,ee=D.name?D.name:"";return!G||ce!==!1&&ce!==null?B=="array"?fe?v.a.createElement("span",Object.assign({},j(L,"array-key"),{key:k}),v.a.createElement("span",{className:"array-key"},ee),v.a.createElement("span",j(L,"colon"),":")):v.a.createElement("span",null):v.a.createElement("span",Object.assign({},j(L,"object-name"),{key:k}),v.a.createElement("span",{className:"object-key"},F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"'),v.a.createElement("span",null,ee),F&&v.a.createElement("span",{style:{verticalAlign:"top"}},'"')),v.a.createElement("span",j(L,"colon"),":")):v.a.createElement("span",null)}function _t(D){var B=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(xo,Object.assign({},j(B,"expanded-icon"),{className:"expanded-icon"}));case"square":return v.a.createElement(nn,Object.assign({},j(B,"expanded-icon"),{className:"expanded-icon"}));default:return v.a.createElement(hr,Object.assign({},j(B,"expanded-icon"),{className:"expanded-icon"}))}}function ht(D){var B=D.theme;switch(D.iconStyle){case"triangle":return v.a.createElement(Pr,Object.assign({},j(B,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v.a.createElement(Br,Object.assign({},j(B,"collapsed-icon"),{className:"collapsed-icon"}));default:return v.a.createElement(Nn,Object.assign({},j(B,"collapsed-icon"),{className:"collapsed-icon"}))}}var Rt=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],yt=function(D){g(k,D);var B=b(k);function k(F){var L;return d(this,k),(L=B.call(this,F)).toggleCollapsed=function(G){var ce=[];for(var fe in L.state.expanded)ce.push(L.state.expanded[fe]);ce[G]=!ce[G],L.setState({expanded:ce})},L.state={expanded:[]},L}return h(k,[{key:"getExpandedIcon",value:function(F){var L=this.props,G=L.theme,ce=L.iconStyle;return this.state.expanded[F]?v.a.createElement(_t,{theme:G,iconStyle:ce}):v.a.createElement(ht,{theme:G,iconStyle:ce})}},{key:"render",value:function(){var F=this,L=this.props,G=L.src,ce=L.groupArraysAfterLength,fe=(L.depth,L.name),ee=L.theme,we=L.jsvRoot,Me=L.namespace,tt=(L.parent_type,$(L,Rt)),pt=0,Ot=5*this.props.indentWidth;we||(pt=5*this.props.indentWidth);var ut=ce,zt=Math.ceil(G.length/ut);return v.a.createElement("div",Object.assign({className:"object-key-val"},j(ee,we?"jsv-root":"objectKeyVal",{paddingLeft:pt})),v.a.createElement(it,this.props),v.a.createElement("span",null,v.a.createElement(We,Object.assign({size:G.length},this.props))),_e(Array(zt)).map(function(Zt,kt){return v.a.createElement("div",Object.assign({key:kt,className:"object-key-val array-group"},j(ee,"objectKeyVal",{marginLeft:6,paddingLeft:Ot})),v.a.createElement("span",j(ee,"brace-row"),v.a.createElement("div",Object.assign({className:"icon-container"},j(ee,"icon-container"),{onClick:function(an){F.toggleCollapsed(kt)}}),F.getExpandedIcon(kt)),F.state.expanded[kt]?v.a.createElement(Dn,Object.assign({key:fe+kt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:ut,index_offset:kt*ut,src:G.slice(kt*ut,kt*ut+ut),namespace:Me,type:"array",parent_type:"array_group",theme:ee},tt)):v.a.createElement("span",Object.assign({},j(ee,"brace"),{onClick:function(an){F.toggleCollapsed(kt)},className:"array-group-brace"}),"[",v.a.createElement("div",Object.assign({},j(ee,"array-group-meta-data"),{className:"array-group-meta-data"}),v.a.createElement("span",Object.assign({className:"object-size"},j(ee,"object-size")),kt*ut," - ",kt*ut+ut>G.length?G.length:kt*ut+ut)),"]")))}))}}]),k}(v.a.PureComponent),Ye=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],dt=function(D){g(k,D);var B=b(k);function k(F){var L;d(this,k),(L=B.call(this,F)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){Ve.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(ce,fe,ee){return v.a.createElement("div",{className:"pushed-content object-container"},v.a.createElement("div",Object.assign({className:"object-content"},j(L.props.theme,"pushed-content")),L.renderObjectContents(fe,ee)))},L.getEllipsis=function(){return L.state.size===0?null:v.a.createElement("div",Object.assign({},j(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(ce){var fe=L.props,ee=(fe.rjvId,fe.theme,L.state),we=ee.size,Me=ee.hovered;return v.a.createElement(We,Object.assign({rowHovered:Me,size:we},L.props))},L.renderObjectContents=function(ce,fe){var ee,we=L.props,Me=we.depth,tt=we.parent_type,pt=we.index_offset,Ot=we.groupArraysAfterLength,ut=we.namespace,zt=L.state.object_type,Zt=[],kt=Object.keys(ce||{});return L.props.sortKeys&&zt!=="array"&&(kt=kt.sort()),kt.forEach(function(an){if(ee=new us(an,ce[an]),tt==="array_group"&&pt&&(ee.name=parseInt(ee.name)+pt),ce.hasOwnProperty(an))if(ee.type==="object")Zt.push(v.a.createElement(Dn,Object.assign({key:ee.name,depth:Me+1,name:ee.name,src:ee.value,namespace:ut.concat(ee.name),parent_type:zt},fe)));else if(ee.type==="array"){var _o=Dn;Ot&&ee.value.length>Ot&&(_o=yt),Zt.push(v.a.createElement(_o,Object.assign({key:ee.name,depth:Me+1,name:ee.name,src:ee.value,namespace:ut.concat(ee.name),type:"array",parent_type:zt},fe)))}else Zt.push(v.a.createElement(ot,Object.assign({key:ee.name+"_"+ut,variable:ee,singleIndent:5,namespace:ut,type:L.props.type},fe)))}),Zt};var G=k.getState(F);return L.state=c(c({},G),{},{prevProps:{}}),L}return h(k,[{key:"getBraceStart",value:function(F,L){var G=this,ce=this.props,fe=ce.src,ee=ce.theme,we=ce.iconStyle;if(ce.parent_type==="array_group")return v.a.createElement("span",null,v.a.createElement("span",j(ee,"brace"),F==="array"?"[":"{"),L?this.getObjectMetaData(fe):null);var Me=L?_t:ht;return v.a.createElement("span",null,v.a.createElement("span",Object.assign({onClick:function(tt){G.toggleCollapsed()}},j(ee,"brace-row")),v.a.createElement("div",Object.assign({className:"icon-container"},j(ee,"icon-container")),v.a.createElement(Me,{theme:ee,iconStyle:we})),v.a.createElement(it,this.props),v.a.createElement("span",j(ee,"brace"),F==="array"?"[":"{")),L?this.getObjectMetaData(fe):null)}},{key:"render",value:function(){var F=this,L=this.props,G=L.depth,ce=L.src,fe=(L.namespace,L.name,L.type,L.parent_type),ee=L.theme,we=L.jsvRoot,Me=L.iconStyle,tt=$(L,Ye),pt=this.state,Ot=pt.object_type,ut=pt.expanded,zt={};return we||fe==="array_group"?fe==="array_group"&&(zt.borderLeft=0,zt.display="inline"):zt.paddingLeft=5*this.props.indentWidth,v.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return F.setState(c(c({},F.state),{},{hovered:!0}))},onMouseLeave:function(){return F.setState(c(c({},F.state),{},{hovered:!1}))}},j(ee,we?"jsv-root":"objectKeyVal",zt)),this.getBraceStart(Ot,ut),ut?this.getObjectContent(G,ce,c({theme:ee,iconStyle:Me},tt)):this.getEllipsis(),v.a.createElement("span",{className:"brace-row"},v.a.createElement("span",{style:c(c({},j(ee,"brace").style),{},{paddingLeft:ut?"3px":"0px"})},Ot==="array"?"]":"}"),ut?null:this.getObjectMetaData(ce)))}}],[{key:"getDerivedStateFromProps",value:function(F,L){var G=L.prevProps;return F.src!==G.src||F.collapsed!==G.collapsed||F.name!==G.name||F.namespace!==G.namespace||F.rjvId!==G.rjvId?c(c({},k.getState(F)),{},{prevProps:F}):null}}]),k}(v.a.PureComponent);dt.getState=function(D){var B=Object.keys(D.src).length,k=(D.collapsed===!1||D.collapsed!==!0&&D.collapsed>D.depth)&&(!D.shouldCollapse||D.shouldCollapse({name:D.name,src:D.src,type:T(D.src),namespace:D.namespace})===!1)&&B!==0;return{expanded:Ve.get(D.rjvId,D.namespace,"expanded",k),object_type:D.type==="array"?"array":"object",parent_type:D.type==="array"?"array":"object",size:B,hovered:!1}};var us=h(function D(B,k){d(this,D),this.name=B,this.value=k,this.type=T(k)});C(dt);var Dn=dt,ii=function(D){g(k,D);var B=b(k);function k(){var F;d(this,k);for(var L=arguments.length,G=new Array(L),ce=0;cett.groupArraysAfterLength&&(Ot=yt),v.a.createElement("div",{className:"pretty-json-container object-container"},v.a.createElement("div",{className:"object-content"},v.a.createElement(Ot,Object.assign({namespace:pt,depth:0,jsvRoot:!0},tt))))},F}return h(k)}(v.a.PureComponent),si=function(D){g(k,D);var B=b(k);function k(F){var L;return d(this,k),(L=B.call(this,F)).closeModal=function(){$e.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:F.input?F.input:""},L}return h(k,[{key:"render",value:function(){var F=this,L=this.props,G=L.theme,ce=L.rjvId,fe=L.isValid,ee=this.state.input,we=fe(ee);return v.a.createElement("div",Object.assign({className:"key-modal-request"},j(G,"key-modal-request"),{onClick:this.closeModal}),v.a.createElement("div",Object.assign({},j(G,"key-modal"),{onClick:function(Me){Me.stopPropagation()}}),v.a.createElement("div",j(G,"key-modal-label"),"Key Name:"),v.a.createElement("div",{style:{position:"relative"}},v.a.createElement("input",Object.assign({},j(G,"key-modal-input"),{className:"key-modal-input",ref:function(Me){return Me&&Me.focus()},spellCheck:!1,value:ee,placeholder:"...",onChange:function(Me){F.setState({input:Me.target.value})},onKeyPress:function(Me){we&&Me.key==="Enter"?F.submit():Me.key==="Escape"&&F.closeModal()}})),we?v.a.createElement(Le,Object.assign({},j(G,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Me){return F.submit()}})):null),v.a.createElement("span",j(G,"key-modal-cancel"),v.a.createElement(he,Object.assign({},j(G,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){$e.dispatch({rjvId:ce,name:"RESET"})}})))))}}]),k}(v.a.PureComponent),li=function(D){g(k,D);var B=b(k);function k(){var F;d(this,k);for(var L=arguments.length,G=new Array(L),ce=0;ce{const r=document.createElement("a");r.setAttribute("href",encodeURI(`data:application/json;charset=utf-8,${e}`)),r.setAttribute("download",t),r.click()},L$e=e=>{F$e(JSON.stringify(e,null," "),"export.json")},N$e=()=>N.jsx(OL,{exporter:L$e,children:N.jsxs(OO,{rowClick:"show",children:[N.jsx(zo,{source:"id",sortable:!0}),N.jsx(zo,{source:"service",sortable:!0}),N.jsx(zo,{source:"method",sortable:!0}),N.jsx(Pu,{source:"headers",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"input",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"output",sortable:!1,reactJsonOptions:{theme:pa()}})]})}),D$e=()=>N.jsx(b_e,{children:N.jsxs(hL,{children:[N.jsx(Qs,{source:"service"}),N.jsx(Qs,{source:"method"}),N.jsx($u,{source:"headers",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"input",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"output",reactJsonOptions:{theme:pa()}})]})}),B$e=()=>N.jsx(R_e,{children:N.jsxs(hL,{children:[N.jsx(Qs,{source:"id"}),N.jsx(Qs,{source:"service"}),N.jsx(Qs,{source:"method"}),N.jsx($u,{source:"headers",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"input",reactJsonOptions:{theme:pa()}}),N.jsx($u,{source:"output",reactJsonOptions:{theme:pa()}})]})}),z$e=()=>N.jsx(H_e,{children:N.jsxs(lEe,{children:[N.jsx(zo,{source:"id",sortable:!0}),N.jsx(zo,{source:"service",sortable:!0}),N.jsx(zo,{source:"method",sortable:!0}),N.jsx(Pu,{source:"headers",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"input",sortable:!1,reactJsonOptions:{theme:pa()}}),N.jsx(Pu,{source:"output",sortable:!1,reactJsonOptions:{theme:pa()}})]})}),pa=()=>{const[e]=eO();return e==="dark"?"monokai":"rjv-default"},U$e=()=>N.jsx(OL,{children:N.jsxs(OO,{bulkActionButtons:!1,children:[N.jsx(zo,{source:"id"}),N.jsx(zo,{source:"package"}),N.jsx(zo,{source:"name"}),N.jsx(q_e,{source:"methods",sortable:!1,children:N.jsx(aEe,{linkType:!1,children:N.jsx(X_e,{source:"name"})})})]})});var VO={},V$e=wt;Object.defineProperty(VO,"__esModule",{value:!0});var TN=VO.default=void 0,W$e=V$e(Pt()),H$e=N;TN=VO.default=(0,W$e.default)((0,H$e.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var WO={},q$e=wt;Object.defineProperty(WO,"__esModule",{value:!0});var jN=WO.default=void 0,K$e=q$e(Pt()),G$e=N;jN=WO.default=(0,K$e.default)((0,G$e.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const Q$e={...x4,palette:{primary:doe,secondary:foe,error:hs,contrastThreshold:3,tonalOffset:.2}},X$e=()=>N.jsxs(E4,{toolbar:N.jsx(_4,{}),children:[N.jsx(h4,{}),N.jsx(xr,{flex:"-1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-logo",children:"GripMock UI"})]}),Y$e=e=>N.jsx(B4,{...e,appBar:X$e}),J$e=()=>N.jsxs(GPe,{disableTelemetry:!0,dataProvider:A$e,layout:Y$e,theme:Q$e,darkTheme:w4,children:[N.jsx(Bh,{icon:jN,name:"services",list:U$e}),N.jsx(Bh,{icon:TN,name:"stubs",list:N$e,edit:B$e,show:z$e,create:D$e})]});$b.createRoot(document.getElementById("root")).render(N.jsx(Pe.StrictMode,{children:N.jsx(J$e,{})})); diff --git a/dist/index.html b/dist/index.html index f4fad37..4d3286f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -111,7 +111,7 @@ href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet" /> - + diff --git a/package-lock.json b/package-lock.json index 09dfeff..9191a21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -943,20 +943,20 @@ } }, "node_modules/@floating-ui/core": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.3.tgz", - "integrity": "sha512-1ZpCvYf788/ZXOhRQGFxnYQOVgeU+pi0i+d0Ow34La7qjIXETi6RNswGVKkA6KcDO8/+Ysu2E/CeUmmeEBDvTg==", + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.4.tgz", + "integrity": "sha512-a4IowK4QkXl4SCWTGUR0INAfEOX3wtsYw3rKK5InQEHMGObkR8Xk44qYQD9P4r6HHw0iIfK6GUKECmY8sTkqRA==", "dependencies": { - "@floating-ui/utils": "^0.2.3" + "@floating-ui/utils": "^0.2.4" } }, "node_modules/@floating-ui/dom": { - "version": "1.6.6", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.6.tgz", - "integrity": "sha512-qiTYajAnh3P+38kECeffMSQgbvXty2VB6rS+42iWR4FPIlZjLK84E9qtLnMTLIpPz2znD/TaFqaiavMUrS+Hcw==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.7.tgz", + "integrity": "sha512-wmVfPG5o2xnKDU4jx/m4w5qva9FWHcnZ8BvzEe90D/RpwsJaTAVYPEPdQ8sbr/N8zZTAHlZUTQdqg8ZUbzHmng==", "dependencies": { - "@floating-ui/core": "^1.0.0", - "@floating-ui/utils": "^0.2.3" + "@floating-ui/core": "^1.6.0", + "@floating-ui/utils": "^0.2.4" } }, "node_modules/@floating-ui/react-dom": { @@ -972,9 +972,9 @@ } }, "node_modules/@floating-ui/utils": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.3.tgz", - "integrity": "sha512-XGndio0l5/Gvd6CLIABvsav9HHezgDFFhDfHk1bvLfr9ni8dojqLSvBbotJEjmIwNHL7vK4QzBJTdBRoB+c1ww==" + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.4.tgz", + "integrity": "sha512-dWO2pw8hhi+WrXq1YJy2yCuWoL20PddgGaqTgVe4cOS9Q6qklXCiA1tJEqX6BEwRNSCP84/afac9hd4MS+zEUA==" }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", @@ -1108,18 +1108,18 @@ } }, "node_modules/@mui/core-downloads-tracker": { - "version": "5.15.20", - "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.20.tgz", - "integrity": "sha512-DoL2ppgldL16utL8nNyj/P12f8mCNdx/Hb/AJnX9rLY4b52hCMIx1kH83pbXQ6uMy6n54M3StmEbvSGoj2OFuA==", + "version": "5.15.21", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.21.tgz", + "integrity": "sha512-dp9lXBaJZzJYeJfQY3Ow4Rb49QaCEdkl2KKYscdQHQm6bMJ+l4XPY3Cd9PCeeJTsHPIDJ60lzXbeRgs6sx/rpw==", "funding": { "type": "opencollective", "url": "https://opencollective.com/mui-org" } }, "node_modules/@mui/icons-material": { - "version": "5.15.20", - "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.20.tgz", - "integrity": "sha512-oGcKmCuHaYbAAoLN67WKSXtHmEgyWcJToT1uRtmPyxMj9N5uqwc/mRtEnst4Wj/eGr+zYH2FiZQ79v9k7kSk1Q==", + "version": "5.15.21", + "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.21.tgz", + "integrity": "sha512-yqkq1MbdkmX5ZHyvZTBuAaA6RkvoqkoAgwBSx9Oh0L0jAfj9T/Ih/NhMNjkl8PWVSonjfDUkKroBnjRyo/1M9Q==", "dependencies": { "@babel/runtime": "^7.23.9" }, @@ -1142,13 +1142,13 @@ } }, "node_modules/@mui/material": { - "version": "5.15.20", - "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.15.20.tgz", - "integrity": "sha512-tVq3l4qoXx/NxUgIx/x3lZiPn/5xDbdTE8VrLczNpfblLYZzlrbxA7kb9mI8NoBF6+w9WE9IrxWnKK5KlPI2bg==", + "version": "5.15.21", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.15.21.tgz", + "integrity": "sha512-nTyCcgduKwHqiuQ/B03EQUa+utSMzn2sQp0QAibsnYe4tvc3zkMbO0amKpl48vhABIY3IvT6w9615BFIgMt0YA==", "dependencies": { "@babel/runtime": "^7.23.9", "@mui/base": "5.0.0-beta.40", - "@mui/core-downloads-tracker": "^5.15.20", + "@mui/core-downloads-tracker": "^5.15.21", "@mui/system": "^5.15.20", "@mui/types": "^7.2.14", "@mui/utils": "^5.15.20", @@ -1573,20 +1573,20 @@ ] }, "node_modules/@tanstack/query-core": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.48.0.tgz", - "integrity": "sha512-lZAfPPeVIqXCswE9SSbG33B6/91XOWt/Iq41bFeWb/mnHwQSIfFRbkS4bfs+WhIk9abRArF9Id2fp0Mgo+hq6Q==", + "version": "5.49.1", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.49.1.tgz", + "integrity": "sha512-JnC9ndmD1KKS01Rt/ovRUB1tmwO7zkyXAyIxN9mznuJrcNtOrkmOnQqdJF2ib9oHzc2VxHomnEG7xyfo54Npkw==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.48.0.tgz", - "integrity": "sha512-GDExbjYWzvDokyRqMSWXdrPiYpp95Aig0oeMIrxTaruOJJgWiWfUP//OAaowm2RrRkGVsavSZdko/XmIrrV2Nw==", + "version": "5.49.2", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.49.2.tgz", + "integrity": "sha512-6rfwXDK9BvmHISbNFuGd+wY3P44lyW7lWiA9vIFGT/T0P9aHD1VkjTvcM4SDAIbAQ9ygEZZoLt7dlU1o3NjMVA==", "dependencies": { - "@tanstack/query-core": "5.48.0" + "@tanstack/query-core": "5.49.1" }, "funding": { "type": "github", @@ -4555,9 +4555,9 @@ ] }, "node_modules/ra-core": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.0.2.tgz", - "integrity": "sha512-P3YVEqdx3gDsdQPLcr4T4555MacC4Y1YBQ9CP5zvRPGYD9oJREMrQy6DLphWfqsQb7hlf1Za9Z/CTsZNcmn+TA==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.0.3.tgz", + "integrity": "sha512-aTDY4CtX/TLPslGqCABPMFQR2KeiTlF1M8xJ/9SJpe7Cpd244AY9Gbtgx0YjEsW+HeI4/OSQXMEj+Sz0l0Xtiw==", "dependencies": { "@tanstack/react-query": "^5.8.4", "clsx": "^2.1.1", @@ -4585,20 +4585,20 @@ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" }, "node_modules/ra-i18n-polyglot": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.0.2.tgz", - "integrity": "sha512-W10hXKyYoQI+SXJuekop2uc8+uECtvkc0praGqOOaJuWHRWv7hhfYNbeu4w6++/e5Cd7kXhQqonoP716csV4Vw==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.0.3.tgz", + "integrity": "sha512-zzC1+hjpwj/UQjF2poIEFgHSNsGF8cjWRCAgtSe7iNw+T9ztc5uqOHmDKzRzJaUv4QCLypN+QjGG85GRe9M8QQ==", "dependencies": { "node-polyglot": "^2.2.2", - "ra-core": "^5.0.2" + "ra-core": "^5.0.3" } }, "node_modules/ra-language-english": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.0.2.tgz", - "integrity": "sha512-22QKMZGPEbmMbv+pFQhCJMsktQq/nQh0XBTbAZvoEq79DU6MTTLssjtoIaDy4ognaXsg2QiYSH7Tqww/dph6xw==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.0.3.tgz", + "integrity": "sha512-0qm+arNNk7aynYzKlH5s20VVPAYWz2jDfhIeRyBcDVRifC96XbkvTTiFtr9k96LtRyJUGocBROxuuqKsEzw3YA==", "dependencies": { - "ra-core": "^5.0.2" + "ra-core": "^5.0.3" } }, "node_modules/react": { @@ -4613,18 +4613,18 @@ } }, "node_modules/react-admin": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.0.2.tgz", - "integrity": "sha512-iu+ztckoviaRXjmX1/VIW2bGYU18pVrQrG01YOJCCOMoEw/NXYFmeWj+YQYQSUsKqf+OSZJ2yeO0QE8VRQuFEw==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.0.3.tgz", + "integrity": "sha512-p8uuCgSCXGzad3EojVGPztIVXcCD7/GHnztywnKZwnfK3YSo9jJL8VYUpY/QnTJ6Gedz8eWRM9vFjBuyTKuwnw==", "dependencies": { "@emotion/react": "^11.4.1", "@emotion/styled": "^11.3.0", "@mui/icons-material": "^5.15.20", "@mui/material": "^5.15.20", - "ra-core": "^5.0.2", - "ra-i18n-polyglot": "^5.0.2", - "ra-language-english": "^5.0.2", - "ra-ui-materialui": "^5.0.2", + "ra-core": "^5.0.3", + "ra-i18n-polyglot": "^5.0.3", + "ra-language-english": "^5.0.3", + "ra-ui-materialui": "^5.0.3", "react-hook-form": "^7.52.0", "react-router": "^6.22.0", "react-router-dom": "^6.22.0" @@ -4635,9 +4635,9 @@ } }, "node_modules/react-admin/node_modules/ra-ui-materialui": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.0.2.tgz", - "integrity": "sha512-Ts2PbJIqHx5R8eWaYrCmy61bVXWLKPA4V7/BdclNoXlUkFiNoEGL3wM2kCFQSMU1xtvy+Eya7DOR462i8VqnVQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.0.3.tgz", + "integrity": "sha512-Y3COTPdztPSZekN7Vc3tP3nbj+4Q1wgCc4w4GEv6ET1Sme0JmzOA+ybgwbM8dKryqlMtnjuMGwIMz1gzPSewbQ==", "dependencies": { "@tanstack/react-query": "^5.8.4", "autosuggest-highlight": "^3.1.1", @@ -4722,9 +4722,9 @@ } }, "node_modules/react-hook-form": { - "version": "7.52.0", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.52.0.tgz", - "integrity": "sha512-mJX506Xc6mirzLsmXUJyqlAI3Kj9Ph2RhplYhUVffeOQSnubK2uVqBFOBJmvKikvbFV91pxVXmDiR+QMF19x6A==", + "version": "7.52.1", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.52.1.tgz", + "integrity": "sha512-uNKIhaoICJ5KQALYZ4TOaOLElyM+xipord+Ha3crEFhTntdLvWZqVY49Wqd/0GiVCA/f9NjemLeiNPjG7Hpurg==", "engines": { "node": ">=12.22.0" },