tm-reuseable-components
Version:
This is a reuseable components lib made for TextMercato
23 lines • 136 kB
JavaScript
import*as e from"react";import t,{forwardRef as n,useContext as r}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";import*as a from"react-dom";import s from"react-dom";function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p,f={exports:{}},d={exports:{}},m={};var h,y,g,v,b,x,E,w,O,T,S,k,N,$,_={};
/** @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 y||(y=1,"production"===process.env.NODE_ENV?d.exports=function(){if(p)return m;p=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=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,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case c:case l:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case s:case u:case y:case h:case a:return e;default:return p}}case n:return p}}}function w(e){return E(e)===l}return m.AsyncMode=c,m.ConcurrentMode=l,m.ContextConsumer=s,m.ContextProvider=a,m.Element=t,m.ForwardRef=u,m.Fragment=r,m.Lazy=y,m.Memo=h,m.Portal=n,m.Profiler=i,m.StrictMode=o,m.Suspense=f,m.isAsyncMode=function(e){return w(e)||E(e)===c},m.isConcurrentMode=w,m.isContextConsumer=function(e){return E(e)===s},m.isContextProvider=function(e){return E(e)===a},m.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},m.isForwardRef=function(e){return E(e)===u},m.isFragment=function(e){return E(e)===r},m.isLazy=function(e){return E(e)===y},m.isMemo=function(e){return E(e)===h},m.isPortal=function(e){return E(e)===n},m.isProfiler=function(e){return E(e)===i},m.isStrictMode=function(e){return E(e)===o},m.isSuspense=function(e){return E(e)===f},m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===f||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},m.typeOf=E,m}():d.exports=(h||(h=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,r=e?Symbol.for("react.fragment"):60107,o=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,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,d=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,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var h=e.type;switch(h){case c:case l:case r:case i:case o:case p:return h;default:var y=h&&h.$$typeof;switch(y){case s:case u:case m:case d:case a:return y;default:return f}}case n:return f}}}var x=c,E=l,w=s,O=a,T=t,S=u,k=r,N=m,$=d,P=n,C=i,R=o,A=p,j=!1;function D(e){return b(e)===l}_.AsyncMode=x,_.ConcurrentMode=E,_.ContextConsumer=w,_.ContextProvider=O,_.Element=T,_.ForwardRef=S,_.Fragment=k,_.Lazy=N,_.Memo=$,_.Portal=P,_.Profiler=C,_.StrictMode=R,_.Suspense=A,_.isAsyncMode=function(e){return j||(j=!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.")),D(e)||b(e)===c},_.isConcurrentMode=D,_.isContextConsumer=function(e){return b(e)===s},_.isContextProvider=function(e){return b(e)===a},_.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_.isForwardRef=function(e){return b(e)===u},_.isFragment=function(e){return b(e)===r},_.isLazy=function(e){return b(e)===m},_.isMemo=function(e){return b(e)===d},_.isPortal=function(e){return b(e)===n},_.isProfiler=function(e){return b(e)===i},_.isStrictMode=function(e){return b(e)===o},_.isSuspense=function(e){return b(e)===p},_.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||e.$$typeof===g||e.$$typeof===v||e.$$typeof===h)},_.typeOf=b}()),_)),d.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function C(){if(v)return g;v=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return g=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 r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){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)}(r),c=1;c<arguments.length;c++){for(var l in i=Object(arguments[c]))t.call(i,l)&&(s[l]=i[l]);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},g}function R(){if(x)return b;x=1;return b="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function A(){return w?E:(w=1,E=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var j=P();f.exports=function(){if(k)return S;k=1;var e=P(),t=C(),n=R(),r=A(),o=function(){if(T)return O;T=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=R(),n={},r=A();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var p=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` 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 f=c?c():"";e("Failed "+a+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},O=o}(),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){}}),S=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",p="<<anonymous>>",f={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,r,o,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return s(i)?null:new m("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new m("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||p;return new m("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,o){return v(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=b(c);if("object"!==l)return new m("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var p=e(c,u,i,a,s+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(d(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new m("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("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 o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(o)+" at index "+t+"."),a}return h((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,a){var s=t[r],c=b(s);if("object"!==c)return new m("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return g(o,i,a,l,x(u));var p=u(s,l,o,i,a+"."+l,n);if(p)return p}return null}))},exact:function(e){return h((function(o,i,a,s,c){var l=o[i],u=b(l);if("object"!==u)return new m("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var p=t({},o[i],e);for(var f in p){var d=e[f];if(r(e,f)&&"function"!=typeof d)return g(a,s,c,f,x(d));if(!d)return new m("Invalid "+s+" `"+c+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=d(l,f,a,s,c+"."+f,n);if(h)return h}return null}))}};function d(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={},r=0;function o(o,a,s,l,u,f,d){if(l=l||p,f=f||s,d!==n){if(c){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=l+":"+s;!t[y]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+l+"`. 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,r++)}}return null==a[s]?o?null===a[s]?new m("The "+u+" `"+f+"` is marked as required in `"+l+"`, but its value is `null`."):new m("The "+u+" `"+f+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(e){return h((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new m("Invalid "+o+" `"+i+"` of type `"+x(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}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&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(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 x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=x(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,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},S}()(j.isElement,!0)}else f.exports=function(){if($)return N;$=1;var e=R();function t(){}function n(){}return n.resetWarningCache=t,N=function(){function r(t,n,r,o,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 o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var D=u(f.exports);function M(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=M(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function I(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=M(e))&&(r&&(r+=" "),r+=t);return r}function V(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function L(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function F(e){if(!L(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=F(e[n])})),t}function W(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return L(e)&&L(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(L(t[o])&&o in e&&L(e[o])?r[o]=W(e[o],t[o],n):n.clone?r[o]=L(t[o])?F(t[o]):t[o]:r[o]=t[o])})),r}function z(e,t,n,r,o){const i=e[t],a=o||t;if(null==i||"undefined"==typeof window)return null;let s;const c=i.type;return"function"!=typeof c||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(c)||(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${r} \`${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 B=V(D.element,z);B.isRequired=V(D.element.isRequired,z);var U=B;function H(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,K={exports:{}},Y={};var G,X={};
/**
* @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?K.exports=function(){if(q)return Y;q=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=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 r:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case d:case f:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),Y.ContextConsumer=s,Y.ContextProvider=a,Y.Element=t,Y.ForwardRef=l,Y.Fragment=r,Y.Lazy=d,Y.Memo=f,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=u,Y.SuspenseList=p,Y.isAsyncMode=function(){return!1},Y.isConcurrentMode=function(){return!1},Y.isContextConsumer=function(e){return h(e)===s},Y.isContextProvider=function(e){return h(e)===a},Y.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Y.isForwardRef=function(e){return h(e)===l},Y.isFragment=function(e){return h(e)===r},Y.isLazy=function(e){return h(e)===d},Y.isMemo=function(e){return h(e)===f},Y.isPortal=function(e){return h(e)===n},Y.isProfiler=function(e){return h(e)===i},Y.isStrictMode=function(e){return h(e)===o},Y.isSuspense=function(e){return h(e)===u},Y.isSuspenseList=function(e){return h(e)===p},Y.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Y.typeOf=h,Y}():K.exports=(G||(G=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=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 r:case i:case o:case u:case p:return h;default:var y=h&&h.$$typeof;switch(y){case c:case s:case l:case d:case f:case a:return y;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var y=s,g=a,v=t,b=l,x=r,E=d,w=f,O=n,T=i,S=o,k=u,N=p,$=!1,_=!1;X.ContextConsumer=y,X.ContextProvider=g,X.Element=v,X.ForwardRef=b,X.Fragment=x,X.Lazy=E,X.Memo=w,X.Portal=O,X.Profiler=T,X.StrictMode=S,X.Suspense=k,X.SuspenseList=N,X.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},X.isConcurrentMode=function(e){return _||(_=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},X.isContextConsumer=function(e){return h(e)===s},X.isContextProvider=function(e){return h(e)===a},X.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},X.isForwardRef=function(e){return h(e)===l},X.isFragment=function(e){return h(e)===r},X.isLazy=function(e){return h(e)===d},X.isMemo=function(e){return h(e)===f},X.isPortal=function(e){return h(e)===n},X.isProfiler=function(e){return h(e)===i},X.isStrictMode=function(e){return h(e)===o},X.isSuspense=function(e){return h(e)===u},X.isSuspenseList=function(e){return h(e)===p},X.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},X.typeOf=h}()),X);var J=K.exports;const Z=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Q(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(Z);return t&&t[1]||""}(e)||t}function ee(e,t,n){const r=Q(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function te(e,t,n,r,o){if("production"===process.env.NODE_ENV)return null;const i=e[t],a=o||t;return null==i?null:i&&1!==i.nodeType?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var ne=D.oneOfType([D.func,D.object]);function re(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":H(7));return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e){return e&&e.ownerDocument||document}function ie(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ae="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let se=0;const ce=e["useId".toString()];function le(t){if(void 0!==ce){const e=ce();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(se+=1,r(`mui-${se}`))}),[n]),o}(t)}function ue(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{ie(t,e)}))}),t)}let pe,fe=!0,de=!1;const me={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 he(e){e.metaKey||e.altKey||e.ctrlKey||(fe=!0)}function ye(){fe=!1}function ge(){"hidden"===this.visibilityState&&de&&(fe=!0)}function ve(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return fe||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!me[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function be(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",he,!0),t.addEventListener("mousedown",ye,!0),t.addEventListener("pointerdown",ye,!0),t.addEventListener("touchstart",ye,!0),t.addEventListener("visibilitychange",ge,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!ve(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(de=!0,window.clearTimeout(pe),pe=window.setTimeout((()=>{de=!1}),100),n.current=!1,!0)},ref:t}}function xe(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]={...i},Object.keys(o).forEach((e=>{n[r][e]=xe(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ee(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const we=e=>e;var Oe=(()=>{let e=we;return{configure(t){e=t},generate:t=>e(t),reset(){e=we}}})();const Te={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Se(e,t,n="Mui"){const r=Te[t];return r?`${n}-${r}`:`${Oe.generate(e)}-${t}`}function ke(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Se(e,t,n)})),r}function Ne(e,t,n){return void 0===e||"string"==typeof e?t:l({},t,{ownerState:l({},t.ownerState,n)})}const $e={disableDefaultClasses:!1},_e=e.createContext($e);function Pe(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 Ce(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=I(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),t=l({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=l({},n,o,r);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}(l({},o,r)),s=Pe(r),c=Pe(o),u=t(a),p=I(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),f=l({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),d=l({},u,n,c,s);return p.length>0&&(d.className=p),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const Re=["elementType","externalSlotProps","ownerState"];var Ae="top",je="bottom",De="right",Me="left",Ie="auto",Ve=[Ae,je,De,Me],Le="start",Fe="end",We="clippingParents",ze="viewport",Be="popper",Ue="reference",He=Ve.reduce((function(e,t){return e.concat([t+"-"+Le,t+"-"+Fe])}),[]),qe=[].concat(Ve,[Ie]).reduce((function(e,t){return e.concat([t,t+"-"+Le,t+"-"+Fe])}),[]),Ke=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ye(e){return e?(e.nodeName||"").toLowerCase():null}function Ge(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xe(e){return e instanceof Ge(e).Element||e instanceof Element}function Je(e){return e instanceof Ge(e).HTMLElement||e instanceof HTMLElement}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ge(e).ShadowRoot||e instanceof ShadowRoot)}var Qe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Je(o)&&Ye(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Je(r)&&Ye(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function et(e){return e.split("-")[0]}var tt=Math.max,nt=Math.min,rt=Math.round;function ot(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function it(){return!/^((?!chrome|android).)*safari/i.test(ot())}function at(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Je(e)&&(o=e.offsetWidth>0&&rt(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&rt(r.height)/e.offsetHeight||1);var a=(Xe(e)?Ge(e):window).visualViewport,s=!it()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,l=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,p=r.height/i;return{width:u,height:p,top:l,right:c+u,bottom:l+p,left:c,x:c,y:l}}function st(e){var t=at(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ze(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function lt(e){return Ge(e).getComputedStyle(e)}function ut(e){return["table","td","th"].indexOf(Ye(e))>=0}function pt(e){return((Xe(e)?e.ownerDocument:e.document)||window.document).documentElement}function ft(e){return"html"===Ye(e)?e:e.assignedSlot||e.parentNode||(Ze(e)?e.host:null)||pt(e)}function dt(e){return Je(e)&&"fixed"!==lt(e).position?e.offsetParent:null}function mt(e){for(var t=Ge(e),n=dt(e);n&&ut(n)&&"static"===lt(n).position;)n=dt(n);return n&&("html"===Ye(n)||"body"===Ye(n)&&"static"===lt(n).position)?t:n||function(e){var t=/firefox/i.test(ot());if(/Trident/i.test(ot())&&Je(e)&&"fixed"===lt(e).position)return null;var n=ft(e);for(Ze(n)&&(n=n.host);Je(n)&&["html","body"].indexOf(Ye(n))<0;){var r=lt(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ht(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yt(e,t,n){return tt(e,nt(t,n))}function gt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function vt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var bt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=et(n.placement),c=ht(s),l=[Me,De].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return gt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:vt(e,Ve))}(o.padding,n),p=st(i),f="y"===c?Ae:Me,d="y"===c?je:De,m=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],h=a[c]-n.rects.reference[c],y=mt(i),g=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,v=m/2-h/2,b=u[f],x=g-p[l]-u[d],E=g/2-p[l]/2+v,w=yt(b,E,x),O=c;n.modifiersData[r]=((t={})[O]=w,t.centerOffset=w-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ct(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xt(e){return e.split("-")[1]}var Et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,m=a.y,h=void 0===m?0:m,y="function"==typeof u?u({x:d,y:h}):{x:d,y:h};d=y.x,h=y.y;var g=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Me,x=Ae,E=window;if(l){var w=mt(n),O="clientHeight",T="clientWidth";if(w===Ge(n)&&"static"!==lt(w=pt(n)).position&&"absolute"===s&&(O="scrollHeight",T="scrollWidth"),o===Ae||(o===Me||o===De)&&i===Fe)x=je,h-=(p&&w===E&&E.visualViewport?E.visualViewport.height:w[O])-r.height,h*=c?1:-1;if(o===Me||(o===Ae||o===je)&&i===Fe)b=De,d-=(p&&w===E&&E.visualViewport?E.visualViewport.width:w[T])-r.width,d*=c?1:-1}var S,k=Object.assign({position:s},l&&Et),N=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:rt(n*o)/o||0,y:rt(r*o)/o||0}}({x:d,y:h},Ge(n)):{x:d,y:h};return d=N.x,h=N.y,c?Object.assign({},k,((S={})[x]=v?"0":"",S[b]=g?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[x]=v?h+"px":"",t[b]=g?d+"px":"",t.transform="",t))}var Ot={passive:!0};var Tt={left:"right",right:"left",bottom:"top",top:"bottom"};function St(e){return e.replace(/left|right|bottom|top/g,(function(e){return Tt[e]}))}var kt={start:"end",end:"start"};function Nt(e){return e.replace(/start|end/g,(function(e){return kt[e]}))}function $t(e){var t=Ge(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _t(e){return at(pt(e)).left+$t(e).scrollLeft}function Pt(e){var t=lt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ct(e){return["html","body","#document"].indexOf(Ye(e))>=0?e.ownerDocument.body:Je(e)&&Pt(e)?e:Ct(ft(e))}function Rt(e,t){var n;void 0===t&&(t=[]);var r=Ct(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ge(r),a=o?[i].concat(i.visualViewport||[],Pt(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Rt(ft(a)))}function At(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jt(e,t,n){return t===ze?At(function(e,t){var n=Ge(e),r=pt(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=it();(l||!l&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+_t(e),y:c}}(e,n)):Xe(t)?function(e,t){var n=at(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):At(function(e){var t,n=pt(e),r=$t(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=tt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=tt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+_t(e),c=-r.scrollTop;return"rtl"===lt(o||n).direction&&(s+=tt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(pt(e)))}function Dt(e,t,n,r){var o="clippingParents"===t?function(e){var t=Rt(ft(e)),n=["absolute","fixed"].indexOf(lt(e).position)>=0&&Je(e)?mt(e):e;return Xe(n)?t.filter((function(e){return Xe(e)&&ct(e,n)&&"body"!==Ye(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=jt(e,n,r);return t.top=tt(o.top,t.top),t.right=nt(o.right,t.right),t.bottom=nt(o.bottom,t.bottom),t.left=tt(o.left,t.left),t}),jt(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Mt(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?et(o):null,a=o?xt(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case Ae:t={x:s,y:n.y-r.height};break;case je:t={x:s,y:n.y+n.height};break;case De:t={x:n.x+n.width,y:c};break;case Me:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=i?ht(i):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case Le:t[l]=t[l]-(n[u]/2-r[u]/2);break;case Fe:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function It(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?We:s,l=n.rootBoundary,u=void 0===l?ze:l,p=n.elementContext,f=void 0===p?Be:p,d=n.altBoundary,m=void 0!==d&&d,h=n.padding,y=void 0===h?0:h,g=gt("number"!=typeof y?y:vt(y,Ve)),v=f===Be?Ue:Be,b=e.rects.popper,x=e.elements[m?v:f],E=Dt(Xe(x)?x:x.contextElement||pt(e.elements.popper),c,u,a),w=at(e.elements.reference),O=Mt({reference:w,element:b,strategy:"absolute",placement:o}),T=At(Object.assign({},b,O)),S=f===Be?T:w,k={top:E.top-S.top+g.top,bottom:S.bottom-E.bottom+g.bottom,left:E.left-S.left+g.left,right:S.right-E.right+g.right},N=e.modifiersData.offset;if(f===Be&&N){var $=N[o];Object.keys(k).forEach((function(e){var t=[De,je].indexOf(e)>=0?1:-1,n=[Ae,je].indexOf(e)>=0?"y":"x";k[e]+=$[n]*t}))}return k}function Vt(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?qe:c,u=xt(r),p=u?s?He:He.filter((function(e){return xt(e)===u})):Ve,f=p.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=It(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[et(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var Lt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,y=t.options.placement,g=et(y),v=c||(g===y||!m?[St(y)]:function(e){if(et(e)===Ie)return[];var t=St(e);return[Nt(e),t,Nt(t)]}(y)),b=[y].concat(v).reduce((function(e,n){return e.concat(et(n)===Ie?Vt(t,{placement:n,boundary:u,rootBoundary:p,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,E=t.rects.popper,w=new Map,O=!0,T=b[0],S=0;S<b.length;S++){var k=b[S],N=et(k),$=xt(k)===Le,_=[Ae,je].indexOf(N)>=0,P=_?"width":"height",C=It(t,{placement:k,boundary:u,rootBoundary:p,altBoundary:f,padding:l}),R=_?$?De:Me:$?je:Ae;x[P]>E[P]&&(R=St(R));var A=St(R),j=[];if(i&&j.push(C[N]<=0),s&&j.push(C[R]<=0,C[A]<=0),j.every((function(e){return e}))){T=k,O=!1;break}w.set(k,j)}if(O)for(var D=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},M=m?3:1;M>0;M--){if("break"===D(M))break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ft(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wt(e){return[Ae,De,je,Me].some((function(t){return e[t]>=0}))}var zt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=qe.reduce((function(e,n){return e[n]=function(e,t,n){var r=et(e),o=[Me,Ae].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Me,De].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}};var Bt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,y=It(t,{boundary:c,rootBoundary:l,padding:p,altBoundary:u}),g=et(t.placement),v=xt(t.placement),b=!v,x=ht(g),E="x"===x?"y":"x",w=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(w){if(i){var _,P="y"===x?Ae:Me,C="y"===x?je:De,R="y"===x?"height":"width",A=w[x],j=A+y[P],D=A-y[C],M=d?-T[R]/2:0,I=v===Le?O[R]:T[R],V=v===Le?-T[R]:-O[R],L=t.elements.arrow,F=d&&L?st(L):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=W[P],B=W[C],U=yt(0,O[R],F[R]),H=b?O[R]/2-M-U-z-k.mainAxis:I-U-z-k.mainAxis,q=b?-O[R]/2+M+U+B+k.mainAxis:V+U+B+k.mainAxis,K=t.elements.arrow&&mt(t.elements.arrow),Y=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,G=null!=(_=null==N?void 0:N[x])?_:0,X=A+q-G,J=yt(d?nt(j,A+H-G-Y):j,A,d?tt(D,X):D);w[x]=J,$[x]=J-A}if(s){var Z,Q="x"===x?Ae:Me,ee="x"===x?je:De,te=w[E],ne="y"===E?"height":"width",re=te+y[Q],oe=te-y[ee],ie=-1!==[Ae,Me].indexOf(g),ae=null!=(Z=null==N?void 0:N[E])?Z:0,se=ie?re:te-O[ne]-T[ne]-ae+k.altAxis,ce=ie?te+O[ne]+T[ne]-ae-k.altAxis:oe,le=d&&ie?function(e,t,n){var r=yt(e,t,n);return r>n?n:r}(se,te,ce):yt(d?se:re,te,d?ce:oe);w[E]=le,$[E]=le-te}t.modifiersData[r]=$}},requiresIfExists:["offset"]};function Ut(e,t,n){void 0===n&&(n=!1);var r=Je(t),o=Je(t)&&function(e){var t=e.getBoundingClientRect(),n=rt(t.width)/e.offsetWidth||1,r=rt(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=pt(t),a=at(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ye(t)||Pt(i))&&(s=function(e){return e!==Ge(e)&&Je(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:$t(e);var t}(t)),Je(t)?((c=at(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=_t(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Ht(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var qt={placement:"bottom",modifiers:[],strategy:"absolute"};function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Yt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?qt:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},qt,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Xe(e)?Rt(e):e.contextElement?Rt(e.contextElement):[],popper:Rt(t)};var a,l,f=function(e){var t=Ht(e);return Ke.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),l=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(l).map((function(e){return l[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!l){var e=s.elements,t=e.reference,n=e.popper;if(Kt(t,n)){s.rects={reference:Ut(t,mt(n),"fixed"===s.options.strategy),popper:st(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,p=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:p,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),l=!0}};if(!Kt(e,t))return u;function p(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Gt=Yt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Ge(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,Ot)})),s&&c.addEventListener("resize",n.update,Ot),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,Ot)})),s&&c.removeEventListener("resize",n.update,Ot)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Mt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,l={placement:et(t.placement),variation:xt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,wt(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,wt(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Qe,zt,Lt,Bt,bt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=It(t,{elementContext:"reference"}),s=It(t,{altBoundary:!0}),c=Ft(a,r),l=Ft(s,o,i),u=Wt(c),p=Wt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]});const Xt=e.forwardRef((function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[c,l]=e.useState(null),u=ue(e.isValidElement(r)?r.ref:null,n);if(ae((()=>{s||l(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,s]),ae((()=>{if(c&&!s)return ie(n,c),()=>{ie(n,null)}}),[n,c,s]),s){if(e.isValidElement(r)){const t={ref:u};return e.cloneElement(r,t)}return o(e.Fragment,{children:r})}return o(e.Fragment,{children:c?a.createPortal(r,c):c})}));"production"!==process.env.NODE_ENV&&(Xt.propTypes={children:D.node,container:D.oneOfType([te,D.func]),disablePortal:D.bool}),"production"!==process.env.NODE_ENV&&(Xt.propTypes=function(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}}}(Xt.propTypes));var Jt=Xt;function Zt(e){return Se("MuiPopper",e)}ke("MuiPopper",["root"]);const Qt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],en=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tn(e){return"function"==typeof e?e():e}function nn(e){return void 0!==e.nodeType}const rn=()=>Ee({root:["root"]},function(t){const{disableDefaultClasses:n}=e.useContext(_e);return e=>n?"":t(e)}(Zt)),on={},an=e.forwardRef((function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:u,modifiers:p,open:f,placement:d,popperOptions:m,popperRef:h,slotProps:y={},slots:g={},TransitionProps:v}=t,b=c(t,Qt),x=e.useRef(null),E=ue(x,n),w=e.useRef(null),O=ue(w,h),T=e.useRef(O);ae((()=>{T.current=O}),[O]),e.useImperativeHandle(h,(()=>w.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,s),[k,N]=e.useState(S),[$,_]=e.useState(tn(i));e.useEffect((()=>{w.current&&w.current.forceUpdate()})),e.useEffect((()=>{i&&_(tn(i))}),[i]),ae((()=>{if(!$||!f)return;if("production"!==process.env.NODE_ENV&&$&&nn($)&&1===$.nodeType){const e=$.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{N(e.placement)}}];null!=p&&(e=e.concat(p)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));const t=Gt($,x.current,l({placement:S},m,{modifiers:e}));return T.current(t),()=>{t.destroy(),T.current(null)}}),[$,u,p,f,m,S]);const P={placement:k};null!==v&&(P.TransitionProps=v);const C=rn(),R=null!=(r=g.root)?r:"div",A=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=c(e,Re),a=function(e,t){return"function"==typeof e?e(t):e}(r,o),{props:s,internalRef:u}=Ce(l({},i,{externalSlotProps:a}));return Ne(n,l({},s,{ref:ue(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}({elementType:R,externalSlotProps:y.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:C.root});return o(R,l({},A,{children:"function"==typeof a?a(P):a}))})),sn=e.forwardRef((function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:u=!1,keepMounted:p=!1,modifiers:f,open:d,placement:m="bottom",popperOptions:h=on,popperRef:y,style:g,transition:v=!1,slotProps:b={},slots:x={}}=t,E=c(t,en),[w,O]=e.useState(!0);if(!p&&!d&&(!v||