@nuskin/react-loyalty-elements 1.0.6-dynamicReactErrorFix.1 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,t,n){t=c(t);return h(e,O()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function l(e,t,n){if(t)a(e.prototype,t);if(n)a(e,n);return e}function u(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function c(e){c=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return c(e)}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)g(e,t)}function p(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var o=true;var i=false;var a,l;try{for(n=n.call(e);!(o=(a=n.next()).done);o=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){i=true;l=e}finally{try{if(!o&&n["return"]!=null)n["return"]()}finally{if(i)throw l}}return r}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){if(t&&(w(t)==="object"||typeof t==="function")){return t}return r(e)}function g(e,t){g=Object.setPrototypeOf||function e(e,t){e.__proto__=t;return e};return g(e,t)}function y(e,n){return t(e)||f(e,n)||C(e,n)||m()}function b(e,t){if(!t){t=e.slice(0)}return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e){return n(e)||d(e)||C(e)||v()}function w(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function C(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function E(){var e=b(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n"]);E=function t(){return e};return e}function T(){var e=b(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n"]);T=function t(){return e};return e}function k(){var e=b(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n"]);k=function t(){return e};return e}function R(){var e=b(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n"]);R=function t(){return e};return e}function M(){var e=b(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n"]);M=function t(){return e};return e}function S(){var e=b(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n"]);S=function t(){return e};return e}function A(){var e=b(["\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n"]);A=function t(){return e};return e}function j(){var e=b(["\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n"]);j=function t(){return e};return e}function P(){var e=b(["\n position: absolute;\n height: 100%;\n"]);P=function t(){return e};return e}function L(){var e=b(["\n background: #fff;\n width: 6px;\n height: 17%;\n"]);L=function t(){return e};return e}function _(){var e=b(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"]);_=function t(){return e};return e}function B(){var e=b(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]);B=function t(){return e};return e}function N(){var e=b(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"]);N=function t(){return e};return e}function F(){var e=b(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]);F=function t(){return e};return e}import{a as D,b as I,c as V,d as W,e as z}from"../chunk-XPGXQBAL.mjs";import{useState as H}from"react";import K from"react";import{CircularProgressbarWithChildren as U,buildStyles as X}from"react-circular-progressbar";var Y=W.div(E()),Z=W.div(T()),G=W.div(k()),Q=W.div(R()),q=W.div(M()),$=W.div(S()),J=W.div(A()),ee=W.span(j()),et=W.div(P()),en=W.div(L());import{jsx as er}from"react/jsx-runtime";function eo(e){return er(et,{style:{transform:"rotate(".concat(e.turns,"turn)")},children:er(en,{})})}function ei(e){var t=1/e.count;return Array(e.count).fill(null).map(function(e,n){return er(eo,{turns:n*t+.5},n)})}var ea=ei;import{FaExclamationTriangle as el}from"react-icons/fa";import{jsx as eu,jsxs as ec}from"react/jsx-runtime";function es(){return ec("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[eu("path",{d:"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z",fill:"#405E50"}),eu("path",{d:"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z",fill:"#405E50"}),eu("path",{d:"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z",fill:"#405E50"}),eu("path",{d:"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z",fill:"#405E50"}),eu("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#405E50"}),eu("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#405E50"})]})}var ep=es;import{jsx as ed,jsxs as ef}from"react/jsx-runtime";function em(){return ef("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ed("path",{d:"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z",fill:"#B0B0B0"}),ed("path",{d:"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z",fill:"#B0B0B0"}),ed("path",{d:"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z",fill:"#B0B0B0"}),ed("path",{d:"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z",fill:"#B0B0B0"}),ed("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#B0B0B0"}),ed("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#B0B0B0"})]})}var ev=em;import eh from"react";var eg=function(e,t){return Object.keys(t).reduce(function(e,n){var r;var o=(r=t[n])!==null&&r!==void 0?r:"";return e.replace(new RegExp("%".concat(n,"%"),"g"),String(o))},e)};import{jsx as ey,jsxs as eb}from"react/jsx-runtime";var ex=/*#__PURE__*/function(e){"use strict";s(t,e);function t(e){i(this,t);return o(this,t,[e])}l(t,[{key:"render",value:function e(){var e=this.props,t=e.value,n=e.voucherValue,r=e.maxMonths,o=e.handleOpenSubscriptionRewardPopup,i=e.notQualifyForRewardThisMonth,a=e.translationConfig,l=a===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:""}:a,u=e.learnMoreConfig,c=u===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:u,s=e.currencyAbbreviate,p=s===void 0?!1:s,d=e.currencyFormat,f=d===void 0?function(){}:d,m="";n===50&&!i?m=l.learn3xMore:n===150||i?m=c.learnMore:n==null&&(m=l.learnMore);var v=eg(l.monthsComplete,{completed_months:t,total_months:r}),h=f(n||0,!0,p),g=l.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(h));return eb(G,{children:[ey("img",{className:"reward-logo",src:l.loyaltyLogoBlack,alt:"Rewards Logo"}),t===r?ey("div",{className:"info-item",children:g}):ey("div",{className:"info-item",children:v}),ey(Q,{id:"learnMore",onClick:o,children:ey("u",{children:m})})]})}}]);return t}(eh.Component),ew=ex;import{NsTypography as eC}from"@nuskin/foundation-ui-components";import{jsx as eO,jsxs as eE}from"react/jsx-runtime";var eT=/*#__PURE__*/function(e){"use strict";s(t,e);function t(e){i(this,t);return o(this,t,[e])}l(t,[{key:"render",value:function e(){var e=this.props,t=e.value,n=t===void 0?0:t,r=e.voucherValue,o=r===void 0?0:r,i=e.maxMonths,a=i===void 0?0:i,l=e.handleOpenSubscriptionRewardPopup,u=l===void 0?function(){}:l,c=e.notQualifyForRewardThisMonth,s=c===void 0?!1:c,p=e.translationConfig,d=p===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:""}:p,f=e.learnMoreConfig,m=f===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:f,v=e.currencyAbbreviate,h=v===void 0?!1:v,g=e.currencyFormat,y=g===void 0?function(){}:g,b=eg(d.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),x=y(o||0,!0,h);return eE(Z,{children:[eO("div",{className:"reward-progress",children:eE(U,{value:n/a*100,strokeWidth:12,background:!0,styles:X({rotation:.5,strokeLinecap:"butt",backgroundColor:n===a&&!s?"rgb(195 240 194)":"#fff",pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[eO(ea,{count:a}),n===a&&!s?eO(ep,{}):s?eO(ee,{children:eO(el,{className:"outline-exclamation-icon",color:"#91ACC8"})}):o!=null||o!=null?eE(q,{children:[eO(eC,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(x)}),eO(eC,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:b})]}):eO(q,{children:eO(ev,{})})]})}),eO(ew,{value:n,voucherValue:o,notQualifyForRewardThisMonth:s,handleOpenSubscriptionRewardPopup:u,maxMonths:a,translationConfig:d,learnMoreConfig:m,currencyAbbreviate:h,currencyFormat:y})]})}}]);return t}(K.Component),ek=eT;import eR from"react";import{FaExclamationTriangle as eM}from"react-icons/fa";import{NsTypography as eS}from"@nuskin/foundation-ui-components";import{jsx as eA,jsxs as ej}from"react/jsx-runtime";function eP(){return ej("svg",{width:"19",height:"19",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[eA("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.833344 9.99967C0.833344 4.93706 4.9374 0.833008 10 0.833008C15.0626 0.833008 19.1667 4.93706 19.1667 9.99967C19.1667 15.0623 15.0626 19.1663 10 19.1663C4.9374 19.1663 0.833344 15.0623 0.833344 9.99967ZM10 2.49967C5.85787 2.49967 2.50001 5.85754 2.50001 9.99967C2.50001 14.1418 5.85787 17.4997 10 17.4997C14.1421 17.4997 17.5 14.1418 17.5 9.99967C17.5 5.85754 14.1421 2.49967 10 2.49967Z",fill:"#4A6987"}),eA("line",{x1:"10.1667",y1:"9.375",x2:"10.1667",y2:"14.7917",stroke:"#4A6987",strokeWidth:"2"}),eA("path",{d:"M10.0052 7.75009C10.6338 7.75009 11.1718 7.22807 11.1771 6.57821C11.1718 5.93901 10.6338 5.41699 10.0052 5.41699C9.35537 5.41699 8.82803 5.93901 8.83335 6.57821C8.82803 7.22807 9.35537 7.75009 10.0052 7.75009Z",fill:"#4A6987"})]})}var eL=eP;var e_={black:"#000",white:"#fff"},eB=e_;var eN={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eF=eN;var eD={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},eI=eD;var eV={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},eW=eV;var ez={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},eH=ez;var eK={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},eU=eK;var eX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eY=eX;var eZ={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eG=eZ;function eQ(e){return e!==null&&(typeof e==="undefined"?"undefined":w(e))=="object"&&e.constructor===Object}function eq(e){if(!eQ(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=eq(e[n])}),t}function e$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?D({},e):e;return eQ(e)&&eQ(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(eQ(t[o])&&o in e&&eQ(e[o])?r[o]=e$(e[o],t[o],n):n.clone?r[o]=eQ(t[o])?eq(t[o]):t[o]:r[o]=t[o])}),r}function eJ(e){var t="https://mui.com/production-error/?code="+e;for(var n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function e0(e){if(typeof e!="string")throw new Error(eJ(7));return e.charAt(0).toUpperCase()+e.slice(1)}function e1(e){return e&&e.ownerDocument||document}function e2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as e5 from"react";var e3=(typeof window==="undefined"?"undefined":w(window))<"u"?e5.useLayoutEffect:e5.useEffect,e4=e3;import*as e6 from"react";var e7=0;function e8(e){var t=y(e6.useState(e),2),n=t[0],r=t[1],o=e||n;return e6.useEffect(function(){n==null&&(e7+=1,r("mui-".concat(e7)))},[n]),o}var e9=e6.useId;function te(e){if(e9!==void 0){var t=e9();return e!==null&&e!==void 0?e:t}return e8(e)}import*as tt from"react";function tn(e){var t=e.controlled,n=e.default,r=e.name,o=e.state,i=o===void 0?"value":o;var a=tt.useRef(t!==void 0),l=a.current,u=y(tt.useState(n),2),c=u[0],s=u[1],p=l?t:c,d=tt.useCallback(function(e){l||s(e)},[]);return[p,d]}import*as tr from"react";function to(e){var t=this;var n=tr.useRef(e);return e4(function(){n.current=e}),tr.useRef(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++){r[o]=arguments[o]}return(0,n.current).apply(t,x(r))}).current}var ti=to;import*as ta from"react";function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return ta.useMemo(function(){return t.every(function(e){return e==null})?null:function(e){t.forEach(function(t){e2(t,e)})}},t)}import*as tu from"react";var tc=!0,ts=!1,tp,td={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 tf(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&td[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tm(e){e.metaKey||e.altKey||e.ctrlKey||(tc=!0)}function tv(){tc=!1}function th(){this.visibilityState==="hidden"&&ts&&(tc=!0)}function tg(e){e.addEventListener("keydown",tm,!0),e.addEventListener("mousedown",tv,!0),e.addEventListener("pointerdown",tv,!0),e.addEventListener("touchstart",tv,!0),e.addEventListener("visibilitychange",th,!0)}function ty(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return tc||tf(t)}function tb(){var e=tu.useCallback(function(e){e!=null&&tg(e.ownerDocument)},[]),t=tu.useRef(!1);function n(){return t.current?(ts=!0,window.clearTimeout(tp),tp=window.setTimeout(function(){ts=!1},100),t.current=!1,!0):!1}function r(e){return ty(e)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r={};return Object.keys(e).forEach(function(o){r[o]=e[o].reduce(function(e,r){if(r){var o=t(r);o!==""&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}var tw=function(e){return e},tC=function(){var e=tw;return{configure:function t(t){e=t},generate:function t(t){return e(t)},reset:function t(){e=tw}}},tO=tC(),tE=tO;var tT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Mui";var r=tT[t];return r?"".concat(n,"-").concat(r):"".concat(tE.generate(e),"-").concat(t)}function tR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Mui";var r={};return t.forEach(function(t){r[t]=tk(e,t,n)}),r}var tM="$$material";function tS(e,t){if(e==null)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tA(e){var t="https://mui.com/production-error/?code="+e;for(var n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function tj(e,t){return W(e,t)}var tP=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};import*as tL from"react";function t_(e){if((typeof e==="undefined"?"undefined":w(e))!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tB(e){if(tL.isValidElement(e)||!t_(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=tB(e[n])}),t}function tN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?D({},e):e;return t_(e)&&t_(t)&&Object.keys(t).forEach(function(o){tL.isValidElement(t[o])?r[o]=t[o]:t_(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&t_(e[o])?r[o]=tN(e[o],t[o],n):n.clone?r[o]=t_(t[o])?tB(t[o]):t[o]:r[o]=t[o]}),r}var tF=["values","unit","step"];var tD=function(e){var t=Object.keys(e).map(function(t){return{key:t,val:e[t]}})||[];return t.sort(function(e,t){return e.val-t.val}),t.reduce(function(e,t){return D({},e,u({},t.key,t.val))},{})};function tI(e){var t=e.values,n=t===void 0?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,o=r===void 0?"px":r,i=e.step,a=i===void 0?5:i,l=tS(e,tF),u=tD(n),c=Object.keys(u);function s(e){return"@media (min-width:".concat(typeof n[e]=="number"?n[e]:e).concat(o,")")}function p(e){return"@media (max-width:".concat((typeof n[e]=="number"?n[e]:e)-a/100).concat(o,")")}function d(e,t){var r=c.indexOf(t);return"@media (min-width:".concat(typeof n[e]=="number"?n[e]:e).concat(o,") and (max-width:").concat((r!==-1&&typeof n[c[r]]=="number"?n[c[r]]:t)-a/100).concat(o,")")}function f(e){return c.indexOf(e)+1<c.length?d(e,c[c.indexOf(e)+1]):s(e)}function m(e){var t=c.indexOf(e);return t===0?s(c[1]):t===c.length-1?p(c[t]):d(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")}return D({keys:c,values:u,up:s,down:p,between:d,only:f,not:m,unit:o},l)}var tV={borderRadius:4},tW=tV;function tz(e,t){return t?tN(e,t,{clone:!1}):e}var tH=tz;var tK={xs:0,sm:600,md:900,lg:1200,xl:1536},tU={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(tK[e],"px)")}};function tX(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||tU;return t.reduce(function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e},{})}if((typeof t==="undefined"?"undefined":w(t))=="object"){var i=r.breakpoints||tU;return Object.keys(t).reduce(function(e,r){if(Object.keys(i.values||tK).indexOf(r)!==-1){var o=i.up(r);e[o]=n(t[r],r)}else{var a=r;e[a]=t[a]}return e},{})}return n(t)}function tY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t;return((t=e.keys)==null?void 0:t.reduce(function(t,n){var r=e.up(n);return t[r]={},t},{}))||{}}function tZ(e,t){return e.reduce(function(e,t){var n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function tG(e){if(typeof e!="string")throw new Error(tA(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||typeof t!="string")return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e);if(r!=null)return r}return t.split(".").reduce(function(e,t){return e&&e[t]!=null?e[t]:null},e)}function tq(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;var o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=tQ(e,n)||r,t&&(o=t(o,r,e)),o}function t$(e){var t=e.prop,n=e.cssProperty,r=n===void 0?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(e[t]==null)return null;var n=e[t],a=e.theme,l=tQ(a,o)||{};return tX(e,n,function(e){var n=tq(l,i,e);return e===n&&typeof e=="string"&&(n=tq(l,i,"".concat(t).concat(e==="default"?"":tG(e)),e)),r===!1?n:u({},r,n)})};return a.propTypes={},a.filterProps=[t],a}var tJ=t$;function t0(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var t1={m:"margin",p:"padding"},t2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},t5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},t3=t0(function(e){if(e.length>2)if(t5[e])e=t5[e];else return[e];var t=y(e.split(""),2),n=t[0],r=t[1],o=t1[n],i=t2[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),t4=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],t6=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],t7=x(t4).concat(x(t6));function t8(e,t,n,r){var o;var i=(o=tQ(e,t,!1))!=null?o:n;return typeof i=="number"?function(e){return typeof e=="string"?e:i*e}:Array.isArray(i)?function(e){return typeof e=="string"?e:i[e]}:typeof i=="function"?i:function(){}}function t9(e){return t8(e,"spacing",8,"spacing")}function ne(e,t){if(typeof t=="string"||t==null)return t;var n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:"-".concat(r)}function nt(e,t){return function(n){return e.reduce(function(e,r){return e[r]=ne(t,n),e},{})}}function nn(e,t,n,r){if(t.indexOf(n)===-1)return null;var o=t3(n),i=nt(o,r),a=e[n];return tX(e,a,i)}function nr(e,t){var n=t9(e.theme);return Object.keys(e).map(function(r){return nn(e,t,r,n)}).reduce(tH,{})}function no(e){return nr(e,t4)}no.propTypes={};no.filterProps=t4;function ni(e){return nr(e,t6)}ni.propTypes={};ni.filterProps=t6;function na(e){return nr(e,t7)}na.propTypes={};na.filterProps=t7;function nl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=t9({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return(n.length===0?[1]:n).map(function(e){var n=t(e);return typeof n=="number"?"".concat(n,"px"):n}).join(" ")};return n.mui=!0,n}function nu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r=t.reduce(function(e,t){return t.filterProps.forEach(function(n){e[n]=t}),e},{}),o=function(e){return Object.keys(e).reduce(function(t,n){return r[n]?tH(t,r[n](e)):t},{})};return o.propTypes={},o.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),o}var nc=nu;function ns(e){return typeof e!="number"?e:"".concat(e,"px solid")}function np(e,t){return tJ({prop:e,themeKey:"borders",transform:t})}var nd=np("border",ns),nf=np("borderTop",ns),nm=np("borderRight",ns),nv=np("borderBottom",ns),nh=np("borderLeft",ns),ng=np("borderColor"),ny=np("borderTopColor"),nb=np("borderRightColor"),nx=np("borderBottomColor"),nw=np("borderLeftColor"),nC=np("outline",ns),nO=np("outlineColor"),nE=function(e){if(e.borderRadius!==void 0&&e.borderRadius!==null){var t=t8(e.theme,"shape.borderRadius",4,"borderRadius"),n=function(e){return{borderRadius:ne(t,e)}};return tX(e,e.borderRadius,n)}return null};nE.propTypes={};nE.filterProps=["borderRadius"];var nT=nc(nd,nf,nm,nv,nh,ng,ny,nb,nx,nw,nE,nC,nO);var nk=function(e){if(e.gap!==void 0&&e.gap!==null){var t=t8(e.theme,"spacing",8,"gap"),n=function(e){return{gap:ne(t,e)}};return tX(e,e.gap,n)}return null};nk.propTypes={};nk.filterProps=["gap"];var nR=function(e){if(e.columnGap!==void 0&&e.columnGap!==null){var t=t8(e.theme,"spacing",8,"columnGap"),n=function(e){return{columnGap:ne(t,e)}};return tX(e,e.columnGap,n)}return null};nR.propTypes={};nR.filterProps=["columnGap"];var nM=function(e){if(e.rowGap!==void 0&&e.rowGap!==null){var t=t8(e.theme,"spacing",8,"rowGap"),n=function(e){return{rowGap:ne(t,e)}};return tX(e,e.rowGap,n)}return null};nM.propTypes={};nM.filterProps=["rowGap"];var nS=tJ({prop:"gridColumn"}),nA=tJ({prop:"gridRow"}),nj=tJ({prop:"gridAutoFlow"}),nP=tJ({prop:"gridAutoColumns"}),nL=tJ({prop:"gridAutoRows"}),n_=tJ({prop:"gridTemplateColumns"}),nB=tJ({prop:"gridTemplateRows"}),nN=tJ({prop:"gridTemplateAreas"}),nF=tJ({prop:"gridArea"}),nD=nc(nk,nR,nM,nS,nA,nj,nP,nL,n_,nB,nN,nF);function nI(e,t){return t==="grey"?t:e}var nV=tJ({prop:"color",themeKey:"palette",transform:nI}),nW=tJ({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nI}),nz=tJ({prop:"backgroundColor",themeKey:"palette",transform:nI}),nH=nc(nV,nW,nz);function nK(e){return e<=1&&e!==0?"".concat(e*100,"%"):e}var nU=tJ({prop:"width",transform:nK}),nX=function(e){if(e.maxWidth!==void 0&&e.maxWidth!==null){var t=function(t){var n,r;var o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||tK[t];return o?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:nK(t)}};return tX(e,e.maxWidth,t)}return null};nX.filterProps=["maxWidth"];var nY=tJ({prop:"minWidth",transform:nK}),nZ=tJ({prop:"height",transform:nK}),nG=tJ({prop:"maxHeight",transform:nK}),nQ=tJ({prop:"minHeight",transform:nK}),nq=tJ({prop:"size",cssProperty:"width",transform:nK}),n$=tJ({prop:"size",cssProperty:"height",transform:nK}),nJ=tJ({prop:"boxSizing"}),n0=nc(nU,nX,nY,nZ,nG,nQ,nJ);var n1={border:{themeKey:"borders",transform:ns},borderTop:{themeKey:"borders",transform:ns},borderRight:{themeKey:"borders",transform:ns},borderBottom:{themeKey:"borders",transform:ns},borderLeft:{themeKey:"borders",transform:ns},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ns},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nE},color:{themeKey:"palette",transform:nI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nI},backgroundColor:{themeKey:"palette",transform:nI},p:{style:ni},pt:{style:ni},pr:{style:ni},pb:{style:ni},pl:{style:ni},px:{style:ni},py:{style:ni},padding:{style:ni},paddingTop:{style:ni},paddingRight:{style:ni},paddingBottom:{style:ni},paddingLeft:{style:ni},paddingX:{style:ni},paddingY:{style:ni},paddingInline:{style:ni},paddingInlineStart:{style:ni},paddingInlineEnd:{style:ni},paddingBlock:{style:ni},paddingBlockStart:{style:ni},paddingBlockEnd:{style:ni},m:{style:no},mt:{style:no},mr:{style:no},mb:{style:no},ml:{style:no},mx:{style:no},my:{style:no},margin:{style:no},marginTop:{style:no},marginRight:{style:no},marginBottom:{style:no},marginLeft:{style:no},marginX:{style:no},marginY:{style:no},marginInline:{style:no},marginInlineStart:{style:no},marginInlineEnd:{style:no},marginBlock:{style:no},marginBlockStart:{style:no},marginBlockEnd:{style:no},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nk},rowGap:{style:nM},columnGap:{style:nR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nK},maxWidth:{style:nX},minWidth:{transform:nK},height:{transform:nK},maxHeight:{transform:nK},minHeight:{transform:nK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n2=n1;function n5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r=t.reduce(function(e,t){return e.concat(Object.keys(t))},[]),o=new Set(r);return t.every(function(e){return o.size===Object.keys(e).length})}function n3(e,t){return typeof e=="function"?e(t):e}function n4(){function e(e,t,n,r){var o;var i=(o={},u(o,e,t),u(o,"theme",n),o),a=r[e];if(!a)return u({},e,t);var l=a.cssProperty,c=l===void 0?e:l,s=a.themeKey,p=a.transform,d=a.style;if(t==null)return null;if(s==="typography"&&t==="inherit")return u({},e,t);var f=tQ(n,s)||{};return d?d(i):tX(i,t,function(t){var n=tq(f,p,t);return t===n&&typeof t=="string"&&(n=tq(f,p,"".concat(e).concat(t==="default"?"":tG(t)),t)),c===!1?n:u({},c,n)})}function t(n){var r;var o=n||{},i=o.sx,a=o.theme,l=a===void 0?{}:a;if(!i)return null;var c=(r=l.unstable_sxConfig)!=null?r:n2;function s(n){var r=n;if(typeof n=="function")r=n(l);else if((typeof n==="undefined"?"undefined":w(n))!="object")return n;if(!r)return null;var o=tY(l.breakpoints),i=Object.keys(o),a=o;return Object.keys(r).forEach(function(n){var o=n3(r[n],l);if(o!=null)if((typeof o==="undefined"?"undefined":w(o))=="object")if(c[n])a=tH(a,e(n,o,l,c));else{var i=tX({theme:l},o,function(e){return u({},n,e)});n5(i,o)?a[n]=t({sx:o,theme:l}):a=tH(a,i)}else a=tH(a,e(n,o,l,c))}),tZ(i,a)}return Array.isArray(i)?i.map(s):s(i)}return t}var n6=n4();n6.filterProps=["sx"];var n7=n6;function n8(e,t){var n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?u({},n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)"),t):n.palette.mode===e?t:{}}var n9=["breakpoints","palette","spacing","shape"];function re(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=e.breakpoints,i=o===void 0?{}:o,a=e.palette,l=a===void 0?{}:a,u=e.spacing,c=e.shape,s=c===void 0?{}:c,p=tS(e,n9),d=tI(i),f=nl(u),m=tN({breakpoints:d,direction:"ltr",components:{},palette:D({mode:"light"},l),spacing:f,shape:D({},tW,s)},p);return m.applyStyles=n8,m=n.reduce(function(e,t){return tN(e,t)},m),m.unstable_sxConfig=D({},n2,p===null||p===void 0?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return n7({sx:e,theme:this})},m}var rt=re;import*as rn from"react";function rr(e){return Object.keys(e).length===0}function ro(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;var t=rn.useContext(I);return!t||rr(t)?e:t}var ri=ro;var ra=rt();function rl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ra;return ri(e)}var ru=rl;function rc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if((typeof e==="undefined"?"undefined":w(e))=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=rc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rc(e))&&(r&&(r+=" "),r+=t);return r}var rp=rs;var rd=["ownerState"],rf=["variants"],rm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rv(e){return Object.keys(e).length===0}function rh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var ry=rt(),rb=function(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)};function rx(e){var t=e.defaultTheme,n=e.theme,r=e.themeId;return rv(n)?t:n[r]||n}function rw(e){return e?function(t,n){return n[e]}:null}function rC(e,t){var n=t.ownerState,r=tS(t,rd),o=typeof e=="function"?e(D({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(function(e){return rC(e,D({ownerState:n},r))});if(o&&(typeof o==="undefined"?"undefined":w(o))=="object"&&Array.isArray(o.variants)){var i=o.variants,a=i===void 0?[]:i,l=tS(o,rf);return a.forEach(function(e){var t=!0;typeof e.props=="function"?t=e.props(D({ownerState:n},r,n)):Object.keys(e.props).forEach(function(o){(n===null||n===void 0?void 0:n[o])!==e.props[o]&&r[o]!==e.props[o]&&(t=!1)}),t&&(Array.isArray(l)||(l=[l]),l.push(typeof e.style=="function"?e.style(D({ownerState:n},r,n)):e.style))}),l}return o}function rO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t=e.themeId,n=e.defaultTheme,r=n===void 0?ry:n,o=e.rootShouldForwardProp,i=o===void 0?rg:o,a=e.slotShouldForwardProp,l=a===void 0?rg:a,u=function(e){return n7(D({},e,{theme:rx(D({},e,{defaultTheme:r,themeId:t}))}))};return u.__mui_systemSx=!0,function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tP(e,function(e){return e.filter(function(e){return!(e!=null&&e.__mui_systemSx)})});var o=n.name,a=n.slot,c=n.skipVariantsResolver,s=n.skipSx,p=n.overridesResolver,d=p===void 0?rw(rb(a)):p,f=tS(n,rm),m=c!==void 0?c:a&&a!=="Root"&&a!=="root"||!1,v=s||!1,h,g=rg;a==="Root"||a==="root"?g=i:a?g=l:rh(e)&&(g=void 0);var b=tj(e,D({shouldForwardProp:g,label:h},f)),w=function(e){return typeof e=="function"&&e.__emotion_real!==e||t_(e)?function(n){return rC(e,D({},n,{theme:rx({theme:n.theme,defaultTheme:r,themeId:t})}))}:e},C=function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++){a[l-1]=arguments[l]}var c=w(n),s=a?a.map(w):[];o&&d&&s.push(function(e){var n=rx(D({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[o]||!n.components[o].styleOverrides)return null;var i=n.components[o].styleOverrides,a={};return Object.entries(i).forEach(function(t){var r=y(t,2),o=r[0],i=r[1];a[o]=rC(i,D({},e,{theme:n}))}),d(e,a)}),o&&!m&&s.push(function(e){var n;var i=rx(D({},e,{defaultTheme:r,themeId:t})),a=i==null||(n=i.components)==null||(n=n[o])==null?void 0:n.variants;return rC({variants:a},D({},e,{theme:i}))}),v||s.push(u);var p=s.length-a.length;if(Array.isArray(n)&&p>0){var f=new Array(p).fill("");c=x(n).concat(x(f)),c.raw=x(n.raw).concat(x(f))}var h=b.apply(void 0,[c].concat(x(s)));return e.muiName&&(h.muiName=e.muiName),h};return b.withConfig&&(C.withConfig=b.withConfig),C}}function rE(e,t){var n=D({},t);return Object.keys(e).forEach(function(r){if(r.toString().match(/^(components|slots)$/))n[r]=D({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){var o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=D({},i),Object.keys(o).forEach(function(e){n[r][e]=rE(o[e],i[e])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function rT(e){var t=e.theme,n=e.name,r=e.props;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:rE(t.components[n].defaultProps,r)}function rk(e){var t=e.props,n=e.name,r=e.defaultTheme,o=e.themeId;var i=ru(r);return o&&(i=i[o]||i),rT({theme:i,name:n,props:t})}function rR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}var rM=rR;function rS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return rM(e,t,n)}function rA(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(function(e){return e+e})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function rj(e){if(e.type)return e;if(e.charAt(0)==="#")return rj(rA(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(tA(9,e));var r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(tA(10,o))}else r=r.split(",");return r=r.map(function(e){return parseFloat(e)}),{type:n,values:r,colorSpace:o}}function rP(e){var t=e.type,n=e.colorSpace,r=e.values;return t.indexOf("rgb")!==-1?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):t.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),t.indexOf("color")!==-1?r="".concat(n," ").concat(r.join(" ")):r="".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function rL(e){e=rj(e);var t=e.values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),rP({type:l,values:u})}function r_(e){e=rj(e);var t=e.type==="hsl"||e.type==="hsla"?rj(rL(e)).values:e.values;return t=t.map(function(t){return e.type!=="color"&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rB(e,t){var n=r_(e),r=r_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rN(e,t){return e=rj(e),t=rS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]="/".concat(t):e.values[3]=t,rP(e)}function rF(e,t){if(e=rj(e),t=rS(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(var n=0;n<3;n+=1)e.values[n]*=1-t;return rP(e)}function rD(e,t){if(e=rj(e),t=rS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return rP(e)}function rI(e,t){var n;return D({toolbar:(n={minHeight:56},u(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),u(n,e.up("sm"),{minHeight:64}),n)},t)}var rV=["mode","contrastThreshold","tonalOffset"],rW={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eB.white,default:eB.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},rz={text:{primary:eB.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eB.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function rH(e,t,n,r){var o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rD(e.main,o):t==="dark"&&(e.dark=rF(e.main,i)))}function rK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eW[200],light:eW[50],dark:eW[400]}:{main:eW[700],light:eW[400],dark:eW[800]}}function rU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eI[200],light:eI[50],dark:eI[400]}:{main:eI[500],light:eI[300],dark:eI[700]}}function rX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eF[500],light:eF[300],dark:eF[700]}:{main:eF[700],light:eF[400],dark:eF[800]}}function rY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eH[400],light:eH[300],dark:eH[700]}:{main:eH[700],light:eH[500],dark:eH[900]}}function rZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eU[400],light:eU[300],dark:eU[700]}:{main:eU[800],light:eU[500],dark:eU[900]}}function rG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eY[400],light:eY[300],dark:eY[700]}:{main:"#ed6c02",light:eY[500],dark:eY[900]}}function rQ(e){var t=e.mode,n=t===void 0?"light":t,r=e.contrastThreshold,o=r===void 0?3:r,i=e.tonalOffset,a=i===void 0?.2:i,l=tS(e,rV),u=e.primary||rK(n),c=e.secondary||rU(n),s=e.error||rX(n),p=e.info||rY(n),d=e.success||rZ(n),f=e.warning||rG(n);function m(e){return rB(e,rz.text.primary)>=o?rz.text.primary:rW.text.primary}var v=function(e){var t=e.color,n=e.name,r=e.mainShade,o=r===void 0?500:r,i=e.lightShade,l=i===void 0?300:i,u=e.darkShade,c=u===void 0?700:u;if(t=D({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(eJ(11,n?" (".concat(n,")"):"",o));if(typeof t.main!="string")throw new Error(eJ(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return rH(t,"light",l,a),rH(t,"dark",c,a),t.contrastText||(t.contrastText=m(t.main)),t},h={dark:rz,light:rW};return e$(D({common:D({},eB),mode:n,primary:v({color:u,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:s,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:p,name:"info"}),success:v({color:d,name:"success"}),grey:eG,contrastThreshold:o,getContrastText:m,augmentColor:v,tonalOffset:a},h[n]),l)}var rq=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function r$(e){return Math.round(e*1e5)/1e5}var rJ={textTransform:"uppercase"},r0='"Roboto", "Helvetica", "Arial", sans-serif';function r1(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,o=r===void 0?r0:r,i=n.fontSize,a=i===void 0?14:i,l=n.fontWeightLight,u=l===void 0?300:l,c=n.fontWeightRegular,s=c===void 0?400:c,p=n.fontWeightMedium,d=p===void 0?500:p,f=n.fontWeightBold,m=f===void 0?700:f,v=n.htmlFontSize,h=v===void 0?16:v,g=n.allVariants,y=n.pxToRem,b=tS(n,rq),x=a/14,w=y||function(e){return"".concat(e/h*x,"rem")},C=function(e,t,n,r,i){return D({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===r0?{letterSpacing:"".concat(r$(r/t),"em")}:{},i,g)},O={h1:C(u,96,1.167,-1.5),h2:C(u,60,1.2,-.5),h3:C(s,48,1.167,0),h4:C(s,34,1.235,.25),h5:C(s,24,1.334,0),h6:C(d,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(d,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(d,14,1.75,.4,rJ),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,rJ),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return e$(D({htmlFontSize:h,pxToRem:w,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:m},O),b,{clone:!1})}function r2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,",.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,",.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,",.12,")")].join(",")}var r5=["none",r2(0,2,1,-1,0,1,1,0,0,1,3,0),r2(0,3,1,-2,0,2,2,0,0,1,5,0),r2(0,3,3,-2,0,3,4,0,0,1,8,0),r2(0,2,4,-1,0,4,5,0,0,1,10,0),r2(0,3,5,-1,0,5,8,0,0,1,14,0),r2(0,3,5,-1,0,6,10,0,0,1,18,0),r2(0,4,5,-2,0,7,10,1,0,2,16,1),r2(0,5,5,-3,0,8,10,1,0,3,14,2),r2(0,5,6,-3,0,9,12,1,0,3,16,2),r2(0,6,6,-3,0,10,14,1,0,4,18,3),r2(0,6,7,-4,0,11,15,1,0,4,20,3),r2(0,7,8,-4,0,12,17,2,0,5,22,4),r2(0,7,8,-4,0,13,19,2,0,5,24,4),r2(0,7,9,-4,0,14,21,2,0,5,26,4),r2(0,8,9,-5,0,15,22,2,0,6,28,5),r2(0,8,10,-5,0,16,24,2,0,6,30,5),r2(0,8,11,-5,0,17,26,2,0,6,32,5),r2(0,9,11,-5,0,18,28,2,0,7,34,6),r2(0,9,12,-6,0,19,29,2,0,7,36,6),r2(0,10,13,-6,0,20,31,3,0,8,38,7),r2(0,10,13,-6,0,21,33,3,0,8,40,7),r2(0,10,14,-6,0,22,35,3,0,8,42,7),r2(0,11,14,-7,0,23,36,3,0,9,44,8),r2(0,11,15,-7,0,24,38,3,0,9,46,8)],r3=r5;var r4=["duration","easing","delay"],r6={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},r7={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function r8(e){return"".concat(Math.round(e),"ms")}function r9(e){if(!e)return 0;var t=e/36;return Math.round((4+15*Math.pow(t,.25)+t/5)*10)}function oe(e){var t=D({},r6,e.easing),n=D({},r7,e.duration);return D({getAutoHeightDuration:r9,create:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var o=r.duration,i=o===void 0?n.standard:o,a=r.easing,l=a===void 0?t.easeInOut:a,u=r.delay,c=u===void 0?0:u,s=tS(r,r4);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat(typeof i=="string"?i:r8(i)," ").concat(l," ").concat(typeof c=="string"?c:r8(c))}).join(",")}},e,{easing:t,duration:n})}var ot={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},on=ot;var or=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=e.mixins,i=o===void 0?{}:o,a=e.palette,l=a===void 0?{}:a,u=e.transitions,c=u===void 0?{}:u,s=e.typography,p=s===void 0?{}:s,d=tS(e,or);if(e.vars)throw new Error(eJ(18));var f=rQ(l),m=rt(e),v=e$(m,{mixins:rI(m.breakpoints,i),palette:f,shadows:r3.slice(),typography:r1(f,p),transitions:oe(c),zIndex:D({},on)});return v=e$(v,d),v=n.reduce(function(e,t){return e$(e,t)},v),v.unstable_sxConfig=D({},n2,d===null||d===void 0?void 0:d.unstable_sxConfig),v.unstable_sx=function(e){return n7({sx:e,theme:this})},v}var oi=oo;import*as oa from"react";var ol=oi(),ou=ol;function oc(){var e=ru(ou);return e[tM]||e}function os(e){var t=e.props,n=e.name;return rk({props:t,name:n,defaultTheme:ou,themeId:tM})}var op=function(e){return rg(e)&&e!=="classes"};var od=rO({themeId:tM,defaultTheme:ou,rootShouldForwardProp:op}),of=od;var om=e0;var ov=te;var oh=tn;var og=ti;var oy=tl;var ob=tb;function ox(e,t){return ox=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(e,t){return e.__proto__=t,e},ox(e,t)}function ow(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ox(e,t)}import oC from"react";import oO from"react-dom";var oE={disabled:!1};import oT from"react";var ok=oT.createContext(null);var oR=function e(e){return e.scrollTop};var oM="unmounted",oS="exited",oA="entering",oj="entered",oP="exiting",oL=function(e){ow(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var o=n,i=o&&!o.isMounting?t.enter:t.appear,a;return r.appearStatus=null,t.in?i?(a=oS,r.appearStatus=oA):a=oj:t.unmountOnExit||t.mountOnEnter?a=oM:a=oS,r.state={status:a},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===oM?{status:oS}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oA&&n!==oj&&(t=oA):(n===oA||n===oj)&&(t=oP)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t,n,r;return t=n=r=e,e!=null&&typeof e!="number"&&(t=e.exit,n=e.enter,r=e.appear!==void 0?e.appear:n),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===oA){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:oO.findDOMNode(this);n&&oR(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oS&&this.setState({status:oM})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[oO.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;if(!e&&!n||oE.disabled){this.safeSetState({status:oj},function(){t.props.onEntered(i)});return}this.props.onEnter(i,a),this.safeSetState({status:oA},function(){t.props.onEntering(i,a),t.onTransitionEnd(u,function(){t.safeSetState({status:oj},function(){t.props.onEntered(i,a)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:oO.findDOMNode(this);if(!t||oE.disabled){this.safeSetState({status:oS},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:oP},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:oS},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:oO.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===oM)return null;var t=this.props,n=t.children,r=t.in,o=t.mountOnEnter,i=t.unmountOnExit,a=t.appear,l=t.enter,u=t.exit,c=t.timeout,s=t.addEndListener,p=t.onEnter,d=t.onEntering,f=t.onEntered,m=t.onExit,v=t.onExiting,h=t.onExited,g=t.nodeRef,y=tS(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oC.createElement(ok.Provider,{value:null},typeof n=="function"?n(e,y):oC.cloneElement(oC.Children.only(n),y))},t}(oC.Component);oL.contextType=ok;oL.propTypes={};function o_(){}oL.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:o_,onEntering:o_,onEntered:o_,onExit:o_,onExiting:o_,onExited:o_};oL.UNMOUNTED=oM;oL.EXITED=oS;oL.ENTERING=oA;oL.ENTERED=oj;oL.EXITING=oP;var oB=oL;function oN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}import oF from"react";import{Children as oD,cloneElement as oI,isValidElement as oV}from"react";function oW(e,t){var n=function e(e){return t&&oV(e)?t(e):e},r=Object.create(null);return e&&oD.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function oz(e,t){e=e||{},t=t||{};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var c=r[u][a];l[r[u][a]]=n(c)}l[u]=n(u)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function oH(e,t,n){return n[t]!=null?n[t]:e.props[t]}function oK(e,t){return oW(e.children,function(n){return oI(n,{onExited:t.bind(null,n),in:!0,appear:oH(n,"appear",e),enter:oH(n,"enter",e),exit:oH(n,"exit",e)})})}function oU(e,t,n){var r=oW(e.children),o=oz(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(oV(a)){var l=i in t,u=i in r,c=t[i],s=oV(c)&&!c.props.in;u&&(!l||s)?o[i]=oI(a,{onExited:n.bind(null,a),in:!0,exit:oH(a,"exit",e),enter:oH(a,"enter",e)}):!u&&l&&!s?o[i]=oI(a,{in:!1}):u&&l&&oV(c)&&(o[i]=oI(a,{onExited:n.bind(null,a),in:c.props.in,exit:oH(a,"exit",e),enter:oH(a,"enter",e)}))}}),o}var oX=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},oY={component:"div",childFactory:function e(e){return e}},oZ=function(e){ow(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var o=r.handleExited.bind(oN(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited,o=t.firstRender;return{children:o?oK(e,r):oU(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=oW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=D({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tS(e,["component","childFactory"]),o=this.state.contextValue,i=oX(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?oF.createElement(ok.Provider,{value:o},i):oF.createElement(ok.Provider,{value:o},oF.createElement(t,r,i))},t}(oF.Component);oZ.propTypes={};oZ.defaultProps=oY;var oG=oZ;var oQ=function(e){return e.scrollTop};function oq(e,t){var n,r;var o=e.timeout,i=e.easing,a=e.style,l=a===void 0?{}:a;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:(typeof i==="undefined"?"undefined":w(i))=="object"?i[t.mode]:i,delay:l.transitionDelay}}import*as o$ from"react";import*as oJ from"react";import*as o0 from"react";import{jsx as o1}from"react/jsx-runtime";function o2(e){var t=e.className,n=e.classes,r=e.pulsate,o=r===void 0?!1:r,i=e.rippleX,a=e.rippleY,l=e.rippleSize,u=e.in,c=e.onExited,s=e.timeout,p=y(o0.useState(!1),2),d=p[0],f=p[1],m=rp(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),v={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},h=rp(n.child,d&&n.childLeaving,o&&n.childPulsate);return!u&&!d&&f(!0),o0.useEffect(function(){if(!u&&c!=null){var e=setTimeout(c,s);return function(){clearTimeout(e)}}},[c,u,s]),o1("span",{className:m,style:v,children:o1("span",{className:h})})}var o5=o2;var o3=tR("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o4=o3;import{jsx as o6}from"react/jsx-runtime";var o7=["center","classes","className"],o8=function(e){return e},o9,ie,it,ir,io=550,ii=80,ia=V(o9||(o9=o8(_()))),il=V(ie||(ie=o8(B()))),iu=V(it||(it=o8(N()))),ic=of("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),is=of(o5,{name:"MuiTouchRipple",slot:"Ripple"})(ir||(ir=o8(F(),0,0,0,0,0,0,0,0,0,0,0,0,0,0)),o4.rippleVisible,ia,io,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o4.ripplePulsate,function(e){var t=e.theme;return t.transitions.duration.shorter},o4.child,o4.childLeaving,il,io,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o4.childPulsate,iu,function(e){var t=e.theme;return t.transitions.easing.easeInOut}),ip=oJ.forwardRef(function(e,t){var n=os({props:e,name:"MuiTouchRipple"}),r=n.center,o=r===void 0?!1:r,i=n.classes,a=i===void 0?{}:i,l=n.className,u=tS(n,o7),c=y(oJ.useState([]),2),s=c[0],p=c[1],d=oJ.useRef(0),f=oJ.useRef(null);oJ.useEffect(function(){f.current&&(f.current(),f.current=null)},[s]);var m=oJ.useRef(!1),v=oJ.useRef(0),h=oJ.useRef(null),g=oJ.useRef(null);oJ.useEffect(function(){return function(){v.current&&clearTimeout(v.current)}},[]);var b=oJ.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;p(function(e){return x(e).concat([o6(is,{classes:{ripple:rp(a.ripple,o4.ripple),rippleVisible:rp(a.rippleVisible,o4.rippleVisible),ripplePulsate:rp(a.ripplePulsate,o4.ripplePulsate),child:rp(a.child,o4.child),childLeaving:rp(a.childLeaving,o4.childLeaving),childPulsate:rp(a.childPulsate,o4.childPulsate)},timeout:io,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},d.current)])}),d.current+=1,f.current=i},[a]),w=oJ.useCallback(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};var r=t.pulsate,i=r===void 0?!1:r,a=t.center,l=a===void 0?o||t.pulsate:a,u=t.fakeElement,c=u===void 0?!1:u;if((e===null||e===void 0?void 0:e.type)==="mousedown"&&m.current){m.current=!1;return}(e===null||e===void 0?void 0:e.type)==="touchstart"&&(m.current=!0);var s=c?null:g.current,p=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},d,f,y;if(l||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)d=Math.round(p.width/2),f=Math.round(p.height/2);else{var x=e.touches&&e.touches.length>0?e.touches[0]:e,w=x.clientX,C=x.clientY;d=Math.round(w-p.left),f=Math.round(C-p.top)}if(l)y=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3),y%2===0&&(y+=1);else{var O=Math.max(Math.abs((s?s.clientWidth:0)-d),d)*2+2,E=Math.max(Math.abs((s?s.clientHeight:0)-f),f)*2+2;y=Math.sqrt(Math.pow(O,2)+Math.pow(E,2))}e!=null&&e.touches?h.current===null&&(h.current=function(){b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},v.current=setTimeout(function(){h.current&&(h.current(),h.current=null)},ii)):b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},[o,b]),C=oJ.useCallback(function(){w({},{pulsate:!0})},[w]),O=oJ.useCallback(function(e,t){if(clearTimeout(v.current),(e===null||e===void 0?void 0:e.type)==="touchend"&&h.current){h.current(),h.current=null,v.current=setTimeout(function(){O(e,t)});return}h.current=null,p(function(e){return e.length>0?e.slice(1):e}),f.current=t},[]);return oJ.useImperativeHandle(t,function(){return{pulsate:C,start:w,stop:O}},[C,w,O]),o6(ic,D({className:rp(o4.root,a.root,l),ref:g},u,{children:o6(oG,{component:null,exit:!0,children:s})}))}),id=ip;function im(e){return tk("MuiButtonBase",e)}var iv=tR("MuiButtonBase",["root","disabled","focusVisible"]),ih=iv;import{jsx as ig}from"react/jsx-runtime";import{jsxs as iy}from"react/jsx-runtime";var ib;var ix=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],iw=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i=tx({root:["root",t&&"disabled",n&&"focusVisible"]},im,o);return n&&r&&(i.root+=" ".concat(r)),i},iC=of("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((ib={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},u(ib,"&.".concat(ih.disabled),{pointerEvents:"none",cursor:"default"}),u(ib,"@media print",{colorAdjust:"exact"}),ib)),iO=o$.forwardRef(function(e,t){var n=os({props:e,name:"MuiButtonBase"}),r=n.action,o=n.centerRipple,i=o===void 0?!1:o,a=n.children,l=n.className,u=n.component,c=u===void 0?"button":u,s=n.disabled,p=s===void 0?!1:s,d=n.disableRipple,f=d===void 0?!1:d,m=n.disableTouchRipple,v=m===void 0?!1:m,h=n.focusRipple,g=h===void 0?!1:h,b=n.LinkComponent,x=b===void 0?"a":b,w=n.onBlur,C=n.onClick,O=n.onContextMenu,E=n.onDragLeave,T=n.onFocus,k=n.onFocusVisible,R=n.onKeyDown,M=n.onKeyUp,S=n.onMouseDown,A=n.onMouseLeave,j=n.onMouseUp,P=n.onTouchEnd,L=n.onTouchMove,_=n.onTouchStart,B=n.tabIndex,N=B===void 0?0:B,F=n.TouchRippleProps,I=n.touchRippleRef,V=n.type,W=tS(n,ix),z=o$.useRef(null),H=o$.useRef(null),K=oy(H,I),U=ob(),X=U.isFocusVisibleRef,Y=U.onFocus,Z=U.onBlur,G=U.ref,Q=y(o$.useState(!1),2),q=Q[0],$=Q[1];p&&q&&$(!1),o$.useImperativeHandle(r,function(){return{focusVisible:function(){$(!0),z.current.focus()}}},[]);var J=y(o$.useState(!1),2),ee=J[0],et=J[1];o$.useEffect(function(){et(!0)},[]);var en=ee&&!f&&!p;o$.useEffect(function(){q&&g&&!f&&ee&&H.current.pulsate()},[f,g,q,ee]);function er(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v;return og(function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0})}var eo=er("start",S),ei=er("stop",O),ea=er("stop",E),el=er("stop",j),eu=er("stop",function(e){q&&e.preventDefault(),A&&A(e)}),ec=er("start",_),es=er("stop",P),ep=er("stop",L),ed=er("stop",function(e){Z(e),X.current===!1&&$(!1),w&&w(e)},!1),ef=og(function(e){z.current||(z.current=e.currentTarget),Y(e),X.current===!0&&($(!0),k&&k(e)),T&&T(e)}),em=function(){var e=z.current;return c&&c!=="button"&&!(e.tagName==="A"&&e.href)},ev=o$.useRef(!1),eh=og(function(e){g&&!ev.current&&q&&H.current&&e.key===" "&&(ev.current=!0,H.current.stop(e,function(){H.current.start(e)})),e.target===e.currentTarget&&em()&&e.key===" "&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&em()&&e.key==="Enter"&&!p&&(e.preventDefault(),C&&C(e))}),eg=og(function(e){g&&e.key===" "&&H.current&&q&&!e.defaultPrevented&&(ev.current=!1,H.current.stop(e,function(){H.current.pulsate(e)})),M&&M(e),C&&e.target===e.currentTarget&&em()&&e.key===" "&&!e.defaultPrevented&&C(e)}),ey=c;ey==="button"&&(W.href||W.to)&&(ey=x);var eb={};ey==="button"?(eb.type=V===void 0?"button":V,eb.disabled=p):(!W.href&&!W.to&&(eb.role="button"),p&&(eb["aria-disabled"]=p));var ex=oy(t,G,z),ew=D({},n,{centerRipple:i,component:c,disabled:p,disableRipple:f,disableTouchRipple:v,focusRipple:g,tabIndex:N,focusVisible:q}),eC=iw(ew);return iy(iC,D({as:ey,className:rp(eC.root,l),ownerState:ew,onBlur:ed,onClick:C,onContextMenu:ei,onFocus:ef,onKeyDown:eh,onKeyUp:eg,onMouseDown:eo,onMouseLeave:eu,onMouseUp:el,onDragLeave:ea,onTouchEnd:es,onTouchMove:ep,onTouchStart:ec,ref:ex,tabIndex:p?-1:N,type:V},eb,W,{children:[a,en?ig(id,D({ref:K,center:i},F)):null]}))}),iE=iO;import*as iT from"react";function ik(e){return tk("MuiIconButton",e)}var iR=tR("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iM=iR;import{jsx as iS}from"react/jsx-runtime";var iA=["edge","children","className","color","disabled","disableFocusRipple","size"],ij=function(e){var t=e.classes,n=e.disabled,r=e.color,o=e.edge,i=e.size,a={root:["root",n&&"disabled",r!=="default"&&"color".concat(om(r)),o&&"edge".concat(om(o)),"size".concat(om(i))]};return tx(a,ik,t)},iP=of(iE,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.color!=="default"&&t["color".concat(om(n.color))],n.edge&&t["edge".concat(om(n.edge))],t["size".concat(om(n.size))]]}})(function(e){var t=e.theme,n=e.ownerState;return D({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):rN(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12})},function(e){var t=e.theme,n=e.ownerState;var r;var o=(r=(t.vars||t).palette)==null?void 0:r[n.color];return D({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&D({color:o===null||o===void 0?void 0:o.main},!n.disableRipple&&{"&:hover":D({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):rN(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),n.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},n.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},u({},"&.".concat(iM.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))}),iL=iT.forwardRef(function(e,t){var n=os({props:e,name:"MuiIconButton"}),r=n.edge,o=r===void 0?!1:r,i=n.children,a=n.className,l=n.color,u=l===void 0?"default":l,c=n.disabled,s=c===void 0?!1:c,p=n.disableFocusRipple,d=p===void 0?!1:p,f=n.size,m=f===void 0?"medium":f,v=tS(n,iA),h=D({},n,{edge:o,color:u,disabled:s,disableFocusRipple:d,size:m}),g=ij(h);return iS(iP,D({className:rp(g.root,a),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:h},v,{children:i}))}),i_=iL;function iB(e){return typeof e=="string"}function iN(e,t,n){return e===void 0||iB(e)?t:D({},t,{ownerState:D({},t.ownerState,n)})}import*as iF from"react";import{jsx as iD}from"react/jsx-runtime";var iI={disableDefaultClasses:!1},iV=iF.createContext(iI);function iW(e){var t=iF.useContext(iV),n=t.disableDefaultClasses;return function(t){return n?"":e(t)}}function iz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(e===void 0)return{};var n={};return Object.keys(e).filter(function(n){return n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)}).forEach(function(t){n[t]=e[t]}),n}function iH(e,t,n){return typeof e=="function"?e(t,n):e}function iK(e){if(e===void 0)return{};var t={};return Object.keys(e).filter(function(t){return!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")}).forEach(function(n){t[n]=e[n]}),t}function iU(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=rp(n===null||n===void 0?void 0:n.className,i,o===null||o===void 0?void 0:o.className,r===null||r===void 0?void 0:r.className),l=D({},n===null||n===void 0?void 0:n.style,o===null||o===void 0?void 0:o.style,r===null||r===void 0?void 0:r.style),u=D({},n,o,r);return a.length>0&&(u.className=a),Object.keys(l).length>0&&(u.style=l),{props:u,internalRef:void 0}}var c=iz(D({},o,r)),s=iK(r),p=iK(o),d=t(c),f=rp(d===null||d===void 0?void 0:d.className,n===null||n===void 0?void 0:n.className,i,o===null||o===void 0?void 0:o.className,r===null||r===void 0?void 0:r.className),m=D({},d===null||d===void 0?void 0:d.style,n===null||n===void 0?void 0:n.style,o===null||o===void 0?void 0:o.style,r===null||r===void 0?void 0:r.style),v=D({},d,n,p,s);return f.length>0&&(v.className=f),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:d.ref}}var iX=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function iY(e){var t;var n=e.elementType,r=e.externalSlotProps,o=e.ownerState,i=e.skipResolvingSlotProps,a=i===void 0?!1:i,l=tS(e,iX),u=a?{}:iH(r,o),c=iU(D({},l,{externalSlotProps:u})),s=c.props,p=c.internalRef,d=tl(p,u===null||u===void 0?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return iN(n,D({},s,{ref:d}),o)}import*as iZ from"react";var iG="top",iQ="bottom",iq="right",i$="left",iJ="auto",i0=[iG,iQ,iq,i$],i1="start",i2="end",i5="clippingParents",i3="viewport",i4="popper",i6="reference",i7=i0.reduce(function(e,t){return e.concat([t+"-"+i1,t+"-"+i2])},[]),i8=[].concat(i0,[iJ]).reduce(function(e,t){return e.concat([t,t+"-"+i1,t+"-"+i2])},[]),i9="beforeRead",ae="read",at="afterRead",an="beforeMain",ar="main",ao="afterMain",ai="beforeWrite",aa="write",al="afterWrite",au=[i9,ae,at,an,ar,ao,ai,aa,al];function ac(e){return e?(e.nodeName||"").toLowerCase():null}function as(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ap(e){var t=as(e).Element;return p(e,t)||p(e,Element)}function ad(e){var t=as(e).HTMLElement;return p(e,t)||p(e,HTMLElement)}function af(e){if((typeof ShadowRoot==="undefined"?"undefined":w(ShadowRoot))>"u")return!1;var t=as(e).ShadowRoot;return p(e,t)||p(e,ShadowRoot)}function am(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!ad(o)||!ac(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?o.removeAttribute(e):o.setAttribute(e,t===!0?"":t)}))})}function av(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=i.reduce(function(e,t){return e[t]="",e},{});!ad(r)||!ac(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}}var ah={name:"applyStyles",enabled:!0,phase:"write",fn:am,effect:av,requires:["computeStyles"]};function ag(e){return e.split("-")[0]}var ay=Math.max,ab=Math.min,ax=Math.round;function aw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function aC(){return!/^((?!chrome|android).)*safari/i.test(aw())}function aO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ad(e)&&(o=e.offsetWidth>0&&ax(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ax(r.height)/e.offsetHeight||1);var a=ap(e)?as(e):window,l=a.visualViewport,u=!aC()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/o,s=(r.top+(u&&l?l.offsetTop:0))/i,p=r.width/o,d=r.height/i;return{width:p,height:d,top:s,right:c+p,bottom:s+d,left:c,x:c,y:s}}function aE(e){var t=aO(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function aT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&af(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ak(e){return as(e).getComputedStyle(e)}function aR(e){return["table","td","th"].indexOf(ac(e))>=0}function aM(e){return((ap(e)?e.ownerDocument:e.document)||window.document).documentElement}function aS(e){return ac(e)==="html"?e:e.assignedSlot||e.parentNode||(af(e)?e.host:null)||aM(e)}function aA(e){return!ad(e)||ak(e).position==="fixed"?null:e.offsetParent}function aj(e){var t=/firefox/i.test(aw()),n=/Trident/i.test(aw());if(n&&ad(e)){var r=ak(e);if(r.position==="fixed")return null}var o=aS(e);for(af(o)&&(o=o.host);ad(o)&&["html","body"].indexOf(ac(o))<0;){var i=ak(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function aP(e){for(var t=as(e),n=aA(e);n&&aR(n)&&ak(n).position==="static";)n=aA(n);return n&&(ac(n)==="html"||ac(n)==="body"&&ak(n).position==="static")?t:n||aj(e)||t}function aL(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function a_(e,t,n){return ay(e,ab(t,n))}function aB(e,t,n){var r=a_(e,t,n);return r>n?n:r}function aN(){return{top:0,right:0,bottom:0,left:0}}function aF(e){return Object.assign({},aN(),e)}function aD(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var aI=function e(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,aF(typeof e!="number"?e:aD(e,i0))};function aV(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ag(n.placement),u=aL(l),c=[i$,iq].indexOf(l)>=0,s=c?"height":"width";if(!(!i||!a)){var p=aI(o.padding,n),d=aE(i),f=u==="y"?iG:i$,m=u==="y"?iQ:iq,v=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],h=a[u]-n.rects.reference[u],g=aP(i),y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,b=v/2-h/2,x=p[f],w=y-d[s]-p[m],C=y/2-d[s]/2+b,O=a_(x,C,w),E=u;n.modifiersData[r]=(t={},t[E]=O,t.centerOffset=O-C,t)}}function aW(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||aT(t.elements.popper,o)&&(t.elements.arrow=o))}var az={name:"arrow",enabled:!0,phase:"main",fn:aV,effect:aW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aH(e){return e.split("-")[1]}var aK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aU(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ax(n*o)/o||0,y:ax(r*o)/o||0}}function aX(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,s=e.roundOffsets,p=e.isFixed,d=a.x,f=d===void 0?0:d,m=a.y,v=m===void 0?0:m,h=typeof s=="function"?s({x:f,y:v}):{x:f,y:v};f=h.x,v=h.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=i$,x=iG,w=window;if(c){var C=aP(n),O="clientHeight",E="clientWidth";if(C===as(n)&&(C=aM(n),ak(C).position!=="static"&&l==="absolute"&&(O="scrollHeight",E="scrollWidth")),C=C,o===iG||(o===i$||o===iq)&&i===i2){x=iQ;var T=p&&C===w&&w.visualViewport?w.visualViewport.height:C[O];v-=T-r.height,v*=u?1:-1}if(o===i$||(o===iG||o===iQ)&&i===i2){b=iq;var k=p&&C===w&&w.visualViewport?w.visualViewport.width:C[E];f-=k-r.width,f*=u?1:-1}}var R=Object.assign({position:l},c&&aK),M=s===!0?aU({x:f,y:v},as(n)):{x:f,y:v};if(f=M.x,v=M.y,u){var S;return Object.assign({},R,(S={},S[x]=y?"0":"",S[b]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",S))}return Object.assign({},R,(t={},t[x]=y?v+"px":"",t[b]=g?f+"px":"",t.transform="",t))}function aY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:ag(t.placement),variation:aH(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,aX(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,aX(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var aZ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aY,data:{}};var aG={passive:!0};function aQ(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,u=as(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,aG)}),l&&u.addEventListener("resize",n.update,aG),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,aG)}),l&&u.removeEventListener("resize",n.update,aG)}}var aq={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect:aQ,data:{}};var a$={left:"right",right:"left",bottom:"top",top:"bottom"};function aJ(e){return e.replace(/left|right|bottom|top/g,function(e){return a$[e]})}var a0={start:"end",end:"start"};function a1(e){return e.replace(/start|end/g,function(e){return a0[e]})}function a2(e){var t=as(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function a5(e){return aO(aM(e)).left+a2(e).scrollLeft}function a3(e,t){var n=as(e),r=aM(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var c=aC();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+a5(e),y:u}}function a4(e){var t,n=aM(e),r=a2(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ay(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ay(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+a5(e),u=-r.scrollTop;return ak(o||n).direction==="rtl"&&(l+=ay(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function a6(e){var t=ak(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function a7(e){return["html","body","#document"].indexOf(ac(e))>=0?e.ownerDocument.body:ad(e)&&a6(e)?e:a7(aS(e))}function a8(e,t){var n;t===void 0&&(t=[]);var r=a7(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=as(r),a=o?[i].concat(i.visualViewport||[],a6(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(a8(aS(a)))}function a9(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t){var n=aO(e,!1,t==="fixed");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}function lt(e,t,n){return t===i3?a9(a3(e,n)):ap(t)?le(t,n):a9(a4(aM(e)))}function ln(e){var t=a8(aS(e)),n=["absolute","fixed"].indexOf(ak(e).position)>=0,r=n&&ad(e)?aP(e):e;return ap(r)?t.filter(function(e){return ap(e)&&aT(e,r)&&ac(e)!=="body"}):[]}function lr(e,t,n,r){var o=t==="clippingParents"?ln(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=lt(e,n,r);return t.top=ay(o.top,t.top),t.right=ab(o.right,t.right),t.bottom=ab(o.bottom,t.bottom),t.left=ay(o.left,t.left),t},lt(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function lo(e){var t=e.reference,n=e.element,r=e.placement,o=r?ag(r):null,i=r?aH(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case iG:u={x:a,y:t.y-n.height};break;case iQ:u={x:a,y:t.y+t.height};break;case iq:u={x:t.x+t.width,y:l};break;case i$:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?aL(o):null;if(c!=null){var s=c==="y"?"height":"width";switch(i){case i1:u[c]=u[c]-(t[s]/2-n[s]/2);break;case i2:u[c]=u[c]+(t[s]/2-n[s]/2);break;default:}}return u}function li(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,u=l===void 0?i5:l,c=n.rootBoundary,s=c===void 0?i3:c,p=n.elementContext,d=p===void 0?i4:p,f=n.altBoundary,m=f===void 0?!1:f,v=n.padding,h=v===void 0?0:v,g=aF(typeof h!="number"?h:aD(h,i0)),y=d===i4?i6:i4,b=e.rects.popper,x=e.elements[m?y:d],w=lr(ap(x)?x:x.contextElement||aM(e.elements.popper),u,s,a),C=aO(e.elements.reference),O=lo({reference:C,element:b,strategy:"absolute",placement:o}),E=a9(Object.assign({},b,O)),T=d===i4?E:C,k={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},R=e.modifiersData.offset;if(d===i4&&R){var M=R[o];Object.keys(k).forEach(function(e){var t=[iq,iQ].indexOf(e)>=0?1:-1,n=[iG,iQ].indexOf(e)>=0?"y":"x";k[e]+=M[n]*t})}return k}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?i8:u,s=aH(r),p=s?l?i7:i7.filter(function(e){return aH(e)===s}):i0,d=p.filter(function(e){return c.indexOf(e)>=0});d.length===0&&(d=p);var f=d.reduce(function(t,n){return t[n]=li(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ag(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}function ll(e){if(ag(e)===iJ)return[];var t=aJ(e);return[a1(e),t,a1(t)]}function lu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,c=n.padding,s=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,v=n.allowedAutoPlacements,h=t.options.placement,g=ag(h),y=g===h,b=u||(y||!m?[aJ(h)]:ll(h)),x=[h].concat(b).reduce(function(e,n){return e.concat(ag(n)===iJ?la(t,{placement:n,boundary:s,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)},[]),w=t.rects.reference,C=t.rects.popper,O=new Map,E=!0,T=x[0],k=0;k<x.length;k++){var R=x[k],M=ag(R),S=aH(R)===i1,A=[iG,iQ].indexOf(M)>=0,j=A?"width":"height",P=li(t,{placement:R,boundary:s,rootBoundary:p,altBoundary:d,padding:c}),L=A?S?iq:i$:S?iQ:iG;w[j]>C[j]&&(L=aJ(L));var _=aJ(L),B=[];if(i&&B.push(P[M]<=0),l&&B.push(P[L]<=0,P[_]<=0),B.every(function(e){return e})){T=R,E=!1;break}O.set(R,B)}if(E)for(var N=m?3:1,F=function e(e){var t=x.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},D=N;D>0;D--){var I=F(D);if(I==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}var lc={name:"flip",enabled:!0,phase:"main",fn:lu,requiresIfExists:["offset"],data:{_skip:!1}};function ls(e,t,n){return n===void 0&&(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 lp(e){return[iG,iq,iQ,i$].some(function(t){return e[t]>=0})}function ld(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=li(t,{elementContext:"reference"}),l=li(t,{altBoundary:!0}),u=ls(a,r),c=ls(l,o,i),s=lp(u),p=lp(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":p})}var lf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ld};function lm(e,t,n){var r=ag(e),o=[i$,iG].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[i$,iq].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function lv(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=i8.reduce(function(e,n){return e[n]=lm(n,t.rects,i),e},{}),l=a[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var lh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lv};function lg(e){var t=e.state,n=e.name;t.modifiersData[n]=lo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ly={name:"popperOffsets",enabled:!0,phase:"read",fn:lg,data:{}};function lb(e){return e==="x"?"y":"x"}function lx(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,c=n.rootBoundary,s=n.altBoundary,p=n.padding,d=n.tether,f=d===void 0?!0:d,m=n.tetherOffset,v=m===void 0?0:m,h=li(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:s}),g=ag(t.placement),y=aH(t.placement),b=!y,x=aL(g),w=lb(x),C=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,T=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(i){var S,A=x==="y"?iG:i$,j=x==="y"?iQ:iq,P=x==="y"?"height":"width",L=C[x],_=L+h[A],B=L-h[j],N=f?-E[P]/2:0,F=y===i1?O[P]:E[P],D=y===i1?-E[P]:-O[P],I=t.elements.arrow,V=f&&I?aE(I):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aN(),z=W[A],H=W[j],K=a_(0,O[P],V[P]),U=b?O[P]/2-N-K-z-k.mainAxis:F-K-z-k.mainAxis,X=b?-O[P]/2+N+K+H+k.mainAxis:D+K+H+k.mainAxis,Y=t.elements.arrow&&aP(t.elements.arrow),Z=Y?x==="y"?Y.clientTop||0:Y.clientLeft||0:0,G=(S=R===null||R===void 0?void 0:R[x])!=null?S:0,Q=L+U-G-Z,q=L+X-G,$=a_(f?ab(_,Q):_,L,f?ay(B,q):B);C[x]=$,M[x]=$-L}if(l){var J,ee=x==="x"?iG:i$,et=x==="x"?iQ:iq,en=C[w],er=w==="y"?"height":"width",eo=en+h[ee],ei=en-h[et],ea=[iG,i$].indexOf(g)!==-1,el=(J=R===null||R===void 0?void 0:R[w])!=null?J:0,eu=ea?eo:en-O[er]-E[er]-el+k.altAxis,ec=ea?en+O[er]+E[er]-el-k.altAxis:ei,es=f&&ea?aB(eu,en,ec):a_(f?eu:eo,en,f?ec:ei);C[w]=es,M[w]=es-en}t.modifiersData[r]=M}}var lw={name:"preventOverflow",enabled:!0,phase:"main",fn:lx,requiresIfExists:["offset"]};function lC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lO(e){return e===as(e)||!ad(e)?a2(e):lC(e)}function lE(e){var t=e.getBoundingClientRect(),n=ax(t.width)/e.offsetWidth||1,r=ax(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lT(e,t,n){n===void 0&&(n=!1);var r=ad(t),o=ad(t)&&lE(t),i=aM(t),a=aO(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ac(t)!=="body"||a6(i))&&(l=lO(t)),ad(t)?(u=aO(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=a5(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function lk(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function o(e){n.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||o(e)}),r}function lR(e){var t=lk(e);return au.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function lM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lS(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var lA={placement:"bottom",modifiers:[],strategy:"absolute"};function lj(){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&&typeof e.getBoundingClientRect=="function")})}function lP(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?lA:o;return function(e,t,n){n===void 0&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},lA,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:o,setOptions:function n(n){var a=typeof n=="function"?n(o.options):n;s(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:ap(e)?a8(e):e.contextElement?a8(e.contextElement):[],popper:a8(t)};var l=lR(lS([].concat(r,o.options.modifiers)));return o.orderedModifiers=l.filter(function(e){return e.enabled}),c(),u.update()},forceUpdate:function e(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(lj(t,n)){o.rects={reference:lT(t,aP(n),o.options.strategy==="fixed"),popper:aE(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++){if(o.reset===!0){o.reset=!1,r=-1;continue}var i=o.orderedModifiers[r],a=i.fn,c=i.options,s=c===void 0?{}:c,p=i.name;typeof a=="function"&&(o=a({state:o,options:s,name:p,instance:u})||o)}}}},update:lM(function(){return new Promise(function(e){u.forceUpdate(),e(o)})}),destroy:function e(){s(),l=!0}};if(!lj(e,t))return u;u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)});function c(){o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,i=e.effect;if(typeof i=="function"){var l=i({state:o,name:t,instance:u,options:r}),c=function e(){};a.push(l||c)}})}function s(){a.forEach(function(e){return e()}),a=[]}return u}}var lL=[aq,ly,aZ,ah,lh,lc,lw,az,lf],l_=lP({defaultModifiers:lL});import*as lB from"react";import*as lN from"react-dom";import{jsx as lF}from"react/jsx-runtime";function lD(e){return typeof e=="function"?e():e}var lI=lB.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=o===void 0?!1:o,a=y(lB.useState(null),2),l=a[0],u=a[1],c=tl(lB.isValidElement(n)?n.ref:null,t);return e4(function(){i||u(lD(r)||document.body)},[r,i]),e4(function(){if(l&&!i)return e2(t,l),function(){e2(t,null)}},[t,l,i]),i?lB.isValidElement(n)?lB.cloneElement(n,{ref:c}):lF(lB.Fragment,{children:n}):lF(lB.Fragment,{children:l&&lN.createPortal(n,l)})});function lV(e){return tk("MuiPopper",e)}var lW=tR("MuiPopper",["root"]);import{jsx as lz}from"react/jsx-runtime";var lH=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],lK=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function lU(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function lX(e){return typeof e=="function"?e():e}function lY(e){return e.nodeType!==void 0}var lZ=function(){return tx({root:["root"]},iW(lV))},lG={},lQ=iZ.forwardRef(function(e,t){var n;var r=e.anchorEl,o=e.children,i=e.direction,a=e.disablePortal,l=e.modifiers,u=e.open,c=e.placement,s=e.popperOptions,p=e.popperRef,d=e.slotProps,f=d===void 0?{}:d,m=e.slots,v=m===void 0?{}:m,h=e.TransitionProps,g=tS(e,lH),b=iZ.useRef(null),x=tl(b,t),w=iZ.useRef(null),C=tl(w,p),O=iZ.useRef(C);e4(function(){O.current=C},[C]),iZ.useImperativeHandle(p,function(){return w.current},[]);var E=lU(c,i),T=y(iZ.useState(E),2),k=T[0],R=T[1],M=y(iZ.useState(lX(r)),2),S=M[0],A=M[1];iZ.useEffect(function(){w.current&&w.current.forceUpdate()}),iZ.useEffect(function(){r&&A(lX(r))},[r]),e4(function(){if(!S||!u)return;var e=function(e){R(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(t){var n=t.state;e(n)}}];l!=null&&(t=t.concat(l)),s&&s.modifiers!=null&&(t=t.concat(s.modifiers));var n=l_(S,b.current,D({placement:E},s,{modifiers:t}));return O.current(n),function(){n.destroy(),O.current(null)}},[S,a,l,u,s,E]);var j={placement:k};h!==null&&(j.TransitionProps=h);var P=lZ(),L=(n=v.root)!=null?n:"div",_=iY({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:P.root});return lz(L,D({},_,{children:typeof o=="function"?o(j):o}))}),lq=iZ.forwardRef(function(e,t){var n=e.anchorEl,r=e.children,o=e.container,i=e.direction,a=i===void 0?"ltr":i,l=e.disablePortal,u=l===void 0?!1:l,c=e.keepMounted,s=c===void 0?!1:c,p=e.modifiers,d=e.open,f=e.placement,m=f===void 0?"bottom":f,v=e.popperOptions,h=v===void 0?lG:v,g=e.popperRef,b=e.style,x=e.transition,w=x===void 0?!1:x,C=e.slotProps,O=C===void 0?{}:C,E=e.slots,T=E===void 0?{}:E,k=tS(e,lK),R=y(iZ.useState(!0),2),M=R[0],S=R[1],A=function(){S(!1)},j=function(){S(!0)};if(!s&&!d&&(!w||M))return null;var P;if(o)P=o;else if(n){var L=lX(n);P=L&&lY(L)?e1(L).body:e1(null).body}var _=!d&&s&&(!w||M)?"none":void 0,B=w?{in:d,onEnter:A,onExited:j}:void 0;return lz(lI,{disablePortal:u,container:P,children:lz(lQ,D({anchorEl:n,direction:a,disablePortal:u,modifiers:p,ref:t,open:w?!M:d,placement:m,popperOptions:h,popperRef:g,slotProps:O,slots:T},k,{style:D({position:"fixed",top:0,left:0,display:_},b),TransitionProps:B,children:r}))})});import*as l$ from"react";import{jsx as lJ}from"react/jsx-runtime";var l0=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],l1=of(lq,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),l2=l$.forwardRef(function(e,t){var n;var r=ri(),o=os({props:e,name:"MuiPopper"}),i=o.anchorEl,a=o.component,l=o.components,u=o.componentsProps,c=o.container,s=o.disablePortal,p=o.keepMounted,d=o.modifiers,f=o.open,m=o.placement,v=o.popperOptions,h=o.popperRef,g=o.transition,y=o.slots,b=o.slotProps,x=tS(o,l0),w=(n=y===null||y===void 0?void 0:y.root)!=null?n:l===null||l===void 0?void 0:l.Root,C=D({anchorEl:i,container:c,disablePortal:s,keepMounted:p,modifiers:d,open:f,placement:m,popperOptions:v,popperRef:h,transition:g},x);return lJ(l1,D({as:a,direction:r===null||r===void 0?void 0:r.direction,slots:{root:w},slotProps:b!==null&&b!==void 0?b:u},C,{ref:t}))}),l5=l2;import*as l3 from"react";import{jsx as l4}from"react/jsx-runtime";var l6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function l7(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var l8={entering:{opacity:1,transform:l7(1)},entered:{opacity:1,transform:"none"}},l9=(typeof navigator==="undefined"?"undefined":w(navigator))<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ue=l3.forwardRef(function(e,t){var n=e.addEndListener,r=e.appear,o=r===void 0?!0:r,i=e.children,a=e.easing,l=e.in,u=e.onEnter,c=e.onEntered,s=e.onEntering,p=e.onExit,d=e.onExited,f=e.onExiting,m=e.style,v=e.timeout,h=v===void 0?"auto":v,g=e.TransitionComponent,y=g===void 0?oB:g,b=tS(e,l6),x=l3.useRef(),w=l3.useRef(),C=oc(),O=l3.useRef(null),E=oy(O,i.ref,t),T=function(e){return function(t){if(e){var n=O.current;t===void 0?e(n):e(n,t)}}},k=T(s),R=T(function(e,t){oQ(e);var n=oq({style:m,timeout:h,easing:a},{mode:"enter"}),r=n.duration,o=n.delay,i=n.easing,l;h==="auto"?(l=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=l):l=r,e.style.transition=[C.transitions.create("opacity",{duration:l,delay:o}),C.transitions.create("transform",{duration:l9?l:l*.666,delay:o,easing:i})].join(","),u&&u(e,t)}),M=T(c),S=T(f),A=T(function(e){var t=oq({style:m,timeout:h,easing:a},{mode:"exit"}),n=t.duration,r=t.delay,o=t.easing,i;h==="auto"?(i=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=n,e.style.transition=[C.transitions.create("opacity",{duration:i,delay:r}),C.transitions.create("transform",{duration:l9?i:i*.666,delay:l9?r:r||i*.333,easing:o})].join(","),e.style.opacity=0,e.style.transform=l7(.75),p&&p(e)}),j=T(d),P=function(e){h==="auto"&&(x.current=setTimeout(e,w.current||0)),n&&n(O.current,e)};return l3.useEffect(function(){return function(){clearTimeout(x.current)}},[]),l4(y,D({appear:o,in:l,nodeRef:O,onEnter:R,onEntered:M,onEntering:k,onExit:A,onExited:j,onExiting:S,addEndListener:P,timeout:h==="auto"?null:h},b,{children:function(e,t){return l3.cloneElement(i,D({style:D({opacity:0,transform:l7(.75),visibility:e==="exited"&&!l?"hidden":void 0},l8[e],m,i.props.style),ref:E},t))}}))});ue.muiSupportAuto=!0;var ut=ue;import*as un from"react";function ur(e){return tk("MuiTooltip",e)}var uo=tR("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ui=uo;import{jsx as ua}from"react/jsx-runtime";import{jsxs as ul}from"react/jsx-runtime";var uu=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function uc(e){return Math.round(e*1e5)/1e5}var us=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,o=e.touch,i=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat(om(i.split("-")[0]))],arrow:["arrow"]};return tx(a,ur,t)},up=of(l5,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(function(e){var t=e.theme,n=e.ownerState,r=e.open;var o;return D({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&(o={},u(o,'&[data-popper-placement*="bottom"] .'.concat(ui.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),u(o,'&[data-popper-placement*="top"] .'.concat(ui.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),u(o,'&[data-popper-placement*="right"] .'.concat(ui.arrow),D({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),u(o,'&[data-popper-placement*="left"] .'.concat(ui.arrow),D({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),o))}),ud=of("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat(om(n.placement.split("-")[0]))]]}})(function(e){var t=e.theme,n=e.ownerState;var r;return D({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:rN(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(uc(16/14),"em"),fontWeight:t.typography.fontWeightRegular},(r={},u(r,".".concat(ui.popper,'[data-popper-placement*="left"] &'),D({transformOrigin:"right center"},n.isRtl?D({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):D({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),u(r,".".concat(ui.popper,'[data-popper-placement*="right"] &'),D({transformOrigin:"left center"},n.isRtl?D({marginRight:"14px"},n.touch&&{marginRight:"24px"}):D({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),u(r,".".concat(ui.popper,'[data-popper-placement*="top"] &'),D({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),u(r,".".concat(ui.popper,'[data-popper-placement*="bottom"] &'),D({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})),r))}),uf=of("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})(function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:rN(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),um=!1,uv=null,uh={x:0,y:0};function ug(e,t){return function(n){t&&t(n),e(n)}}var uy=un.forwardRef(function(e,t){var n,r,o,i,a,l,u,c,s,p,d,f,m,v,h,g,b,x,w;var C=os({props:e,name:"MuiTooltip"}),O=C.arrow,E=O===void 0?!1:O,T=C.children,k=C.components,R=k===void 0?{}:k,M=C.componentsProps,S=M===void 0?{}:M,A=C.describeChild,j=A===void 0?!1:A,P=C.disableFocusListener,L=P===void 0?!1:P,_=C.disableHoverListener,B=_===void 0?!1:_,N=C.disableInteractive,F=N===void 0?!1:N,I=C.disableTouchListener,V=I===void 0?!1:I,W=C.enterDelay,z=W===void 0?100:W,H=C.enterNextDelay,K=H===void 0?0:H,U=C.enterTouchDelay,X=U===void 0?700:U,Y=C.followCursor,Z=Y===void 0?!1:Y,G=C.id,Q=C.leaveDelay,q=Q===void 0?0:Q,$=C.leaveTouchDelay,J=$===void 0?1500:$,ee=C.onClose,et=C.onOpen,en=C.open,er=C.placement,eo=er===void 0?"bottom":er,ei=C.PopperComponent,ea=C.PopperProps,el=ea===void 0?{}:ea,eu=C.slotProps,ec=eu===void 0?{}:eu,es=C.slots,ep=es===void 0?{}:es,ed=C.title,ef=C.TransitionComponent,em=ef===void 0?ut:ef,ev=C.TransitionProps,eh=tS(C,uu),eg=un.isValidElement(T)?T:ua("span",{children:T}),ey=oc(),eb=ey.direction==="rtl",ex=y(un.useState(),2),ew=ex[0],eC=ex[1],eO=y(un.useState(null),2),eE=eO[0],eT=eO[1],ek=un.useRef(!1),eR=F||Z,eM=un.useRef(),eS=un.useRef(),eA=un.useRef(),ej=un.useRef(),eP=y(oh({controlled:en,default:!1,name:"Tooltip",state:"open"}),2),eL=eP[0],e_=eP[1],eB=eL,eN=ov(G),eF=un.useRef(),eD=un.useCallback(function(){eF.current!==void 0&&(document.body.style.WebkitUserSelect=eF.current,eF.current=void 0),clearTimeout(ej.current)},[]);un.useEffect(function(){return function(){clearTimeout(eM.current),clearTimeout(eS.current),clearTimeout(eA.current),eD()}},[eD]);var eI=function(e){clearTimeout(uv),um=!0,e_(!0),et&&!eB&&et(e)},eV=og(function(e){clearTimeout(uv),uv=setTimeout(function(){um=!1},800+q),e_(!1),ee&&eB&&ee(e),clearTimeout(eM.current),eM.current=setTimeout(function(){ek.current=!1},ey.transitions.duration.shortest)}),eW=function(e){ek.current&&e.type!=="touchstart"||(ew&&ew.removeAttribute("title"),clearTimeout(eS.current),clearTimeout(eA.current),z||um&&K?eS.current=setTimeout(function(){eI(e)},um?K:z):eI(e))},ez=function(e){clearTimeout(eS.current),clearTimeout(eA.current),eA.current=setTimeout(function(){eV(e)},q)},eH=ob(),eK=eH.isFocusVisibleRef,eU=eH.onBlur,eX=eH.onFocus,eY=eH.ref,eZ=y(un.useState(!1),2),eG=eZ[1],eQ=function(e){eU(e),eK.current===!1&&(eG(!1),ez(e))},eq=function(e){ew||eC(e.currentTarget),eX(e),eK.current===!0&&(eG(!0),eW(e))},e$=function(e){ek.current=!0;var t=eg.props;t.onTouchStart&&t.onTouchStart(e)},eJ=eW,e0=ez,e1=function(e){e$(e),clearTimeout(eA.current),clearTimeout(eM.current),eD(),eF.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ej.current=setTimeout(function(){document.body.style.WebkitUserSelect=eF.current,eW(e)},X)},e2=function(e){eg.props.onTouchEnd&&eg.props.onTouchEnd(e),eD(),clearTimeout(eA.current),eA.current=setTimeout(function(){eV(e)},J)};un.useEffect(function(){var e=function e(e){(e.key==="Escape"||e.key==="Esc")&&eV(e)};if(!eB)return;return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[eV,eB]);var e5=oy(eg.ref,eY,eC,t);!ed&&ed!==0&&(eB=!1);var e3=un.useRef(),e4=function(e){var t=eg.props;t.onMouseMove&&t.onMouseMove(e),uh={x:e.clientX,y:e.clientY},e3.current&&e3.current.update()},e6={},e7=typeof ed=="string";j?(e6.title=!eB&&e7&&!B?ed:null,e6["aria-describedby"]=eB?eN:null):(e6["aria-label"]=e7?ed:null,e6["aria-labelledby"]=eB&&!e7?eN:null);var e8=D({},e6,eh,eg.props,{className:rp(eh.className,eg.props.className),onTouchStart:e$,ref:e5},Z?{onMouseMove:e4}:{}),e9={};V||(e8.onTouchStart=e1,e8.onTouchEnd=e2),B||(e8.onMouseOver=ug(eJ,e8.onMouseOver),e8.onMouseLeave=ug(e0,e8.onMouseLeave),eR||(e9.onMouseOver=eJ,e9.onMouseLeave=e0)),L||(e8.onFocus=ug(eq,e8.onFocus),e8.onBlur=ug(eQ,e8.onBlur),eR||(e9.onFocus=eq,e9.onBlur=eQ));var te=un.useMemo(function(){var e;var t=[{name:"arrow",enabled:!!eE,options:{element:eE,padding:4}}];return(e=el.popperOptions)!=null&&e.modifiers&&(t=t.concat(el.popperOptions.modifiers)),D({},el.popperOptions,{modifiers:t})},[eE,el]),tt=D({},C,{isRtl:eb,arrow:E,disableInteractive:eR,placement:eo,PopperComponentProp:ei,touch:ek.current}),tn=us(tt),tr=(n=(r=ep.popper)!=null?r:R.Popper)!=null?n:up,to=(o=(i=(a=ep.transition)!=null?a:R.Transition)!=null?i:em)!=null?o:ut,ti=(l=(u=ep.tooltip)!=null?u:R.Tooltip)!=null?l:ud,ta=(c=(s=ep.arrow)!=null?s:R.Arrow)!=null?c:uf,tl=iN(tr,D({},el,(p=ec.popper)!=null?p:S.popper,{className:rp(tn.popper,el===null||el===void 0?void 0:el.className,(d=(f=ec.popper)!=null?f:S.popper)==null?void 0:d.className)}),tt),tu=iN(to,D({},ev,(m=ec.transition)!=null?m:S.transition),tt),tc=iN(ti,D({},(v=ec.tooltip)!=null?v:S.tooltip,{className:rp(tn.tooltip,(h=(g=ec.tooltip)!=null?g:S.tooltip)==null?void 0:h.className)}),tt),ts=iN(ta,D({},(b=ec.arrow)!=null?b:S.arrow,{className:rp(tn.arrow,(x=(w=ec.arrow)!=null?w:S.arrow)==null?void 0:x.className)}),tt);return ul(un.Fragment,{children:[un.cloneElement(eg,e8),ua(tr,D({as:ei!==null&&ei!==void 0?ei:l5,placement:eo,anchorEl:Z?{getBoundingClientRect:function(){return{top:uh.y,left:uh.x,right:uh.x,bottom:uh.y,width:0,height:0}}}:ew,popperRef:e3,open:ew?eB:!1,id:eN,transition:!0},e9,tl,{popperOptions:te,children:function(e){var t=e.TransitionProps;return ua(to,D({timeout:ey.transitions.duration.shorter},t,tu,{children:ul(ti,D({},tc,{children:[ed,E?ua(ta,D({},ts,{ref:eT})):null]}))}))}}))]})}),ub=uy;import{Fragment as ux,jsx as uw,jsxs as uC}from"react/jsx-runtime";var uO=/*#__PURE__*/function(e){"use strict";s(t,e);function t(e){i(this,t);return o(this,t,[e])}l(t,[{key:"render",value:function e(){var e,t;var n=this.props,r=n.value,o=n.voucherValue,i=n.maxMonths,a=n.notQualifyForRewardThisMonth,l=n.amountShow,u=n.translationConfig,c=u===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:"",estimateDisclaimer:""}:u,s=n.storeConfig,p=s===void 0?{tiers:[{consecutive_months:0,min_spend:0,max_spend:0,promo_code:""},{consecutive_months:0,min_spend:0,promo_code:""}]}:s,d=n.currencyAbbreviate,f=d===void 0?!1:d,m=n.currencyFormat,v=m===void 0?function(){}:m,h=v(o||0,!0,f),g=c.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(h)),y=eg(c.approximateTotal,{currency_symbol:"",projected_month_spend:""}),b=parseFloat(String(p===null||p===void 0?void 0:(t=p.tiers)===null||t===void 0?void 0:(e=t[0])===null||e===void 0?void 0:e.min_spend))||0,x=v(b,!0,f),w=c.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(x)),C=eg(c.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),O=v(l!==null&&l!==void 0?l:0,!1,!1);return uC($,{children:[uw(J,{children:a?uC(ux,{children:[uw(ee,{children:uw(eM,{className:"loyalty-warning-icon",color:"#4A6987"})}),uw(eS,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#293A4A",noSpacing:!0,children:c.notQualify})]}):uC(ux,{children:[uw(eS,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:C}),"\xa0",uw(eS,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:"".concat(O)}),uw(ee,{children:uw(ub,{slotProps:{tooltip:{sx:{color:"#FFFFFF",backgroundColor:"#252525",fontFamily:"Inter",fontWeight:400,fontSize:"14px",lineHeight:"20px","& .MuiTooltip-arrow":{color:"#252525"}}}},title:c.estimateDisclaimer,arrow:!0,placement:"top",children:uw("span",{className:"info-icon",children:uw(i_,{children:uw(eL,{})})})})})]})}),r===i?"":a?uC(eS,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[y,"\xa0",uw(eS,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:"".concat(O)})]}):o!=null||o!=null?uw(eS,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:g}):uw(eS,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:w})]})}}]);return t}(eR.Component),uE=uO;import{useState as uT}from"react";import{FaExclamationTriangle as uk}from"react-icons/fa";import{NsTypography as uR}from"@nuskin/foundation-ui-components";import{CircularProgressbarWithChildren as uM,buildStyles as uS}from"react-circular-progressbar";import{Fragment as uA,jsx as uj,jsxs as uP}from"react/jsx-runtime";var uL=function(e){var t,n;var r=y(uT(!1),2),o=r[0],i=r[1],a=function(){i(!o)},l=e.handleOpenSubscriptionRewardPopup,u=l===void 0?function(){}:l,c=e.notQualifyForRewardThisMonth,s=c===void 0?!1:c,p=e.value,d=p===void 0?0:p,f=e.voucherValue,m=f===void 0?0:f,v=e.amountShow,h=e.maxMonths,g=h===void 0?0:h,b=e.translationConfig,x=b===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:"",estimateDisclaimer:""}:b,w=e.learnMoreConfig,C=w===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:w,O=e.storeConfig,E=O===void 0?{tiers:[{consecutive_months:"",min_spend:"",max_spend:"",promo_code:""},{consecutive_months:"",min_spend:"",promo_code:""}]}:O,T=e.currencyAbbreviate,k=T===void 0?!1:T,R=e.currencyFormat,M=R===void 0?function(){}:R,S="";m===50&&!s?S=x.learn3xMore:m===150||s?S=C.learnMore:m==null&&(S=x.learnMore);var A=eg(x.monthsComplete,{completed_months:d,total_months:g}),j=M(m||0,!0,k),P=x.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(j)),L=x.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(j)),_=eg(x.approximateTotal,{currency_symbol:"",projected_month_spend:""}),B=parseFloat(String(E===null||E===void 0?void 0:(n=E.tiers)===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.min_spend))||0,N=M(B,!0,k),F=x.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(N)),D=eg(x.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),I=eg(x.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),V=M(v!==null&&v!==void 0?v:0,!1,!1);return uP(Z,{children:[uj(G,{children:uj("img",{className:"reward-logo",src:x.loyaltyLogoBlack,alt:"Rewards Logo"})}),uj("div",{className:"reward-progress",children:uP(uM,{value:d/g*100,strokeWidth:12,background:!0,styles:uS({rotation:.5,strokeLinecap:"butt",backgroundColor:d===g&&!s?"rgb(195 240 194)":"#fff",pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[uj(ea,{count:g}),d===g&&!s?uj(ep,{}):s?uj(ee,{children:uj(uk,{className:"outline-exclamation-icon",color:"#91ACC8"})}):m!=null||m!=null?uP(q,{children:[uj(uR,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(j)}),uj(uR,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:I})]}):uj(q,{children:uj(ev,{})})]})}),uj(G,{children:d===g&&v!==void 0&&v>B?uj("div",{className:"info-item",children:P}):uj("div",{className:"info-item",children:A})}),uP($,{children:[d===g?"":s?uP(uR,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[_," ",uj(uR,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:"".concat(V)})]}):m!=null||m!=null?uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:L}):uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:F}),uj(J,{children:s?uP(uA,{children:[uj(ee,{children:uj(uk,{className:"loyalty-warning-icon",color:"#4A6987"})}),uj(uR,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#293A4A",noSpacing:!0,children:x.notQualify})]}):uP(uA,{children:[uP(uR,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:[D," "]}),"\xa0",uj(uR,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:"".concat(V)}),uj(ee,{children:uj(ub,{slotProps:{tooltip:{sx:{color:"#FFFFFF",backgroundColor:"#252525",fontFamily:"Inter",fontWeight:400,fontSize:"14px",lineHeight:"20px","& .MuiTooltip-arrow":{color:"#252525"}}}},title:x.estimateDisclaimer,arrow:!0,placement:"top",open:o,onClose:function(){return i(!1)},children:uj("span",{className:"info-icon",children:uj(i_,{onClick:a,children:uj(eL,{})})})})})]})})]}),uj(G,{children:uj(Q,{onClick:u,children:uj("u",{children:S})})})]})},u_=uL;var uB=(typeof window==="undefined"?"undefined":w(window))=="object",uN=/*#__PURE__*/function(){"use strict";function e(){i(this,e);this.width=uB?window.innerWidth:0;this.scroll={vertical:uB?window.scrollY:0,horizontal:uB?window.scrollX:0,direction:"none"}}l(e,[{key:"isMobile",get:function e(){return this.isPhone}},{key:"isPhone",get:function e(){return uB?window.innerWidth<768:this.width<768}}]);return e}(),uF=new uN;var uD=function(e,t,n,r,o,i,a,l,u){if(e){var c,s,p;var d,f;var m=e===null||e===void 0?void 0:(c=e.csmMonthlySubsOrderTotal)===null||c===void 0?void 0:c.sort(function(e,t){return e.year===t.year?t.month-e.month:t.year-e.year}),v=m===null||m===void 0?void 0:m.some(function(e){return e.month===u.getMonth()+1&&e.year===u.getFullYear()}),h=m===null||m===void 0?void 0:m.filter(function(e){return e.month===u.getMonth()+1&&e.year===u.getFullYear()}),g=(d=h===null||h===void 0?void 0:(s=h.map(function(e){return e.totalAmount}))===null||s===void 0?void 0:s[0])!==null&&d!==void 0?d:0,y=parseInt((f=e===null||e===void 0?void 0:(p=e.approximateMonthlyTotalResponse)===null||p===void 0?void 0:p.currentMonthTotal)!==null&&f!==void 0?f:"0"),b=0;y>n?b=n:b=t;var x=h===null||h===void 0?void 0:h.some(function(e){return e.totalAmount>=b}),w=v&&x?new Date(u.getFullYear(),u.getMonth()-(l-1),1):new Date(u.getFullYear(),u.getMonth()-l,1),C=m===null||m===void 0?void 0:m.filter(function(e){return new Date(e.year,e.month-1)>=w});C=C===null||C===void 0?void 0:C.filter(function(e){return e.promocode===null||e.promocode===void 0||e.promocode===""}),x||(C=C===null||C===void 0?void 0:C.filter(function(e){return!(e.month===u.getMonth()+1&&e.year===u.getFullYear())}));var O=C===null||C===void 0?void 0:C.slice(0,l),E=O===null||O===void 0?void 0:O.every(function(e){return e.totalAmount>=n}),T=O===null||O===void 0?void 0:O.map(function(e){return e===null||e===void 0?void 0:e.promocode}),k=!(T===null||T===void 0?void 0:T.some(function(e){return e===void 0}))?!1:T===null||T===void 0?void 0:T.every(function(e){return e===T[0]}),R=x?u.getMonth():u.getMonth()-1,M=2;if(O!=null&&T!=null)for(var S=0;S<(O===null||O===void 0?void 0:O.length);S++){var A,j,P;var L=(A=O[S])===null||A===void 0?void 0:A.totalAmount,_=u.getFullYear();if(((j=O[S])===null||j===void 0?void 0:j.month)&&((P=O[S])===null||P===void 0?void 0:P.month)!==new Date(_,R-S).getMonth()+1)return{monthCompletionValue:a,voucherValue:i};if(k&&(T[S]!==void 0||T[S]!==""||T[S]!==null))return{monthCompletionValue:0,voucherValue:i};if(L>=t&&(!T[S]||T[S]===void 0||T[S]===""||T[S]===null))a=a+1,E||M===2&&L>=n?i=o:(i=r,M=1);else if(L<t)return{monthCompletionValue:a,voucherValue:i}}(!v||!x)&&i!==r&&(y>=n?i=o:i=r),!x&&i===r&&a<l&&g>=t&&(a=a+1)}return{monthCompletionValue:a,voucherValue:i}};import{Fragment as uI,jsx as uV,jsxs as uW}from"react/jsx-runtime";var uz=function(e){var t,n,r,o,i,a,l,u,c;var s,p,d;var f=e.title,m=e.subscriptionData,v=e.translationConfig,h=e.learnMoreConfig,g=e.storeConfig,b=e.currencyFormat,x=2,w=(s=g===null||g===void 0?void 0:(n=g.tiers)===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.max_spend)!==null&&s!==void 0?s:0,C=(p=g===null||g===void 0?void 0:(o=g.tiers)===null||o===void 0?void 0:(r=o[0])===null||r===void 0?void 0:r.min_spend)!==null&&p!==void 0?p:0,O=(d=g===null||g===void 0?void 0:(a=g.tiers)===null||a===void 0?void 0:(i=a[0])===null||i===void 0?void 0:i.consecutive_months)!==null&&d!==void 0?d:0,E=y(H(!1),2),T=E[0],k=E[1],R=function(){return k(!0)},M=function(){return k(!1)},S=m,A=0,j=0,P=0;g===null||g===void 0?void 0:(l=g.tiers)===null||l===void 0?void 0:l.map(function(e){e.min_spend<C&&(C=e.min_spend),"max_spend"in e&&e.max_spend>w&&(w=e.max_spend)}),g===null||g===void 0?void 0:(u=g.tiers)===null||u===void 0?void 0:u.map(function(e){if(e.min_spend===C){var t,n;var r=e.promo_code;r=r===null||r===void 0?void 0:(n=r.split("-"))===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.replace("NSR",""),A=parseInt(r)}if(e.min_spend===w){var o,i;var a=e.promo_code;a=a===null||a===void 0?void 0:(i=a.split("-"))===null||i===void 0?void 0:(o=i[0])===null||o===void 0?void 0:o.replace("NSR",""),j=parseInt(a)}});var L;var _=0,B=parseInt((L=S===null||S===void 0?void 0:(c=S.approximateMonthlyTotalResponse)===null||c===void 0?void 0:c.currentMonthTotal)!==null&&L!==void 0?L:"0");B<C||B<w?_=A:B>w?_=j:_=0;var N=B<C&&_!==0&&x!==O,F=uD(S,C,w,A,j,_,P,O,new Date),D=F.monthCompletionValue,I=F.voucherValue;return x=D,_=I,uW(Y,{children:[uF.isMobile?uV(u_,{value:x,title:f,voucherValue:_,maxMonths:O,handleOpenSubscriptionRewardPopup:R,storeConfig:g,amountShow:B,notQualifyForRewardThisMonth:N,translationConfig:v,learnMoreConfig:h,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b}):uW(uI,{children:[uV(ek,{value:x,title:f,notQualifyForRewardThisMonth:N,monthCompletionValue:P,storeConfig:g,maxMonths:O,voucherValue:_,handleOpenSubscriptionRewardPopup:R,translationConfig:v,learnMoreConfig:h,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b}),uV(uE,{notQualifyForRewardThisMonth:N,value:x,voucherValue:_,maxMonths:O,title:f,monthCompletionValue:P,storeConfig:g,translationConfig:v,learnMoreConfig:h,handleOpenSubscriptionRewardPopup:R,amountShow:B,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b})]}),uV(z,{show:T,close:M,amountShow:B,learnMoreConfig:h,translationConfig:v})]})},uH=uz;export{uH as SubscriptionReward};/*! Bundled license information:
1
+ function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,t,n){t=c(t);return h(e,O()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function l(e,t,n){if(t)a(e.prototype,t);if(n)a(e,n);return e}function u(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function c(e){c=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return c(e)}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)g(e,t)}function p(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var o=true;var i=false;var a,l;try{for(n=n.call(e);!(o=(a=n.next()).done);o=true){r.push(a.value);if(t&&r.length===t)break}}catch(e){i=true;l=e}finally{try{if(!o&&n["return"]!=null)n["return"]()}finally{if(i)throw l}}return r}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){if(t&&(w(t)==="object"||typeof t==="function")){return t}return r(e)}function g(e,t){g=Object.setPrototypeOf||function e(e,t){e.__proto__=t;return e};return g(e,t)}function y(e,n){return t(e)||f(e,n)||C(e,n)||m()}function b(e,t){if(!t){t=e.slice(0)}return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e){return n(e)||d(e)||C(e)||v()}function w(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function C(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}function E(){var e=b(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n"]);E=function t(){return e};return e}function T(){var e=b(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n"]);T=function t(){return e};return e}function k(){var e=b(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n"]);k=function t(){return e};return e}function R(){var e=b(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n"]);R=function t(){return e};return e}function M(){var e=b(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n"]);M=function t(){return e};return e}function S(){var e=b(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n"]);S=function t(){return e};return e}function A(){var e=b(["\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n"]);A=function t(){return e};return e}function j(){var e=b(["\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n"]);j=function t(){return e};return e}function P(){var e=b(["\n position: absolute;\n height: 100%;\n"]);P=function t(){return e};return e}function L(){var e=b(["\n background: #fff;\n width: 6px;\n height: 17%;\n"]);L=function t(){return e};return e}function _(){var e=b(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"]);_=function t(){return e};return e}function B(){var e=b(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]);B=function t(){return e};return e}function N(){var e=b(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"]);N=function t(){return e};return e}function F(){var e=b(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]);F=function t(){return e};return e}import{a as D,b as I,c as V,d as W,e as z}from"../chunk-XPGXQBAL.mjs";import{useState as H}from"react";import K from"react";import{CircularProgressbarWithChildren as U,buildStyles as X}from"react-circular-progressbar";var Y=W.div(E()),Z=W.div(T()),G=W.div(k()),Q=W.div(R()),q=W.div(M()),$=W.div(S()),J=W.div(A()),ee=W.span(j()),et=W.div(P()),en=W.div(L());import{jsx as er}from"react/jsx-runtime";function eo(e){return er(et,{style:{transform:"rotate(".concat(e.turns,"turn)")},children:er(en,{})})}function ei(e){var t=1/e.count;return Array(e.count).fill(null).map(function(e,n){return er(eo,{turns:n*t+.5},n)})}var ea=ei;import{FaExclamationTriangle as el}from"react-icons/fa";import{jsx as eu,jsxs as ec}from"react/jsx-runtime";function es(){return ec("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[eu("path",{d:"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z",fill:"#405E50"}),eu("path",{d:"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z",fill:"#405E50"}),eu("path",{d:"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z",fill:"#405E50"}),eu("path",{d:"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z",fill:"#405E50"}),eu("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#405E50"}),eu("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#405E50"})]})}var ep=es;import{jsx as ed,jsxs as ef}from"react/jsx-runtime";function em(){return ef("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ed("path",{d:"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z",fill:"#B0B0B0"}),ed("path",{d:"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z",fill:"#B0B0B0"}),ed("path",{d:"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z",fill:"#B0B0B0"}),ed("path",{d:"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z",fill:"#B0B0B0"}),ed("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#B0B0B0"}),ed("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#B0B0B0"})]})}var ev=em;import eh from"react";var eg=function(e,t){return Object.keys(t).reduce(function(e,n){var r;var o=(r=t[n])!==null&&r!==void 0?r:"";return e.replace(new RegExp("%".concat(n,"%"),"g"),String(o))},e)};import{jsx as ey,jsxs as eb}from"react/jsx-runtime";var ex=/*#__PURE__*/function(e){"use strict";s(t,e);function t(e){i(this,t);return o(this,t,[e])}l(t,[{key:"render",value:function e(){var e=this.props,t=e.value,n=e.voucherValue,r=e.maxMonths,o=e.handleOpenSubscriptionRewardPopup,i=e.notQualifyForRewardThisMonth,a=e.translationConfig,l=a===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:""}:a,u=e.learnMoreConfig,c=u===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:u,s=e.currencyAbbreviate,p=s===void 0?!1:s,d=e.currencyFormat,f=d===void 0?function(){}:d,m="";n===50&&!i?m=l.learn3xMore:n===150||i?m=c.learnMore:n==null&&(m=l.learnMore);var v=eg(l.monthsComplete,{completed_months:t,total_months:r}),h=f(n||0,!0,p),g=l.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(h));return eb(G,{children:[ey("img",{className:"reward-logo",src:l.loyaltyLogoBlack,alt:"Rewards Logo"}),t===r?ey("div",{className:"info-item",children:g}):ey("div",{className:"info-item",children:v}),ey(Q,{id:"learnMore",onClick:o,children:ey("u",{children:m})})]})}}]);return t}(eh.Component),ew=ex;import{NsTypography as eC}from"@nuskin/foundation-ui-components";import{jsx as eO,jsxs as eE}from"react/jsx-runtime";var eT=/*#__PURE__*/function(e){"use strict";s(t,e);function t(e){i(this,t);return o(this,t,[e])}l(t,[{key:"render",value:function e(){var e=this.props,t=e.value,n=t===void 0?0:t,r=e.voucherValue,o=r===void 0?0:r,i=e.maxMonths,a=i===void 0?0:i,l=e.handleOpenSubscriptionRewardPopup,u=l===void 0?function(){}:l,c=e.notQualifyForRewardThisMonth,s=c===void 0?!1:c,p=e.translationConfig,d=p===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:""}:p,f=e.learnMoreConfig,m=f===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:f,v=e.currencyAbbreviate,h=v===void 0?!1:v,g=e.currencyFormat,y=g===void 0?function(){}:g,b=eg(d.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),x=y(o||0,!0,h);return eE(Z,{children:[eO("div",{className:"reward-progress",children:eE(U,{value:n/a*100,strokeWidth:12,background:!0,styles:X({rotation:.5,strokeLinecap:"butt",backgroundColor:n===a&&!s?"rgb(195 240 194)":"#fff",pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[eO(ea,{count:a}),n===a&&!s?eO(ep,{}):s?eO(ee,{children:eO(el,{className:"outline-exclamation-icon",color:"#91ACC8"})}):o!=null||o!=null?eE(q,{children:[eO(eC,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(x)}),eO(eC,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:b})]}):eO(q,{children:eO(ev,{})})]})}),eO(ew,{value:n,voucherValue:o,notQualifyForRewardThisMonth:s,handleOpenSubscriptionRewardPopup:u,maxMonths:a,translationConfig:d,learnMoreConfig:m,currencyAbbreviate:h,currencyFormat:y})]})}}]);return t}(K.Component),ek=eT;import eR from"react";import{FaExclamationTriangle as eM}from"react-icons/fa";import{NsTypography as eS}from"@nuskin/foundation-ui-components";import{jsx as eA,jsxs as ej}from"react/jsx-runtime";function eP(){return ej("svg",{width:"19",height:"19",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[eA("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.833344 9.99967C0.833344 4.93706 4.9374 0.833008 10 0.833008C15.0626 0.833008 19.1667 4.93706 19.1667 9.99967C19.1667 15.0623 15.0626 19.1663 10 19.1663C4.9374 19.1663 0.833344 15.0623 0.833344 9.99967ZM10 2.49967C5.85787 2.49967 2.50001 5.85754 2.50001 9.99967C2.50001 14.1418 5.85787 17.4997 10 17.4997C14.1421 17.4997 17.5 14.1418 17.5 9.99967C17.5 5.85754 14.1421 2.49967 10 2.49967Z",fill:"#4A6987"}),eA("line",{x1:"10.1667",y1:"9.375",x2:"10.1667",y2:"14.7917",stroke:"#4A6987",strokeWidth:"2"}),eA("path",{d:"M10.0052 7.75009C10.6338 7.75009 11.1718 7.22807 11.1771 6.57821C11.1718 5.93901 10.6338 5.41699 10.0052 5.41699C9.35537 5.41699 8.82803 5.93901 8.83335 6.57821C8.82803 7.22807 9.35537 7.75009 10.0052 7.75009Z",fill:"#4A6987"})]})}var eL=eP;var e_={black:"#000",white:"#fff"},eB=e_;var eN={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},eF=eN;var eD={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},eI=eD;var eV={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},eW=eV;var ez={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},eH=ez;var eK={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},eU=eK;var eX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},eY=eX;var eZ={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eG=eZ;function eQ(e){return e!==null&&(typeof e==="undefined"?"undefined":w(e))=="object"&&e.constructor===Object}function eq(e){if(!eQ(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=eq(e[n])}),t}function e$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?D({},e):e;return eQ(e)&&eQ(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(eQ(t[o])&&o in e&&eQ(e[o])?r[o]=e$(e[o],t[o],n):n.clone?r[o]=eQ(t[o])?eq(t[o]):t[o]:r[o]=t[o])}),r}function eJ(e){var t="https://mui.com/production-error/?code="+e;for(var n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function e0(e){if(typeof e!="string")throw new Error(eJ(7));return e.charAt(0).toUpperCase()+e.slice(1)}function e1(e){return e&&e.ownerDocument||document}function e2(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as e5 from"react";var e3=(typeof window==="undefined"?"undefined":w(window))<"u"?e5.useLayoutEffect:e5.useEffect,e4=e3;import*as e6 from"react";var e7=0;function e8(e){var t=y(e6.useState(e),2),n=t[0],r=t[1],o=e||n;return e6.useEffect(function(){n==null&&(e7+=1,r("mui-".concat(e7)))},[n]),o}var e9=e6.useId;function te(e){if(e9!==void 0){var t=e9();return e!==null&&e!==void 0?e:t}return e8(e)}import*as tt from"react";function tn(e){var t=e.controlled,n=e.default,r=e.name,o=e.state,i=o===void 0?"value":o;var a=tt.useRef(t!==void 0),l=a.current,u=y(tt.useState(n),2),c=u[0],s=u[1],p=l?t:c,d=tt.useCallback(function(e){l||s(e)},[]);return[p,d]}import*as tr from"react";function to(e){var t=this;var n=tr.useRef(e);return e4(function(){n.current=e}),tr.useRef(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++){r[o]=arguments[o]}return(0,n.current).apply(t,x(r))}).current}var ti=to;import*as ta from"react";function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return ta.useMemo(function(){return t.every(function(e){return e==null})?null:function(e){t.forEach(function(t){e2(t,e)})}},t)}import*as tu from"react";var tc=!0,ts=!1,tp,td={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 tf(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&td[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tm(e){e.metaKey||e.altKey||e.ctrlKey||(tc=!0)}function tv(){tc=!1}function th(){this.visibilityState==="hidden"&&ts&&(tc=!0)}function tg(e){e.addEventListener("keydown",tm,!0),e.addEventListener("mousedown",tv,!0),e.addEventListener("pointerdown",tv,!0),e.addEventListener("touchstart",tv,!0),e.addEventListener("visibilitychange",th,!0)}function ty(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return tc||tf(t)}function tb(){var e=tu.useCallback(function(e){e!=null&&tg(e.ownerDocument)},[]),t=tu.useRef(!1);function n(){return t.current?(ts=!0,window.clearTimeout(tp),tp=window.setTimeout(function(){ts=!1},100),t.current=!1,!0):!1}function r(e){return ty(e)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r={};return Object.keys(e).forEach(function(o){r[o]=e[o].reduce(function(e,r){if(r){var o=t(r);o!==""&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}var tw=function(e){return e},tC=function(){var e=tw;return{configure:function t(t){e=t},generate:function t(t){return e(t)},reset:function t(){e=tw}}},tO=tC(),tE=tO;var tT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Mui";var r=tT[t];return r?"".concat(n,"-").concat(r):"".concat(tE.generate(e),"-").concat(t)}function tR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Mui";var r={};return t.forEach(function(t){r[t]=tk(e,t,n)}),r}var tM="$$material";function tS(e,t){if(e==null)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tA(e){var t="https://mui.com/production-error/?code="+e;for(var n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function tj(e,t){return W(e,t)}var tP=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};import*as tL from"react";function t_(e){if((typeof e==="undefined"?"undefined":w(e))!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tB(e){if(tL.isValidElement(e)||!t_(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=tB(e[n])}),t}function tN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?D({},e):e;return t_(e)&&t_(t)&&Object.keys(t).forEach(function(o){tL.isValidElement(t[o])?r[o]=t[o]:t_(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&t_(e[o])?r[o]=tN(e[o],t[o],n):n.clone?r[o]=t_(t[o])?tB(t[o]):t[o]:r[o]=t[o]}),r}var tF=["values","unit","step"];var tD=function(e){var t=Object.keys(e).map(function(t){return{key:t,val:e[t]}})||[];return t.sort(function(e,t){return e.val-t.val}),t.reduce(function(e,t){return D({},e,u({},t.key,t.val))},{})};function tI(e){var t=e.values,n=t===void 0?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,o=r===void 0?"px":r,i=e.step,a=i===void 0?5:i,l=tS(e,tF),u=tD(n),c=Object.keys(u);function s(e){return"@media (min-width:".concat(typeof n[e]=="number"?n[e]:e).concat(o,")")}function p(e){return"@media (max-width:".concat((typeof n[e]=="number"?n[e]:e)-a/100).concat(o,")")}function d(e,t){var r=c.indexOf(t);return"@media (min-width:".concat(typeof n[e]=="number"?n[e]:e).concat(o,") and (max-width:").concat((r!==-1&&typeof n[c[r]]=="number"?n[c[r]]:t)-a/100).concat(o,")")}function f(e){return c.indexOf(e)+1<c.length?d(e,c[c.indexOf(e)+1]):s(e)}function m(e){var t=c.indexOf(e);return t===0?s(c[1]):t===c.length-1?p(c[t]):d(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")}return D({keys:c,values:u,up:s,down:p,between:d,only:f,not:m,unit:o},l)}var tV={borderRadius:4},tW=tV;function tz(e,t){return t?tN(e,t,{clone:!1}):e}var tH=tz;var tK={xs:0,sm:600,md:900,lg:1200,xl:1536},tU={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(tK[e],"px)")}};function tX(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||tU;return t.reduce(function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e},{})}if((typeof t==="undefined"?"undefined":w(t))=="object"){var i=r.breakpoints||tU;return Object.keys(t).reduce(function(e,r){if(Object.keys(i.values||tK).indexOf(r)!==-1){var o=i.up(r);e[o]=n(t[r],r)}else{var a=r;e[a]=t[a]}return e},{})}return n(t)}function tY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t;return((t=e.keys)==null?void 0:t.reduce(function(t,n){var r=e.up(n);return t[r]={},t},{}))||{}}function tZ(e,t){return e.reduce(function(e,t){var n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function tG(e){if(typeof e!="string")throw new Error(tA(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||typeof t!="string")return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e);if(r!=null)return r}return t.split(".").reduce(function(e,t){return e&&e[t]!=null?e[t]:null},e)}function tq(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;var o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=tQ(e,n)||r,t&&(o=t(o,r,e)),o}function t$(e){var t=e.prop,n=e.cssProperty,r=n===void 0?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(e[t]==null)return null;var n=e[t],a=e.theme,l=tQ(a,o)||{};return tX(e,n,function(e){var n=tq(l,i,e);return e===n&&typeof e=="string"&&(n=tq(l,i,"".concat(t).concat(e==="default"?"":tG(e)),e)),r===!1?n:u({},r,n)})};return a.propTypes={},a.filterProps=[t],a}var tJ=t$;function t0(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var t1={m:"margin",p:"padding"},t2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},t5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},t3=t0(function(e){if(e.length>2)if(t5[e])e=t5[e];else return[e];var t=y(e.split(""),2),n=t[0],r=t[1],o=t1[n],i=t2[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),t4=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],t6=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],t7=x(t4).concat(x(t6));function t8(e,t,n,r){var o;var i=(o=tQ(e,t,!1))!=null?o:n;return typeof i=="number"?function(e){return typeof e=="string"?e:i*e}:Array.isArray(i)?function(e){return typeof e=="string"?e:i[e]}:typeof i=="function"?i:function(){}}function t9(e){return t8(e,"spacing",8,"spacing")}function ne(e,t){if(typeof t=="string"||t==null)return t;var n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:"-".concat(r)}function nt(e,t){return function(n){return e.reduce(function(e,r){return e[r]=ne(t,n),e},{})}}function nn(e,t,n,r){if(t.indexOf(n)===-1)return null;var o=t3(n),i=nt(o,r),a=e[n];return tX(e,a,i)}function nr(e,t){var n=t9(e.theme);return Object.keys(e).map(function(r){return nn(e,t,r,n)}).reduce(tH,{})}function no(e){return nr(e,t4)}no.propTypes={};no.filterProps=t4;function ni(e){return nr(e,t6)}ni.propTypes={};ni.filterProps=t6;function na(e){return nr(e,t7)}na.propTypes={};na.filterProps=t7;function nl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=t9({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return(n.length===0?[1]:n).map(function(e){var n=t(e);return typeof n=="number"?"".concat(n,"px"):n}).join(" ")};return n.mui=!0,n}function nu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r=t.reduce(function(e,t){return t.filterProps.forEach(function(n){e[n]=t}),e},{}),o=function(e){return Object.keys(e).reduce(function(t,n){return r[n]?tH(t,r[n](e)):t},{})};return o.propTypes={},o.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),o}var nc=nu;function ns(e){return typeof e!="number"?e:"".concat(e,"px solid")}function np(e,t){return tJ({prop:e,themeKey:"borders",transform:t})}var nd=np("border",ns),nf=np("borderTop",ns),nm=np("borderRight",ns),nv=np("borderBottom",ns),nh=np("borderLeft",ns),ng=np("borderColor"),ny=np("borderTopColor"),nb=np("borderRightColor"),nx=np("borderBottomColor"),nw=np("borderLeftColor"),nC=np("outline",ns),nO=np("outlineColor"),nE=function(e){if(e.borderRadius!==void 0&&e.borderRadius!==null){var t=t8(e.theme,"shape.borderRadius",4,"borderRadius"),n=function(e){return{borderRadius:ne(t,e)}};return tX(e,e.borderRadius,n)}return null};nE.propTypes={};nE.filterProps=["borderRadius"];var nT=nc(nd,nf,nm,nv,nh,ng,ny,nb,nx,nw,nE,nC,nO);var nk=function(e){if(e.gap!==void 0&&e.gap!==null){var t=t8(e.theme,"spacing",8,"gap"),n=function(e){return{gap:ne(t,e)}};return tX(e,e.gap,n)}return null};nk.propTypes={};nk.filterProps=["gap"];var nR=function(e){if(e.columnGap!==void 0&&e.columnGap!==null){var t=t8(e.theme,"spacing",8,"columnGap"),n=function(e){return{columnGap:ne(t,e)}};return tX(e,e.columnGap,n)}return null};nR.propTypes={};nR.filterProps=["columnGap"];var nM=function(e){if(e.rowGap!==void 0&&e.rowGap!==null){var t=t8(e.theme,"spacing",8,"rowGap"),n=function(e){return{rowGap:ne(t,e)}};return tX(e,e.rowGap,n)}return null};nM.propTypes={};nM.filterProps=["rowGap"];var nS=tJ({prop:"gridColumn"}),nA=tJ({prop:"gridRow"}),nj=tJ({prop:"gridAutoFlow"}),nP=tJ({prop:"gridAutoColumns"}),nL=tJ({prop:"gridAutoRows"}),n_=tJ({prop:"gridTemplateColumns"}),nB=tJ({prop:"gridTemplateRows"}),nN=tJ({prop:"gridTemplateAreas"}),nF=tJ({prop:"gridArea"}),nD=nc(nk,nR,nM,nS,nA,nj,nP,nL,n_,nB,nN,nF);function nI(e,t){return t==="grey"?t:e}var nV=tJ({prop:"color",themeKey:"palette",transform:nI}),nW=tJ({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nI}),nz=tJ({prop:"backgroundColor",themeKey:"palette",transform:nI}),nH=nc(nV,nW,nz);function nK(e){return e<=1&&e!==0?"".concat(e*100,"%"):e}var nU=tJ({prop:"width",transform:nK}),nX=function(e){if(e.maxWidth!==void 0&&e.maxWidth!==null){var t=function(t){var n,r;var o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||tK[t];return o?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:nK(t)}};return tX(e,e.maxWidth,t)}return null};nX.filterProps=["maxWidth"];var nY=tJ({prop:"minWidth",transform:nK}),nZ=tJ({prop:"height",transform:nK}),nG=tJ({prop:"maxHeight",transform:nK}),nQ=tJ({prop:"minHeight",transform:nK}),nq=tJ({prop:"size",cssProperty:"width",transform:nK}),n$=tJ({prop:"size",cssProperty:"height",transform:nK}),nJ=tJ({prop:"boxSizing"}),n0=nc(nU,nX,nY,nZ,nG,nQ,nJ);var n1={border:{themeKey:"borders",transform:ns},borderTop:{themeKey:"borders",transform:ns},borderRight:{themeKey:"borders",transform:ns},borderBottom:{themeKey:"borders",transform:ns},borderLeft:{themeKey:"borders",transform:ns},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ns},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nE},color:{themeKey:"palette",transform:nI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nI},backgroundColor:{themeKey:"palette",transform:nI},p:{style:ni},pt:{style:ni},pr:{style:ni},pb:{style:ni},pl:{style:ni},px:{style:ni},py:{style:ni},padding:{style:ni},paddingTop:{style:ni},paddingRight:{style:ni},paddingBottom:{style:ni},paddingLeft:{style:ni},paddingX:{style:ni},paddingY:{style:ni},paddingInline:{style:ni},paddingInlineStart:{style:ni},paddingInlineEnd:{style:ni},paddingBlock:{style:ni},paddingBlockStart:{style:ni},paddingBlockEnd:{style:ni},m:{style:no},mt:{style:no},mr:{style:no},mb:{style:no},ml:{style:no},mx:{style:no},my:{style:no},margin:{style:no},marginTop:{style:no},marginRight:{style:no},marginBottom:{style:no},marginLeft:{style:no},marginX:{style:no},marginY:{style:no},marginInline:{style:no},marginInlineStart:{style:no},marginInlineEnd:{style:no},marginBlock:{style:no},marginBlockStart:{style:no},marginBlockEnd:{style:no},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:nk},rowGap:{style:nM},columnGap:{style:nR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nK},maxWidth:{style:nX},minWidth:{transform:nK},height:{transform:nK},maxHeight:{transform:nK},minHeight:{transform:nK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n2=n1;function n5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}var r=t.reduce(function(e,t){return e.concat(Object.keys(t))},[]),o=new Set(r);return t.every(function(e){return o.size===Object.keys(e).length})}function n3(e,t){return typeof e=="function"?e(t):e}function n4(){function e(e,t,n,r){var o;var i=(o={},u(o,e,t),u(o,"theme",n),o),a=r[e];if(!a)return u({},e,t);var l=a.cssProperty,c=l===void 0?e:l,s=a.themeKey,p=a.transform,d=a.style;if(t==null)return null;if(s==="typography"&&t==="inherit")return u({},e,t);var f=tQ(n,s)||{};return d?d(i):tX(i,t,function(t){var n=tq(f,p,t);return t===n&&typeof t=="string"&&(n=tq(f,p,"".concat(e).concat(t==="default"?"":tG(t)),t)),c===!1?n:u({},c,n)})}function t(n){var r;var o=n||{},i=o.sx,a=o.theme,l=a===void 0?{}:a;if(!i)return null;var c=(r=l.unstable_sxConfig)!=null?r:n2;function s(n){var r=n;if(typeof n=="function")r=n(l);else if((typeof n==="undefined"?"undefined":w(n))!="object")return n;if(!r)return null;var o=tY(l.breakpoints),i=Object.keys(o),a=o;return Object.keys(r).forEach(function(n){var o=n3(r[n],l);if(o!=null)if((typeof o==="undefined"?"undefined":w(o))=="object")if(c[n])a=tH(a,e(n,o,l,c));else{var i=tX({theme:l},o,function(e){return u({},n,e)});n5(i,o)?a[n]=t({sx:o,theme:l}):a=tH(a,i)}else a=tH(a,e(n,o,l,c))}),tZ(i,a)}return Array.isArray(i)?i.map(s):s(i)}return t}var n6=n4();n6.filterProps=["sx"];var n7=n6;function n8(e,t){var n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?u({},n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)"),t):n.palette.mode===e?t:{}}var n9=["breakpoints","palette","spacing","shape"];function re(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=e.breakpoints,i=o===void 0?{}:o,a=e.palette,l=a===void 0?{}:a,u=e.spacing,c=e.shape,s=c===void 0?{}:c,p=tS(e,n9),d=tI(i),f=nl(u),m=tN({breakpoints:d,direction:"ltr",components:{},palette:D({mode:"light"},l),spacing:f,shape:D({},tW,s)},p);return m.applyStyles=n8,m=n.reduce(function(e,t){return tN(e,t)},m),m.unstable_sxConfig=D({},n2,p===null||p===void 0?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return n7({sx:e,theme:this})},m}var rt=re;import*as rn from"react";function rr(e){return Object.keys(e).length===0}function ro(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;var t=rn.useContext(I);return!t||rr(t)?e:t}var ri=ro;var ra=rt();function rl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ra;return ri(e)}var ru=rl;function rc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if((typeof e==="undefined"?"undefined":w(e))=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=rc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rc(e))&&(r&&(r+=" "),r+=t);return r}var rp=rs;var rd=["ownerState"],rf=["variants"],rm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rv(e){return Object.keys(e).length===0}function rh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var ry=rt(),rb=function(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)};function rx(e){var t=e.defaultTheme,n=e.theme,r=e.themeId;return rv(n)?t:n[r]||n}function rw(e){return e?function(t,n){return n[e]}:null}function rC(e,t){var n=t.ownerState,r=tS(t,rd),o=typeof e=="function"?e(D({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(function(e){return rC(e,D({ownerState:n},r))});if(o&&(typeof o==="undefined"?"undefined":w(o))=="object"&&Array.isArray(o.variants)){var i=o.variants,a=i===void 0?[]:i,l=tS(o,rf);return a.forEach(function(e){var t=!0;typeof e.props=="function"?t=e.props(D({ownerState:n},r,n)):Object.keys(e.props).forEach(function(o){(n===null||n===void 0?void 0:n[o])!==e.props[o]&&r[o]!==e.props[o]&&(t=!1)}),t&&(Array.isArray(l)||(l=[l]),l.push(typeof e.style=="function"?e.style(D({ownerState:n},r,n)):e.style))}),l}return o}function rO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t=e.themeId,n=e.defaultTheme,r=n===void 0?ry:n,o=e.rootShouldForwardProp,i=o===void 0?rg:o,a=e.slotShouldForwardProp,l=a===void 0?rg:a,u=function(e){return n7(D({},e,{theme:rx(D({},e,{defaultTheme:r,themeId:t}))}))};return u.__mui_systemSx=!0,function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tP(e,function(e){return e.filter(function(e){return!(e!=null&&e.__mui_systemSx)})});var o=n.name,a=n.slot,c=n.skipVariantsResolver,s=n.skipSx,p=n.overridesResolver,d=p===void 0?rw(rb(a)):p,f=tS(n,rm),m=c!==void 0?c:a&&a!=="Root"&&a!=="root"||!1,v=s||!1,h,g=rg;a==="Root"||a==="root"?g=i:a?g=l:rh(e)&&(g=void 0);var b=tj(e,D({shouldForwardProp:g,label:h},f)),w=function(e){return typeof e=="function"&&e.__emotion_real!==e||t_(e)?function(n){return rC(e,D({},n,{theme:rx({theme:n.theme,defaultTheme:r,themeId:t})}))}:e},C=function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++){a[l-1]=arguments[l]}var c=w(n),s=a?a.map(w):[];o&&d&&s.push(function(e){var n=rx(D({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[o]||!n.components[o].styleOverrides)return null;var i=n.components[o].styleOverrides,a={};return Object.entries(i).forEach(function(t){var r=y(t,2),o=r[0],i=r[1];a[o]=rC(i,D({},e,{theme:n}))}),d(e,a)}),o&&!m&&s.push(function(e){var n;var i=rx(D({},e,{defaultTheme:r,themeId:t})),a=i==null||(n=i.components)==null||(n=n[o])==null?void 0:n.variants;return rC({variants:a},D({},e,{theme:i}))}),v||s.push(u);var p=s.length-a.length;if(Array.isArray(n)&&p>0){var f=new Array(p).fill("");c=x(n).concat(x(f)),c.raw=x(n.raw).concat(x(f))}var h=b.apply(void 0,[c].concat(x(s)));return e.muiName&&(h.muiName=e.muiName),h};return b.withConfig&&(C.withConfig=b.withConfig),C}}function rE(e,t){var n=D({},t);return Object.keys(e).forEach(function(r){if(r.toString().match(/^(components|slots)$/))n[r]=D({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){var o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=D({},i),Object.keys(o).forEach(function(e){n[r][e]=rE(o[e],i[e])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function rT(e){var t=e.theme,n=e.name,r=e.props;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:rE(t.components[n].defaultProps,r)}function rk(e){var t=e.props,n=e.name,r=e.defaultTheme,o=e.themeId;var i=ru(r);return o&&(i=i[o]||i),rT({theme:i,name:n,props:t})}function rR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}var rM=rR;function rS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return rM(e,t,n)}function rA(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(function(e){return e+e})),n?"rgb".concat(n.length===4?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function rj(e){if(e.type)return e;if(e.charAt(0)==="#")return rj(rA(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(tA(9,e));var r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(tA(10,o))}else r=r.split(",");return r=r.map(function(e){return parseFloat(e)}),{type:n,values:r,colorSpace:o}}function rP(e){var t=e.type,n=e.colorSpace,r=e.values;return t.indexOf("rgb")!==-1?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):t.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),t.indexOf("color")!==-1?r="".concat(n," ").concat(r.join(" ")):r="".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function rL(e){e=rj(e);var t=e.values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),rP({type:l,values:u})}function r_(e){e=rj(e);var t=e.type==="hsl"||e.type==="hsla"?rj(rL(e)).values:e.values;return t=t.map(function(t){return e.type!=="color"&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rB(e,t){var n=r_(e),r=r_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rN(e,t){return e=rj(e),t=rS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]="/".concat(t):e.values[3]=t,rP(e)}function rF(e,t){if(e=rj(e),t=rS(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(var n=0;n<3;n+=1)e.values[n]*=1-t;return rP(e)}function rD(e,t){if(e=rj(e),t=rS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return rP(e)}function rI(e,t){var n;return D({toolbar:(n={minHeight:56},u(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),u(n,e.up("sm"),{minHeight:64}),n)},t)}var rV=["mode","contrastThreshold","tonalOffset"],rW={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eB.white,default:eB.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},rz={text:{primary:eB.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eB.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function rH(e,t,n,r){var o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=rD(e.main,o):t==="dark"&&(e.dark=rF(e.main,i)))}function rK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eW[200],light:eW[50],dark:eW[400]}:{main:eW[700],light:eW[400],dark:eW[800]}}function rU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eI[200],light:eI[50],dark:eI[400]}:{main:eI[500],light:eI[300],dark:eI[700]}}function rX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eF[500],light:eF[300],dark:eF[700]}:{main:eF[700],light:eF[400],dark:eF[800]}}function rY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eH[400],light:eH[300],dark:eH[700]}:{main:eH[700],light:eH[500],dark:eH[900]}}function rZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eU[400],light:eU[300],dark:eU[700]}:{main:eU[800],light:eU[500],dark:eU[900]}}function rG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eY[400],light:eY[300],dark:eY[700]}:{main:"#ed6c02",light:eY[500],dark:eY[900]}}function rQ(e){var t=e.mode,n=t===void 0?"light":t,r=e.contrastThreshold,o=r===void 0?3:r,i=e.tonalOffset,a=i===void 0?.2:i,l=tS(e,rV),u=e.primary||rK(n),c=e.secondary||rU(n),s=e.error||rX(n),p=e.info||rY(n),d=e.success||rZ(n),f=e.warning||rG(n);function m(e){return rB(e,rz.text.primary)>=o?rz.text.primary:rW.text.primary}var v=function(e){var t=e.color,n=e.name,r=e.mainShade,o=r===void 0?500:r,i=e.lightShade,l=i===void 0?300:i,u=e.darkShade,c=u===void 0?700:u;if(t=D({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(eJ(11,n?" (".concat(n,")"):"",o));if(typeof t.main!="string")throw new Error(eJ(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return rH(t,"light",l,a),rH(t,"dark",c,a),t.contrastText||(t.contrastText=m(t.main)),t},h={dark:rz,light:rW};return e$(D({common:D({},eB),mode:n,primary:v({color:u,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:s,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:p,name:"info"}),success:v({color:d,name:"success"}),grey:eG,contrastThreshold:o,getContrastText:m,augmentColor:v,tonalOffset:a},h[n]),l)}var rq=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function r$(e){return Math.round(e*1e5)/1e5}var rJ={textTransform:"uppercase"},r0='"Roboto", "Helvetica", "Arial", sans-serif';function r1(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,o=r===void 0?r0:r,i=n.fontSize,a=i===void 0?14:i,l=n.fontWeightLight,u=l===void 0?300:l,c=n.fontWeightRegular,s=c===void 0?400:c,p=n.fontWeightMedium,d=p===void 0?500:p,f=n.fontWeightBold,m=f===void 0?700:f,v=n.htmlFontSize,h=v===void 0?16:v,g=n.allVariants,y=n.pxToRem,b=tS(n,rq),x=a/14,w=y||function(e){return"".concat(e/h*x,"rem")},C=function(e,t,n,r,i){return D({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===r0?{letterSpacing:"".concat(r$(r/t),"em")}:{},i,g)},O={h1:C(u,96,1.167,-1.5),h2:C(u,60,1.2,-.5),h3:C(s,48,1.167,0),h4:C(s,34,1.235,.25),h5:C(s,24,1.334,0),h6:C(d,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(d,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(d,14,1.75,.4,rJ),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,rJ),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return e$(D({htmlFontSize:h,pxToRem:w,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:m},O),b,{clone:!1})}function r2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,",.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,",.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,",.12,")")].join(",")}var r5=["none",r2(0,2,1,-1,0,1,1,0,0,1,3,0),r2(0,3,1,-2,0,2,2,0,0,1,5,0),r2(0,3,3,-2,0,3,4,0,0,1,8,0),r2(0,2,4,-1,0,4,5,0,0,1,10,0),r2(0,3,5,-1,0,5,8,0,0,1,14,0),r2(0,3,5,-1,0,6,10,0,0,1,18,0),r2(0,4,5,-2,0,7,10,1,0,2,16,1),r2(0,5,5,-3,0,8,10,1,0,3,14,2),r2(0,5,6,-3,0,9,12,1,0,3,16,2),r2(0,6,6,-3,0,10,14,1,0,4,18,3),r2(0,6,7,-4,0,11,15,1,0,4,20,3),r2(0,7,8,-4,0,12,17,2,0,5,22,4),r2(0,7,8,-4,0,13,19,2,0,5,24,4),r2(0,7,9,-4,0,14,21,2,0,5,26,4),r2(0,8,9,-5,0,15,22,2,0,6,28,5),r2(0,8,10,-5,0,16,24,2,0,6,30,5),r2(0,8,11,-5,0,17,26,2,0,6,32,5),r2(0,9,11,-5,0,18,28,2,0,7,34,6),r2(0,9,12,-6,0,19,29,2,0,7,36,6),r2(0,10,13,-6,0,20,31,3,0,8,38,7),r2(0,10,13,-6,0,21,33,3,0,8,40,7),r2(0,10,14,-6,0,22,35,3,0,8,42,7),r2(0,11,14,-7,0,23,36,3,0,9,44,8),r2(0,11,15,-7,0,24,38,3,0,9,46,8)],r3=r5;var r4=["duration","easing","delay"],r6={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},r7={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function r8(e){return"".concat(Math.round(e),"ms")}function r9(e){if(!e)return 0;var t=e/36;return Math.round((4+15*Math.pow(t,.25)+t/5)*10)}function oe(e){var t=D({},r6,e.easing),n=D({},r7,e.duration);return D({getAutoHeightDuration:r9,create:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var o=r.duration,i=o===void 0?n.standard:o,a=r.easing,l=a===void 0?t.easeInOut:a,u=r.delay,c=u===void 0?0:u,s=tS(r,r4);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat(typeof i=="string"?i:r8(i)," ").concat(l," ").concat(typeof c=="string"?c:r8(c))}).join(",")}},e,{easing:t,duration:n})}var ot={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},on=ot;var or=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=e.mixins,i=o===void 0?{}:o,a=e.palette,l=a===void 0?{}:a,u=e.transitions,c=u===void 0?{}:u,s=e.typography,p=s===void 0?{}:s,d=tS(e,or);if(e.vars)throw new Error(eJ(18));var f=rQ(l),m=rt(e),v=e$(m,{mixins:rI(m.breakpoints,i),palette:f,shadows:r3.slice(),typography:r1(f,p),transitions:oe(c),zIndex:D({},on)});return v=e$(v,d),v=n.reduce(function(e,t){return e$(e,t)},v),v.unstable_sxConfig=D({},n2,d===null||d===void 0?void 0:d.unstable_sxConfig),v.unstable_sx=function(e){return n7({sx:e,theme:this})},v}var oi=oo;import*as oa from"react";var ol=oi(),ou=ol;function oc(){var e=ru(ou);return e[tM]||e}function os(e){var t=e.props,n=e.name;return rk({props:t,name:n,defaultTheme:ou,themeId:tM})}var op=function(e){return rg(e)&&e!=="classes"};var od=rO({themeId:tM,defaultTheme:ou,rootShouldForwardProp:op}),of=od;var om=e0;var ov=te;var oh=tn;var og=ti;var oy=tl;var ob=tb;function ox(e,t){return ox=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(e,t){return e.__proto__=t,e},ox(e,t)}function ow(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ox(e,t)}import oC from"react";import oO from"react-dom";var oE={disabled:!1};import oT from"react";var ok=oT.createContext(null);var oR=function e(e){return e.scrollTop};var oM="unmounted",oS="exited",oA="entering",oj="entered",oP="exiting",oL=function(e){ow(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var o=n,i=o&&!o.isMounting?t.enter:t.appear,a;return r.appearStatus=null,t.in?i?(a=oS,r.appearStatus=oA):a=oj:t.unmountOnExit||t.mountOnEnter?a=oM:a=oS,r.state={status:a},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===oM?{status:oS}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oA&&n!==oj&&(t=oA):(n===oA||n===oj)&&(t=oP)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t,n,r;return t=n=r=e,e!=null&&typeof e!="number"&&(t=e.exit,n=e.enter,r=e.appear!==void 0?e.appear:n),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===oA){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:oO.findDOMNode(this);n&&oR(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oS&&this.setState({status:oM})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[oO.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;if(!e&&!n||oE.disabled){this.safeSetState({status:oj},function(){t.props.onEntered(i)});return}this.props.onEnter(i,a),this.safeSetState({status:oA},function(){t.props.onEntering(i,a),t.onTransitionEnd(u,function(){t.safeSetState({status:oj},function(){t.props.onEntered(i,a)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:oO.findDOMNode(this);if(!t||oE.disabled){this.safeSetState({status:oS},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:oP},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:oS},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:oO.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===oM)return null;var t=this.props,n=t.children,r=t.in,o=t.mountOnEnter,i=t.unmountOnExit,a=t.appear,l=t.enter,u=t.exit,c=t.timeout,s=t.addEndListener,p=t.onEnter,d=t.onEntering,f=t.onEntered,m=t.onExit,v=t.onExiting,h=t.onExited,g=t.nodeRef,y=tS(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oC.createElement(ok.Provider,{value:null},typeof n=="function"?n(e,y):oC.cloneElement(oC.Children.only(n),y))},t}(oC.Component);oL.contextType=ok;oL.propTypes={};function o_(){}oL.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:o_,onEntering:o_,onEntered:o_,onExit:o_,onExiting:o_,onExited:o_};oL.UNMOUNTED=oM;oL.EXITED=oS;oL.ENTERING=oA;oL.ENTERED=oj;oL.EXITING=oP;var oB=oL;function oN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}import oF from"react";import{Children as oD,cloneElement as oI,isValidElement as oV}from"react";function oW(e,t){var n=function e(e){return t&&oV(e)?t(e):e},r=Object.create(null);return e&&oD.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function oz(e,t){e=e||{},t=t||{};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var c=r[u][a];l[r[u][a]]=n(c)}l[u]=n(u)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function oH(e,t,n){return n[t]!=null?n[t]:e.props[t]}function oK(e,t){return oW(e.children,function(n){return oI(n,{onExited:t.bind(null,n),in:!0,appear:oH(n,"appear",e),enter:oH(n,"enter",e),exit:oH(n,"exit",e)})})}function oU(e,t,n){var r=oW(e.children),o=oz(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(oV(a)){var l=i in t,u=i in r,c=t[i],s=oV(c)&&!c.props.in;u&&(!l||s)?o[i]=oI(a,{onExited:n.bind(null,a),in:!0,exit:oH(a,"exit",e),enter:oH(a,"enter",e)}):!u&&l&&!s?o[i]=oI(a,{in:!1}):u&&l&&oV(c)&&(o[i]=oI(a,{onExited:n.bind(null,a),in:c.props.in,exit:oH(a,"exit",e),enter:oH(a,"enter",e)}))}}),o}var oX=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},oY={component:"div",childFactory:function e(e){return e}},oZ=function(e){ow(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var o=r.handleExited.bind(oN(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited,o=t.firstRender;return{children:o?oK(e,r):oU(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=oW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=D({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tS(e,["component","childFactory"]),o=this.state.contextValue,i=oX(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?oF.createElement(ok.Provider,{value:o},i):oF.createElement(ok.Provider,{value:o},oF.createElement(t,r,i))},t}(oF.Component);oZ.propTypes={};oZ.defaultProps=oY;var oG=oZ;var oQ=function(e){return e.scrollTop};function oq(e,t){var n,r;var o=e.timeout,i=e.easing,a=e.style,l=a===void 0?{}:a;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:(typeof i==="undefined"?"undefined":w(i))=="object"?i[t.mode]:i,delay:l.transitionDelay}}import*as o$ from"react";import*as oJ from"react";import*as o0 from"react";import{jsx as o1}from"react/jsx-runtime";function o2(e){var t=e.className,n=e.classes,r=e.pulsate,o=r===void 0?!1:r,i=e.rippleX,a=e.rippleY,l=e.rippleSize,u=e.in,c=e.onExited,s=e.timeout,p=y(o0.useState(!1),2),d=p[0],f=p[1],m=rp(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),v={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},h=rp(n.child,d&&n.childLeaving,o&&n.childPulsate);return!u&&!d&&f(!0),o0.useEffect(function(){if(!u&&c!=null){var e=setTimeout(c,s);return function(){clearTimeout(e)}}},[c,u,s]),o1("span",{className:m,style:v,children:o1("span",{className:h})})}var o5=o2;var o3=tR("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o4=o3;import{jsx as o6}from"react/jsx-runtime";var o7=["center","classes","className"],o8=function(e){return e},o9,ie,it,ir,io=550,ii=80,ia=V(o9||(o9=o8(_()))),il=V(ie||(ie=o8(B()))),iu=V(it||(it=o8(N()))),ic=of("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),is=of(o5,{name:"MuiTouchRipple",slot:"Ripple"})(ir||(ir=o8(F(),0,0,0,0,0,0,0,0,0,0,0,0,0,0)),o4.rippleVisible,ia,io,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o4.ripplePulsate,function(e){var t=e.theme;return t.transitions.duration.shorter},o4.child,o4.childLeaving,il,io,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o4.childPulsate,iu,function(e){var t=e.theme;return t.transitions.easing.easeInOut}),ip=oJ.forwardRef(function(e,t){var n=os({props:e,name:"MuiTouchRipple"}),r=n.center,o=r===void 0?!1:r,i=n.classes,a=i===void 0?{}:i,l=n.className,u=tS(n,o7),c=y(oJ.useState([]),2),s=c[0],p=c[1],d=oJ.useRef(0),f=oJ.useRef(null);oJ.useEffect(function(){f.current&&(f.current(),f.current=null)},[s]);var m=oJ.useRef(!1),v=oJ.useRef(0),h=oJ.useRef(null),g=oJ.useRef(null);oJ.useEffect(function(){return function(){v.current&&clearTimeout(v.current)}},[]);var b=oJ.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;p(function(e){return x(e).concat([o6(is,{classes:{ripple:rp(a.ripple,o4.ripple),rippleVisible:rp(a.rippleVisible,o4.rippleVisible),ripplePulsate:rp(a.ripplePulsate,o4.ripplePulsate),child:rp(a.child,o4.child),childLeaving:rp(a.childLeaving,o4.childLeaving),childPulsate:rp(a.childPulsate,o4.childPulsate)},timeout:io,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},d.current)])}),d.current+=1,f.current=i},[a]),w=oJ.useCallback(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};var r=t.pulsate,i=r===void 0?!1:r,a=t.center,l=a===void 0?o||t.pulsate:a,u=t.fakeElement,c=u===void 0?!1:u;if((e===null||e===void 0?void 0:e.type)==="mousedown"&&m.current){m.current=!1;return}(e===null||e===void 0?void 0:e.type)==="touchstart"&&(m.current=!0);var s=c?null:g.current,p=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},d,f,y;if(l||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)d=Math.round(p.width/2),f=Math.round(p.height/2);else{var x=e.touches&&e.touches.length>0?e.touches[0]:e,w=x.clientX,C=x.clientY;d=Math.round(w-p.left),f=Math.round(C-p.top)}if(l)y=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3),y%2===0&&(y+=1);else{var O=Math.max(Math.abs((s?s.clientWidth:0)-d),d)*2+2,E=Math.max(Math.abs((s?s.clientHeight:0)-f),f)*2+2;y=Math.sqrt(Math.pow(O,2)+Math.pow(E,2))}e!=null&&e.touches?h.current===null&&(h.current=function(){b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},v.current=setTimeout(function(){h.current&&(h.current(),h.current=null)},ii)):b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},[o,b]),C=oJ.useCallback(function(){w({},{pulsate:!0})},[w]),O=oJ.useCallback(function(e,t){if(clearTimeout(v.current),(e===null||e===void 0?void 0:e.type)==="touchend"&&h.current){h.current(),h.current=null,v.current=setTimeout(function(){O(e,t)});return}h.current=null,p(function(e){return e.length>0?e.slice(1):e}),f.current=t},[]);return oJ.useImperativeHandle(t,function(){return{pulsate:C,start:w,stop:O}},[C,w,O]),o6(ic,D({className:rp(o4.root,a.root,l),ref:g},u,{children:o6(oG,{component:null,exit:!0,children:s})}))}),id=ip;function im(e){return tk("MuiButtonBase",e)}var iv=tR("MuiButtonBase",["root","disabled","focusVisible"]),ih=iv;import{jsx as ig}from"react/jsx-runtime";import{jsxs as iy}from"react/jsx-runtime";var ib;var ix=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],iw=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i=tx({root:["root",t&&"disabled",n&&"focusVisible"]},im,o);return n&&r&&(i.root+=" ".concat(r)),i},iC=of("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((ib={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},u(ib,"&.".concat(ih.disabled),{pointerEvents:"none",cursor:"default"}),u(ib,"@media print",{colorAdjust:"exact"}),ib)),iO=o$.forwardRef(function(e,t){var n=os({props:e,name:"MuiButtonBase"}),r=n.action,o=n.centerRipple,i=o===void 0?!1:o,a=n.children,l=n.className,u=n.component,c=u===void 0?"button":u,s=n.disabled,p=s===void 0?!1:s,d=n.disableRipple,f=d===void 0?!1:d,m=n.disableTouchRipple,v=m===void 0?!1:m,h=n.focusRipple,g=h===void 0?!1:h,b=n.LinkComponent,x=b===void 0?"a":b,w=n.onBlur,C=n.onClick,O=n.onContextMenu,E=n.onDragLeave,T=n.onFocus,k=n.onFocusVisible,R=n.onKeyDown,M=n.onKeyUp,S=n.onMouseDown,A=n.onMouseLeave,j=n.onMouseUp,P=n.onTouchEnd,L=n.onTouchMove,_=n.onTouchStart,B=n.tabIndex,N=B===void 0?0:B,F=n.TouchRippleProps,I=n.touchRippleRef,V=n.type,W=tS(n,ix),z=o$.useRef(null),H=o$.useRef(null),K=oy(H,I),U=ob(),X=U.isFocusVisibleRef,Y=U.onFocus,Z=U.onBlur,G=U.ref,Q=y(o$.useState(!1),2),q=Q[0],$=Q[1];p&&q&&$(!1),o$.useImperativeHandle(r,function(){return{focusVisible:function(){$(!0),z.current.focus()}}},[]);var J=y(o$.useState(!1),2),ee=J[0],et=J[1];o$.useEffect(function(){et(!0)},[]);var en=ee&&!f&&!p;o$.useEffect(function(){q&&g&&!f&&ee&&H.current.pulsate()},[f,g,q,ee]);function er(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v;return og(function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0})}var eo=er("start",S),ei=er("stop",O),ea=er("stop",E),el=er("stop",j),eu=er("stop",function(e){q&&e.preventDefault(),A&&A(e)}),ec=er("start",_),es=er("stop",P),ep=er("stop",L),ed=er("stop",function(e){Z(e),X.current===!1&&$(!1),w&&w(e)},!1),ef=og(function(e){z.current||(z.current=e.currentTarget),Y(e),X.current===!0&&($(!0),k&&k(e)),T&&T(e)}),em=function(){var e=z.current;return c&&c!=="button"&&!(e.tagName==="A"&&e.href)},ev=o$.useRef(!1),eh=og(function(e){g&&!ev.current&&q&&H.current&&e.key===" "&&(ev.current=!0,H.current.stop(e,function(){H.current.start(e)})),e.target===e.currentTarget&&em()&&e.key===" "&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&em()&&e.key==="Enter"&&!p&&(e.preventDefault(),C&&C(e))}),eg=og(function(e){g&&e.key===" "&&H.current&&q&&!e.defaultPrevented&&(ev.current=!1,H.current.stop(e,function(){H.current.pulsate(e)})),M&&M(e),C&&e.target===e.currentTarget&&em()&&e.key===" "&&!e.defaultPrevented&&C(e)}),ey=c;ey==="button"&&(W.href||W.to)&&(ey=x);var eb={};ey==="button"?(eb.type=V===void 0?"button":V,eb.disabled=p):(!W.href&&!W.to&&(eb.role="button"),p&&(eb["aria-disabled"]=p));var ex=oy(t,G,z),ew=D({},n,{centerRipple:i,component:c,disabled:p,disableRipple:f,disableTouchRipple:v,focusRipple:g,tabIndex:N,focusVisible:q}),eC=iw(ew);return iy(iC,D({as:ey,className:rp(eC.root,l),ownerState:ew,onBlur:ed,onClick:C,onContextMenu:ei,onFocus:ef,onKeyDown:eh,onKeyUp:eg,onMouseDown:eo,onMouseLeave:eu,onMouseUp:el,onDragLeave:ea,onTouchEnd:es,onTouchMove:ep,onTouchStart:ec,ref:ex,tabIndex:p?-1:N,type:V},eb,W,{children:[a,en?ig(id,D({ref:K,center:i},F)):null]}))}),iE=iO;import*as iT from"react";function ik(e){return tk("MuiIconButton",e)}var iR=tR("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iM=iR;import{jsx as iS}from"react/jsx-runtime";var iA=["edge","children","className","color","disabled","disableFocusRipple","size"],ij=function(e){var t=e.classes,n=e.disabled,r=e.color,o=e.edge,i=e.size,a={root:["root",n&&"disabled",r!=="default"&&"color".concat(om(r)),o&&"edge".concat(om(o)),"size".concat(om(i))]};return tx(a,ik,t)},iP=of(iE,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.color!=="default"&&t["color".concat(om(n.color))],n.edge&&t["edge".concat(om(n.edge))],t["size".concat(om(n.size))]]}})(function(e){var t=e.theme,n=e.ownerState;return D({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):rN(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12})},function(e){var t=e.theme,n=e.ownerState;var r;var o=(r=(t.vars||t).palette)==null?void 0:r[n.color];return D({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&D({color:o===null||o===void 0?void 0:o.main},!n.disableRipple&&{"&:hover":D({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):rN(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),n.size==="small"&&{padding:5,fontSize:t.typography.pxToRem(18)},n.size==="large"&&{padding:12,fontSize:t.typography.pxToRem(28)},u({},"&.".concat(iM.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))}),iL=iT.forwardRef(function(e,t){var n=os({props:e,name:"MuiIconButton"}),r=n.edge,o=r===void 0?!1:r,i=n.children,a=n.className,l=n.color,u=l===void 0?"default":l,c=n.disabled,s=c===void 0?!1:c,p=n.disableFocusRipple,d=p===void 0?!1:p,f=n.size,m=f===void 0?"medium":f,v=tS(n,iA),h=D({},n,{edge:o,color:u,disabled:s,disableFocusRipple:d,size:m}),g=ij(h);return iS(iP,D({className:rp(g.root,a),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:h},v,{children:i}))}),i_=iL;function iB(e){return typeof e=="string"}function iN(e,t,n){return e===void 0||iB(e)?t:D({},t,{ownerState:D({},t.ownerState,n)})}import*as iF from"react";import{jsx as iD}from"react/jsx-runtime";var iI={disableDefaultClasses:!1},iV=iF.createContext(iI);function iW(e){var t=iF.useContext(iV),n=t.disableDefaultClasses;return function(t){return n?"":e(t)}}function iz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(e===void 0)return{};var n={};return Object.keys(e).filter(function(n){return n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)}).forEach(function(t){n[t]=e[t]}),n}function iH(e,t,n){return typeof e=="function"?e(t,n):e}function iK(e){if(e===void 0)return{};var t={};return Object.keys(e).filter(function(t){return!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")}).forEach(function(n){t[n]=e[n]}),t}function iU(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=rp(n===null||n===void 0?void 0:n.className,i,o===null||o===void 0?void 0:o.className,r===null||r===void 0?void 0:r.className),l=D({},n===null||n===void 0?void 0:n.style,o===null||o===void 0?void 0:o.style,r===null||r===void 0?void 0:r.style),u=D({},n,o,r);return a.length>0&&(u.className=a),Object.keys(l).length>0&&(u.style=l),{props:u,internalRef:void 0}}var c=iz(D({},o,r)),s=iK(r),p=iK(o),d=t(c),f=rp(d===null||d===void 0?void 0:d.className,n===null||n===void 0?void 0:n.className,i,o===null||o===void 0?void 0:o.className,r===null||r===void 0?void 0:r.className),m=D({},d===null||d===void 0?void 0:d.style,n===null||n===void 0?void 0:n.style,o===null||o===void 0?void 0:o.style,r===null||r===void 0?void 0:r.style),v=D({},d,n,p,s);return f.length>0&&(v.className=f),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:d.ref}}var iX=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function iY(e){var t;var n=e.elementType,r=e.externalSlotProps,o=e.ownerState,i=e.skipResolvingSlotProps,a=i===void 0?!1:i,l=tS(e,iX),u=a?{}:iH(r,o),c=iU(D({},l,{externalSlotProps:u})),s=c.props,p=c.internalRef,d=tl(p,u===null||u===void 0?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return iN(n,D({},s,{ref:d}),o)}import*as iZ from"react";var iG="top",iQ="bottom",iq="right",i$="left",iJ="auto",i0=[iG,iQ,iq,i$],i1="start",i2="end",i5="clippingParents",i3="viewport",i4="popper",i6="reference",i7=i0.reduce(function(e,t){return e.concat([t+"-"+i1,t+"-"+i2])},[]),i8=[].concat(i0,[iJ]).reduce(function(e,t){return e.concat([t,t+"-"+i1,t+"-"+i2])},[]),i9="beforeRead",ae="read",at="afterRead",an="beforeMain",ar="main",ao="afterMain",ai="beforeWrite",aa="write",al="afterWrite",au=[i9,ae,at,an,ar,ao,ai,aa,al];function ac(e){return e?(e.nodeName||"").toLowerCase():null}function as(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ap(e){var t=as(e).Element;return p(e,t)||p(e,Element)}function ad(e){var t=as(e).HTMLElement;return p(e,t)||p(e,HTMLElement)}function af(e){if((typeof ShadowRoot==="undefined"?"undefined":w(ShadowRoot))>"u")return!1;var t=as(e).ShadowRoot;return p(e,t)||p(e,ShadowRoot)}function am(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!ad(o)||!ac(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?o.removeAttribute(e):o.setAttribute(e,t===!0?"":t)}))})}function av(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=i.reduce(function(e,t){return e[t]="",e},{});!ad(r)||!ac(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}}var ah={name:"applyStyles",enabled:!0,phase:"write",fn:am,effect:av,requires:["computeStyles"]};function ag(e){return e.split("-")[0]}var ay=Math.max,ab=Math.min,ax=Math.round;function aw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function aC(){return!/^((?!chrome|android).)*safari/i.test(aw())}function aO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ad(e)&&(o=e.offsetWidth>0&&ax(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ax(r.height)/e.offsetHeight||1);var a=ap(e)?as(e):window,l=a.visualViewport,u=!aC()&&n,c=(r.left+(u&&l?l.offsetLeft:0))/o,s=(r.top+(u&&l?l.offsetTop:0))/i,p=r.width/o,d=r.height/i;return{width:p,height:d,top:s,right:c+p,bottom:s+d,left:c,x:c,y:s}}function aE(e){var t=aO(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function aT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&af(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ak(e){return as(e).getComputedStyle(e)}function aR(e){return["table","td","th"].indexOf(ac(e))>=0}function aM(e){return((ap(e)?e.ownerDocument:e.document)||window.document).documentElement}function aS(e){return ac(e)==="html"?e:e.assignedSlot||e.parentNode||(af(e)?e.host:null)||aM(e)}function aA(e){return!ad(e)||ak(e).position==="fixed"?null:e.offsetParent}function aj(e){var t=/firefox/i.test(aw()),n=/Trident/i.test(aw());if(n&&ad(e)){var r=ak(e);if(r.position==="fixed")return null}var o=aS(e);for(af(o)&&(o=o.host);ad(o)&&["html","body"].indexOf(ac(o))<0;){var i=ak(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function aP(e){for(var t=as(e),n=aA(e);n&&aR(n)&&ak(n).position==="static";)n=aA(n);return n&&(ac(n)==="html"||ac(n)==="body"&&ak(n).position==="static")?t:n||aj(e)||t}function aL(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function a_(e,t,n){return ay(e,ab(t,n))}function aB(e,t,n){var r=a_(e,t,n);return r>n?n:r}function aN(){return{top:0,right:0,bottom:0,left:0}}function aF(e){return Object.assign({},aN(),e)}function aD(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var aI=function e(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,aF(typeof e!="number"?e:aD(e,i0))};function aV(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ag(n.placement),u=aL(l),c=[i$,iq].indexOf(l)>=0,s=c?"height":"width";if(!(!i||!a)){var p=aI(o.padding,n),d=aE(i),f=u==="y"?iG:i$,m=u==="y"?iQ:iq,v=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],h=a[u]-n.rects.reference[u],g=aP(i),y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,b=v/2-h/2,x=p[f],w=y-d[s]-p[m],C=y/2-d[s]/2+b,O=a_(x,C,w),E=u;n.modifiersData[r]=(t={},t[E]=O,t.centerOffset=O-C,t)}}function aW(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||aT(t.elements.popper,o)&&(t.elements.arrow=o))}var az={name:"arrow",enabled:!0,phase:"main",fn:aV,effect:aW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aH(e){return e.split("-")[1]}var aK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aU(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ax(n*o)/o||0,y:ax(r*o)/o||0}}function aX(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,s=e.roundOffsets,p=e.isFixed,d=a.x,f=d===void 0?0:d,m=a.y,v=m===void 0?0:m,h=typeof s=="function"?s({x:f,y:v}):{x:f,y:v};f=h.x,v=h.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=i$,x=iG,w=window;if(c){var C=aP(n),O="clientHeight",E="clientWidth";if(C===as(n)&&(C=aM(n),ak(C).position!=="static"&&l==="absolute"&&(O="scrollHeight",E="scrollWidth")),C=C,o===iG||(o===i$||o===iq)&&i===i2){x=iQ;var T=p&&C===w&&w.visualViewport?w.visualViewport.height:C[O];v-=T-r.height,v*=u?1:-1}if(o===i$||(o===iG||o===iQ)&&i===i2){b=iq;var k=p&&C===w&&w.visualViewport?w.visualViewport.width:C[E];f-=k-r.width,f*=u?1:-1}}var R=Object.assign({position:l},c&&aK),M=s===!0?aU({x:f,y:v},as(n)):{x:f,y:v};if(f=M.x,v=M.y,u){var S;return Object.assign({},R,(S={},S[x]=y?"0":"",S[b]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",S))}return Object.assign({},R,(t={},t[x]=y?v+"px":"",t[b]=g?f+"px":"",t.transform="",t))}function aY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:ag(t.placement),variation:aH(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,aX(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,aX(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var aZ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aY,data:{}};var aG={passive:!0};function aQ(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,u=as(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,aG)}),l&&u.addEventListener("resize",n.update,aG),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,aG)}),l&&u.removeEventListener("resize",n.update,aG)}}var aq={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect:aQ,data:{}};var a$={left:"right",right:"left",bottom:"top",top:"bottom"};function aJ(e){return e.replace(/left|right|bottom|top/g,function(e){return a$[e]})}var a0={start:"end",end:"start"};function a1(e){return e.replace(/start|end/g,function(e){return a0[e]})}function a2(e){var t=as(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function a5(e){return aO(aM(e)).left+a2(e).scrollLeft}function a3(e,t){var n=as(e),r=aM(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var c=aC();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+a5(e),y:u}}function a4(e){var t,n=aM(e),r=a2(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ay(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ay(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+a5(e),u=-r.scrollTop;return ak(o||n).direction==="rtl"&&(l+=ay(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function a6(e){var t=ak(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function a7(e){return["html","body","#document"].indexOf(ac(e))>=0?e.ownerDocument.body:ad(e)&&a6(e)?e:a7(aS(e))}function a8(e,t){var n;t===void 0&&(t=[]);var r=a7(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=as(r),a=o?[i].concat(i.visualViewport||[],a6(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(a8(aS(a)))}function a9(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t){var n=aO(e,!1,t==="fixed");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}function lt(e,t,n){return t===i3?a9(a3(e,n)):ap(t)?le(t,n):a9(a4(aM(e)))}function ln(e){var t=a8(aS(e)),n=["absolute","fixed"].indexOf(ak(e).position)>=0,r=n&&ad(e)?aP(e):e;return ap(r)?t.filter(function(e){return ap(e)&&aT(e,r)&&ac(e)!=="body"}):[]}function lr(e,t,n,r){var o=t==="clippingParents"?ln(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=lt(e,n,r);return t.top=ay(o.top,t.top),t.right=ab(o.right,t.right),t.bottom=ab(o.bottom,t.bottom),t.left=ay(o.left,t.left),t},lt(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function lo(e){var t=e.reference,n=e.element,r=e.placement,o=r?ag(r):null,i=r?aH(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case iG:u={x:a,y:t.y-n.height};break;case iQ:u={x:a,y:t.y+t.height};break;case iq:u={x:t.x+t.width,y:l};break;case i$:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?aL(o):null;if(c!=null){var s=c==="y"?"height":"width";switch(i){case i1:u[c]=u[c]-(t[s]/2-n[s]/2);break;case i2:u[c]=u[c]+(t[s]/2-n[s]/2);break;default:}}return u}function li(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,u=l===void 0?i5:l,c=n.rootBoundary,s=c===void 0?i3:c,p=n.elementContext,d=p===void 0?i4:p,f=n.altBoundary,m=f===void 0?!1:f,v=n.padding,h=v===void 0?0:v,g=aF(typeof h!="number"?h:aD(h,i0)),y=d===i4?i6:i4,b=e.rects.popper,x=e.elements[m?y:d],w=lr(ap(x)?x:x.contextElement||aM(e.elements.popper),u,s,a),C=aO(e.elements.reference),O=lo({reference:C,element:b,strategy:"absolute",placement:o}),E=a9(Object.assign({},b,O)),T=d===i4?E:C,k={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},R=e.modifiersData.offset;if(d===i4&&R){var M=R[o];Object.keys(k).forEach(function(e){var t=[iq,iQ].indexOf(e)>=0?1:-1,n=[iG,iQ].indexOf(e)>=0?"y":"x";k[e]+=M[n]*t})}return k}function la(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?i8:u,s=aH(r),p=s?l?i7:i7.filter(function(e){return aH(e)===s}):i0,d=p.filter(function(e){return c.indexOf(e)>=0});d.length===0&&(d=p);var f=d.reduce(function(t,n){return t[n]=li(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ag(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}function ll(e){if(ag(e)===iJ)return[];var t=aJ(e);return[a1(e),t,a1(t)]}function lu(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,c=n.padding,s=n.boundary,p=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,v=n.allowedAutoPlacements,h=t.options.placement,g=ag(h),y=g===h,b=u||(y||!m?[aJ(h)]:ll(h)),x=[h].concat(b).reduce(function(e,n){return e.concat(ag(n)===iJ?la(t,{placement:n,boundary:s,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)},[]),w=t.rects.reference,C=t.rects.popper,O=new Map,E=!0,T=x[0],k=0;k<x.length;k++){var R=x[k],M=ag(R),S=aH(R)===i1,A=[iG,iQ].indexOf(M)>=0,j=A?"width":"height",P=li(t,{placement:R,boundary:s,rootBoundary:p,altBoundary:d,padding:c}),L=A?S?iq:i$:S?iQ:iG;w[j]>C[j]&&(L=aJ(L));var _=aJ(L),B=[];if(i&&B.push(P[M]<=0),l&&B.push(P[L]<=0,P[_]<=0),B.every(function(e){return e})){T=R,E=!1;break}O.set(R,B)}if(E)for(var N=m?3:1,F=function e(e){var t=x.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},D=N;D>0;D--){var I=F(D);if(I==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}var lc={name:"flip",enabled:!0,phase:"main",fn:lu,requiresIfExists:["offset"],data:{_skip:!1}};function ls(e,t,n){return n===void 0&&(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 lp(e){return[iG,iq,iQ,i$].some(function(t){return e[t]>=0})}function ld(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=li(t,{elementContext:"reference"}),l=li(t,{altBoundary:!0}),u=ls(a,r),c=ls(l,o,i),s=lp(u),p=lp(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":p})}var lf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ld};function lm(e,t,n){var r=ag(e),o=[i$,iG].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[i$,iq].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function lv(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=i8.reduce(function(e,n){return e[n]=lm(n,t.rects,i),e},{}),l=a[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var lh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lv};function lg(e){var t=e.state,n=e.name;t.modifiersData[n]=lo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ly={name:"popperOffsets",enabled:!0,phase:"read",fn:lg,data:{}};function lb(e){return e==="x"?"y":"x"}function lx(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,c=n.rootBoundary,s=n.altBoundary,p=n.padding,d=n.tether,f=d===void 0?!0:d,m=n.tetherOffset,v=m===void 0?0:m,h=li(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:s}),g=ag(t.placement),y=aH(t.placement),b=!y,x=aL(g),w=lb(x),C=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,T=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,k=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(i){var S,A=x==="y"?iG:i$,j=x==="y"?iQ:iq,P=x==="y"?"height":"width",L=C[x],_=L+h[A],B=L-h[j],N=f?-E[P]/2:0,F=y===i1?O[P]:E[P],D=y===i1?-E[P]:-O[P],I=t.elements.arrow,V=f&&I?aE(I):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aN(),z=W[A],H=W[j],K=a_(0,O[P],V[P]),U=b?O[P]/2-N-K-z-k.mainAxis:F-K-z-k.mainAxis,X=b?-O[P]/2+N+K+H+k.mainAxis:D+K+H+k.mainAxis,Y=t.elements.arrow&&aP(t.elements.arrow),Z=Y?x==="y"?Y.clientTop||0:Y.clientLeft||0:0,G=(S=R===null||R===void 0?void 0:R[x])!=null?S:0,Q=L+U-G-Z,q=L+X-G,$=a_(f?ab(_,Q):_,L,f?ay(B,q):B);C[x]=$,M[x]=$-L}if(l){var J,ee=x==="x"?iG:i$,et=x==="x"?iQ:iq,en=C[w],er=w==="y"?"height":"width",eo=en+h[ee],ei=en-h[et],ea=[iG,i$].indexOf(g)!==-1,el=(J=R===null||R===void 0?void 0:R[w])!=null?J:0,eu=ea?eo:en-O[er]-E[er]-el+k.altAxis,ec=ea?en+O[er]+E[er]-el-k.altAxis:ei,es=f&&ea?aB(eu,en,ec):a_(f?eu:eo,en,f?ec:ei);C[w]=es,M[w]=es-en}t.modifiersData[r]=M}}var lw={name:"preventOverflow",enabled:!0,phase:"main",fn:lx,requiresIfExists:["offset"]};function lC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lO(e){return e===as(e)||!ad(e)?a2(e):lC(e)}function lE(e){var t=e.getBoundingClientRect(),n=ax(t.width)/e.offsetWidth||1,r=ax(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lT(e,t,n){n===void 0&&(n=!1);var r=ad(t),o=ad(t)&&lE(t),i=aM(t),a=aO(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ac(t)!=="body"||a6(i))&&(l=lO(t)),ad(t)?(u=aO(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=a5(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function lk(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function o(e){n.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||o(e)}),r}function lR(e){var t=lk(e);return au.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function lM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lS(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var lA={placement:"bottom",modifiers:[],strategy:"absolute"};function lj(){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&&typeof e.getBoundingClientRect=="function")})}function lP(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?lA:o;return function(e,t,n){n===void 0&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},lA,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:o,setOptions:function n(n){var a=typeof n=="function"?n(o.options):n;s(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:ap(e)?a8(e):e.contextElement?a8(e.contextElement):[],popper:a8(t)};var l=lR(lS([].concat(r,o.options.modifiers)));return o.orderedModifiers=l.filter(function(e){return e.enabled}),c(),u.update()},forceUpdate:function e(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(lj(t,n)){o.rects={reference:lT(t,aP(n),o.options.strategy==="fixed"),popper:aE(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++){if(o.reset===!0){o.reset=!1,r=-1;continue}var i=o.orderedModifiers[r],a=i.fn,c=i.options,s=c===void 0?{}:c,p=i.name;typeof a=="function"&&(o=a({state:o,options:s,name:p,instance:u})||o)}}}},update:lM(function(){return new Promise(function(e){u.forceUpdate(),e(o)})}),destroy:function e(){s(),l=!0}};if(!lj(e,t))return u;u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)});function c(){o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,i=e.effect;if(typeof i=="function"){var l=i({state:o,name:t,instance:u,options:r}),c=function e(){};a.push(l||c)}})}function s(){a.forEach(function(e){return e()}),a=[]}return u}}var lL=[aq,ly,aZ,ah,lh,lc,lw,az,lf],l_=lP({defaultModifiers:lL});import*as lB from"react";import*as lN from"react-dom";import{jsx as lF}from"react/jsx-runtime";function lD(e){return typeof e=="function"?e():e}var lI=lB.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=o===void 0?!1:o,a=y(lB.useState(null),2),l=a[0],u=a[1],c=tl(lB.isValidElement(n)?n.ref:null,t);return e4(function(){i||u(lD(r)||document.body)},[r,i]),e4(function(){if(l&&!i)return e2(t,l),function(){e2(t,null)}},[t,l,i]),i?lB.isValidElement(n)?lB.cloneElement(n,{ref:c}):lF(lB.Fragment,{children:n}):lF(lB.Fragment,{children:l&&lN.createPortal(n,l)})});function lV(e){return tk("MuiPopper",e)}var lW=tR("MuiPopper",["root"]);import{jsx as lz}from"react/jsx-runtime";var lH=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],lK=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function lU(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function lX(e){return typeof e=="function"?e():e}function lY(e){return e.nodeType!==void 0}var lZ=function(){return tx({root:["root"]},iW(lV))},lG={},lQ=iZ.forwardRef(function(e,t){var n;var r=e.anchorEl,o=e.children,i=e.direction,a=e.disablePortal,l=e.modifiers,u=e.open,c=e.placement,s=e.popperOptions,p=e.popperRef,d=e.slotProps,f=d===void 0?{}:d,m=e.slots,v=m===void 0?{}:m,h=e.TransitionProps,g=tS(e,lH),b=iZ.useRef(null),x=tl(b,t),w=iZ.useRef(null),C=tl(w,p),O=iZ.useRef(C);e4(function(){O.current=C},[C]),iZ.useImperativeHandle(p,function(){return w.current},[]);var E=lU(c,i),T=y(iZ.useState(E),2),k=T[0],R=T[1],M=y(iZ.useState(lX(r)),2),S=M[0],A=M[1];iZ.useEffect(function(){w.current&&w.current.forceUpdate()}),iZ.useEffect(function(){r&&A(lX(r))},[r]),e4(function(){if(!S||!u)return;var e=function(e){R(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(t){var n=t.state;e(n)}}];l!=null&&(t=t.concat(l)),s&&s.modifiers!=null&&(t=t.concat(s.modifiers));var n=l_(S,b.current,D({placement:E},s,{modifiers:t}));return O.current(n),function(){n.destroy(),O.current(null)}},[S,a,l,u,s,E]);var j={placement:k};h!==null&&(j.TransitionProps=h);var P=lZ(),L=(n=v.root)!=null?n:"div",_=iY({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:P.root});return lz(L,D({},_,{children:typeof o=="function"?o(j):o}))}),lq=iZ.forwardRef(function(e,t){var n=e.anchorEl,r=e.children,o=e.container,i=e.direction,a=i===void 0?"ltr":i,l=e.disablePortal,u=l===void 0?!1:l,c=e.keepMounted,s=c===void 0?!1:c,p=e.modifiers,d=e.open,f=e.placement,m=f===void 0?"bottom":f,v=e.popperOptions,h=v===void 0?lG:v,g=e.popperRef,b=e.style,x=e.transition,w=x===void 0?!1:x,C=e.slotProps,O=C===void 0?{}:C,E=e.slots,T=E===void 0?{}:E,k=tS(e,lK),R=y(iZ.useState(!0),2),M=R[0],S=R[1],A=function(){S(!1)},j=function(){S(!0)};if(!s&&!d&&(!w||M))return null;var P;if(o)P=o;else if(n){var L=lX(n);P=L&&lY(L)?e1(L).body:e1(null).body}var _=!d&&s&&(!w||M)?"none":void 0,B=w?{in:d,onEnter:A,onExited:j}:void 0;return lz(lI,{disablePortal:u,container:P,children:lz(lQ,D({anchorEl:n,direction:a,disablePortal:u,modifiers:p,ref:t,open:w?!M:d,placement:m,popperOptions:h,popperRef:g,slotProps:O,slots:T},k,{style:D({position:"fixed",top:0,left:0,display:_},b),TransitionProps:B,children:r}))})});import*as l$ from"react";import{jsx as lJ}from"react/jsx-runtime";var l0=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],l1=of(lq,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),l2=l$.forwardRef(function(e,t){var n;var r=ri(),o=os({props:e,name:"MuiPopper"}),i=o.anchorEl,a=o.component,l=o.components,u=o.componentsProps,c=o.container,s=o.disablePortal,p=o.keepMounted,d=o.modifiers,f=o.open,m=o.placement,v=o.popperOptions,h=o.popperRef,g=o.transition,y=o.slots,b=o.slotProps,x=tS(o,l0),w=(n=y===null||y===void 0?void 0:y.root)!=null?n:l===null||l===void 0?void 0:l.Root,C=D({anchorEl:i,container:c,disablePortal:s,keepMounted:p,modifiers:d,open:f,placement:m,popperOptions:v,popperRef:h,transition:g},x);return lJ(l1,D({as:a,direction:r===null||r===void 0?void 0:r.direction,slots:{root:w},slotProps:b!==null&&b!==void 0?b:u},C,{ref:t}))}),l5=l2;import*as l3 from"react";import{jsx as l4}from"react/jsx-runtime";var l6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function l7(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var l8={entering:{opacity:1,transform:l7(1)},entered:{opacity:1,transform:"none"}},l9=(typeof navigator==="undefined"?"undefined":w(navigator))<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ue=l3.forwardRef(function(e,t){var n=e.addEndListener,r=e.appear,o=r===void 0?!0:r,i=e.children,a=e.easing,l=e.in,u=e.onEnter,c=e.onEntered,s=e.onEntering,p=e.onExit,d=e.onExited,f=e.onExiting,m=e.style,v=e.timeout,h=v===void 0?"auto":v,g=e.TransitionComponent,y=g===void 0?oB:g,b=tS(e,l6),x=l3.useRef(),w=l3.useRef(),C=oc(),O=l3.useRef(null),E=oy(O,i.ref,t),T=function(e){return function(t){if(e){var n=O.current;t===void 0?e(n):e(n,t)}}},k=T(s),R=T(function(e,t){oQ(e);var n=oq({style:m,timeout:h,easing:a},{mode:"enter"}),r=n.duration,o=n.delay,i=n.easing,l;h==="auto"?(l=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=l):l=r,e.style.transition=[C.transitions.create("opacity",{duration:l,delay:o}),C.transitions.create("transform",{duration:l9?l:l*.666,delay:o,easing:i})].join(","),u&&u(e,t)}),M=T(c),S=T(f),A=T(function(e){var t=oq({style:m,timeout:h,easing:a},{mode:"exit"}),n=t.duration,r=t.delay,o=t.easing,i;h==="auto"?(i=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=n,e.style.transition=[C.transitions.create("opacity",{duration:i,delay:r}),C.transitions.create("transform",{duration:l9?i:i*.666,delay:l9?r:r||i*.333,easing:o})].join(","),e.style.opacity=0,e.style.transform=l7(.75),p&&p(e)}),j=T(d),P=function(e){h==="auto"&&(x.current=setTimeout(e,w.current||0)),n&&n(O.current,e)};return l3.useEffect(function(){return function(){clearTimeout(x.current)}},[]),l4(y,D({appear:o,in:l,nodeRef:O,onEnter:R,onEntered:M,onEntering:k,onExit:A,onExited:j,onExiting:S,addEndListener:P,timeout:h==="auto"?null:h},b,{children:function(e,t){return l3.cloneElement(i,D({style:D({opacity:0,transform:l7(.75),visibility:e==="exited"&&!l?"hidden":void 0},l8[e],m,i.props.style),ref:E},t))}}))});ue.muiSupportAuto=!0;var ut=ue;import*as un from"react";function ur(e){return tk("MuiTooltip",e)}var uo=tR("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ui=uo;import{jsx as ua}from"react/jsx-runtime";import{jsxs as ul}from"react/jsx-runtime";var uu=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function uc(e){return Math.round(e*1e5)/1e5}var us=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,o=e.touch,i=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat(om(i.split("-")[0]))],arrow:["arrow"]};return tx(a,ur,t)},up=of(l5,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(function(e){var t=e.theme,n=e.ownerState,r=e.open;var o;return D({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&(o={},u(o,'&[data-popper-placement*="bottom"] .'.concat(ui.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),u(o,'&[data-popper-placement*="top"] .'.concat(ui.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),u(o,'&[data-popper-placement*="right"] .'.concat(ui.arrow),D({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),u(o,'&[data-popper-placement*="left"] .'.concat(ui.arrow),D({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),o))}),ud=of("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat(om(n.placement.split("-")[0]))]]}})(function(e){var t=e.theme,n=e.ownerState;var r;return D({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:rN(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(uc(16/14),"em"),fontWeight:t.typography.fontWeightRegular},(r={},u(r,".".concat(ui.popper,'[data-popper-placement*="left"] &'),D({transformOrigin:"right center"},n.isRtl?D({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):D({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),u(r,".".concat(ui.popper,'[data-popper-placement*="right"] &'),D({transformOrigin:"left center"},n.isRtl?D({marginRight:"14px"},n.touch&&{marginRight:"24px"}):D({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),u(r,".".concat(ui.popper,'[data-popper-placement*="top"] &'),D({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),u(r,".".concat(ui.popper,'[data-popper-placement*="bottom"] &'),D({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})),r))}),uf=of("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})(function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:rN(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),um=!1,uv=null,uh={x:0,y:0};function ug(e,t){return function(n){t&&t(n),e(n)}}var uy=un.forwardRef(function(e,t){var n,r,o,i,a,l,u,c,s,p,d,f,m,v,h,g,b,x,w;var C=os({props:e,name:"MuiTooltip"}),O=C.arrow,E=O===void 0?!1:O,T=C.children,k=C.components,R=k===void 0?{}:k,M=C.componentsProps,S=M===void 0?{}:M,A=C.describeChild,j=A===void 0?!1:A,P=C.disableFocusListener,L=P===void 0?!1:P,_=C.disableHoverListener,B=_===void 0?!1:_,N=C.disableInteractive,F=N===void 0?!1:N,I=C.disableTouchListener,V=I===void 0?!1:I,W=C.enterDelay,z=W===void 0?100:W,H=C.enterNextDelay,K=H===void 0?0:H,U=C.enterTouchDelay,X=U===void 0?700:U,Y=C.followCursor,Z=Y===void 0?!1:Y,G=C.id,Q=C.leaveDelay,q=Q===void 0?0:Q,$=C.leaveTouchDelay,J=$===void 0?1500:$,ee=C.onClose,et=C.onOpen,en=C.open,er=C.placement,eo=er===void 0?"bottom":er,ei=C.PopperComponent,ea=C.PopperProps,el=ea===void 0?{}:ea,eu=C.slotProps,ec=eu===void 0?{}:eu,es=C.slots,ep=es===void 0?{}:es,ed=C.title,ef=C.TransitionComponent,em=ef===void 0?ut:ef,ev=C.TransitionProps,eh=tS(C,uu),eg=un.isValidElement(T)?T:ua("span",{children:T}),ey=oc(),eb=ey.direction==="rtl",ex=y(un.useState(),2),ew=ex[0],eC=ex[1],eO=y(un.useState(null),2),eE=eO[0],eT=eO[1],ek=un.useRef(!1),eR=F||Z,eM=un.useRef(),eS=un.useRef(),eA=un.useRef(),ej=un.useRef(),eP=y(oh({controlled:en,default:!1,name:"Tooltip",state:"open"}),2),eL=eP[0],e_=eP[1],eB=eL,eN=ov(G),eF=un.useRef(),eD=un.useCallback(function(){eF.current!==void 0&&(document.body.style.WebkitUserSelect=eF.current,eF.current=void 0),clearTimeout(ej.current)},[]);un.useEffect(function(){return function(){clearTimeout(eM.current),clearTimeout(eS.current),clearTimeout(eA.current),eD()}},[eD]);var eI=function(e){clearTimeout(uv),um=!0,e_(!0),et&&!eB&&et(e)},eV=og(function(e){clearTimeout(uv),uv=setTimeout(function(){um=!1},800+q),e_(!1),ee&&eB&&ee(e),clearTimeout(eM.current),eM.current=setTimeout(function(){ek.current=!1},ey.transitions.duration.shortest)}),eW=function(e){ek.current&&e.type!=="touchstart"||(ew&&ew.removeAttribute("title"),clearTimeout(eS.current),clearTimeout(eA.current),z||um&&K?eS.current=setTimeout(function(){eI(e)},um?K:z):eI(e))},ez=function(e){clearTimeout(eS.current),clearTimeout(eA.current),eA.current=setTimeout(function(){eV(e)},q)},eH=ob(),eK=eH.isFocusVisibleRef,eU=eH.onBlur,eX=eH.onFocus,eY=eH.ref,eZ=y(un.useState(!1),2),eG=eZ[1],eQ=function(e){eU(e),eK.current===!1&&(eG(!1),ez(e))},eq=function(e){ew||eC(e.currentTarget),eX(e),eK.current===!0&&(eG(!0),eW(e))},e$=function(e){ek.current=!0;var t=eg.props;t.onTouchStart&&t.onTouchStart(e)},eJ=eW,e0=ez,e1=function(e){e$(e),clearTimeout(eA.current),clearTimeout(eM.current),eD(),eF.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ej.current=setTimeout(function(){document.body.style.WebkitUserSelect=eF.current,eW(e)},X)},e2=function(e){eg.props.onTouchEnd&&eg.props.onTouchEnd(e),eD(),clearTimeout(eA.current),eA.current=setTimeout(function(){eV(e)},J)};un.useEffect(function(){var e=function e(e){(e.key==="Escape"||e.key==="Esc")&&eV(e)};if(!eB)return;return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[eV,eB]);var e5=oy(eg.ref,eY,eC,t);!ed&&ed!==0&&(eB=!1);var e3=un.useRef(),e4=function(e){var t=eg.props;t.onMouseMove&&t.onMouseMove(e),uh={x:e.clientX,y:e.clientY},e3.current&&e3.current.update()},e6={},e7=typeof ed=="string";j?(e6.title=!eB&&e7&&!B?ed:null,e6["aria-describedby"]=eB?eN:null):(e6["aria-label"]=e7?ed:null,e6["aria-labelledby"]=eB&&!e7?eN:null);var e8=D({},e6,eh,eg.props,{className:rp(eh.className,eg.props.className),onTouchStart:e$,ref:e5},Z?{onMouseMove:e4}:{}),e9={};V||(e8.onTouchStart=e1,e8.onTouchEnd=e2),B||(e8.onMouseOver=ug(eJ,e8.onMouseOver),e8.onMouseLeave=ug(e0,e8.onMouseLeave),eR||(e9.onMouseOver=eJ,e9.onMouseLeave=e0)),L||(e8.onFocus=ug(eq,e8.onFocus),e8.onBlur=ug(eQ,e8.onBlur),eR||(e9.onFocus=eq,e9.onBlur=eQ));var te=un.useMemo(function(){var e;var t=[{name:"arrow",enabled:!!eE,options:{element:eE,padding:4}}];return(e=el.popperOptions)!=null&&e.modifiers&&(t=t.concat(el.popperOptions.modifiers)),D({},el.popperOptions,{modifiers:t})},[eE,el]),tt=D({},C,{isRtl:eb,arrow:E,disableInteractive:eR,placement:eo,PopperComponentProp:ei,touch:ek.current}),tn=us(tt),tr=(n=(r=ep.popper)!=null?r:R.Popper)!=null?n:up,to=(o=(i=(a=ep.transition)!=null?a:R.Transition)!=null?i:em)!=null?o:ut,ti=(l=(u=ep.tooltip)!=null?u:R.Tooltip)!=null?l:ud,ta=(c=(s=ep.arrow)!=null?s:R.Arrow)!=null?c:uf,tl=iN(tr,D({},el,(p=ec.popper)!=null?p:S.popper,{className:rp(tn.popper,el===null||el===void 0?void 0:el.className,(d=(f=ec.popper)!=null?f:S.popper)==null?void 0:d.className)}),tt),tu=iN(to,D({},ev,(m=ec.transition)!=null?m:S.transition),tt),tc=iN(ti,D({},(v=ec.tooltip)!=null?v:S.tooltip,{className:rp(tn.tooltip,(h=(g=ec.tooltip)!=null?g:S.tooltip)==null?void 0:h.className)}),tt),ts=iN(ta,D({},(b=ec.arrow)!=null?b:S.arrow,{className:rp(tn.arrow,(x=(w=ec.arrow)!=null?w:S.arrow)==null?void 0:x.className)}),tt);return ul(un.Fragment,{children:[un.cloneElement(eg,e8),ua(tr,D({as:ei!==null&&ei!==void 0?ei:l5,placement:eo,anchorEl:Z?{getBoundingClientRect:function(){return{top:uh.y,left:uh.x,right:uh.x,bottom:uh.y,width:0,height:0}}}:ew,popperRef:e3,open:ew?eB:!1,id:eN,transition:!0},e9,tl,{popperOptions:te,children:function(e){var t=e.TransitionProps;return ua(to,D({timeout:ey.transitions.duration.shorter},t,tu,{children:ul(ti,D({},tc,{children:[ed,E?ua(ta,D({},ts,{ref:eT})):null]}))}))}}))]})}),ub=uy;import{Fragment as ux,jsx as uw,jsxs as uC}from"react/jsx-runtime";var uO=/*#__PURE__*/function(e){"use strict";s(t,e);function t(e){i(this,t);return o(this,t,[e])}l(t,[{key:"render",value:function e(){var e,t;var n=this.props,r=n.value,o=n.voucherValue,i=n.maxMonths,a=n.notQualifyForRewardThisMonth,l=n.amountShow,u=n.translationConfig,c=u===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:"",estimateDisclaimer:""}:u,s=n.storeConfig,p=s===void 0?{tiers:[{consecutive_months:0,min_spend:0,max_spend:0,promo_code:""},{consecutive_months:0,min_spend:0,promo_code:""}]}:s,d=n.currencyAbbreviate,f=d===void 0?!1:d,m=n.currencyFormat,v=m===void 0?function(){}:m,h=v(o||0,!0,f),g=c.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(h)),y=eg(c.approximateTotal,{currency_symbol:"",projected_month_spend:""}),b=parseFloat(String(p===null||p===void 0?void 0:(t=p.tiers)===null||t===void 0?void 0:(e=t[0])===null||e===void 0?void 0:e.min_spend))||0,x=v(b,!0,f),w=c.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(x)),C=eg(c.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),O=v(l!==null&&l!==void 0?l:0,!1,!1);return uC($,{children:[uw(J,{children:a?uC(ux,{children:[uw(ee,{children:uw(eM,{className:"loyalty-warning-icon",color:"#4A6987"})}),uw(eS,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#293A4A",noSpacing:!0,children:c.notQualify})]}):uC(ux,{children:[uw(eS,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:C}),"\xa0",uw(eS,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:"".concat(O)}),uw(ee,{children:uw(ub,{slotProps:{tooltip:{sx:{color:"#FFFFFF",backgroundColor:"#252525",fontFamily:"Inter",fontWeight:400,fontSize:"14px",lineHeight:"20px","& .MuiTooltip-arrow":{color:"#252525"}}}},title:c.estimateDisclaimer,arrow:!0,placement:"top",children:uw("span",{className:"info-icon",children:uw(i_,{children:uw(eL,{})})})})})]})}),r===i?"":a?uC(eS,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[y,"\xa0",uw(eS,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:"".concat(O)})]}):o!=null||o!=null?uw(eS,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:g}):uw(eS,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:w})]})}}]);return t}(eR.Component),uE=uO;import{useState as uT}from"react";import{FaExclamationTriangle as uk}from"react-icons/fa";import{NsTypography as uR}from"@nuskin/foundation-ui-components";import{CircularProgressbarWithChildren as uM,buildStyles as uS}from"react-circular-progressbar";import{Fragment as uA,jsx as uj,jsxs as uP}from"react/jsx-runtime";var uL=function(e){var t,n;var r=y(uT(!1),2),o=r[0],i=r[1],a=function(){i(!o)},l=e.handleOpenSubscriptionRewardPopup,u=l===void 0?function(){}:l,c=e.notQualifyForRewardThisMonth,s=c===void 0?!1:c,p=e.value,d=p===void 0?0:p,f=e.voucherValue,m=f===void 0?0:f,v=e.amountShow,h=e.maxMonths,g=h===void 0?0:h,b=e.translationConfig,x=b===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:"",estimateDisclaimer:""}:b,w=e.learnMoreConfig,C=w===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:w,O=e.storeConfig,E=O===void 0?{tiers:[{consecutive_months:"",min_spend:"",max_spend:"",promo_code:""},{consecutive_months:"",min_spend:"",promo_code:""}]}:O,T=e.currencyAbbreviate,k=T===void 0?!1:T,R=e.currencyFormat,M=R===void 0?function(){}:R,S="";m===50&&!s?S=x.learn3xMore:m===150||s?S=C.learnMore:m==null&&(S=x.learnMore);var A=eg(x.monthsComplete,{completed_months:d,total_months:g}),j=M(m||0,!0,k),P=x.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(j)),L=x.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(j)),_=eg(x.approximateTotal,{currency_symbol:"",projected_month_spend:""}),B=parseFloat(String(E===null||E===void 0?void 0:(n=E.tiers)===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.min_spend))||0,N=M(B,!0,k),F=x.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(N)),D=eg(x.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),I=eg(x.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),V=M(v!==null&&v!==void 0?v:0,!1,!1);return uP(Z,{children:[uj(G,{children:uj("img",{className:"reward-logo",src:x.loyaltyLogoBlack,alt:"Rewards Logo"})}),uj("div",{className:"reward-progress",children:uP(uM,{value:d/g*100,strokeWidth:12,background:!0,styles:uS({rotation:.5,strokeLinecap:"butt",backgroundColor:d===g&&!s?"rgb(195 240 194)":"#fff",pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[uj(ea,{count:g}),d===g&&!s?uj(ep,{}):s?uj(ee,{children:uj(uk,{className:"outline-exclamation-icon",color:"#91ACC8"})}):m!=null||m!=null?uP(q,{children:[uj(uR,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(j)}),uj(uR,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:I})]}):uj(q,{children:uj(ev,{})})]})}),uj(G,{children:d===g&&v!==void 0&&v>B?uj("div",{className:"info-item",children:P}):uj("div",{className:"info-item",children:A})}),uP($,{children:[d===g?"":s?uP(uR,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[_," ",uj(uR,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:"".concat(V)})]}):m!=null||m!=null?uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:L}):uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:F}),uj(J,{children:s?uP(uA,{children:[uj(ee,{children:uj(uk,{className:"loyalty-warning-icon",color:"#4A6987"})}),uj(uR,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#293A4A",noSpacing:!0,children:x.notQualify})]}):uP(uA,{children:[uP(uR,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:[D," "]}),"\xa0",uj(uR,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:"".concat(V)}),uj(ee,{children:uj(ub,{slotProps:{tooltip:{sx:{color:"#FFFFFF",backgroundColor:"#252525",fontFamily:"Inter",fontWeight:400,fontSize:"14px",lineHeight:"20px","& .MuiTooltip-arrow":{color:"#252525"}}}},title:x.estimateDisclaimer,arrow:!0,placement:"top",open:o,onClose:function(){return i(!1)},children:uj("span",{className:"info-icon",children:uj(i_,{onClick:a,children:uj(eL,{})})})})})]})})]}),uj(G,{children:uj(Q,{onClick:u,children:uj("u",{children:S})})})]})},u_=uL;var uB=(typeof window==="undefined"?"undefined":w(window))=="object",uN=/*#__PURE__*/function(){"use strict";function e(){i(this,e);this.width=uB?window.innerWidth:0;this.scroll={vertical:uB?window.scrollY:0,horizontal:uB?window.scrollX:0,direction:"none"}}l(e,[{key:"isMobile",get:function e(){return this.isPhone}},{key:"isPhone",get:function e(){return uB?window.innerWidth<768:this.width<768}}]);return e}(),uF=new uN;var uD=function(e,t,n,r,o,i,a,l,u){if(e){var c,s,p;var d,f;var m=e===null||e===void 0?void 0:(c=e.csmMonthlySubsOrderTotal)===null||c===void 0?void 0:c.sort(function(e,t){return e.year===t.year?t.month-e.month:t.year-e.year}),v=m===null||m===void 0?void 0:m.some(function(e){return e.month===u.getMonth()+1&&e.year===u.getFullYear()}),h=m===null||m===void 0?void 0:m.filter(function(e){return e.month===u.getMonth()+1&&e.year===u.getFullYear()}),g=(d=h===null||h===void 0?void 0:(s=h.map(function(e){return e.totalAmount}))===null||s===void 0?void 0:s[0])!==null&&d!==void 0?d:0,y=parseInt((f=e===null||e===void 0?void 0:(p=e.approximateMonthlyTotalResponse)===null||p===void 0?void 0:p.currentMonthTotal)!==null&&f!==void 0?f:"0"),b=0;y>n?b=n:b=t;var x=h===null||h===void 0?void 0:h.some(function(e){return e.totalAmount>=b}),w=v&&x?new Date(u.getFullYear(),u.getMonth()-(l-1),1):new Date(u.getFullYear(),u.getMonth()-l,1),C=m===null||m===void 0?void 0:m.filter(function(e){return new Date(e.year,e.month-1)>=w});C=C===null||C===void 0?void 0:C.filter(function(e){return e.promocode===null||e.promocode===void 0||e.promocode===""}),x||(C=C===null||C===void 0?void 0:C.filter(function(e){return!(e.month===u.getMonth()+1&&e.year===u.getFullYear())}));var O=C===null||C===void 0?void 0:C.slice(0,l),E=O===null||O===void 0?void 0:O.every(function(e){return e.totalAmount>=n}),T=O===null||O===void 0?void 0:O.map(function(e){return e===null||e===void 0?void 0:e.promocode}),k=!(T===null||T===void 0?void 0:T.some(function(e){return e===void 0}))?!1:T===null||T===void 0?void 0:T.every(function(e){return e===T[0]}),R=x?u.getMonth():u.getMonth()-1,M=2;if(O!=null&&T!=null)for(var S=0;S<(O===null||O===void 0?void 0:O.length);S++){var A,j,P;var L=(A=O[S])===null||A===void 0?void 0:A.totalAmount,_=u.getFullYear();if(((j=O[S])===null||j===void 0?void 0:j.month)&&((P=O[S])===null||P===void 0?void 0:P.month)!==new Date(_,R-S).getMonth()+1)return{monthCompletionValue:a,voucherValue:i};if(k&&(T[S]!==void 0||T[S]!==""||T[S]!==null))return{monthCompletionValue:0,voucherValue:i};if(L>=t&&(!T[S]||T[S]===void 0||T[S]===""||T[S]===null))a=a+1,E||M===2&&L>=n?i=o:(i=r,M=1);else if(L<t)return{monthCompletionValue:a,voucherValue:i}}(!v||!x)&&i!==r&&(y>=n?i=o:i=r),!x&&i===r&&a<l&&g>=t&&(a=a+1)}return{monthCompletionValue:a,voucherValue:i}};import{Fragment as uI,jsx as uV,jsxs as uW}from"react/jsx-runtime";var uz=function(e){var t,n,r,o,i,a,l,u,c;var s,p,d;var f=e.title,m=e.subscriptionData,v=e.translationConfig,h=e.learnMoreConfig,g=e.storeConfig,b=e.currencyFormat,x=2,w=(s=g===null||g===void 0?void 0:(n=g.tiers)===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.max_spend)!==null&&s!==void 0?s:0,C=(p=g===null||g===void 0?void 0:(o=g.tiers)===null||o===void 0?void 0:(r=o[0])===null||r===void 0?void 0:r.min_spend)!==null&&p!==void 0?p:0,O=(d=g===null||g===void 0?void 0:(a=g.tiers)===null||a===void 0?void 0:(i=a[0])===null||i===void 0?void 0:i.consecutive_months)!==null&&d!==void 0?d:0,E=y(H(!1),2),T=E[0],k=E[1],R=function(){return k(!0)},M=function(){return k(!1)},S=m,A=0,j=0,P=0;g===null||g===void 0?void 0:(l=g.tiers)===null||l===void 0?void 0:l.map(function(e){e.min_spend<C&&(C=e.min_spend),"max_spend"in e&&e.max_spend>w&&(w=e.max_spend)}),g===null||g===void 0?void 0:(u=g.tiers)===null||u===void 0?void 0:u.map(function(e){if(e.min_spend===C){var t,n;var r=e.promo_code;r=r===null||r===void 0?void 0:(n=r.split("-"))===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.replace("NSR",""),A=parseInt(r)}if(e.min_spend===w){var o,i;var a=e.promo_code;a=a===null||a===void 0?void 0:(i=a.split("-"))===null||i===void 0?void 0:(o=i[0])===null||o===void 0?void 0:o.replace("NSR",""),j=parseInt(a)}});var L;var _=0,B=parseFloat((L=S===null||S===void 0?void 0:(c=S.approximateMonthlyTotalResponse)===null||c===void 0?void 0:c.currentMonthTotal)!==null&&L!==void 0?L:"0");B<C||B<w?_=A:B>w?_=j:_=0;var N=B<C&&_!==0&&x!==O,F=uD(S,C,w,A,j,_,P,O,new Date),D=F.monthCompletionValue,I=F.voucherValue;return x=D,_=I,uW(Y,{children:[uF.isMobile?uV(u_,{value:x,title:f,voucherValue:_,maxMonths:O,handleOpenSubscriptionRewardPopup:R,storeConfig:g,amountShow:B,notQualifyForRewardThisMonth:N,translationConfig:v,learnMoreConfig:h,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b}):uW(uI,{children:[uV(ek,{value:x,title:f,notQualifyForRewardThisMonth:N,monthCompletionValue:P,storeConfig:g,maxMonths:O,voucherValue:_,handleOpenSubscriptionRewardPopup:R,translationConfig:v,learnMoreConfig:h,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b}),uV(uE,{notQualifyForRewardThisMonth:N,value:x,voucherValue:_,maxMonths:O,title:f,monthCompletionValue:P,storeConfig:g,translationConfig:v,learnMoreConfig:h,handleOpenSubscriptionRewardPopup:R,amountShow:B,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b})]}),uV(z,{show:T,close:M,amountShow:B,learnMoreConfig:h,translationConfig:v})]})},uH=uz;export{uH as SubscriptionReward};/*! Bundled license information:
2
2
 
3
3
  @mui/styled-engine/index.js:
4
4
  (**