tm-reuseable-components
Version:
This is a reuseable components lib made for TextMercato
32 lines • 4.9 MB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),c=require("react/jsx-runtime"),t=require("react-dom");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var c=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var h=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,h.get?h:{enumerable:!0,get:function(){return e[t]}})}})),c.default=e,Object.freeze(c)}var l=o(e),a=h(e),n=h(c),s=o(t),r=h(t);function i(e,c){if(null==e)return{};var t,h,o={},l=Object.keys(e);for(h=0;h<l.length;h++)t=l[h],c.indexOf(t)>=0||(o[t]=e[t]);return o}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var c=1;c<arguments.length;c++){var t=arguments[c];for(var h in t)Object.prototype.hasOwnProperty.call(t,h)&&(e[h]=t[h])}return e},v.apply(this,arguments)}function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){if(e.__esModule)return e;var c=e.default;if("function"==typeof c){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(c,t))}return c.apply(this,arguments)};t.prototype=c.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach((function(c){var h=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(t,c,h.get?h:{enumerable:!0,get:function(){return e[c]}})})),t}var p,m={exports:{}},u={};var H,M={};
/**
* @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?m.exports=function(){if(p)return u;p=1;var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),s=Symbol.for("react.server_context"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function H(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:switch(e=e.type){case h:case l:case o:case i:case v:return e;default:switch(e=e&&e.$$typeof){case s:case n:case r:case z:case d:case a:return e;default:return p}}case t:return p}}}return e=Symbol.for("react.module.reference"),u.ContextConsumer=n,u.ContextProvider=a,u.Element=c,u.ForwardRef=r,u.Fragment=h,u.Lazy=z,u.Memo=d,u.Portal=t,u.Profiler=l,u.StrictMode=o,u.Suspense=i,u.SuspenseList=v,u.isAsyncMode=function(){return!1},u.isConcurrentMode=function(){return!1},u.isContextConsumer=function(e){return H(e)===n},u.isContextProvider=function(e){return H(e)===a},u.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},u.isForwardRef=function(e){return H(e)===r},u.isFragment=function(e){return H(e)===h},u.isLazy=function(e){return H(e)===z},u.isMemo=function(e){return H(e)===d},u.isPortal=function(e){return H(e)===t},u.isProfiler=function(e){return H(e)===l},u.isStrictMode=function(e){return H(e)===o},u.isSuspense=function(e){return H(e)===i},u.isSuspenseList=function(e){return H(e)===v},u.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===i||c===v||c===m||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===d||c.$$typeof===a||c.$$typeof===n||c.$$typeof===r||c.$$typeof===e||void 0!==c.getModuleId)},u.typeOf=H,u}():m.exports=(H||(H=1,"production"!==process.env.NODE_ENV&&function(){var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),s=Symbol.for("react.server_context"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:var m=e.type;switch(m){case h:case l:case o:case i:case v:return m;default:var u=m&&m.$$typeof;switch(u){case s:case n:case r:case z:case d:case a:return u;default:return p}}case t:return p}}}e=Symbol.for("react.module.reference");var u=n,H=a,V=c,x=r,j=h,C=z,f=d,L=t,S=l,T=o,g=i,y=v,b=!1,w=!1;M.ContextConsumer=u,M.ContextProvider=H,M.Element=V,M.ForwardRef=x,M.Fragment=j,M.Lazy=C,M.Memo=f,M.Portal=L,M.Profiler=S,M.StrictMode=T,M.Suspense=g,M.SuspenseList=y,M.isAsyncMode=function(e){return b||(b=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},M.isConcurrentMode=function(e){return w||(w=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},M.isContextConsumer=function(e){return m(e)===n},M.isContextProvider=function(e){return m(e)===a},M.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},M.isForwardRef=function(e){return m(e)===r},M.isFragment=function(e){return m(e)===h},M.isLazy=function(e){return m(e)===z},M.isMemo=function(e){return m(e)===d},M.isPortal=function(e){return m(e)===t},M.isProfiler=function(e){return m(e)===l},M.isStrictMode=function(e){return m(e)===o},M.isSuspense=function(e){return m(e)===i},M.isSuspenseList=function(e){return m(e)===v},M.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===i||c===v||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===d||c.$$typeof===a||c.$$typeof===n||c.$$typeof===r||c.$$typeof===e||void 0!==c.getModuleId)},M.typeOf=m}()),M);var V,x=m.exports,j={exports:{}},C={exports:{}},f={};var L,S,T,g,y,b,w,O,R,k,A,P,F,D,E={};
/** @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 B(){return S||(S=1,"production"===process.env.NODE_ENV?C.exports=function(){if(V)return f;V=1;var e="function"==typeof Symbol&&Symbol.for,c=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,h=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,n=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,r=e?Symbol.for("react.concurrent_mode"):60111,i=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,z=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,H=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case c:switch(e=e.type){case s:case r:case h:case l:case o:case v:return e;default:switch(e=e&&e.$$typeof){case n:case i:case p:case z:case a:return e;default:return d}}case t:return d}}}function j(e){return x(e)===r}return f.AsyncMode=s,f.ConcurrentMode=r,f.ContextConsumer=n,f.ContextProvider=a,f.Element=c,f.ForwardRef=i,f.Fragment=h,f.Lazy=p,f.Memo=z,f.Portal=t,f.Profiler=l,f.StrictMode=o,f.Suspense=v,f.isAsyncMode=function(e){return j(e)||x(e)===s},f.isConcurrentMode=j,f.isContextConsumer=function(e){return x(e)===n},f.isContextProvider=function(e){return x(e)===a},f.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},f.isForwardRef=function(e){return x(e)===i},f.isFragment=function(e){return x(e)===h},f.isLazy=function(e){return x(e)===p},f.isMemo=function(e){return x(e)===z},f.isPortal=function(e){return x(e)===t},f.isProfiler=function(e){return x(e)===l},f.isStrictMode=function(e){return x(e)===o},f.isSuspense=function(e){return x(e)===v},f.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===h||e===r||e===l||e===o||e===v||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===z||e.$$typeof===a||e.$$typeof===n||e.$$typeof===i||e.$$typeof===u||e.$$typeof===H||e.$$typeof===M||e.$$typeof===m)},f.typeOf=x,f}():C.exports=(L||(L=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,c=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,h=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,n=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,r=e?Symbol.for("react.concurrent_mode"):60111,i=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,z=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,H=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function V(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case c:var m=e.type;switch(m){case s:case r:case h:case l:case o:case v:return m;default:var u=m&&m.$$typeof;switch(u){case n:case i:case p:case z:case a:return u;default:return d}}case t:return d}}}var x=s,j=r,C=n,f=a,L=c,S=i,T=h,g=p,y=z,b=t,w=l,O=o,R=v,k=!1;function A(e){return V(e)===r}E.AsyncMode=x,E.ConcurrentMode=j,E.ContextConsumer=C,E.ContextProvider=f,E.Element=L,E.ForwardRef=S,E.Fragment=T,E.Lazy=g,E.Memo=y,E.Portal=b,E.Profiler=w,E.StrictMode=O,E.Suspense=R,E.isAsyncMode=function(e){return k||(k=!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)||V(e)===s},E.isConcurrentMode=A,E.isContextConsumer=function(e){return V(e)===n},E.isContextProvider=function(e){return V(e)===a},E.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},E.isForwardRef=function(e){return V(e)===i},E.isFragment=function(e){return V(e)===h},E.isLazy=function(e){return V(e)===p},E.isMemo=function(e){return V(e)===z},E.isPortal=function(e){return V(e)===t},E.isProfiler=function(e){return V(e)===l},E.isStrictMode=function(e){return V(e)===o},E.isSuspense=function(e){return V(e)===v},E.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===h||e===r||e===l||e===o||e===v||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===z||e.$$typeof===a||e.$$typeof===n||e.$$typeof===i||e.$$typeof===u||e.$$typeof===H||e.$$typeof===M||e.$$typeof===m)},E.typeOf=V}()),E)),C.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function N(){if(g)return T;g=1;var e=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return T=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 c={},t=0;t<10;t++)c["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(c).map((function(e){return c[e]})).join(""))return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach((function(e){h[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},h)).join("")}catch(e){return!1}}()?Object.assign:function(h,o){for(var l,a,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(h),s=1;s<arguments.length;s++){for(var r in l=Object(arguments[s]))c.call(l,r)&&(n[r]=l[r]);if(e){a=e(l);for(var i=0;i<a.length;i++)t.call(l,a[i])&&(n[a[i]]=l[a[i]])}}return n},T}function I(){if(b)return y;b=1;return y="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function W(){return O?w:(O=1,w=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var $=B();j.exports=function(){if(P)return A;P=1;var e=B(),c=N(),t=I(),h=W(),o=function(){if(k)return R;k=1;var e=function(){};if("production"!==process.env.NODE_ENV){var c=I(),t={},h=W();e=function(e){var c="Warning: "+e;"undefined"!=typeof console&&console.error(c);try{throw new Error(c)}catch(e){}}}function o(o,l,a,n,s){if("production"!==process.env.NODE_ENV)for(var r in o)if(h(o,r)){var i;try{if("function"!=typeof o[r]){var v=Error((n||"React class")+": "+a+" type `"+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[r]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}i=o[r](l,r,n,a,null,c)}catch(e){i=e}if(!i||i instanceof Error||e((n||"React class")+": type specification of "+a+" `"+r+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in t)){t[i.message]=!0;var d=s?s():"";e("Failed "+a+" type: "+i.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},R=o}(),l=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(l=function(e){var c="Warning: "+e;"undefined"!=typeof console&&console.error(c);try{throw new Error(c)}catch(e){}}),A=function(n,s){var r="function"==typeof Symbol&&Symbol.iterator,i="@@iterator",v="<<anonymous>>",d={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:m(a),arrayOf:function(e){return m((function(c,h,o,l,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var n=c[h];if(!Array.isArray(n))return new p("Invalid "+l+" `"+a+"` of type `"+V(n)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<n.length;s++){var r=e(n,s,o,l,a+"["+s+"]",t);if(r instanceof Error)return r}return null}))},element:m((function(e,c,t,h,o){var l=e[c];return n(l)?null:new p("Invalid "+h+" `"+o+"` of type `"+V(l)+"` supplied to `"+t+"`, expected a single ReactElement.")})),elementType:m((function(c,t,h,o,l){var a=c[t];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+l+"` of type `"+V(a)+"` supplied to `"+h+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(c,t,h,o,l){if(!(c[t]instanceof e)){var a=e.name||v;return new p("Invalid "+o+" `"+l+"` of type `"+((n=c[t]).constructor&&n.constructor.name?n.constructor.name:v)+"` supplied to `"+h+"`, expected instance of `"+a+"`.")}var n;return null}))},node:m((function(e,c,t,h,o){return M(e[c])?null:new p("Invalid "+h+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(c,o,l,a,n){if("function"!=typeof e)return new p("Property `"+n+"` of component `"+l+"` has invalid PropType notation inside objectOf.");var s=c[o],r=V(s);if("object"!==r)return new p("Invalid "+a+" `"+n+"` of type `"+r+"` supplied to `"+l+"`, expected an object.");for(var i in s)if(h(s,i)){var v=e(s,i,l,a,n+"."+i,t);if(v instanceof Error)return v}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(c,t,h,o,l){for(var a=c[t],n=0;n<e.length;n++)if(z(a,e[n]))return null;var s=JSON.stringify(e,(function(e,c){return"symbol"===x(c)?String(c):c}));return new p("Invalid "+o+" `"+l+"` of value `"+String(a)+"` supplied to `"+h+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&l(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&&l("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var c=0;c<e.length;c++){var o=e[c];if("function"!=typeof o)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(o)+" at index "+c+"."),a}return m((function(c,o,l,a,n){for(var s=[],r=0;r<e.length;r++){var i=(0,e[r])(c,o,l,a,n,t);if(null==i)return null;i.data&&h(i.data,"expectedType")&&s.push(i.data.expectedType)}return new p("Invalid "+a+" `"+n+"` supplied to `"+l+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(c,h,o,l,a){var n=c[h],s=V(n);if("object"!==s)return new p("Invalid "+l+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var r in e){var i=e[r];if("function"!=typeof i)return H(o,l,a,r,x(i));var v=i(n,r,o,l,a+"."+r,t);if(v)return v}return null}))},exact:function(e){return m((function(o,l,a,n,s){var r=o[l],i=V(r);if("object"!==i)return new p("Invalid "+n+" `"+s+"` of type `"+i+"` supplied to `"+a+"`, expected `object`.");var v=c({},o[l],e);for(var d in v){var z=e[d];if(h(e,d)&&"function"!=typeof z)return H(a,n,s,d,x(z));if(!z)return new p("Invalid "+n+" `"+s+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[l],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=z(r,d,a,n,s+"."+d,t);if(m)return m}return null}))}};function z(e,c){return e===c?0!==e||1/e==1/c:e!=e&&c!=c}function p(e,c){this.message=e,this.data=c&&"object"==typeof c?c:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var c={},h=0;function o(o,a,n,r,i,d,z){if(r=r||v,d=d||n,z!==t){if(s){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var u=r+":"+n;!c[u]&&h<3&&(l("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+r+"`. 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."),c[u]=!0,h++)}}return null==a[n]?o?null===a[n]?new p("The "+i+" `"+d+"` is marked as required in `"+r+"`, but its value is `null`."):new p("The "+i+" `"+d+"` is marked as required in `"+r+"`, but its value is `undefined`."):null:e(a,n,r,i,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function u(e){return m((function(c,t,h,o,l,a){var n=c[t];return V(n)!==e?new p("Invalid "+o+" `"+l+"` of type `"+x(n)+"` supplied to `"+h+"`, expected `"+e+"`.",{expectedType:e}):null}))}function H(e,c,t,h,o){return new p((e||"React class")+": "+c+" type `"+t+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function M(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(M);if(null===e||n(e))return!0;var c=function(e){var c=e&&(r&&e[r]||e[i]);if("function"==typeof c)return c}(e);if(!c)return!1;var t,h=c.call(e);if(c!==e.entries){for(;!(t=h.next()).done;)if(!M(t.value))return!1}else for(;!(t=h.next()).done;){var o=t.value;if(o&&!M(o[1]))return!1}return!0;default:return!1}}function V(e){var c=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,c){return"symbol"===e||!!c&&("Symbol"===c["@@toStringTag"]||"function"==typeof Symbol&&c instanceof Symbol)}(c,e)?"symbol":c}function x(e){if(null==e)return""+e;var c=V(e);if("object"===c){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return c}function j(e){var c=x(e);switch(c){case"array":case"object":return"an "+c;case"boolean":case"date":case"regexp":return"a "+c;default:return c}}return p.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},A}()($.isElement,!0)}else j.exports=function(){if(D)return F;D=1;var e=I();function c(){}function t(){}return t.resetWarningCache=c,F=function(){function h(c,t,h,o,l,a){if(a!==e){var n=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 n.name="Invariant Violation",n}}function o(){return h}h.isRequired=h;var l={array:h,bigint:h,bool:h,func:h,number:h,object:h,string:h,symbol:h,any:h,arrayOf:o,element:h,elementType:h,instanceOf:o,node:h,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:c};return l.PropTypes=l,l}}()();var U=d(j.exports);function G(e){var c,t,h="";if("string"==typeof e||"number"==typeof e)h+=e;else if("object"==typeof e)if(Array.isArray(e))for(c=0;c<e.length;c++)e[c]&&(t=G(e[c]))&&(h&&(h+=" "),h+=t);else for(c in e)e[c]&&(h&&(h+=" "),h+=c);return h}function _(){for(var e,c,t=0,h="";t<arguments.length;)(e=arguments[t++])&&(c=G(e))&&(h&&(h+=" "),h+=c);return h}function K(e,c){return"production"===process.env.NODE_ENV?()=>null:function(...t){return e(...t)||c(...t)}}function q(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Q(e){if(!q(e))return e;const c={};return Object.keys(e).forEach((t=>{c[t]=Q(e[t])})),c}function Y(e,c,t={clone:!0}){const h=t.clone?{...e}:e;return q(e)&&q(c)&&Object.keys(c).forEach((o=>{"__proto__"!==o&&(q(c[o])&&o in e&&q(e[o])?h[o]=Y(e[o],c[o],t):t.clone?h[o]=q(c[o])?Q(c[o]):c[o]:h[o]=c[o])})),h}function X(e,c,t,h,o){const l=e[c],a=o||c;if(null==l||"undefined"==typeof window)return null;let n;const s=l.type;return"function"!=typeof s||function(e){const{prototype:c={}}=e;return Boolean(c.isReactComponent)}(s)||(n="Did you accidentally use a plain function component for an element instead?"),void 0!==n?new Error(`Invalid ${h} \`${a}\` supplied to \`${t}\`. Expected an element that can hold a ref. ${n} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Z=K(U.element,X);Z.isRequired=K(U.element.isRequired,X);var J=Z;var ee=K(U.elementType,(function(e,c,t,h,o){const l=e[c],a=o||c;if(null==l||"undefined"==typeof window)return null;let n;return"function"!=typeof l||function(e){const{prototype:c={}}=e;return Boolean(c.isReactComponent)}(l)||(n="Did you accidentally provide a plain function component instead?"),void 0!==n?new Error(`Invalid ${h} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${n} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function ce(e){return"production"===process.env.NODE_ENV?e:{...e,"exact-prop: ":c=>{const t=Object.keys(c).filter((c=>!e.hasOwnProperty(c)));return t.length>0?new Error(`The following props are not supported: ${t.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}}}function te(e){let c="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)c+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+c+" for the full message."}var he,oe={exports:{}},le={};var ae,ne={};
/**
* @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?oe.exports=function(){if(he)return le;he=1;var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),s=Symbol.for("react.server_context"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:switch(e=e.type){case h:case l:case o:case i:case v:return e;default:switch(e=e&&e.$$typeof){case s:case n:case r:case z:case d:case a:return e;default:return p}}case t:return p}}}return e=Symbol.for("react.module.reference"),le.ContextConsumer=n,le.ContextProvider=a,le.Element=c,le.ForwardRef=r,le.Fragment=h,le.Lazy=z,le.Memo=d,le.Portal=t,le.Profiler=l,le.StrictMode=o,le.Suspense=i,le.SuspenseList=v,le.isAsyncMode=function(){return!1},le.isConcurrentMode=function(){return!1},le.isContextConsumer=function(e){return m(e)===n},le.isContextProvider=function(e){return m(e)===a},le.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},le.isForwardRef=function(e){return m(e)===r},le.isFragment=function(e){return m(e)===h},le.isLazy=function(e){return m(e)===z},le.isMemo=function(e){return m(e)===d},le.isPortal=function(e){return m(e)===t},le.isProfiler=function(e){return m(e)===l},le.isStrictMode=function(e){return m(e)===o},le.isSuspense=function(e){return m(e)===i},le.isSuspenseList=function(e){return m(e)===v},le.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===i||c===v||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===d||c.$$typeof===a||c.$$typeof===n||c.$$typeof===r||c.$$typeof===e||void 0!==c.getModuleId)},le.typeOf=m,le}():oe.exports=(ae||(ae=1,"production"!==process.env.NODE_ENV&&function(){var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),s=Symbol.for("react.server_context"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:var m=e.type;switch(m){case h:case l:case o:case i:case v:return m;default:var u=m&&m.$$typeof;switch(u){case s:case n:case r:case z:case d:case a:return u;default:return p}}case t:return p}}}e=Symbol.for("react.module.reference");var u=n,H=a,M=c,V=r,x=h,j=z,C=d,f=t,L=l,S=o,T=i,g=v,y=!1,b=!1;ne.ContextConsumer=u,ne.ContextProvider=H,ne.Element=M,ne.ForwardRef=V,ne.Fragment=x,ne.Lazy=j,ne.Memo=C,ne.Portal=f,ne.Profiler=L,ne.StrictMode=S,ne.Suspense=T,ne.SuspenseList=g,ne.isAsyncMode=function(e){return y||(y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},ne.isConcurrentMode=function(e){return b||(b=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},ne.isContextConsumer=function(e){return m(e)===n},ne.isContextProvider=function(e){return m(e)===a},ne.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},ne.isForwardRef=function(e){return m(e)===r},ne.isFragment=function(e){return m(e)===h},ne.isLazy=function(e){return m(e)===z},ne.isMemo=function(e){return m(e)===d},ne.isPortal=function(e){return m(e)===t},ne.isProfiler=function(e){return m(e)===l},ne.isStrictMode=function(e){return m(e)===o},ne.isSuspense=function(e){return m(e)===i},ne.isSuspenseList=function(e){return m(e)===v},ne.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===i||c===v||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===d||c.$$typeof===a||c.$$typeof===n||c.$$typeof===r||c.$$typeof===e||void 0!==c.getModuleId)},ne.typeOf=m}()),ne);var se=oe.exports;const re=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ie(e,c=""){return e.displayName||e.name||function(e){const c=`${e}`.match(re);return c&&c[1]||""}(e)||c}function ve(e,c,t){const h=ie(c);return e.displayName||(""!==h?`${t}(${h})`:t)}function de(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ie(e,"Component");if("object"==typeof e)switch(e.$$typeof){case se.ForwardRef:return ve(e,e.render,"ForwardRef");case se.Memo:return ve(e,e.type,"memo");default:return}}}function ze(e,c,t,h,o){if("production"===process.env.NODE_ENV)return null;const l=e[c],a=o||c;return null==l?null:l&&1!==l.nodeType?new Error(`Invalid ${h} \`${a}\` supplied to \`${t}\`. Expected an HTMLElement.`):null}var pe=U.oneOfType([U.func,U.object]);function me(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":te(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ue(...e){return e.reduce(((e,c)=>null==c?e:function(...t){e.apply(this,t),c.apply(this,t)}),(()=>{}))}function He(e,c=166){let t;function h(...h){clearTimeout(t),t=setTimeout((()=>{e.apply(this,h)}),c)}return h.clear=()=>{clearTimeout(t)},h}function Me(e,c){return"production"===process.env.NODE_ENV?()=>null:(e,t,h,o,l)=>{const a=h||"<<anonymous>>",n=l||t;return void 0!==e[t]?new Error(`The ${o} \`${n}\` of \`${a}\` is deprecated. ${c}`):null}}function Ve(e,c){return l.isValidElement(e)&&-1!==c.indexOf(e.type.muiName)}function xe(e){return e&&e.ownerDocument||document}function je(e){return xe(e).defaultView||window}function Ce(e,c){if("production"===process.env.NODE_ENV)return()=>null;const t=c?{...c.propTypes}:null;return c=>(h,o,l,a,n,...s)=>{const r=n||o,i=null==t?void 0:t[r];if(i){const e=i(h,o,l,a,n,...s);if(e)return e}return void 0===h[o]||h[c]?null:new Error(`The prop \`${r}\` of \`${e}\` can only be used together with the \`${c}\` prop.`)}}function fe(e,c){"function"==typeof e?e(c):e&&(e.current=c)}var Le="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;let Se=0;const Te=l["useId".toString()];function ge(e){if(void 0!==Te){const c=Te();return null!=e?e:c}return function(e){const[c,t]=l.useState(e),h=e||c;return l.useEffect((()=>{null==c&&(Se+=1,t(`mui-${Se}`))}),[c]),h}(e)}function ye(e,c,t,h,o){if("production"===process.env.NODE_ENV)return null;const l=o||c;return void 0!==e[c]?new Error(`The prop \`${l}\` is not supported. Please remove it.`):null}function be({controlled:e,default:c,name:t,state:h="value"}){const{current:o}=l.useRef(void 0!==e),[a,n]=l.useState(c),s=o?e:a;if("production"!==process.env.NODE_ENV){l.useEffect((()=>{o!==(void 0!==e)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${h} state of ${t} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${t} 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"))}),[h,t,e]);const{current:a}=l.useRef(c);l.useEffect((()=>{o||a===c||console.error([`MUI: A component is changing the default ${h} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join("\n"))}),[JSON.stringify(c)])}return[s,l.useCallback((e=>{o||n(e)}),[])]}function we(e){const c=l.useRef(e);return Le((()=>{c.current=e})),l.useCallback(((...e)=>(0,c.current)(...e)),[])}function Oe(...e){return l.useMemo((()=>e.every((e=>null==e))?null:c=>{e.forEach((e=>{fe(e,c)}))}),e)}let Re,ke=!0,Ae=!1;const Pe={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 Fe(e){e.metaKey||e.altKey||e.ctrlKey||(ke=!0)}function De(){ke=!1}function Ee(){"hidden"===this.visibilityState&&Ae&&(ke=!0)}function Be(e){const{target:c}=e;try{return c.matches(":focus-visible")}catch(e){}return ke||function(e){const{type:c,tagName:t}=e;return!("INPUT"!==t||!Pe[c]||e.readOnly)||"TEXTAREA"===t&&!e.readOnly||!!e.isContentEditable}(c)}function Ne(){const e=l.useCallback((e=>{var c;null!=e&&((c=e.ownerDocument).addEventListener("keydown",Fe,!0),c.addEventListener("mousedown",De,!0),c.addEventListener("pointerdown",De,!0),c.addEventListener("touchstart",De,!0),c.addEventListener("visibilitychange",Ee,!0))}),[]),c=l.useRef(!1);return{isFocusVisibleRef:c,onFocus:function(e){return!!Be(e)&&(c.current=!0,!0)},onBlur:function(){return!!c.current&&(Ae=!0,window.clearTimeout(Re),Re=window.setTimeout((()=>{Ae=!1}),100),c.current=!1,!0)},ref:e}}function Ie(e){const c=e.documentElement.clientWidth;return Math.abs(window.innerWidth-c)}let We;function $e(){if(We)return We;const e=document.createElement("div"),c=document.createElement("div");return c.style.width="10px",c.style.height="1px",e.appendChild(c),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),We="reverse",e.scrollLeft>0?We="default":(e.scrollLeft=1,0===e.scrollLeft&&(We="negative")),document.body.removeChild(e),We}function Ue(e,c){const t=e.scrollLeft;if("rtl"!==c)return t;switch($e()){case"negative":return e.scrollWidth-e.clientWidth+t;case"reverse":return e.scrollWidth-e.clientWidth-t;default:return t}}var Ge=e=>{const c=l.useRef({});return l.useEffect((()=>{c.current=e})),c.current};var _e={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const Ke=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function qe(e,c,t,h){const o=e[c];if(null==o||!Ke(o)){const e=function(e){const c=typeof e;switch(c){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 c}}(o);return new RangeError(`Invalid ${h} \`${c}\` of type \`${e}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function Qe(e,c,...t){return void 0===e[c]?null:qe(e,c,...t)}function Ye(){return null}Qe.isRequired=qe,Ye.isRequired=Ye;var Xe="production"===process.env.NODE_ENV?Ye:Qe;function Ze(e,c){const t={...c};return Object.keys(e).forEach((h=>{if(h.toString().match(/^(components|slots)$/))t[h]={...e[h],...t[h]};else if(h.toString().match(/^(componentsProps|slotProps)$/)){const o=e[h]||{},l=c[h];t[h]={},l&&Object.keys(l)?o&&Object.keys(o)?(t[h]={...l},Object.keys(o).forEach((e=>{t[h][e]=Ze(o[e],l[e])}))):t[h]=l:t[h]=o}else void 0===t[h]&&(t[h]=e[h])})),t}function Je(e,c,t=void 0){const h={};return Object.keys(e).forEach((o=>{h[o]=e[o].reduce(((e,h)=>{if(h){const o=c(h);""!==o&&e.push(o),t&&t[h]&&e.push(t[h])}return e}),[]).join(" ")})),h}const ec=e=>e;var cc=(()=>{let e=ec;return{configure(c){e=c},generate:c=>e(c),reset(){e=ec}}})();const tc={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function hc(e,c,t="Mui"){const h=tc[c];return h?`${t}-${h}`:`${cc.generate(e)}-${c}`}function oc(e,c,t="Mui"){const h={};return c.forEach((c=>{h[c]=hc(e,c,t)})),h}function lc(e){return"string"==typeof e}function ac(e,c,t){return void 0===e||lc(e)?c:v({},c,{ownerState:v({},c.ownerState,t)})}const nc={disableDefaultClasses:!1},sc=l.createContext(nc);function rc(e){const{disableDefaultClasses:c}=l.useContext(sc);return t=>c?"":e(t)}function ic(e,c=[]){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>t.match(/^on[A-Z]/)&&"function"==typeof e[t]&&!c.includes(t))).forEach((c=>{t[c]=e[c]})),t}function vc(e,c){return"function"==typeof e?e(c):e}function dc(e){if(void 0===e)return{};const c={};return Object.keys(e).filter((c=>!(c.match(/^on[A-Z]/)&&"function"==typeof e[c]))).forEach((t=>{c[t]=e[t]})),c}const zc=["elementType","externalSlotProps","ownerState"];function pc(e){var c;const{elementType:t,externalSlotProps:h,ownerState:o}=e,l=i(e,zc),a=vc(h,o),{props:n,internalRef:s}=function(e){const{getSlotProps:c,additionalProps:t,externalSlotProps:h,externalForwardedProps:o,className:l}=e;if(!c){const e=_(null==o?void 0:o.className,null==h?void 0:h.className,l,null==t?void 0:t.className),c=v({},null==t?void 0:t.style,null==o?void 0:o.style,null==h?void 0:h.style),a=v({},t,o,h);return e.length>0&&(a.className=e),Object.keys(c).length>0&&(a.style=c),{props:a,internalRef:void 0}}const a=ic(v({},o,h)),n=dc(h),s=dc(o),r=c(a),i=_(null==r?void 0:r.className,null==t?void 0:t.className,l,null==o?void 0:o.className,null==h?void 0:h.className),d=v({},null==r?void 0:r.style,null==t?void 0:t.style,null==o?void 0:o.style,null==h?void 0:h.style),z=v({},r,t,s,n);return i.length>0&&(z.className=i),Object.keys(d).length>0&&(z.style=d),{props:z,internalRef:r.ref}}(v({},l,{externalSlotProps:a}));return ac(t,v({},n,{ref:Oe(s,null==a?void 0:a.ref,null==(c=e.additionalProps)?void 0:c.ref)}),o)}function mc(e){return e.substring(2).toLowerCase()}function uc(e){const{children:t,disableReactTree:h=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:n="onTouchEnd"}=e,s=l.useRef(!1),r=l.useRef(null),i=l.useRef(!1),v=l.useRef(!1);l.useEffect((()=>(setTimeout((()=>{i.current=!0}),0),()=>{i.current=!1})),[]);const d=Oe(t.ref,r),z=we((e=>{const c=v.current;v.current=!1;const t=xe(r.current);if(!i.current||!r.current||"clientX"in e&&function(e,c){return c.documentElement.clientWidth<e.clientX||c.documentElement.clientHeight<e.clientY}(e,t))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(r.current)>-1:!t.documentElement.contains(e.target)||r.current.contains(e.target),o||!h&&c||a(e)})),p=e=>c=>{v.current=!0;const h=t.props[e];h&&h(c)},m={ref:d};return!1!==n&&(m[n]=p(n)),l.useEffect((()=>{if(!1!==n){const e=mc(n),c=xe(r.current),t=()=>{s.current=!0};return c.addEventListener(e,z),c.addEventListener("touchmove",t),()=>{c.removeEventListener(e,z),c.removeEventListener("touchmove",t)}}}),[z,n]),!1!==o&&(m[o]=p(o)),l.useEffect((()=>{if(!1!==o){const e=mc(o),c=xe(r.current);return c.addEventListener(e,z),()=>{c.removeEventListener(e,z)}}}),[z,o]),c.jsx(l.Fragment,{children:l.cloneElement(t,m)})}"production"!==process.env.NODE_ENV&&(uc.propTypes={children:J.isRequired,disableReactTree:U.bool,mouseEvent:U.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:U.func.isRequired,touchEvent:U.oneOf(["onTouchEnd","onTouchStart",!1])}),"production"!==process.env.NODE_ENV&&(uc.propTypes=ce(uc.propTypes));const Hc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Mc(e){const c=[],t=[];return Array.from(e.querySelectorAll(Hc)).forEach(((e,h)=>{const o=function(e){const c=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(c)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:c}(e);-1!==o&&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 c=c=>e.ownerDocument.querySelector(`input[type="radio"]${c}`);let t=c(`[name="${e.name}"]:checked`);return t||(t=c(`[name="${e.name}"]`)),t!==e}(e))}(e)&&(0===o?c.push(e):t.push({documentOrder:h,tabIndex:o,node:e}))})),t.sort(((e,c)=>e.tabIndex===c.tabIndex?e.documentOrder-c.documentOrder:e.tabIndex-c.tabIndex)).map((e=>e.node)).concat(c)}function Vc(){return!0}function xc(e){const{children:t,disableAutoFocus:h=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:n=Mc,isEnabled:s=Vc,open:r}=e,i=l.useRef(!1),v=l.useRef(null),d=l.useRef(null),z=l.useRef(null),p=l.useRef(null),m=l.useRef(!1),u=l.useRef(null),H=Oe(t.ref,u),M=l.useRef(null);l.useEffect((()=>{r&&u.current&&(m.current=!h)}),[h,r]),l.useEffect((()=>{if(!r||!u.current)return;const e=xe(u.current);return u.current.contains(e.activeElement)||(u.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")),u.current.setAttribute("tabIndex","-1")),m.current&&u.current.focus()),()=>{a||(z.current&&z.current.focus&&(i.current=!0,z.current.focus()),z.current=null)}}),[r]),l.useEffect((()=>{if(!r||!u.current)return;const e=xe(u.current),c=c=>{const{current:t}=u;if(null!==t)if(e.hasFocus()&&!o&&s()&&!i.current){if(!t.contains(e.activeElement)){if(c&&p.current!==c.target||e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!m.current)return;let o=[];if(e.activeElement!==v.current&&e.activeElement!==d.current||(o=n(u.current)),o.length>0){var h,l;const e=Boolean((null==(h=M.current)?void 0:h.shiftKey)&&"Tab"===(null==(l=M.current)?void 0:l.key)),c=o[0],t=o[o.length-1];"string"!=typeof c&&"string"!=typeof t&&(e?t.focus():c.focus())}else t.focus()}}else i.current=!1},t=c=>{M.current=c,!o&&s()&&"Tab"===c.key&&e.activeElement===u.current&&c.shiftKey&&(i.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",c),e.addEventListener("keydown",t,!0);const h=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&c(null)}),50);return()=>{clearInterval(h),e.removeEventListener("focusin",c),e.removeEventListener("keydown",t,!0)}}),[h,o,a,s,r,n]);const V=e=>{null===z.current&&(z.current=e.relatedTarget),m.current=!0};return c.jsxs(l.Fragment,{children:[c.jsx("div",{tabIndex:r?0:-1,onFocus:V,ref:v,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:H,onFocus:e=>{null===z.current&&(z.current=e.relatedTarget),m.current=!0,p.current=e.target;const c=t.props.onFocus;c&&c(e)}}),c.jsx("div",{tabIndex:r?0:-1,onFocus:V,ref:d,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(xc.propTypes={children:J,disableAutoFocus:U.bool,disableEnforceFocus:U.bool,disableRestoreFocus:U.bool,getTabbable:U.func,isEnabled:U.func,open:U.bool.isRequired}),"production"!==process.env.NODE_ENV&&(xc.propTypes=ce(xc.propTypes));var jc="top",Cc="bottom",fc="right",Lc="left",Sc="auto",Tc=[jc,Cc,fc,Lc],gc="start",yc="end",bc="clippingParents",wc="viewport",Oc="popper",Rc="reference",kc=Tc.reduce((function(e,c){return e.concat([c+"-"+gc,c+"-"+yc])}),[]),Ac=[].concat(Tc,[Sc]).reduce((function(e,c){return e.concat([c,c+"-"+gc,c+"-"+yc])}),[]),Pc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Fc(e){return e?(e.nodeName||"").toLowerCase():null}function Dc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var c=e.ownerDocument;return c&&c.defaultView||window}return e}function Ec(e){return e instanceof Dc(e).Element||e instanceof Element}function Bc(e){return e instanceof Dc(e).HTMLElement||e instanceof HTMLElement}function Nc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Dc(e).ShadowRoot||e instanceof ShadowRoot)}var Ic={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var c=e.state;Object.keys(c.elements).forEach((function(e){var t=c.styles[e]||{},h=c.attributes[e]||{},o=c.elements[e];Bc(o)&&Fc(o)&&(Object.assign(o.style,t),Object.keys(h).forEach((function(e){var c=h[e];!1===c?o.removeAttribute(e):o.setAttribute(e,!0===c?"":c)})))}))},effect:function(e){var c=e.state,t={popper:{position:c.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(c.elements.popper.style,t.popper),c.styles=t,c.elements.arrow&&Object.assign(c.elements.arrow.style,t.arrow),function(){Object.keys(c.elements).forEach((function(e){var h=c.elements[e],o=c.attributes[e]||{},l=Object.keys(c.styles.hasOwnProperty(e)?c.styles[e]:t[e]).reduce((function(e,c){return e[c]="",e}),{});Bc(h)&&Fc(h)&&(Object.assign(h.style,l),Object.keys(o).forEach((function(e){h.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Wc(e){return e.split("-")[0]}var $c=Math.max,Uc=Math.min,Gc=Math.round;function _c(){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 Kc(){return!/^((?!chrome|android).)*safari/i.test(_c())}function qc(e,c,t){void 0===c&&(c=!1),void 0===t&&(t=!1);var h=e.getBoundingClientRect(),o=1,l=1;c&&Bc(e)&&(o=e.offsetWidth>0&&Gc(h.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Gc(h.height)/e.offsetHeight||1);var a=(Ec(e)?Dc(e):window).visualViewport,n=!Kc()&&t,s=(h.left+(n&&a?a.offsetLeft:0))/o,r=(h.top+(n&&a?a.offsetTop:0))/l,i=h.width/o,v=h.height/l;return{width:i,height:v,top:r,right:s+i,bottom:r+v,left:s,x:s,y:r}}function Qc(e){var c=qc(e),t=e.offsetWidth,h=e.offsetHeight;return Math.abs(c.width-t)<=1&&(t=c.width),Math.abs(c.height-h)<=1&&(h=c.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:h}}function Yc(e,c){var t=c.getRootNode&&c.getRootNode();if(e.contains(c))return!0;if(t&&Nc(t)){var h=c;do{if(h&&e.isSameNode(h))return!0;h=h.parentNode||h.host}while(h)}return!1}function Xc(e){return Dc(e).getComputedStyle(e)}function Zc(e){return["table","td","th"].indexOf(Fc(e))>=0}function Jc(e){return((Ec(e)?e.ownerDocument:e.document)||window.document).documentElement}function et(e){return"html"===Fc(e)?e:e.assignedSlot||e.parentNode||(Nc(e)?e.host:null)||Jc(e)}function ct(e){return Bc(e)&&"fixed"!==Xc(e).position?e.offsetParent:null}function tt(e){for(var c=Dc(e),t=ct(e);t&&Zc(t)&&"static"===Xc(t).position;)t=ct(t);return t&&("html"===Fc(t)||"body"===Fc(t)&&"static"===Xc(t).position)?c:t||function(e){var c=/firefox/i.test(_c());if(/Trident/i.test(_c())&&Bc(e)&&"fixed"===Xc(e).position)return null;var t=et(e);for(Nc(t)&&(t=t.host);Bc(t)&&["html","body"].indexOf(Fc(t))<0;){var h=Xc(t);if("none"!==h.transform||"none"!==h.perspective||"paint"===h.contain||-1!==["transform","perspective"].indexOf(h.willChange)||c&&"filter"===h.willChange||c&&h.filter&&"none"!==h.filter)return t;t=t.parentNode}return null}(e)||c}function ht(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ot(e,c,t){return $c(e,Uc(c,t))}function lt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(e,c){return c.reduce((function(c,t){return c[t]=e,c}),{})}var nt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var c,t=e.state,h=e.name,o=e.options,l=t.elements.arrow,a=t.modifiersData.popperOffsets,n=Wc(t.placement),s=ht(n),r=[Lc,fc].indexOf(n)>=0?"height":"width";if(l&&a){var i=function(e,c){return lt("number"!=typeof(e="function"==typeof e?e(Object.assign({},c.rects,{placement:c.placement})):e)?e:at(e,Tc))}(o.padding,t),v=Qc(l),d="y"===s?jc:Lc,z="y"===s?Cc:fc,p=t.rects.reference[r]+t.rects.reference[s]-a[s]-t.rects.popper[r],m=a[s]-t.rects.reference[s],u=tt(l),H=u?"y"===s?u.clientHeight||0:u.clientWidth||0:0,M=p/2-m/2,V=i[d],x=H-v[r]-i[z],j=H/2-v[r]/2+M,C=ot(V,j,x),f=s;t.modifiersData[h]=((c={})[f]=C,c.centerOffset=C-j,c)}},effect:function(e){var c=e.state,t=e.options.element,h=void 0===t?"[data-popper-arrow]":t;null!=h&&("string"!=typeof h||(h=c.elements.popper.querySelector(h)))&&Yc(c.elements.popper,h)&&(c.elements.arrow=h)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e){return e.split("-")[1]}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(e){var c,t=e.popper,h=e.popperRect,o=e.placement,l=e.variation,a=e.offsets,n=e.position,s=e.gpuAcceleration,r=e.adaptive,i=e.roundOffsets,v=e.isFixed,d=a.x,z=void 0===d?0:d,p=a.y,m=void 0===p?0:p,u="function"==typeof i?i({x:z,y:m}):{x:z,y:m};z=u.x,m=u.y;var H=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),V=Lc,x=jc,j=window;if(r){var C=tt(t),f="clientHeight",L="clientWidth";if(C===Dc(t)&&"static"!==Xc(C=Jc(t)).position&&"absolute"===n&&(f="scrollHeight",L="scrollWidth"),o===jc||(o===Lc||o===fc)&&l===yc)x=Cc,m-=(v&&C===j&&j.visualViewport?j.visualViewport.height:C[f])-h.height,m*=s?1:-1;if(o===Lc||(o===jc||o===Cc)&&l===yc)V=fc,z-=(v&&C===j&&j.visualViewport?j.visualViewport.width:C[L])-h.width,z*=s?1:-1}var S,T=Object.assign({position:n},r&&rt),g=!0===i?function(e,c){var t=e.x,h=e.y,o=c.devicePixelRatio||1;return{x:Gc(t*o)/o||0,y:Gc(h*o)/o||0}}({x:z,y:m},Dc(t)):{x:z,y:m};return z=g.x,m=g.y,s?Object.assign({},T,((S={})[x]=M?"0":"",S[V]=H?"0":"",S.transform=(j.devicePixelRatio||1)<=1?"translate("+z+"px, "+m+"px)":"translate3d("+z+"px, "+m+"px, 0)",S)):Object.assign({},T,((c={})[x]=M?m+"px":"",c[V]=H?z+"px":"",c.transform="",c))}var vt={passive:!0};var dt={left:"right",right:"left",bottom:"top",top:"bottom"};function zt(e){return e.replace(/left|right|bottom|top/g,(function(e){return dt[e]}))}var pt={start:"end",end:"start"};function mt(e){return e.replace(/start|end/g,(function(e){return pt[e]}))}function ut(e){var c=Dc(e);return{scrollLeft:c.pageXOffset,scrollTop:c.pageYOffset}}function Ht(e){return qc(Jc(e)).left+ut(e).scrollLeft}function Mt(e){var c=Xc(e),t=c.overflow,h=c.overflowX,o=c.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+h)}function Vt(e){return["html","body","#document"].indexOf(Fc(e))>=0?e.ownerDocument.body:Bc(e)&&Mt(e)?e:Vt(et(e))}function xt(e,c){var t;void 0===c&&(c=[]);var h=Vt(e),o=h===(null==(t=e.ownerDocument)?void 0:t.body),l=Dc(h),a=o?[l].concat(l.visualViewport||[],Mt(h)?h:[]):h,n=c.concat(a);return o?n:n.concat(xt(et(a)))}function jt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ct(e,c,t){return c===wc?jt(function(e,c){var t=Dc(e),h=Jc(e),o=t.visualViewport,l=h.clientWidth,a=h.clientHeight,n=0,s=0;if(o){l=o.width,a=o.height;var r=Kc();(r||!r&&"fixed"===c)&&(n=o.offsetLeft,s=o.offsetTop)}return{width:l,height:a,x:n+Ht(e),y:s}}(e,t)):Ec(c)?function(e,c){var t=qc(e,!1,"fixed"===c);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(c,t):jt(function(e){var c,t=Jc(e),h=ut(e),o=null=