tm-reuseable-components
Version:
This is a reuseable components lib made for TextMercato
23 lines • 287 kB
JavaScript
import*as e from"react";import t,{forwardRef as n,useContext as o,Children as r,isValidElement as i,cloneElement as a}from"react";import s,{jsxs as l,jsx as c}from"react/jsx-runtime";import*as u from"react-dom";import p from"react-dom";function d(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},f.apply(this,arguments)}function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function h(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}var b,y={exports:{}},g={exports:{}},v={};var x,O,E,w,S,T,C,k,N,$,R,P,I,M,A={};
/** @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 j(){return O||(O=1,"production"===process.env.NODE_ENV?g.exports=function(){if(b)return v;b=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case o:case i:case r:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return d}}case n:return d}}}function E(e){return O(e)===c}return v.AsyncMode=l,v.ConcurrentMode=c,v.ContextConsumer=s,v.ContextProvider=a,v.Element=t,v.ForwardRef=u,v.Fragment=o,v.Lazy=m,v.Memo=f,v.Portal=n,v.Profiler=i,v.StrictMode=r,v.Suspense=p,v.isAsyncMode=function(e){return E(e)||O(e)===l},v.isConcurrentMode=E,v.isContextConsumer=function(e){return O(e)===s},v.isContextProvider=function(e){return O(e)===a},v.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},v.isForwardRef=function(e){return O(e)===u},v.isFragment=function(e){return O(e)===o},v.isLazy=function(e){return O(e)===m},v.isMemo=function(e){return O(e)===f},v.isPortal=function(e){return O(e)===n},v.isProfiler=function(e){return O(e)===i},v.isStrictMode=function(e){return O(e)===r},v.isSuspense=function(e){return O(e)===p},v.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||e.$$typeof===g||e.$$typeof===x||e.$$typeof===h)},v.typeOf=O,v}():g.exports=(x||(x=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var h=e.type;switch(h){case l:case c:case o:case i:case r:case p:return h;default:var b=h&&h.$$typeof;switch(b){case s:case u:case m:case f:case a:return b;default:return d}}case n:return d}}}var x=l,O=c,E=s,w=a,S=t,T=u,C=o,k=m,N=f,$=n,R=i,P=r,I=p,M=!1;function j(e){return v(e)===c}A.AsyncMode=x,A.ConcurrentMode=O,A.ContextConsumer=E,A.ContextProvider=w,A.Element=S,A.ForwardRef=T,A.Fragment=C,A.Lazy=k,A.Memo=N,A.Portal=$,A.Profiler=R,A.StrictMode=P,A.Suspense=I,A.isAsyncMode=function(e){return M||(M=!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.")),j(e)||v(e)===l},A.isConcurrentMode=j,A.isContextConsumer=function(e){return v(e)===s},A.isContextProvider=function(e){return v(e)===a},A.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},A.isForwardRef=function(e){return v(e)===u},A.isFragment=function(e){return v(e)===o},A.isLazy=function(e){return v(e)===m},A.isMemo=function(e){return v(e)===f},A.isPortal=function(e){return v(e)===n},A.isProfiler=function(e){return v(e)===i},A.isStrictMode=function(e){return v(e)===r},A.isSuspense=function(e){return v(e)===p},A.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===r||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||e.$$typeof===y||e.$$typeof===g||e.$$typeof===h)},A.typeOf=v}()),A)),g.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function D(){if(w)return E;w=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return E=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)n.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},E}function _(){if(T)return S;T=1;return S="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function L(){return k?C:(k=1,C=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var F=j();y.exports=function(){if(P)return R;P=1;var e=j(),t=D(),n=_(),o=L(),r=function(){if($)return N;$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=_(),n={},o=L();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(o(r,c)){var u;try{if("function"!=typeof r[c]){var p=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=r[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=l?l():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},N=r}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),R=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",p="<<anonymous>>",d={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:h(a),arrayOf:function(e){return h((function(t,o,r,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[o];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+v(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,o,r){var i=e[t];return s(i)?null:new m("Invalid "+o+" `"+r+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,o,r,i){var a=t[n];return e.isValidElementType(a)?null:new m("Invalid "+r+" `"+i+"` of type `"+v(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,o,r,i){if(!(t[n]instanceof e)){var a=e.name||p;return new m("Invalid "+r+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,o,r){return g(e[t])?null:new m("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,r,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=v(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(o(l,u)){var p=e(l,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,o,r,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new m("Invalid "+r+" `"+i+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+O(r)+" at index "+t+"."),a}return h((function(t,r,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,r,i,a,s,n);if(null==u)return null;u.data&&o(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,o,r,i,a){var s=t[o],l=v(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return y(r,i,a,c,x(u));var p=u(s,c,r,i,a+"."+c,n);if(p)return p}return null}))},exact:function(e){return h((function(r,i,a,s,l){var c=r[i],u=v(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var p=t({},r[i],e);for(var d in p){var f=e[d];if(o(e,d)&&"function"!=typeof f)return y(a,s,l,d,x(f));if(!f)return new m("Invalid "+s+" `"+l+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,d,a,s,l+"."+d,n);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,a,s,c,u,d,f){if(c=c||p,d=d||s,f!==n){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var b=c+":"+s;!t[b]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[b]=!0,o++)}}return null==a[s]?r?null===a[s]?new m("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,d)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function b(e){return h((function(t,n,o,r,i,a){var s=t[n];return v(s)!==e?new m("Invalid "+r+" `"+i+"` of type `"+x(s)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,o,r){return new m((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function g(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(g);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!g(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!g(r[1]))return!1}return!0;default:return!1}}function v(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=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function O(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,d.checkPropTypes=r,d.resetWarningCache=r.resetWarningCache,d.PropTypes=d,d},R}()(F.isElement,!0)}else y.exports=function(){if(M)return I;M=1;var e=_();function t(){}function n(){}return n.resetWarningCache=t,I=function(){function o(t,n,o,r,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var V=m(y.exports);function z(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=z(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function B(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(o&&(o+=" "),o+=t);return o}function W(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function q(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function U(e){if(!q(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=U(e[n])})),t}function H(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return q(e)&&q(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(q(t[r])&&r in e&&q(e[r])?o[r]=H(e[r],t[r],n):n.clone?o[r]=q(t[r])?U(t[r]):t[r]:o[r]=t[r])})),o}function K(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||"undefined"==typeof window)return null;let s;const l=i.type;return"function"!=typeof l||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(l)||(s="Did you accidentally use a plain function component for an element instead?"),void 0!==s?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Y=W(V.element,K);Y.isRequired=W(V.element.isRequired,K);var G=Y;var X=W(V.elementType,(function(e,t,n,o,r){const i=e[t],a=r||t;if(null==i||"undefined"==typeof window)return null;let s;return"function"!=typeof i||function(e){const{prototype:t={}}=e;return Boolean(t.isReactComponent)}(i)||(s="Did you accidentally provide a plain function component instead?"),void 0!==s?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function J(e){return"production"===process.env.NODE_ENV?e:{...e,"exact-prop: ":t=>{const n=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return n.length>0?new Error(`The following props are not supported: ${n.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}}}function Z(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Q,ee={exports:{}},te={};var ne,oe={};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/"production"===process.env.NODE_ENV?ee.exports=function(){if(Q)return te;Q=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case o:case i:case r:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),te.ContextConsumer=s,te.ContextProvider=a,te.Element=t,te.ForwardRef=c,te.Fragment=o,te.Lazy=f,te.Memo=d,te.Portal=n,te.Profiler=i,te.StrictMode=r,te.Suspense=u,te.SuspenseList=p,te.isAsyncMode=function(){return!1},te.isConcurrentMode=function(){return!1},te.isContextConsumer=function(e){return h(e)===s},te.isContextProvider=function(e){return h(e)===a},te.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},te.isForwardRef=function(e){return h(e)===c},te.isFragment=function(e){return h(e)===o},te.isLazy=function(e){return h(e)===f},te.isMemo=function(e){return h(e)===d},te.isPortal=function(e){return h(e)===n},te.isProfiler=function(e){return h(e)===i},te.isStrictMode=function(e){return h(e)===r},te.isSuspense=function(e){return h(e)===u},te.isSuspenseList=function(e){return h(e)===p},te.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},te.typeOf=h,te}():ee.exports=(ne||(ne=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case o:case i:case r:case u:case p:return h;default:var b=h&&h.$$typeof;switch(b){case l:case s:case c:case f:case d:case a:return b;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var b=s,y=a,g=t,v=c,x=o,O=f,E=d,w=n,S=i,T=r,C=u,k=p,N=!1,$=!1;oe.ContextConsumer=b,oe.ContextProvider=y,oe.Element=g,oe.ForwardRef=v,oe.Fragment=x,oe.Lazy=O,oe.Memo=E,oe.Portal=w,oe.Profiler=S,oe.StrictMode=T,oe.Suspense=C,oe.SuspenseList=k,oe.isAsyncMode=function(e){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},oe.isConcurrentMode=function(e){return $||($=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},oe.isContextConsumer=function(e){return h(e)===s},oe.isContextProvider=function(e){return h(e)===a},oe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oe.isForwardRef=function(e){return h(e)===c},oe.isFragment=function(e){return h(e)===o},oe.isLazy=function(e){return h(e)===f},oe.isMemo=function(e){return h(e)===d},oe.isPortal=function(e){return h(e)===n},oe.isProfiler=function(e){return h(e)===i},oe.isStrictMode=function(e){return h(e)===r},oe.isSuspense=function(e){return h(e)===u},oe.isSuspenseList=function(e){return h(e)===p},oe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===u||t===p||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},oe.typeOf=h}()),oe);var re=ee.exports;const ie=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ae(e,t=""){return e.displayName||e.name||function(e){const t=`${e}`.match(ie);return t&&t[1]||""}(e)||t}function se(e,t,n){const o=ae(t);return e.displayName||(""!==o?`${n}(${o})`:n)}function le(e,t,n,o,r){if("production"===process.env.NODE_ENV)return null;const i=e[t],a=r||t;return null==i?null:i&&1!==i.nodeType?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var ce=V.oneOfType([V.func,V.object]);function ue(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Z(7));return e.charAt(0).toUpperCase()+e.slice(1)}function pe(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function de(e,t=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(n)},o}function fe(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)}function me(e){return e&&e.ownerDocument||document}function he(e){return me(e).defaultView||window}function be(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ye="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let ge=0;const ve=e["useId".toString()];function xe(t){if(void 0!==ve){const e=ve();return null!=t?t:e}return function(t){const[n,o]=e.useState(t),r=t||n;return e.useEffect((()=>{null==n&&(ge+=1,o(`mui-${ge}`))}),[n]),r}(t)}function Oe(e,t,n,o,r){if("production"===process.env.NODE_ENV)return null;const i=r||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Ee({controlled:t,default:n,name:o,state:r="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n),l=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[r,o,t]);const{current:a}=e.useRef(n);e.useEffect((()=>{i||a===n||console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join("\n"))}),[JSON.stringify(n)])}return[l,e.useCallback((e=>{i||s(e)}),[])]}function we(t){const n=e.useRef(t);return ye((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function Se(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{be(t,e)}))}),t)}let Te,Ce=!0,ke=!1;const Ne={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 $e(e){e.metaKey||e.altKey||e.ctrlKey||(Ce=!0)}function Re(){Ce=!1}function Pe(){"hidden"===this.visibilityState&&ke&&(Ce=!0)}function Ie(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ce||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ne[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Me(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",$e,!0),t.addEventListener("mousedown",Re,!0),t.addEventListener("pointerdown",Re,!0),t.addEventListener("touchstart",Re,!0),t.addEventListener("visibilitychange",Pe,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Ie(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(ke=!0,window.clearTimeout(Te),Te=window.setTimeout((()=>{ke=!1}),100),n.current=!1,!0)},ref:t}}function Ae(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var je=t=>{const n=e.useRef({});return e.useEffect((()=>{n.current=t})),n.current};const De=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function _e(e,t,n,o){const r=e[t];if(null==r||!De(r)){const e=function(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Le(e,t,...n){return void 0===e[t]?null:_e(e,t,...n)}function Fe(){return null}Le.isRequired=_e,Fe.isRequired=Fe;var Ve="production"===process.env.NODE_ENV?Fe:Le;function ze(e,t){const n={...t};return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]={...e[o],...n[o]};else if(o.toString().match(/^(componentsProps|slotProps)$/)){const r=e[o]||{},i=t[o];n[o]={},i&&Object.keys(i)?r&&Object.keys(r)?(n[o]={...i},Object.keys(r).forEach((e=>{n[o][e]=ze(r[e],i[e])}))):n[o]=i:n[o]=r}else void 0===n[o]&&(n[o]=e[o])})),n}function Be(e,t,n=void 0){const o={};return Object.keys(e).forEach((r=>{o[r]=e[r].reduce(((e,o)=>{if(o){const r=t(o);""!==r&&e.push(r),n&&n[o]&&e.push(n[o])}return e}),[]).join(" ")})),o}const We=e=>e;var qe=(()=>{let e=We;return{configure(t){e=t},generate:t=>e(t),reset(){e=We}}})();const Ue={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function He(e,t,n="Mui"){const o=Ue[t];return o?`${n}-${o}`:`${qe.generate(e)}-${t}`}function Ke(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=He(e,t,n)})),o}function Ye(e){return"string"==typeof e}const Ge={disableDefaultClasses:!1},Xe=e.createContext(Ge);function Je(t){const{disableDefaultClasses:n}=e.useContext(Xe);return e=>n?"":t(e)}function Ze(e,t){return"function"==typeof e?e(t):e}function Qe(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 et(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const e=B(null==r?void 0:r.className,null==o?void 0:o.className,i,null==n?void 0:n.className),t=f({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),a=f({},n,r,o);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(f({},r,o)),s=Qe(o),l=Qe(r),c=t(a),u=B(null==c?void 0:c.className,null==n?void 0:n.className,i,null==r?void 0:r.className,null==o?void 0:o.className),p=f({},null==c?void 0:c.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),d=f({},c,n,l,s);return u.length>0&&(d.className=u),Object.keys(p).length>0&&(d.style=p),{props:d,internalRef:c.ref}}const tt=["elementType","externalSlotProps","ownerState"];function nt(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r}=e,i=d(e,tt),a=Ze(o,r),{props:s,internalRef:l}=et(f({},i,{externalSlotProps:a})),c=function(e,t,n){return void 0===e||Ye(e)?t:f({},t,{ownerState:f({},t.ownerState,n)})}(n,f({},s,{ref:Se(l,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),r);return c}const ot=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rt(e){const t=[],n=[];return Array.from(e.querySelectorAll(ot)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function it(){return!0}function at(t){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=rt,isEnabled:s=it,open:u}=t,p=e.useRef(!1),d=e.useRef(null),f=e.useRef(null),m=e.useRef(null),h=e.useRef(null),b=e.useRef(!1),y=e.useRef(null),g=Se(n.ref,y),v=e.useRef(null);e.useEffect((()=>{u&&y.current&&(b.current=!o)}),[o,u]),e.useEffect((()=>{if(!u||!y.current)return;const e=me(y.current);return y.current.contains(e.activeElement)||(y.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")),y.current.setAttribute("tabIndex","-1")),b.current&&y.current.focus()),()=>{i||(m.current&&m.current.focus&&(p.current=!0,m.current.focus()),m.current=null)}}),[u]),e.useEffect((()=>{if(!u||!y.current)return;const e=me(y.current),t=t=>{const{current:n}=y;if(null!==n)if(e.hasFocus()&&!r&&s()&&!p.current){if(!n.contains(e.activeElement)){if(t&&h.current!==t.target||e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!b.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(r=a(y.current)),r.length>0){var o,i;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else p.current=!1},n=t=>{v.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===y.current&&t.shiftKey&&(p.current=!0,f.current&&f.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[o,r,i,s,u,a]);const x=e=>{null===m.current&&(m.current=e.relatedTarget),b.current=!0};return l(e.Fragment,{children:[c("div",{tabIndex:u?0:-1,onFocus:x,ref:d,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===m.current&&(m.current=e.relatedTarget),b.current=!0,h.current=e.target;const t=n.props.onFocus;t&&t(e)}}),c("div",{tabIndex:u?0:-1,onFocus:x,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(at.propTypes={children:G,disableAutoFocus:V.bool,disableEnforceFocus:V.bool,disableRestoreFocus:V.bool,getTabbable:V.func,isEnabled:V.func,open:V.bool.isRequired}),"production"!==process.env.NODE_ENV&&(at.propTypes=J(at.propTypes));var st="top",lt="bottom",ct="right",ut="left",pt="auto",dt=[st,lt,ct,ut],ft="start",mt="end",ht="clippingParents",bt="viewport",yt="popper",gt="reference",vt=dt.reduce((function(e,t){return e.concat([t+"-"+ft,t+"-"+mt])}),[]),xt=[].concat(dt,[pt]).reduce((function(e,t){return e.concat([t,t+"-"+ft,t+"-"+mt])}),[]),Ot=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Et(e){return e?(e.nodeName||"").toLowerCase():null}function wt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function St(e){return e instanceof wt(e).Element||e instanceof Element}function Tt(e){return e instanceof wt(e).HTMLElement||e instanceof HTMLElement}function Ct(e){return"undefined"!=typeof ShadowRoot&&(e instanceof wt(e).ShadowRoot||e instanceof ShadowRoot)}var kt={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]||{},o=t.attributes[e]||{},r=t.elements[e];Tt(r)&&Et(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.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 o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Tt(o)&&Et(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Nt(e){return e.split("-")[0]}var $t=Math.max,Rt=Math.min,Pt=Math.round;function It(){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 Mt(){return!/^((?!chrome|android).)*safari/i.test(It())}function At(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Tt(e)&&(r=e.offsetWidth>0&&Pt(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Pt(o.height)/e.offsetHeight||1);var a=(St(e)?wt(e):window).visualViewport,s=!Mt()&&n,l=(o.left+(s&&a?a.offsetLeft:0))/r,c=(o.top+(s&&a?a.offsetTop:0))/i,u=o.width/r,p=o.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function jt(e){var t=At(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Dt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ct(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function _t(e){return wt(e).getComputedStyle(e)}function Lt(e){return["table","td","th"].indexOf(Et(e))>=0}function Ft(e){return((St(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vt(e){return"html"===Et(e)?e:e.assignedSlot||e.parentNode||(Ct(e)?e.host:null)||Ft(e)}function zt(e){return Tt(e)&&"fixed"!==_t(e).position?e.offsetParent:null}function Bt(e){for(var t=wt(e),n=zt(e);n&&Lt(n)&&"static"===_t(n).position;)n=zt(n);return n&&("html"===Et(n)||"body"===Et(n)&&"static"===_t(n).position)?t:n||function(e){var t=/firefox/i.test(It());if(/Trident/i.test(It())&&Tt(e)&&"fixed"===_t(e).position)return null;var n=Vt(e);for(Ct(n)&&(n=n.host);Tt(n)&&["html","body"].indexOf(Et(n))<0;){var o=_t(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Wt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qt(e,t,n){return $t(e,Rt(t,n))}function Ut(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ht(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Kt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Nt(n.placement),l=Wt(s),c=[ut,ct].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ut("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ht(e,dt))}(r.padding,n),p=jt(i),d="y"===l?st:ut,f="y"===l?lt:ct,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],b=Bt(i),y=b?"y"===l?b.clientHeight||0:b.clientWidth||0:0,g=m/2-h/2,v=u[d],x=y-p[c]-u[f],O=y/2-p[c]/2+g,E=qt(v,O,x),w=l;n.modifiersData[o]=((t={})[w]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Dt(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yt(e){return e.split("-")[1]}var Gt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xt(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,m=a.y,h=void 0===m?0:m,b="function"==typeof u?u({x:f,y:h}):{x:f,y:h};f=b.x,h=b.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),v=ut,x=st,O=window;if(c){var E=Bt(n),w="clientHeight",S="clientWidth";if(E===wt(n)&&"static"!==_t(E=Ft(n)).position&&"absolute"===s&&(w="scrollHeight",S="scrollWidth"),r===st||(r===ut||r===ct)&&i===mt)x=lt,h-=(p&&E===O&&O.visualViewport?O.visualViewport.height:E[w])-o.height,h*=l?1:-1;if(r===ut||(r===st||r===lt)&&i===mt)v=ct,f-=(p&&E===O&&O.visualViewport?O.visualViewport.width:E[S])-o.width,f*=l?1:-1}var T,C=Object.assign({position:s},c&&Gt),k=!0===u?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Pt(n*r)/r||0,y:Pt(o*r)/r||0}}({x:f,y:h},wt(n)):{x:f,y:h};return f=k.x,h=k.y,l?Object.assign({},C,((T={})[x]=g?"0":"",T[v]=y?"0":"",T.transform=(O.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",T)):Object.assign({},C,((t={})[x]=g?h+"px":"",t[v]=y?f+"px":"",t.transform="",t))}var Jt={passive:!0};var Zt={left:"right",right:"left",bottom:"top",top:"bottom"};function Qt(e){return e.replace(/left|right|bottom|top/g,(function(e){return Zt[e]}))}var en={start:"end",end:"start"};function tn(e){return e.replace(/start|end/g,(function(e){return en[e]}))}function nn(e){var t=wt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function on(e){return At(Ft(e)).left+nn(e).scrollLeft}function rn(e){var t=_t(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function an(e){return["html","body","#document"].indexOf(Et(e))>=0?e.ownerDocument.body:Tt(e)&&rn(e)?e:an(Vt(e))}function sn(e,t){var n;void 0===t&&(t=[]);var o=an(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=wt(o),a=r?[i].concat(i.visualViewport||[],rn(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(sn(Vt(a)))}function ln(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cn(e,t,n){return t===bt?ln(function(e,t){var n=wt(e),o=Ft(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;var c=Mt();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s+on(e),y:l}}(e,n)):St(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):ln(function(e){var t,n=Ft(e),o=nn(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=$t(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=$t(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+on(e),l=-o.scrollTop;return"rtl"===_t(r||n).direction&&(s+=$t(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Ft(e)))}function un(e,t,n,o){var r="clippingParents"===t?function(e){var t=sn(Vt(e)),n=["absolute","fixed"].indexOf(_t(e).position)>=0&&Tt(e)?Bt(e):e;return St(n)?t.filter((function(e){return St(e)&&Dt(e,n)&&"body"!==Et(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],s=i.reduce((function(t,n){var r=cn(e,n,o);return t.top=$t(r.top,t.top),t.right=Rt(r.right,t.right),t.bottom=Rt(r.bottom,t.bottom),t.left=$t(r.left,t.left),t}),cn(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function pn(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?Nt(r):null,a=r?Yt(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(i){case st:t={x:s,y:n.y-o.height};break;case lt:t={x:s,y:n.y+n.height};break;case ct:t={x:n.x+n.width,y:l};break;case ut:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Wt(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ft:t[c]=t[c]-(n[u]/2-o[u]/2);break;case mt:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}function dn(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?ht:s,c=n.rootBoundary,u=void 0===c?bt:c,p=n.elementContext,d=void 0===p?yt:p,f=n.altBoundary,m=void 0!==f&&f,h=n.padding,b=void 0===h?0:h,y=Ut("number"!=typeof b?b:Ht(b,dt)),g=d===yt?gt:yt,v=e.rects.popper,x=e.elements[m?g:d],O=un(St(x)?x:x.contextElement||Ft(e.elements.popper),l,u,a),E=At(e.elements.reference),w=pn({reference:E,element:v,strategy:"absolute",placement:r}),S=ln(Object.assign({},v,w)),T=d===yt?S:E,C={top:O.top-T.top+y.top,bottom:T.bottom-O.bottom+y.bottom,left:O.left-T.left+y.left,right:T.right-O.right+y.right},k=e.modifiersData.offset;if(d===yt&&k){var N=k[r];Object.keys(C).forEach((function(e){var t=[ct,lt].indexOf(e)>=0?1:-1,n=[st,lt].indexOf(e)>=0?"y":"x";C[e]+=N[n]*t}))}return C}function fn(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?xt:l,u=Yt(o),p=u?s?vt:vt.filter((function(e){return Yt(e)===u})):dt,d=p.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=p);var f=d.reduce((function(t,n){return t[n]=dn(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[Nt(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var mn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,b=t.options.placement,y=Nt(b),g=l||(y===b||!m?[Qt(b)]:function(e){if(Nt(e)===pt)return[];var t=Qt(e);return[tn(e),t,tn(t)]}(b)),v=[b].concat(g).reduce((function(e,n){return e.concat(Nt(n)===pt?fn(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,O=t.rects.popper,E=new Map,w=!0,S=v[0],T=0;T<v.length;T++){var C=v[T],k=Nt(C),N=Yt(C)===ft,$=[st,lt].indexOf(k)>=0,R=$?"width":"height",P=dn(t,{placement:C,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),I=$?N?ct:ut:N?lt:st;x[R]>O[R]&&(I=Qt(I));var M=Qt(I),A=[];if(i&&A.push(P[k]<=0),s&&A.push(P[I]<=0,P[M]<=0),A.every((function(e){return e}))){S=C,w=!1;break}E.set(C,A)}if(w)for(var j=function(e){var t=v.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},D=m?3:1;D>0;D--){if("break"===j(D))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function hn(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 bn(e){return[st,ct,lt,ut].some((function(t){return e[t]>=0}))}var yn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=xt.reduce((function(e,n){return e[n]=function(e,t,n){var o=Nt(e),r=[ut,st].indexOf(o)>=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)*r,[ut,ct].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var gn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,d=n.tether,f=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,b=dn(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),y=Nt(t.placement),g=Yt(t.placement),v=!g,x=Wt(y),O="x"===x?"y":"x",E=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,T="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,C="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(i){var $,R="y"===x?st:ut,P="y"===x?lt:ct,I="y"===x?"height":"width",M=E[x],A=M+b[R],j=M-b[P],D=f?-S[I]/2:0,_=g===ft?w[I]:S[I],L=g===ft?-S[I]:-w[I],F=t.elements.arrow,V=f&&F?jt(F):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=z[R],W=z[P],q=qt(0,w[I],V[I]),U=v?w[I]/2-D-q-B-C.mainAxis:_-q-B-C.mainAxis,H=v?-w[I]/2+D+q+W+C.mainAxis:L+q+W+C.mainAxis,K=t.elements.arrow&&Bt(t.elements.arrow),Y=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,G=null!=($=null==k?void 0:k[x])?$:0,X=M+H-G,J=qt(f?Rt(A,M+U-G-Y):A,M,f?$t(j,X):j);E[x]=J,N[x]=J-M}if(s){var Z,Q="x"===x?st:ut,ee="x"===x?lt:ct,te=E[O],ne="y"===O?"height":"width",oe=te+b[Q],re=te-b[ee],ie=-1!==[st,ut].indexOf(y),ae=null!=(Z=null==k?void 0:k[O])?Z:0,se=ie?oe:te-w[ne]-S[ne]-ae+C.altAxis,le=ie?te+w[ne]+S[ne]-ae-C.altAxis:re,ce=f&&ie?function(e,t,n){var o=qt(e,t,n);return o>n?n:o}(se,te,le):qt(f?se:oe,te,f?le:re);E[O]=ce,N[O]=ce-te}t.modifiersData[o]=N}},requiresIfExists:["offset"]};function vn(e,t,n){void 0===n&&(n=!1);var o=Tt(t),r=Tt(t)&&function(e){var t=e.getBoundingClientRect(),n=Pt(t.width)/e.offsetWidth||1,o=Pt(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=Ft(t),a=At(e,r,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==Et(t)||rn(i))&&(s=function(e){return e!==wt(e)&&Tt(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:nn(e);var t}(t)),Tt(t)?((l=At(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=on(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function xn(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var On={placement:"bottom",modifiers:[],strategy:"absolute"};function En(){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 wn(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?On:r;return function(e,t,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},On,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={st