tm-reuseable-components
Version:
This is a reuseable components lib made for TextMercato
23 lines • 200 kB
JavaScript
import*as e from"react";import t,{forwardRef as n,useContext as o,Fragment as r}from"react";import{jsxs as i,jsx as a}from"react/jsx-runtime";import*as s from"react-dom";import l from"react-dom";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p,f={exports:{}},m={exports:{}},h={};var y,b,v,g,E,x,w,O,S,N,T,k,C,$,R={};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function P(){return b||(b=1,"production"===process.env.NODE_ENV?m.exports=function(){if(p)return h;p=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case o:case i:case r:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case y:case m:case a:return e;default:return p}}case n:return p}}}function w(e){return x(e)===c}return h.AsyncMode=l,h.ConcurrentMode=c,h.ContextConsumer=s,h.ContextProvider=a,h.Element=t,h.ForwardRef=u,h.Fragment=o,h.Lazy=y,h.Memo=m,h.Portal=n,h.Profiler=i,h.StrictMode=r,h.Suspense=d,h.isAsyncMode=function(e){return w(e)||x(e)===l},h.isConcurrentMode=w,h.isContextConsumer=function(e){return x(e)===s},h.isContextProvider=function(e){return x(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h.isForwardRef=function(e){return x(e)===u},h.isFragment=function(e){return x(e)===o},h.isLazy=function(e){return x(e)===y},h.isMemo=function(e){return x(e)===m},h.isPortal=function(e){return x(e)===n},h.isProfiler=function(e){return x(e)===i},h.isStrictMode=function(e){return x(e)===r},h.isSuspense=function(e){return x(e)===d},h.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===E||e.$$typeof===b)},h.typeOf=x,h}():m.exports=(y||(y=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var h=e.type;switch(h){case l:case c:case o:case i:case r:case d:return h;default:var y=h&&h.$$typeof;switch(y){case s:case u:case m:case f:case a:return y;default:return p}}case n:return p}}}var E=l,x=c,w=s,O=a,S=t,N=u,T=o,k=m,C=f,$=n,P=i,M=r,I=d,_=!1;function A(e){return g(e)===c}R.AsyncMode=E,R.ConcurrentMode=x,R.ContextConsumer=w,R.ContextProvider=O,R.Element=S,R.ForwardRef=N,R.Fragment=T,R.Lazy=k,R.Memo=C,R.Portal=$,R.Profiler=P,R.StrictMode=M,R.Suspense=I,R.isAsyncMode=function(e){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||g(e)===l},R.isConcurrentMode=A,R.isContextConsumer=function(e){return g(e)===s},R.isContextProvider=function(e){return g(e)===a},R.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},R.isForwardRef=function(e){return g(e)===u},R.isFragment=function(e){return g(e)===o},R.isLazy=function(e){return g(e)===m},R.isMemo=function(e){return g(e)===f},R.isPortal=function(e){return g(e)===n},R.isProfiler=function(e){return g(e)===i},R.isStrictMode=function(e){return g(e)===r},R.isSuspense=function(e){return g(e)===d},R.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v||e.$$typeof===h)},R.typeOf=g}()),R)),m.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function M(){if(g)return v;g=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return v=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},v}function I(){if(x)return E;x=1;return E="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function _(){return O?w:(O=1,w=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var A=P();f.exports=function(){if(k)return T;k=1;var e=P(),t=M(),n=I(),o=_(),r=function(){if(N)return S;N=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=I(),n={},o=_();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(o(r,c)){var u;try{if("function"!=typeof r[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=r[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},S=r}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),T=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:h(a),arrayOf:function(e){return h((function(t,o,r,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[o];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+g(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,o,r){var i=e[t];return s(i)?null:new m("Invalid "+o+" `"+r+"` of type `"+g(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,o,r,i){var a=t[n];return e.isValidElementType(a)?null:new m("Invalid "+r+" `"+i+"` of type `"+g(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,o,r,i){if(!(t[n]instanceof e)){var a=e.name||d;return new m("Invalid "+r+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,o,r){return v(e[t])?null:new m("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,r,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=g(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(o(l,u)){var d=e(l,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,o,r,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===E(t)?String(t):t}));return new m("Invalid "+r+" `"+i+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(r)+" at index "+t+"."),a}return h((function(t,r,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,r,i,a,s,n);if(null==u)return null;u.data&&o(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,o,r,i,a){var s=t[o],l=g(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return b(r,i,a,c,E(u));var d=u(s,c,r,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return h((function(r,i,a,s,l){var c=r[i],u=g(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},r[i],e);for(var p in d){var f=e[p];if(o(e,p)&&"function"!=typeof f)return b(a,s,l,p,E(f));if(!f)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,p,a,s,l+"."+p,n);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,a,s,c,u,p,f){if(c=c||d,p=p||s,f!==n){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=c+":"+s;!t[y]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[y]=!0,o++)}}return null==a[s]?r?null===a[s]?new m("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,p)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function y(e){return h((function(t,n,o,r,i,a){var s=t[n];return g(s)!==e?new m("Invalid "+r+" `"+i+"` of type `"+E(s)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,o,r){return new m((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!v(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!v(r[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function E(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=E(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},T}()(A.isElement,!0)}else f.exports=function(){if($)return C;$=1;var e=I();function t(){}function n(){}return n.resetWarningCache=t,C=function(){function o(t,n,o,r,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var j=d(f.exports);function D(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=D(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function F(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=D(e))&&(o&&(o+=" "),o+=t);return o}function V(e){return"string"==typeof e}const z={disableDefaultClasses:!1},L=e.createContext(z);function B(e,t){return"function"==typeof e?e(t):e}function W(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function q(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function U(e){if(!q(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=U(e[n])})),t}function H(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return q(e)&&q(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(q(t[r])&&r in e&&q(e[r])?o[r]=H(e[r],t[r],n):n.clone?o[r]=q(t[r])?U(t[r]):t[r]:o[r]=t[r])})),o}function K(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||"undefined"==typeof window)return null;let s;const l=i.type;return"function"!=typeof l||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(l)||(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Y=W(j.element,K);Y.isRequired=W(j.element.isRequired,K);var G=Y;var X=W(j.elementType,(function(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function J(e){return"production"===process.env.NODE_ENV?e:{...e,"exact-prop: ":t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}}}function Z(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Q,ee={exports:{}},te={};var ne,oe={};
/**
* @license React
* react-is.development.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.
*/"production"===process.env.NODE_ENV?ee.exports=function(){if(Q)return te;Q=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case o:case i:case r:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case p:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),te.ContextConsumer=s,te.ContextProvider=a,te.Element=t,te.ForwardRef=c,te.Fragment=o,te.Lazy=f,te.Memo=p,te.Portal=n,te.Profiler=i,te.StrictMode=r,te.Suspense=u,te.SuspenseList=d,te.isAsyncMode=function(){return!1},te.isConcurrentMode=function(){return!1},te.isContextConsumer=function(e){return h(e)===s},te.isContextProvider=function(e){return h(e)===a},te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},te.isForwardRef=function(e){return h(e)===c},te.isFragment=function(e){return h(e)===o},te.isLazy=function(e){return h(e)===f},te.isMemo=function(e){return h(e)===p},te.isPortal=function(e){return h(e)===n},te.isProfiler=function(e){return h(e)===i},te.isStrictMode=function(e){return h(e)===r},te.isSuspense=function(e){return h(e)===u},te.isSuspenseList=function(e){return h(e)===d},te.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},te.typeOf=h,te}():ee.exports=(ne||(ne=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case o:case i:case r:case u:case d:return h;default:var y=h&&h.$$typeof;switch(y){case l:case s:case c:case f:case p:case a:return y;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var y=s,b=a,v=t,g=c,E=o,x=f,w=p,O=n,S=i,N=r,T=u,k=d,C=!1,$=!1;oe.ContextConsumer=y,oe.ContextProvider=b,oe.Element=v,oe.ForwardRef=g,oe.Fragment=E,oe.Lazy=x,oe.Memo=w,oe.Portal=O,oe.Profiler=S,oe.StrictMode=N,oe.Suspense=T,oe.SuspenseList=k,oe.isAsyncMode=function(e){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},oe.isConcurrentMode=function(e){return $||($=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},oe.isContextConsumer=function(e){return h(e)===s},oe.isContextProvider=function(e){return h(e)===a},oe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oe.isForwardRef=function(e){return h(e)===c},oe.isFragment=function(e){return h(e)===o},oe.isLazy=function(e){return h(e)===f},oe.isMemo=function(e){return h(e)===p},oe.isPortal=function(e){return h(e)===n},oe.isProfiler=function(e){return h(e)===i},oe.isStrictMode=function(e){return h(e)===r},oe.isSuspense=function(e){return h(e)===u},oe.isSuspenseList=function(e){return h(e)===d},oe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},oe.typeOf=h}()),oe);var re=ee.exports;const ie=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ae(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(ie);return t&&t[1]||""}(e)||t}function se(e,t,n){const o=ae(t);return e.displayName||(""!==o?`${n}(${o})`:n)}function le(e,t,n,o,r){if("production"===process.env.NODE_ENV)return null;const i=e[t],a=r||t;return null==i?null:i&&1!==i.nodeType?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var ce=j.oneOfType([j.func,j.object]);function ue(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Z(7));return e.charAt(0).toUpperCase()+e.slice(1)}function de(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function pe(e,t=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(n)},o}function fe(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)}function me(e){return e&&e.ownerDocument||document}function he(e){return me(e).defaultView||window}function ye(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var be="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let ve=0;const ge=e["useId".toString()];function Ee(t){if(void 0!==ge){const e=ge();return null!=t?t:e}return function(t){const[n,o]=e.useState(t),r=t||n;return e.useEffect((()=>{null==n&&(ve+=1,o(`mui-${ve}`))}),[n]),r}(t)}function xe({controlled:t,default:n,name:o,state:r="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n),l=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[r,o,t]);const{current:a}=e.useRef(n);e.useEffect((()=>{i||a===n||console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join("\n"))}),[JSON.stringify(n)])}return[l,e.useCallback((e=>{i||s(e)}),[])]}function we(t){const n=e.useRef(t);return be((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function Oe(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{ye(t,e)}))}),t)}function Se(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Ne=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Te(e,t,n,o){const r=e[t];if(null==r||!Ne(r)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ke(e,t,...n){return void 0===e[t]?null:Te(e,t,...n)}function Ce(){return null}ke.isRequired=Te,Ce.isRequired=Ce;var $e="production"===process.env.NODE_ENV?Ce:ke;function Re(e,t){const n={...t};return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]={...e[o],...n[o]};else if(o.toString().match(/^(componentsProps|slotProps)$/)){const r=e[o]||{},i=t[o];n[o]={},i&&Object.keys(i)?r&&Object.keys(r)?(n[o]={...i},Object.keys(r).forEach((e=>{n[o][e]=Re(r[e],i[e])}))):n[o]=i:n[o]=r}else void 0===n[o]&&(n[o]=e[o])})),n}function Pe(e,t,n=void 0){const o={};return Object.keys(e).forEach((r=>{o[r]=e[r].reduce(((e,o)=>{if(o){const r=t(o);""!==r&&e.push(r),n&&n[o]&&e.push(n[o])}return e}),[]).join(" ")})),o}const Me=e=>e;var Ie=(()=>{let e=Me;return{configure(t){e=t},generate:t=>e(t),reset(){e=Me}}})();const _e={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ae(e,t,n="Mui"){const o=_e[t];return o?`${n}-${o}`:`${Ie.generate(e)}-${t}`}function je(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=Ae(e,t,n)})),o}function De(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Fe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const e=F(null==r?void 0:r.className,null==o?void 0:o.className,i,null==n?void 0:n.className),t=c({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),a=c({},n,r,o);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(c({},r,o)),s=De(o),l=De(r),u=t(a),d=F(null==u?void 0:u.className,null==n?void 0:n.className,i,null==r?void 0:r.className,null==o?void 0:o.className),p=c({},null==u?void 0:u.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),f=c({},u,n,l,s);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}}const Ve=["elementType","externalSlotProps","ownerState"];function ze(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r}=e,i=u(e,Ve),a=B(o,r),{props:s,internalRef:l}=Fe(c({},i,{externalSlotProps:a})),d=function(e,t,n){return void 0===e||V(e)?t:c({},t,{ownerState:c({},t.ownerState,n)})}(n,c({},s,{ref:Oe(l,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),r);return d}const Le=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Be(e){const t=[],n=[];return Array.from(e.querySelectorAll(Le)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function We(){return!0}function qe(t){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:l=Be,isEnabled:c=We,open:u}=t,d=e.useRef(!1),p=e.useRef(null),f=e.useRef(null),m=e.useRef(null),h=e.useRef(null),y=e.useRef(!1),b=e.useRef(null),v=Oe(n.ref,b),g=e.useRef(null);e.useEffect((()=>{u&&b.current&&(y.current=!o)}),[o,u]),e.useEffect((()=>{if(!u||!b.current)return;const e=me(b.current);return b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),b.current.setAttribute("tabIndex","-1")),y.current&&b.current.focus()),()=>{s||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}}),[u]),e.useEffect((()=>{if(!u||!b.current)return;const e=me(b.current),t=t=>{const{current:n}=b;if(null!==n)if(e.hasFocus()&&!r&&c()&&!d.current){if(!n.contains(e.activeElement)){if(t&&h.current!==t.target||e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!y.current)return;let r=[];if(e.activeElement!==p.current&&e.activeElement!==f.current||(r=l(b.current)),r.length>0){var o,i;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=g.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else d.current=!1},n=t=>{g.current=t,!r&&c()&&"Tab"===t.key&&e.activeElement===b.current&&t.shiftKey&&(d.current=!0,f.current&&f.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[o,r,s,c,u,l]);const E=e=>{null===m.current&&(m.current=e.relatedTarget),y.current=!0};return i(e.Fragment,{children:[a("div",{tabIndex:u?0:-1,onFocus:E,ref:p,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:v,onFocus:e=>{null===m.current&&(m.current=e.relatedTarget),y.current=!0,h.current=e.target;const t=n.props.onFocus;t&&t(e)}}),a("div",{tabIndex:u?0:-1,onFocus:E,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(qe.propTypes={children:G,disableAutoFocus:j.bool,disableEnforceFocus:j.bool,disableRestoreFocus:j.bool,getTabbable:j.func,isEnabled:j.func,open:j.bool.isRequired}),"production"!==process.env.NODE_ENV&&(qe.propTypes=J(qe.propTypes));const Ue=e.forwardRef((function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[l,c]=e.useState(null),u=Oe(e.isValidElement(o)?o.ref:null,n);if(be((()=>{i||c(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),be((()=>{if(l&&!i)return ye(n,l),()=>{ye(n,null)}}),[n,l,i]),i){if(e.isValidElement(o)){const t={ref:u};return e.cloneElement(o,t)}return a(e.Fragment,{children:o})}return a(e.Fragment,{children:l?s.createPortal(o,l):l})}));"production"!==process.env.NODE_ENV&&(Ue.propTypes={children:j.node,container:j.oneOfType([le,j.func]),disablePortal:j.bool}),"production"!==process.env.NODE_ENV&&(Ue.propTypes=J(Ue.propTypes));var He=Ue;function Ke(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ye(e){return parseInt(he(e).getComputedStyle(e).paddingRight,10)||0}function Ge(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ke(e,r)}))}function Xe(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function Je(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=me(e);return t.body===e?he(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Se(me(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Ye(o)+e}px`;const t=me(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ye(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=me(o).body;else{const t=o.parentElement,n=he(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function Ze(e){return Ae("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const Qe=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],et=t=>{const{open:n,exited:o}=t;return Pe({root:["root",!n&&o&&"hidden"],backdrop:["backdrop"]},function(t){const{disableDefaultClasses:n}=e.useContext(L);return e=>n?"":t(e)}(Ze))};const tt=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ke(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ge(t,e.mount,e.modalRef,o,!0);const r=Xe(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=Xe(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=Je(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=Xe(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Ke(e.modalRef,t),Ge(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&Ke(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},nt=e.forwardRef((function(t,n){var o,r;const{children:s,closeAfterTransition:l=!1,container:d,disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:h=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:v=!1,keepMounted:g=!1,manager:E=tt,onBackdropClick:x,onClose:w,onKeyDown:O,open:S,onTransitionEnter:N,onTransitionExited:T,slotProps:k={},slots:C={}}=t,$=u(t,Qe),R=E,[P,M]=e.useState(!S),I=e.useRef({}),_=e.useRef(null),A=e.useRef(null),j=Oe(A,n),D=function(e){return!!e&&e.props.hasOwnProperty("in")}(s),F=null==(o=t["aria-hidden"])||o,V=()=>(I.current.modalRef=A.current,I.current.mountNode=_.current,I.current),z=()=>{R.mount(V(),{disableScrollLock:b}),A.current&&(A.current.scrollTop=0)},L=we((()=>{const e=function(e){return"function"==typeof e?e():e}(d)||me(_.current).body;R.add(V(),e),A.current&&z()})),B=e.useCallback((()=>R.isTopModal(V())),[R]),W=we((e=>{_.current=e,e&&A.current&&(S&&B()?z():Ke(A.current,F))})),q=e.useCallback((()=>{R.remove(V(),F)}),[R,F]);e.useEffect((()=>()=>{q()}),[q]),e.useEffect((()=>{S?L():D&&l||q()}),[S,q,D,l,L]);const U=c({},t,{closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:h,disableRestoreFocus:y,disableScrollLock:b,exited:P,hideBackdrop:v,keepMounted:g}),H=et(U),K=()=>{M(!1),N&&N()},Y=()=>{M(!0),T&&T(),l&&q()},G={};void 0===s.props.tabIndex&&(G.tabIndex="-1"),D&&(G.onEnter=de(K,s.props.onEnter),G.onExited=de(Y,s.props.onExited));const X=null!=(r=C.root)?r:"div",J=ze({elementType:X,externalSlotProps:k.root,externalForwardedProps:$,additionalProps:{ref:j,role:"presentation",onKeyDown:e=>{O&&O(e),"Escape"===e.key&&B()&&(m||(e.stopPropagation(),w&&w(e,"escapeKeyDown")))}},className:H.root,ownerState:U}),Z=C.backdrop,Q=ze({elementType:Z,externalSlotProps:k.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),w&&w(e,"backdropClick"))},open:S},className:H.backdrop,ownerState:U});return g||S||D&&!P?a(He,{ref:W,container:d,disablePortal:h,children:i(X,c({},J,{children:[!v&&Z?a(Z,c({},Q)):null,a(qe,{disableEnforceFocus:f,disableAutoFocus:p,disableRestoreFocus:y,isEnabled:B,open:S,children:e.cloneElement(s,G)})]}))}):null}));"production"!==process.env.NODE_ENV&&(nt.propTypes={children:G.isRequired,closeAfterTransition:j.bool,container:j.oneOfType([le,j.func]),disableAutoFocus:j.bool,disableEnforceFocus:j.bool,disableEscapeKeyDown:j.bool,disablePortal:j.bool,disableRestoreFocus:j.bool,disableScrollLock:j.bool,hideBackdrop:j.bool,keepMounted:j.bool,onBackdropClick:j.func,onClose:j.func,open:j.bool.isRequired,slotProps:j.shape({backdrop:j.oneOfType([j.func,j.object]),root:j.oneOfType([j.func,j.object])}),slots:j.shape({backdrop:j.elementType,root:j.elementType})});var ot=nt;const rt=["onChange","maxRows","minRows","style","value"];function it(e){return parseInt(e,10)||0}const at={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function st(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const lt=e.forwardRef((function(t,n){const{onChange:o,maxRows:r,minRows:l=1,style:d,value:p}=t,f=u(t,rt),{current:m}=e.useRef(null!=p),h=e.useRef(null),y=Oe(n,h),b=e.useRef(null),v=e.useRef(0),[g,E]=e.useState({outerHeightStyle:0}),x=e.useCallback((()=>{const e=h.current,n=he(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const o=b.current;o.style.width=n.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const i=n.boxSizing,a=it(n.paddingBottom)+it(n.paddingTop),s=it(n.borderBottomWidth)+it(n.borderTopWidth),c=o.scrollHeight;o.value="x";const u=o.scrollHeight;let d=c;l&&(d=Math.max(Number(l)*u,d)),r&&(d=Math.min(Number(r)*u,d)),d=Math.max(d,u);return{outerHeightStyle:d+("border-box"===i?a+s:0),overflow:Math.abs(d-c)<=1}}),[r,l,t.placeholder]),w=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return v.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(v.current+=1,{overflow:o,outerHeightStyle:n}):("production"!==process.env.NODE_ENV&&20===v.current&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n")),e)},O=e.useCallback((()=>{const e=x();st(e)||E((t=>w(t,e)))}),[x]);e.useEffect((()=>{const e=pe((()=>{v.current=0,h.current&&(()=>{const e=x();st(e)||s.flushSync((()=>{E((t=>w(t,e)))}))})()}));let t;const n=h.current,o=he(n);return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),o.removeEventListener("resize",e),t&&t.disconnect()}})),be((()=>{O()})),e.useEffect((()=>{v.current=0}),[p]);return i(e.Fragment,{children:[a("textarea",c({value:p,onChange:e=>{v.current=0,m||O(),o&&o(e)},ref:y,rows:l,style:c({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},d)},f)),a("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:c({},at,d,{padding:0})})]})}));"production"!==process.env.NODE_ENV&&(lt.propTypes={className:j.string,maxRows:j.oneOfType([j.number,j.string]),minRows:j.oneOfType([j.number,j.string]),onChange:j.func,placeholder:j.string,style:j.object,value:j.oneOfType([j.arrayOf(j.string),j.number,j.string])});var ct=lt;function ut(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var dt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pt=ut((function(e){return dt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ft=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),mt="-ms-",ht="-moz-",yt="-webkit-",bt="comm",vt="rule",gt="decl",Et="@keyframes",xt=Math.abs,wt=String.fromCharCode,Ot=Object.assign;function St(e){return e.trim()}function Nt(e,t,n){return e.replace(t,n)}function Tt(e,t){return e.indexOf(t)}function kt(e,t){return 0|e.charCodeAt(t)}function Ct(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function Rt(e){return e.length}function Pt(e,t){return t.push(e),e}var Mt=1,It=1,_t=0,At=0,jt=0,Dt="";function Ft(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Mt,column:It,length:a,return:""}}function Vt(e,t){return Ot(Ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function zt(){return jt=At>0?kt(Dt,--At):0,It--,10===jt&&(It=1,Mt--),jt}function Lt(){return jt=At<_t?kt(Dt,At++):0,It++,10===jt&&(It=1,Mt++),jt}function Bt(){return kt(Dt,At)}function Wt(){return At}function qt(e,t){return Ct(Dt,e,t)}function Ut(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ht(e){return Mt=It=1,_t=$t(Dt=e),At=0,[]}function Kt(e){return Dt="",e}function Yt(e){return St(qt(At-1,Jt(91===e?e+2:40===e?e+1:e)))}function Gt(e){for(;(jt=Bt())&&jt<33;)Lt();return Ut(e)>2||Ut(jt)>3?"":" "}function Xt(e,t){for(;--t&&Lt()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return qt(e,Wt()+(t<6&&32==Bt()&&32==Lt()))}function Jt(e){for(;Lt();)switch(jt){case e:return At;case 34:case 39:34!==e&&39!==e&&Jt(jt);break;case 40:41===e&&Jt(e);break;case 92:Lt()}return At}function Zt(e,t){for(;Lt()&&e+jt!==57&&(e+jt!==84||47!==Bt()););return"/*"+qt(t,At-1)+"*"+wt(47===e?e:Lt())}function Qt(e){for(;!Ut(Bt());)Lt();return qt(e,At)}function en(e){return Kt(tn("",null,null,null,[""],e=Ht(e),0,[0],e))}function tn