@nuskin/react-loyalty-elements 1.0.8-nge2-2767.1 → 1.0.9
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.
- package/dist/CircularProgressBar/index.js +1 -1
- package/dist/CircularProgressBar/index.js.map +1 -1
- package/dist/CircularProgressBar/index.mjs +1 -1
- package/dist/CircularProgressBar/index.mjs.map +1 -1
- package/dist/CircularProgressBar/logic/calculateMonthCompletionValues.d.ts +9 -1
- package/dist/CircularProgressBar/types.d.ts +8 -9
- package/package.json +1 -1
|
@@ -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 v(e,T()?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 h(){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 v(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)||h()}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 T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=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 O(){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"]);O=function t(){return e};return e}function M(){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"]);M=function t(){return e};return e}function k(){var e=b(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n"]);k=function t(){return e};return e}function R(){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"]);R=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 P(){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"]);P=function t(){return e};return e}function j(){var e=b(["\n position: absolute;\n height: 100%;\n"]);j=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 V(){var e=b(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]);V=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 B(){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"]);B=function t(){return e};return e}import{a as F,b as D,c as I,d as W,e as z}from"../chunk-Z6ATMGBY.mjs";import{useState as H}from"react";import K from"react";import{CircularProgressbarWithChildren as U,buildStyles as Q}from"react-circular-progressbar";var X=W.div(E()),Y=W.div(O()),Z=W.div(M()),G=W.div(k()),q=W.div(R()),$=W.div(S()),J=W.div(A()),ee=W.span(P()),et=W.div(j()),en=W.div(L()),er={tooltip:{sx:{color:"#FFFFFF",backgroundColor:"#252525",fontFamily:"Inter",fontWeight:400,fontSize:"14px",lineHeight:"20px","& .MuiTooltip-arrow":{color:"#252525"}}}};import{jsx as eo}from"react/jsx-runtime";function ei(e){return eo(et,{style:{transform:"rotate(".concat(e.turns,"turn)")},children:eo(en,{})})}function ea(e){var t=1/e.count,n=.5;return Array.from({length:e.count},function(e,r){return r*t+n}).map(function(e){return eo(ei,{turns:e},e)})}var el=ea;import{FaExclamationTriangle as eu}from"react-icons/fa";import{jsx as ec,jsxs as es}from"react/jsx-runtime";function ep(){return es("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ec("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"}),ec("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"}),ec("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"}),ec("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"}),ec("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#405E50"}),ec("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#405E50"})]})}var ed=ep;import{jsx as ef,jsxs as em}from"react/jsx-runtime";function eh(){return em("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ef("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"}),ef("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"}),ef("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"}),ef("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"}),ef("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#B0B0B0"}),ef("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#B0B0B0"})]})}var ev=eh;import eg from"react";var ey=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 eb,jsxs as ex}from"react/jsx-runtime";var ew=/*#__PURE__*/function(e){"use strict";s(t,e);function t(){i(this,t);return o(this,t,arguments)}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 h=ey(l.monthsComplete,{completed_months:t,total_months:r}),v=f(n||0,!0,p),g=l.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(v));return ex(Z,{children:[eb("img",{className:"reward-logo",src:l.loyaltyLogoBlack,alt:"Rewards Logo"}),t===r?eb("div",{className:"info-item",children:g}):eb("div",{className:"info-item",children:h}),eb(G,{id:"learnMore",onClick:o,children:eb("u",{children:m})})]})}}]);return t}(eg.Component),eC=ew;import{NsTypography as eT}from"@nuskin/foundation-ui-components";import{jsx as eE,jsxs as eO}from"react/jsx-runtime";var eM=/*#__PURE__*/function(e){"use strict";s(t,e);function t(){i(this,t);return o(this,t,arguments)}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,h=e.currencyAbbreviate,v=h===void 0?!1:h,g=e.currencyFormat,y=g===void 0?function(){}:g,b=ey(d.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),x=y(o||0,!0,v);return eO(Y,{children:[eE("div",{className:"reward-progress",children:eO(U,{value:n/a*100,strokeWidth:12,background:!0,styles:Q({rotation:.5,strokeLinecap:"butt",backgroundColor:n===a&&!s?"rgb(195 240 194)":"#fff",pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[eE(el,{count:a}),n===a&&!s?eE(ed,{}):s?eE(ee,{children:eE(eu,{className:"outline-exclamation-icon",color:"#91ACC8"})}):o!=null||o!=null?eO(q,{children:[eE(eT,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(x)}),eE(eT,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:b})]}):eE(q,{children:eE(ev,{})})]})}),eE(eC,{value:n,voucherValue:o,notQualifyForRewardThisMonth:s,handleOpenSubscriptionRewardPopup:u,maxMonths:a,translationConfig:d,learnMoreConfig:m,currencyAbbreviate:v,currencyFormat:y})]})}}]);return t}(K.Component),ek=eM;import eR from"react";import{FaExclamationTriangle as eS}from"react-icons/fa";import{NsTypography as eA}from"@nuskin/foundation-ui-components";import{jsx as eP,jsxs as ej}from"react/jsx-runtime";function eL(){return ej("svg",{width:"19",height:"19",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[eP("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"}),eP("line",{x1:"10.1667",y1:"9.375",x2:"10.1667",y2:"14.7917",stroke:"#4A6987",strokeWidth:"2"}),eP("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 e_=eL;var eV={black:"#000",white:"#fff"},eN=eV;var eB={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=eB;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 eW={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"},ez=eW;var eH={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"},eK=eH;var eU={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"},eQ=eU;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 e$(e){if(!eq(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=e$(e[n])}),t}function eJ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?F({},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]=eJ(e[o],t[o],n):n.clone?r[o]=eq(t[o])?e$(t[o]):t[o]:r[o]=t[o])}),r}function e0(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 e1(e){if(typeof e!="string")throw new Error(e0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function e2(e){return e&&e.ownerDocument||document}function e5(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as e3 from"react";var e4=(typeof window==="undefined"?"undefined":w(window))<"u"?e3.useLayoutEffect:e3.useEffect,e6=e4;import*as e7 from"react";var e8=0;function e9(e){var t=y(e7.useState(e),2),n=t[0],r=t[1],o=e||n;return e7.useEffect(function(){n==null&&(e8+=1,r("mui-".concat(e8)))},[n]),o}var te=e7.useId;function tt(e){if(te!==void 0){var t=te();return e!==null&&e!==void 0?e:t}return e9(e)}import*as tn from"react";function tr(e){var t=e.controlled,n=e.default,r=e.name,o=e.state,i=o===void 0?"value":o;var a=tn.useRef(t!==void 0),l=a.current,u=y(tn.useState(n),2),c=u[0],s=u[1],p=l?t:c,d=tn.useCallback(function(e){l||s(e)},[]);return[p,d]}import*as to from"react";function ti(e){var t=this;var n=to.useRef(e);return e6(function(){n.current=e}),to.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 ta=ti;import*as tl from"react";function tu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return tl.useMemo(function(){return t.every(function(e){return e==null})?null:function(e){t.forEach(function(t){e5(t,e)})}},t)}import*as tc from"react";var ts=!0,tp=!1,td,tf={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 tm(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&tf[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function th(e){e.metaKey||e.altKey||e.ctrlKey||(ts=!0)}function tv(){ts=!1}function tg(){this.visibilityState==="hidden"&&tp&&(ts=!0)}function ty(e){e.addEventListener("keydown",th,!0),e.addEventListener("mousedown",tv,!0),e.addEventListener("pointerdown",tv,!0),e.addEventListener("touchstart",tv,!0),e.addEventListener("visibilitychange",tg,!0)}function tb(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return ts||tm(t)}function tx(){var e=tc.useCallback(function(e){e!=null&&ty(e.ownerDocument)},[]),t=tc.useRef(!1);function n(){return t.current?(tp=!0,window.clearTimeout(td),td=window.setTimeout(function(){tp=!1},100),t.current=!1,!0):!1}function r(e){return tb(e)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tw(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 tC=function(e){return e},tT=function(){var e=tC;return{configure:function t(t){e=t},generate:function t(t){return e(t)},reset:function t(){e=tC}}},tE=tT(),tO=tE;var tM={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=tM[t];return r?"".concat(n,"-").concat(r):"".concat(tO.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 tS="$$material";function tA(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 tP(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 tL=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};import*as t_ from"react";function tV(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 tN(e){if(t_.isValidElement(e)||!tV(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=tN(e[n])}),t}function tB(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?F({},e):e;return tV(e)&&tV(t)&&Object.keys(t).forEach(function(o){t_.isValidElement(t[o])?r[o]=t[o]:tV(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tV(e[o])?r[o]=tB(e[o],t[o],n):n.clone?r[o]=tV(t[o])?tN(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 F({},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=tA(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 F({keys:c,values:u,up:s,down:p,between:d,only:f,not:m,unit:o},l)}var tW={borderRadius:4},tz=tW;function tH(e,t){return t?tB(e,t,{clone:!1}):e}var tK=tH;var tU={xs:0,sm:600,md:900,lg:1200,xl:1536},tQ={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(tU[e],"px)")}};function tX(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||tQ;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||tQ;return Object.keys(t).reduce(function(e,r){if(Object.keys(i.values||tU).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(tP(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 t$(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 tJ(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=t$(l,i,e);return e===n&&typeof e=="string"&&(n=t$(l,i,"".concat(t).concat(e==="default"?"":tG(e)),e)),r===!1?n:u({},r,n)})};return a.propTypes={},a.filterProps=[t],a}var t0=tJ;function t1(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var t2={m:"margin",p:"padding"},t5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},t3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},t4=t1(function(e){if(e.length>2)if(t3[e])e=t3[e];else return[e];var t=y(e.split(""),2),n=t[0],r=t[1],o=t2[n],i=t5[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),t6=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],t7=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],t8=x(t6).concat(x(t7));function t9(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 ne(e){return t9(e,"spacing",8,"spacing")}function nt(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 nn(e,t){return function(n){return e.reduce(function(e,r){return e[r]=nt(t,n),e},{})}}function nr(e,t,n,r){if(t.indexOf(n)===-1)return null;var o=t4(n),i=nn(o,r),a=e[n];return tX(e,a,i)}function no(e,t){var n=ne(e.theme);return Object.keys(e).map(function(r){return nr(e,t,r,n)}).reduce(tK,{})}function ni(e){return no(e,t6)}ni.propTypes={};ni.filterProps=t6;function na(e){return no(e,t7)}na.propTypes={};na.filterProps=t7;function nl(e){return no(e,t8)}nl.propTypes={};nl.filterProps=t8;function nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=ne({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 nc(){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]?tK(t,r[n](e)):t},{})};return o.propTypes={},o.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),o}var ns=nc;function np(e){return typeof e!="number"?e:"".concat(e,"px solid")}function nd(e,t){return t0({prop:e,themeKey:"borders",transform:t})}var nf=nd("border",np),nm=nd("borderTop",np),nh=nd("borderRight",np),nv=nd("borderBottom",np),ng=nd("borderLeft",np),ny=nd("borderColor"),nb=nd("borderTopColor"),nx=nd("borderRightColor"),nw=nd("borderBottomColor"),nC=nd("borderLeftColor"),nT=nd("outline",np),nE=nd("outlineColor"),nO=function(e){if(e.borderRadius!==void 0&&e.borderRadius!==null){var t=t9(e.theme,"shape.borderRadius",4,"borderRadius"),n=function(e){return{borderRadius:nt(t,e)}};return tX(e,e.borderRadius,n)}return null};nO.propTypes={};nO.filterProps=["borderRadius"];var nM=ns(nf,nm,nh,nv,ng,ny,nb,nx,nw,nC,nO,nT,nE);var nk=function(e){if(e.gap!==void 0&&e.gap!==null){var t=t9(e.theme,"spacing",8,"gap"),n=function(e){return{gap:nt(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=t9(e.theme,"spacing",8,"columnGap"),n=function(e){return{columnGap:nt(t,e)}};return tX(e,e.columnGap,n)}return null};nR.propTypes={};nR.filterProps=["columnGap"];var nS=function(e){if(e.rowGap!==void 0&&e.rowGap!==null){var t=t9(e.theme,"spacing",8,"rowGap"),n=function(e){return{rowGap:nt(t,e)}};return tX(e,e.rowGap,n)}return null};nS.propTypes={};nS.filterProps=["rowGap"];var nA=t0({prop:"gridColumn"}),nP=t0({prop:"gridRow"}),nj=t0({prop:"gridAutoFlow"}),nL=t0({prop:"gridAutoColumns"}),n_=t0({prop:"gridAutoRows"}),nV=t0({prop:"gridTemplateColumns"}),nN=t0({prop:"gridTemplateRows"}),nB=t0({prop:"gridTemplateAreas"}),nF=t0({prop:"gridArea"}),nD=ns(nk,nR,nS,nA,nP,nj,nL,n_,nV,nN,nB,nF);function nI(e,t){return t==="grey"?t:e}var nW=t0({prop:"color",themeKey:"palette",transform:nI}),nz=t0({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nI}),nH=t0({prop:"backgroundColor",themeKey:"palette",transform:nI}),nK=ns(nW,nz,nH);function nU(e){return e<=1&&e!==0?"".concat(e*100,"%"):e}var nQ=t0({prop:"width",transform:nU}),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])||tU[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:nU(t)}};return tX(e,e.maxWidth,t)}return null};nX.filterProps=["maxWidth"];var nY=t0({prop:"minWidth",transform:nU}),nZ=t0({prop:"height",transform:nU}),nG=t0({prop:"maxHeight",transform:nU}),nq=t0({prop:"minHeight",transform:nU}),n$=t0({prop:"size",cssProperty:"width",transform:nU}),nJ=t0({prop:"size",cssProperty:"height",transform:nU}),n0=t0({prop:"boxSizing"}),n1=ns(nQ,nX,nY,nZ,nG,nq,n0);var n2={border:{themeKey:"borders",transform:np},borderTop:{themeKey:"borders",transform:np},borderRight:{themeKey:"borders",transform:np},borderBottom:{themeKey:"borders",transform:np},borderLeft:{themeKey:"borders",transform:np},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:np},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nO},color:{themeKey:"palette",transform:nI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nI},backgroundColor:{themeKey:"palette",transform:nI},p:{style:na},pt:{style:na},pr:{style:na},pb:{style:na},pl:{style:na},px:{style:na},py:{style:na},padding:{style:na},paddingTop:{style:na},paddingRight:{style:na},paddingBottom:{style:na},paddingLeft:{style:na},paddingX:{style:na},paddingY:{style:na},paddingInline:{style:na},paddingInlineStart:{style:na},paddingInlineEnd:{style:na},paddingBlock:{style:na},paddingBlockStart:{style:na},paddingBlockEnd:{style:na},m:{style:ni},mt:{style:ni},mr:{style:ni},mb:{style:ni},ml:{style:ni},mx:{style:ni},my:{style:ni},margin:{style:ni},marginTop:{style:ni},marginRight:{style:ni},marginBottom:{style:ni},marginLeft:{style:ni},marginX:{style:ni},marginY:{style:ni},marginInline:{style:ni},marginInlineStart:{style:ni},marginInlineEnd:{style:ni},marginBlock:{style:ni},marginBlockStart:{style:ni},marginBlockEnd:{style:ni},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:nS},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:nU},maxWidth:{style:nX},minWidth:{transform:nU},height:{transform:nU},maxHeight:{transform:nU},minHeight:{transform:nU},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n5=n2;function n3(){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 n4(e,t){return typeof e=="function"?e(t):e}function n6(){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=t$(f,p,t);return t===n&&typeof t=="string"&&(n=t$(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:n5;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=n4(r[n],l);if(o!=null)if((typeof o==="undefined"?"undefined":w(o))=="object")if(c[n])a=tK(a,e(n,o,l,c));else{var i=tX({theme:l},o,function(e){return u({},n,e)});n3(i,o)?a[n]=t({sx:o,theme:l}):a=tK(a,i)}else a=tK(a,e(n,o,l,c))}),tZ(i,a)}return Array.isArray(i)?i.map(s):s(i)}return t}var n7=n6();n7.filterProps=["sx"];var n8=n7;function n9(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 re=["breakpoints","palette","spacing","shape"];function rt(){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=tA(e,re),d=tI(i),f=nu(u),m=tB({breakpoints:d,direction:"ltr",components:{},palette:F({mode:"light"},l),spacing:f,shape:F({},tz,s)},p);return m.applyStyles=n9,m=n.reduce(function(e,t){return tB(e,t)},m),m.unstable_sxConfig=F({},n5,p===null||p===void 0?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return n8({sx:e,theme:this})},m}var rn=rt;import*as rr from"react";function ro(e){return Object.keys(e).length===0}function ri(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;var t=rr.useContext(D);return!t||ro(t)?e:t}var ra=ri;var rl=rn();function ru(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rl;return ra(e)}var rc=ru;function rs(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=rs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rs(e))&&(r&&(r+=" "),r+=t);return r}var rd=rp;var rf=["ownerState"],rm=["variants"],rh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rv(e){return Object.keys(e).length===0}function rg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ry(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var rb=rn(),rx=function(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)};function rw(e){var t=e.defaultTheme,n=e.theme,r=e.themeId;return rv(n)?t:n[r]||n}function rC(e){return e?function(t,n){return n[e]}:null}function rT(e,t){var n=t.ownerState,r=tA(t,rf),o=typeof e=="function"?e(F({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(function(e){return rT(e,F({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=tA(o,rm);return a.forEach(function(e){var t=!0;typeof e.props=="function"?t=e.props(F({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(F({ownerState:n},r,n)):e.style))}),l}return o}function rE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t=e.themeId,n=e.defaultTheme,r=n===void 0?rb:n,o=e.rootShouldForwardProp,i=o===void 0?ry:o,a=e.slotShouldForwardProp,l=a===void 0?ry:a,u=function(e){return n8(F({},e,{theme:rw(F({},e,{defaultTheme:r,themeId:t}))}))};return u.__mui_systemSx=!0,function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tL(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?rC(rx(a)):p,f=tA(n,rh),m=c!==void 0?c:a&&a!=="Root"&&a!=="root"||!1,h=s||!1,v,g=ry;a==="Root"||a==="root"?g=i:a?g=l:rg(e)&&(g=void 0);var b=tj(e,F({shouldForwardProp:g,label:v},f)),w=function(e){return typeof e=="function"&&e.__emotion_real!==e||tV(e)?function(n){return rT(e,F({},n,{theme:rw({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=rw(F({},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]=rT(i,F({},e,{theme:n}))}),d(e,a)}),o&&!m&&s.push(function(e){var n;var i=rw(F({},e,{defaultTheme:r,themeId:t})),a=i==null||(n=i.components)==null||(n=n[o])==null?void 0:n.variants;return rT({variants:a},F({},e,{theme:i}))}),h||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 v=b.apply(void 0,[c].concat(x(s)));return e.muiName&&(v.muiName=e.muiName),v};return b.withConfig&&(C.withConfig=b.withConfig),C}}function rO(e,t){var n=F({},t);return Object.keys(e).forEach(function(r){if(r.toString().match(/^(components|slots)$/))n[r]=F({},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]=F({},i),Object.keys(o).forEach(function(e){n[r][e]=rO(o[e],i[e])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function rM(e){var t=e.theme,n=e.name,r=e.props;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:rO(t.components[n].defaultProps,r)}function rk(e){var t=e.props,n=e.name,r=e.defaultTheme,o=e.themeId;var i=rc(r);return o&&(i=i[o]||i),rM({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 rS=rR;function rA(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 rS(e,t,n)}function rP(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(rP(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(tP(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(tP(10,o))}else r=r.split(",");return r=r.map(function(e){return parseFloat(e)}),{type:n,values:r,colorSpace:o}}function rL(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 r_(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])),rL({type:l,values:u})}function rV(e){e=rj(e);var t=e.type==="hsl"||e.type==="hsla"?rj(r_(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 rN(e,t){var n=rV(e),r=rV(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rB(e,t){return e=rj(e),t=rA(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]="/".concat(t):e.values[3]=t,rL(e)}function rF(e,t){if(e=rj(e),t=rA(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 rL(e)}function rD(e,t){if(e=rj(e),t=rA(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 rL(e)}function rI(e,t){var n;return F({toolbar:(n={minHeight:56},u(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),u(n,e.up("sm"),{minHeight:64}),n)},t)}var rW=["mode","contrastThreshold","tonalOffset"],rz={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:eN.white,default:eN.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}},rH={text:{primary:eN.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:eN.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 rK(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 rU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:ez[200],light:ez[50],dark:ez[400]}:{main:ez[700],light:ez[400],dark:ez[800]}}function rQ(){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:eK[400],light:eK[300],dark:eK[700]}:{main:eK[700],light:eK[500],dark:eK[900]}}function rZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eQ[400],light:eQ[300],dark:eQ[700]}:{main:eQ[800],light:eQ[500],dark:eQ[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=tA(e,rW),u=e.primary||rU(n),c=e.secondary||rQ(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 rN(e,rH.text.primary)>=o?rH.text.primary:rz.text.primary}var h=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=F({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(e0(11,n?" (".concat(n,")"):"",o));if(typeof t.main!="string")throw new Error(e0(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return rK(t,"light",l,a),rK(t,"dark",c,a),t.contrastText||(t.contrastText=m(t.main)),t},v={dark:rH,light:rz};return eJ(F({common:F({},eN),mode:n,primary:h({color:u,name:"primary"}),secondary:h({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:p,name:"info"}),success:h({color:d,name:"success"}),grey:eG,contrastThreshold:o,getContrastText:m,augmentColor:h,tonalOffset:a},v[n]),l)}var r$=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rJ(e){return Math.round(e*1e5)/1e5}var r0={textTransform:"uppercase"},r1='"Roboto", "Helvetica", "Arial", sans-serif';function r2(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,o=r===void 0?r1: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,h=n.htmlFontSize,v=h===void 0?16:h,g=n.allVariants,y=n.pxToRem,b=tA(n,r$),x=a/14,w=y||function(e){return"".concat(e/v*x,"rem")},C=function(e,t,n,r,i){return F({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===r1?{letterSpacing:"".concat(rJ(r/t),"em")}:{},i,g)},T={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,r0),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,r0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return eJ(F({htmlFontSize:v,pxToRem:w,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:m},T),b,{clone:!1})}function r5(){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 r3=["none",r5(0,2,1,-1,0,1,1,0,0,1,3,0),r5(0,3,1,-2,0,2,2,0,0,1,5,0),r5(0,3,3,-2,0,3,4,0,0,1,8,0),r5(0,2,4,-1,0,4,5,0,0,1,10,0),r5(0,3,5,-1,0,5,8,0,0,1,14,0),r5(0,3,5,-1,0,6,10,0,0,1,18,0),r5(0,4,5,-2,0,7,10,1,0,2,16,1),r5(0,5,5,-3,0,8,10,1,0,3,14,2),r5(0,5,6,-3,0,9,12,1,0,3,16,2),r5(0,6,6,-3,0,10,14,1,0,4,18,3),r5(0,6,7,-4,0,11,15,1,0,4,20,3),r5(0,7,8,-4,0,12,17,2,0,5,22,4),r5(0,7,8,-4,0,13,19,2,0,5,24,4),r5(0,7,9,-4,0,14,21,2,0,5,26,4),r5(0,8,9,-5,0,15,22,2,0,6,28,5),r5(0,8,10,-5,0,16,24,2,0,6,30,5),r5(0,8,11,-5,0,17,26,2,0,6,32,5),r5(0,9,11,-5,0,18,28,2,0,7,34,6),r5(0,9,12,-6,0,19,29,2,0,7,36,6),r5(0,10,13,-6,0,20,31,3,0,8,38,7),r5(0,10,13,-6,0,21,33,3,0,8,40,7),r5(0,10,14,-6,0,22,35,3,0,8,42,7),r5(0,11,14,-7,0,23,36,3,0,9,44,8),r5(0,11,15,-7,0,24,38,3,0,9,46,8)],r4=r3;var r6=["duration","easing","delay"],r7={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)"},r8={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function r9(e){return"".concat(Math.round(e),"ms")}function oe(e){if(!e)return 0;var t=e/36;return Math.round((4+15*Math.pow(t,.25)+t/5)*10)}function ot(e){var t=F({},r7,e.easing),n=F({},r8,e.duration);return F({getAutoHeightDuration:oe,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=tA(r,r6);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat(typeof i=="string"?i:r9(i)," ").concat(l," ").concat(typeof c=="string"?c:r9(c))}).join(",")}},e,{easing:t,duration:n})}var on={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},or=on;var oo=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oi(){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=tA(e,oo);if(e.vars)throw new Error(e0(18));var f=rq(l),m=rn(e),h=eJ(m,{mixins:rI(m.breakpoints,i),palette:f,shadows:r4.slice(),typography:r2(f,p),transitions:ot(c),zIndex:F({},or)});return h=eJ(h,d),h=n.reduce(function(e,t){return eJ(e,t)},h),h.unstable_sxConfig=F({},n5,d===null||d===void 0?void 0:d.unstable_sxConfig),h.unstable_sx=function(e){return n8({sx:e,theme:this})},h}var oa=oi;import*as ol from"react";var ou=oa(),oc=ou;function os(){var e=rc(oc);return e[tS]||e}function op(e){var t=e.props,n=e.name;return rk({props:t,name:n,defaultTheme:oc,themeId:tS})}var od=function(e){return ry(e)&&e!=="classes"};var of=rE({themeId:tS,defaultTheme:oc,rootShouldForwardProp:od}),om=of;var oh=e1;var ov=tt;var og=tr;var oy=ta;var ob=tu;var ox=tx;function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(e,t){return e.__proto__=t,e},ow(e,t)}function oC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ow(e,t)}import oT from"react";import oE from"react-dom";var oO={disabled:!1};import oM from"react";var ok=oM.createContext(null);var oR=function e(e){return e.scrollTop};var oS="unmounted",oA="exited",oP="entering",oj="entered",oL="exiting",o_=function(e){oC(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=oA,r.appearStatus=oP):a=oj:t.unmountOnExit||t.mountOnEnter?a=oS:a=oA,r.state={status:a},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===oS?{status:oA}: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!==oP&&n!==oj&&(t=oP):(n===oP||n===oj)&&(t=oL)}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===oP){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:oE.findDOMNode(this);n&&oR(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oA&&this.setState({status:oS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[oE.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;if(!e&&!n||oO.disabled){this.safeSetState({status:oj},function(){t.props.onEntered(i)});return}this.props.onEnter(i,a),this.safeSetState({status:oP},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:oE.findDOMNode(this);if(!t||oO.disabled){this.safeSetState({status:oA},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:oL},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:oA},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:oE.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===oS)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,h=t.onExiting,v=t.onExited,g=t.nodeRef,y=tA(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oT.createElement(ok.Provider,{value:null},typeof n=="function"?n(e,y):oT.cloneElement(oT.Children.only(n),y))},t}(oT.Component);o_.contextType=ok;o_.propTypes={};function oV(){}o_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oV,onEntering:oV,onEntered:oV,onExit:oV,onExiting:oV,onExited:oV};o_.UNMOUNTED=oS;o_.EXITED=oA;o_.ENTERING=oP;o_.ENTERED=oj;o_.EXITING=oL;var oN=o_;function oB(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 oW}from"react";function oz(e,t){var n=function e(e){return t&&oW(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 oH(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 oK(e,t,n){return n[t]!=null?n[t]:e.props[t]}function oU(e,t){return oz(e.children,function(n){return oI(n,{onExited:t.bind(null,n),in:!0,appear:oK(n,"appear",e),enter:oK(n,"enter",e),exit:oK(n,"exit",e)})})}function oQ(e,t,n){var r=oz(e.children),o=oH(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(oW(a)){var l=i in t,u=i in r,c=t[i],s=oW(c)&&!c.props.in;u&&(!l||s)?o[i]=oI(a,{onExited:n.bind(null,a),in:!0,exit:oK(a,"exit",e),enter:oK(a,"enter",e)}):!u&&l&&!s?o[i]=oI(a,{in:!1}):u&&l&&oW(c)&&(o[i]=oI(a,{onExited:n.bind(null,a),in:c.props.in,exit:oK(a,"exit",e),enter:oK(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){oC(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var o=r.handleExited.bind(oB(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?oU(e,r):oQ(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=oz(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=F({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tA(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 o$(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 oJ from"react";import*as o0 from"react";import*as o1 from"react";import{jsx as o2}from"react/jsx-runtime";function o5(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(o1.useState(!1),2),d=p[0],f=p[1],m=rd(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},v=rd(n.child,d&&n.childLeaving,o&&n.childPulsate);return!u&&!d&&f(!0),o1.useEffect(function(){if(!u&&c!=null){var e=setTimeout(c,s);return function(){clearTimeout(e)}}},[c,u,s]),o2("span",{className:m,style:h,children:o2("span",{className:v})})}var o3=o5;var o4=tR("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o6=o4;import{jsx as o7}from"react/jsx-runtime";var o8=["center","classes","className"],o9=function(e){return e},ie,it,ir,io,ii=550,ia=80,il=I(ie||(ie=o9(_()))),iu=I(it||(it=o9(V()))),ic=I(ir||(ir=o9(N()))),is=om("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ip=om(o3,{name:"MuiTouchRipple",slot:"Ripple"})(io||(io=o9(B(),0,0,0,0,0,0,0,0,0,0,0,0,0,0)),o6.rippleVisible,il,ii,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o6.ripplePulsate,function(e){var t=e.theme;return t.transitions.duration.shorter},o6.child,o6.childLeaving,iu,ii,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o6.childPulsate,ic,function(e){var t=e.theme;return t.transitions.easing.easeInOut}),id=o0.forwardRef(function(e,t){var n=op({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=tA(n,o8),c=y(o0.useState([]),2),s=c[0],p=c[1],d=o0.useRef(0),f=o0.useRef(null);o0.useEffect(function(){f.current&&(f.current(),f.current=null)},[s]);var m=o0.useRef(!1),h=o0.useRef(0),v=o0.useRef(null),g=o0.useRef(null);o0.useEffect(function(){return function(){h.current&&clearTimeout(h.current)}},[]);var b=o0.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([o7(ip,{classes:{ripple:rd(a.ripple,o6.ripple),rippleVisible:rd(a.rippleVisible,o6.rippleVisible),ripplePulsate:rd(a.ripplePulsate,o6.ripplePulsate),child:rd(a.child,o6.child),childLeaving:rd(a.childLeaving,o6.childLeaving),childPulsate:rd(a.childPulsate,o6.childPulsate)},timeout:ii,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},d.current)])}),d.current+=1,f.current=i},[a]),w=o0.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 T=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(T,2)+Math.pow(E,2))}e!=null&&e.touches?v.current===null&&(v.current=function(){b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},h.current=setTimeout(function(){v.current&&(v.current(),v.current=null)},ia)):b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},[o,b]),C=o0.useCallback(function(){w({},{pulsate:!0})},[w]),T=o0.useCallback(function(e,t){if(clearTimeout(h.current),(e===null||e===void 0?void 0:e.type)==="touchend"&&v.current){v.current(),v.current=null,h.current=setTimeout(function(){T(e,t)});return}v.current=null,p(function(e){return e.length>0?e.slice(1):e}),f.current=t},[]);return o0.useImperativeHandle(t,function(){return{pulsate:C,start:w,stop:T}},[C,w,T]),o7(is,F({className:rd(o6.root,a.root,l),ref:g},u,{children:o7(oG,{component:null,exit:!0,children:s})}))}),im=id;function ih(e){return tk("MuiButtonBase",e)}var iv=tR("MuiButtonBase",["root","disabled","focusVisible"]),ig=iv;import{jsx as iy}from"react/jsx-runtime";import{jsxs as ib}from"react/jsx-runtime";var ix;var iw=["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"],iC=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i=tw({root:["root",t&&"disabled",n&&"focusVisible"]},ih,o);return n&&r&&(i.root+=" ".concat(r)),i},iT=om("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((ix={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(ix,"&.".concat(ig.disabled),{pointerEvents:"none",cursor:"default"}),u(ix,"@media print",{colorAdjust:"exact"}),ix)),iE=oJ.forwardRef(function(e,t){var n=op({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,h=m===void 0?!1:m,v=n.focusRipple,g=v===void 0?!1:v,b=n.LinkComponent,x=b===void 0?"a":b,w=n.onBlur,C=n.onClick,T=n.onContextMenu,E=n.onDragLeave,O=n.onFocus,M=n.onFocusVisible,k=n.onKeyDown,R=n.onKeyUp,S=n.onMouseDown,A=n.onMouseLeave,P=n.onMouseUp,j=n.onTouchEnd,L=n.onTouchMove,_=n.onTouchStart,V=n.tabIndex,N=V===void 0?0:V,B=n.TouchRippleProps,D=n.touchRippleRef,I=n.type,W=tA(n,iw),z=oJ.useRef(null),H=oJ.useRef(null),K=ob(H,D),U=ox(),Q=U.isFocusVisibleRef,X=U.onFocus,Y=U.onBlur,Z=U.ref,G=y(oJ.useState(!1),2),q=G[0],$=G[1];p&&q&&$(!1),oJ.useImperativeHandle(r,function(){return{focusVisible:function(){$(!0),z.current.focus()}}},[]);var J=y(oJ.useState(!1),2),ee=J[0],et=J[1];oJ.useEffect(function(){et(!0)},[]);var en=ee&&!f&&!p;oJ.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]:h;return oy(function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0})}var eo=er("start",S),ei=er("stop",T),ea=er("stop",E),el=er("stop",P),eu=er("stop",function(e){q&&e.preventDefault(),A&&A(e)}),ec=er("start",_),es=er("stop",j),ep=er("stop",L),ed=er("stop",function(e){Y(e),Q.current===!1&&$(!1),w&&w(e)},!1),ef=oy(function(e){z.current||(z.current=e.currentTarget),X(e),Q.current===!0&&($(!0),M&&M(e)),O&&O(e)}),em=function(){var e=z.current;return c&&c!=="button"&&!(e.tagName==="A"&&e.href)},eh=oJ.useRef(!1),ev=oy(function(e){g&&!eh.current&&q&&H.current&&e.key===" "&&(eh.current=!0,H.current.stop(e,function(){H.current.start(e)})),e.target===e.currentTarget&&em()&&e.key===" "&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&em()&&e.key==="Enter"&&!p&&(e.preventDefault(),C&&C(e))}),eg=oy(function(e){g&&e.key===" "&&H.current&&q&&!e.defaultPrevented&&(eh.current=!1,H.current.stop(e,function(){H.current.pulsate(e)})),R&&R(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=I===void 0?"button":I,eb.disabled=p):(!W.href&&!W.to&&(eb.role="button"),p&&(eb["aria-disabled"]=p));var ex=ob(t,Z,z),ew=F({},n,{centerRipple:i,component:c,disabled:p,disableRipple:f,disableTouchRipple:h,focusRipple:g,tabIndex:N,focusVisible:q}),eC=iC(ew);return ib(iT,F({as:ey,className:rd(eC.root,l),ownerState:ew,onBlur:ed,onClick:C,onContextMenu:ei,onFocus:ef,onKeyDown:ev,onKeyUp:eg,onMouseDown:eo,onMouseLeave:eu,onMouseUp:el,onDragLeave:ea,onTouchEnd:es,onTouchMove:ep,onTouchStart:ec,ref:ex,tabIndex:p?-1:N,type:I},eb,W,{children:[a,en?iy(im,F({ref:K,center:i},B)):null]}))}),iO=iE;import*as iM 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"]),iS=iR;import{jsx as iA}from"react/jsx-runtime";var iP=["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(oh(r)),o&&"edge".concat(oh(o)),"size".concat(oh(i))]};return tw(a,ik,t)},iL=om(iO,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.color!=="default"&&t["color".concat(oh(n.color))],n.edge&&t["edge".concat(oh(n.edge))],t["size".concat(oh(n.size))]]}})(function(e){var t=e.theme,n=e.ownerState;return F({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,")"):rB(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 F({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&F({color:o===null||o===void 0?void 0:o.main},!n.disableRipple&&{"&:hover":F({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):rB(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(iS.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))}),i_=iM.forwardRef(function(e,t){var n=op({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,h=tA(n,iP),v=F({},n,{edge:o,color:u,disabled:s,disableFocusRipple:d,size:m}),g=ij(v);return iA(iL,F({className:rd(g.root,a),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:v},h,{children:i}))}),iV=i_;function iN(e){return typeof e=="string"}function iB(e,t,n){return e===void 0||iN(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}import*as iF from"react";import{jsx as iD}from"react/jsx-runtime";var iI={disableDefaultClasses:!1},iW=iF.createContext(iI);function iz(e){var t=iF.useContext(iW),n=t.disableDefaultClasses;return function(t){return n?"":e(t)}}function iH(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 iK(e,t,n){return typeof e=="function"?e(t,n):e}function iU(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 iQ(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=rd(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=F({},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=F({},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=iH(F({},o,r)),s=iU(r),p=iU(o),d=t(c),f=rd(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=F({},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),h=F({},d,n,p,s);return f.length>0&&(h.className=f),Object.keys(m).length>0&&(h.style=m),{props:h,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=tA(e,iX),u=a?{}:iK(r,o),c=iQ(F({},l,{externalSlotProps:u})),s=c.props,p=c.internalRef,d=tu(p,u===null||u===void 0?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return iB(n,F({},s,{ref:d}),o)}import*as iZ from"react";var iG="top",iq="bottom",i$="right",iJ="left",i0="auto",i1=[iG,iq,i$,iJ],i2="start",i5="end",i3="clippingParents",i4="viewport",i6="popper",i7="reference",i8=i1.reduce(function(e,t){return e.concat([t+"-"+i2,t+"-"+i5])},[]),i9=[].concat(i1,[i0]).reduce(function(e,t){return e.concat([t,t+"-"+i2,t+"-"+i5])},[]),ae="beforeRead",at="read",an="afterRead",ar="beforeMain",ao="main",ai="afterMain",aa="beforeWrite",al="write",au="afterWrite",ac=[ae,at,an,ar,ao,ai,aa,al,au];function as(e){return e?(e.nodeName||"").toLowerCase():null}function ap(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ad(e){var t=ap(e).Element;return p(e,t)||p(e,Element)}function af(e){var t=ap(e).HTMLElement;return p(e,t)||p(e,HTMLElement)}function am(e){if((typeof ShadowRoot==="undefined"?"undefined":w(ShadowRoot))>"u")return!1;var t=ap(e).ShadowRoot;return p(e,t)||p(e,ShadowRoot)}function ah(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];!af(o)||!as(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},{});!af(r)||!as(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}}var ag={name:"applyStyles",enabled:!0,phase:"write",fn:ah,effect:av,requires:["computeStyles"]};function ay(e){return e.split("-")[0]}var ab=Math.max,ax=Math.min,aw=Math.round;function aC(){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 aT(){return!/^((?!chrome|android).)*safari/i.test(aC())}function aE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&af(e)&&(o=e.offsetWidth>0&&aw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&aw(r.height)/e.offsetHeight||1);var a=ad(e)?ap(e):window,l=a.visualViewport,u=!aT()&&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 aO(e){var t=aE(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 aM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&am(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 ap(e).getComputedStyle(e)}function aR(e){return["table","td","th"].indexOf(as(e))>=0}function aS(e){return((ad(e)?e.ownerDocument:e.document)||window.document).documentElement}function aA(e){return as(e)==="html"?e:e.assignedSlot||e.parentNode||(am(e)?e.host:null)||aS(e)}function aP(e){return!af(e)||ak(e).position==="fixed"?null:e.offsetParent}function aj(e){var t=/firefox/i.test(aC()),n=/Trident/i.test(aC());if(n&&af(e)){var r=ak(e);if(r.position==="fixed")return null}var o=aA(e);for(am(o)&&(o=o.host);af(o)&&["html","body"].indexOf(as(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 aL(e){for(var t=ap(e),n=aP(e);n&&aR(n)&&ak(n).position==="static";)n=aP(n);return n&&(as(n)==="html"||as(n)==="body"&&ak(n).position==="static")?t:n||aj(e)||t}function a_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function aV(e,t,n){return ab(e,ax(t,n))}function aN(e,t,n){var r=aV(e,t,n);return r>n?n:r}function aB(){return{top:0,right:0,bottom:0,left:0}}function aF(e){return Object.assign({},aB(),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,i1))};function aW(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ay(n.placement),u=a_(l),c=[iJ,i$].indexOf(l)>=0,s=c?"height":"width";if(!(!i||!a)){var p=aI(o.padding,n),d=aO(i),f=u==="y"?iG:iJ,m=u==="y"?iq:i$,h=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],g=aL(i),y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,b=h/2-v/2,x=p[f],w=y-d[s]-p[m],C=y/2-d[s]/2+b,T=aV(x,C,w),E=u;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-C,t)}}function az(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)||aM(t.elements.popper,o)&&(t.elements.arrow=o))}var aH={name:"arrow",enabled:!0,phase:"main",fn:aW,effect:az,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aK(e){return e.split("-")[1]}var aU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aQ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:aw(n*o)/o||0,y:aw(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,h=m===void 0?0:m,v=typeof s=="function"?s({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=iJ,x=iG,w=window;if(c){var C=aL(n),T="clientHeight",E="clientWidth";if(C===ap(n)&&(C=aS(n),ak(C).position!=="static"&&l==="absolute"&&(T="scrollHeight",E="scrollWidth")),C=C,o===iG||(o===iJ||o===i$)&&i===i5){x=iq;var O=p&&C===w&&w.visualViewport?w.visualViewport.height:C[T];h-=O-r.height,h*=u?1:-1}if(o===iJ||(o===iG||o===iq)&&i===i5){b=i$;var M=p&&C===w&&w.visualViewport?w.visualViewport.width:C[E];f-=M-r.width,f*=u?1:-1}}var k=Object.assign({position:l},c&&aU),R=s===!0?aQ({x:f,y:h},ap(n)):{x:f,y:h};if(f=R.x,h=R.y,u){var S;return Object.assign({},k,(S={},S[x]=y?"0":"",S[b]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",S))}return Object.assign({},k,(t={},t[x]=y?h+"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:ay(t.placement),variation:aK(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=ap(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 a$={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect:aq,data:{}};var aJ={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(e){return e.replace(/left|right|bottom|top/g,function(e){return aJ[e]})}var a1={start:"end",end:"start"};function a2(e){return e.replace(/start|end/g,function(e){return a1[e]})}function a5(e){var t=ap(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function a3(e){return aE(aS(e)).left+a5(e).scrollLeft}function a4(e,t){var n=ap(e),r=aS(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var c=aT();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+a3(e),y:u}}function a6(e){var t,n=aS(e),r=a5(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ab(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ab(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+a3(e),u=-r.scrollTop;return ak(o||n).direction==="rtl"&&(l+=ab(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function a7(e){var t=ak(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function a8(e){return["html","body","#document"].indexOf(as(e))>=0?e.ownerDocument.body:af(e)&&a7(e)?e:a8(aA(e))}function a9(e,t){var n;t===void 0&&(t=[]);var r=a8(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ap(r),a=o?[i].concat(i.visualViewport||[],a7(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(a9(aA(a)))}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lt(e,t){var n=aE(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 ln(e,t,n){return t===i4?le(a4(e,n)):ad(t)?lt(t,n):le(a6(aS(e)))}function lr(e){var t=a9(aA(e)),n=["absolute","fixed"].indexOf(ak(e).position)>=0,r=n&&af(e)?aL(e):e;return ad(r)?t.filter(function(e){return ad(e)&&aM(e,r)&&as(e)!=="body"}):[]}function lo(e,t,n,r){var o=t==="clippingParents"?lr(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=ln(e,n,r);return t.top=ab(o.top,t.top),t.right=ax(o.right,t.right),t.bottom=ax(o.bottom,t.bottom),t.left=ab(o.left,t.left),t},ln(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 li(e){var t=e.reference,n=e.element,r=e.placement,o=r?ay(r):null,i=r?aK(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 i$:u={x:t.x+t.width,y:l};break;case iJ:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?a_(o):null;if(c!=null){var s=c==="y"?"height":"width";switch(i){case i2:u[c]=u[c]-(t[s]/2-n[s]/2);break;case i5:u[c]=u[c]+(t[s]/2-n[s]/2);break;default:}}return u}function la(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?i3:l,c=n.rootBoundary,s=c===void 0?i4:c,p=n.elementContext,d=p===void 0?i6:p,f=n.altBoundary,m=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,g=aF(typeof v!="number"?v:aD(v,i1)),y=d===i6?i7:i6,b=e.rects.popper,x=e.elements[m?y:d],w=lo(ad(x)?x:x.contextElement||aS(e.elements.popper),u,s,a),C=aE(e.elements.reference),T=li({reference:C,element:b,strategy:"absolute",placement:o}),E=le(Object.assign({},b,T)),O=d===i6?E:C,M={top:w.top-O.top+g.top,bottom:O.bottom-w.bottom+g.bottom,left:w.left-O.left+g.left,right:O.right-w.right+g.right},k=e.modifiersData.offset;if(d===i6&&k){var R=k[o];Object.keys(M).forEach(function(e){var t=[i$,iq].indexOf(e)>=0?1:-1,n=[iG,iq].indexOf(e)>=0?"y":"x";M[e]+=R[n]*t})}return M}function ll(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?i9:u,s=aK(r),p=s?l?i8:i8.filter(function(e){return aK(e)===s}):i1,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]=la(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ay(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}function lu(e){if(ay(e)===i0)return[];var t=a0(e);return[a2(e),t,a2(t)]}function lc(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,h=n.allowedAutoPlacements,v=t.options.placement,g=ay(v),y=g===v,b=u||(y||!m?[a0(v)]:lu(v)),x=[v].concat(b).reduce(function(e,n){return e.concat(ay(n)===i0?ll(t,{placement:n,boundary:s,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),w=t.rects.reference,C=t.rects.popper,T=new Map,E=!0,O=x[0],M=0;M<x.length;M++){var k=x[M],R=ay(k),S=aK(k)===i2,A=[iG,iq].indexOf(R)>=0,P=A?"width":"height",j=la(t,{placement:k,boundary:s,rootBoundary:p,altBoundary:d,padding:c}),L=A?S?i$:iJ:S?iq:iG;w[P]>C[P]&&(L=a0(L));var _=a0(L),V=[];if(i&&V.push(j[R]<=0),l&&V.push(j[L]<=0,j[_]<=0),V.every(function(e){return e})){O=k,E=!1;break}T.set(k,V)}if(E)for(var N=m?3:1,B=function e(e){var t=x.find(function(t){var n=T.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return O=t,"break"},F=N;F>0;F--){var D=B(F);if(D==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var ls={name:"flip",enabled:!0,phase:"main",fn:lc,requiresIfExists:["offset"],data:{_skip:!1}};function lp(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 ld(e){return[iG,i$,iq,iJ].some(function(t){return e[t]>=0})}function lf(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=la(t,{elementContext:"reference"}),l=la(t,{altBoundary:!0}),u=lp(a,r),c=lp(l,o,i),s=ld(u),p=ld(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 lm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lf};function lh(e,t,n){var r=ay(e),o=[iJ,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,[iJ,i$].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=i9.reduce(function(e,n){return e[n]=lh(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 lg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lv};function ly(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var lb={name:"popperOffsets",enabled:!0,phase:"read",fn:ly,data:{}};function lx(e){return e==="x"?"y":"x"}function lw(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,h=m===void 0?0:m,v=la(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:s}),g=ay(t.placement),y=aK(t.placement),b=!y,x=a_(g),w=lx(x),C=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,O=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,M=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(C){if(i){var S,A=x==="y"?iG:iJ,P=x==="y"?iq:i$,j=x==="y"?"height":"width",L=C[x],_=L+v[A],V=L-v[P],N=f?-E[j]/2:0,B=y===i2?T[j]:E[j],F=y===i2?-E[j]:-T[j],D=t.elements.arrow,I=f&&D?aO(D):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aB(),z=W[A],H=W[P],K=aV(0,T[j],I[j]),U=b?T[j]/2-N-K-z-M.mainAxis:B-K-z-M.mainAxis,Q=b?-T[j]/2+N+K+H+M.mainAxis:F+K+H+M.mainAxis,X=t.elements.arrow&&aL(t.elements.arrow),Y=X?x==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(S=k===null||k===void 0?void 0:k[x])!=null?S:0,G=L+U-Z-Y,q=L+Q-Z,$=aV(f?ax(_,G):_,L,f?ab(V,q):V);C[x]=$,R[x]=$-L}if(l){var J,ee=x==="x"?iG:iJ,et=x==="x"?iq:i$,en=C[w],er=w==="y"?"height":"width",eo=en+v[ee],ei=en-v[et],ea=[iG,iJ].indexOf(g)!==-1,el=(J=k===null||k===void 0?void 0:k[w])!=null?J:0,eu=ea?eo:en-T[er]-E[er]-el+M.altAxis,ec=ea?en+T[er]+E[er]-el-M.altAxis:ei,es=f&&ea?aN(eu,en,ec):aV(f?eu:eo,en,f?ec:ei);C[w]=es,R[w]=es-en}t.modifiersData[r]=R}}var lC={name:"preventOverflow",enabled:!0,phase:"main",fn:lw,requiresIfExists:["offset"]};function lT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lE(e){return e===ap(e)||!af(e)?a5(e):lT(e)}function lO(e){var t=e.getBoundingClientRect(),n=aw(t.width)/e.offsetWidth||1,r=aw(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lM(e,t,n){n===void 0&&(n=!1);var r=af(t),o=af(t)&&lO(t),i=aS(t),a=aE(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((as(t)!=="body"||a7(i))&&(l=lE(t)),af(t)?(u=aE(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=a3(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 ac.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function lS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lA(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 lP={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 lL(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?lP:o;return function(e,t,n){n===void 0&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},lP,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:ad(e)?a9(e):e.contextElement?a9(e.contextElement):[],popper:a9(t)};var l=lR(lA([].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:lM(t,aL(n),o.options.strategy==="fixed"),popper:aO(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:lS(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 l_=[a$,lb,aZ,ag,lg,ls,lC,aH,lm],lV=lL({defaultModifiers:l_});import*as lN from"react";import*as lB from"react-dom";import{jsx as lF}from"react/jsx-runtime";function lD(e){return typeof e=="function"?e():e}var lI=lN.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=o===void 0?!1:o,a=y(lN.useState(null),2),l=a[0],u=a[1],c=tu(lN.isValidElement(n)?n.ref:null,t);return e6(function(){i||u(lD(r)||document.body)},[r,i]),e6(function(){if(l&&!i)return e5(t,l),function(){e5(t,null)}},[t,l,i]),i?lN.isValidElement(n)?lN.cloneElement(n,{ref:c}):lF(lN.Fragment,{children:n}):lF(lN.Fragment,{children:l&&lB.createPortal(n,l)})});function lW(e){return tk("MuiPopper",e)}var lz=tR("MuiPopper",["root"]);import{jsx as lH}from"react/jsx-runtime";var lK=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],lU=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function lQ(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 tw({root:["root"]},iz(lW))},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,h=m===void 0?{}:m,v=e.TransitionProps,g=tA(e,lK),b=iZ.useRef(null),x=tu(b,t),w=iZ.useRef(null),C=tu(w,p),T=iZ.useRef(C);e6(function(){T.current=C},[C]),iZ.useImperativeHandle(p,function(){return w.current},[]);var E=lQ(c,i),O=y(iZ.useState(E),2),M=O[0],k=O[1],R=y(iZ.useState(lX(r)),2),S=R[0],A=R[1];iZ.useEffect(function(){w.current&&w.current.forceUpdate()}),iZ.useEffect(function(){r&&A(lX(r))},[r]),e6(function(){if(!S||!u)return;var e=function(e){k(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=lV(S,b.current,F({placement:E},s,{modifiers:t}));return T.current(n),function(){n.destroy(),T.current(null)}},[S,a,l,u,s,E]);var P={placement:M};v!==null&&(P.TransitionProps=v);var j=lZ(),L=(n=h.root)!=null?n:"div",_=iY({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:j.root});return lH(L,F({},_,{children:typeof o=="function"?o(P):o}))}),l$=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,h=e.popperOptions,v=h===void 0?lG:h,g=e.popperRef,b=e.style,x=e.transition,w=x===void 0?!1:x,C=e.slotProps,T=C===void 0?{}:C,E=e.slots,O=E===void 0?{}:E,M=tA(e,lU),k=y(iZ.useState(!0),2),R=k[0],S=k[1],A=function(){S(!1)},P=function(){S(!0)};if(!s&&!d&&(!w||R))return null;var j;if(o)j=o;else if(n){var L=lX(n);j=L&&lY(L)?e2(L).body:e2(null).body}var _=!d&&s&&(!w||R)?"none":void 0,V=w?{in:d,onEnter:A,onExited:P}:void 0;return lH(lI,{disablePortal:u,container:j,children:lH(lq,F({anchorEl:n,direction:a,disablePortal:u,modifiers:p,ref:t,open:w?!R:d,placement:m,popperOptions:v,popperRef:g,slotProps:T,slots:O},M,{style:F({position:"fixed",top:0,left:0,display:_},b),TransitionProps:V,children:r}))})});import*as lJ from"react";import{jsx as l0}from"react/jsx-runtime";var l1=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],l2=om(l$,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),l5=lJ.forwardRef(function(e,t){var n;var r=ra(),o=op({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,h=o.popperOptions,v=o.popperRef,g=o.transition,y=o.slots,b=o.slotProps,x=tA(o,l1),w=(n=y===null||y===void 0?void 0:y.root)!=null?n:l===null||l===void 0?void 0:l.Root,C=F({anchorEl:i,container:c,disablePortal:s,keepMounted:p,modifiers:d,open:f,placement:m,popperOptions:h,popperRef:v,transition:g},x);return l0(l2,F({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}))}),l3=l5;import*as l4 from"react";import{jsx as l6}from"react/jsx-runtime";var l7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function l8(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var l9={entering:{opacity:1,transform:l8(1)},entered:{opacity:1,transform:"none"}},ue=(typeof navigator==="undefined"?"undefined":w(navigator))<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ut=l4.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,h=e.timeout,v=h===void 0?"auto":h,g=e.TransitionComponent,y=g===void 0?oN:g,b=tA(e,l7),x=l4.useRef(),w=l4.useRef(),C=os(),T=l4.useRef(null),E=ob(T,i.ref,t),O=function(e){return function(t){if(e){var n=T.current;t===void 0?e(n):e(n,t)}}},M=O(s),k=O(function(e,t){oq(e);var n=o$({style:m,timeout:v,easing:a},{mode:"enter"}),r=n.duration,o=n.delay,i=n.easing,l;v==="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:ue?l:l*.666,delay:o,easing:i})].join(","),u&&u(e,t)}),R=O(c),S=O(f),A=O(function(e){var t=o$({style:m,timeout:v,easing:a},{mode:"exit"}),n=t.duration,r=t.delay,o=t.easing,i;v==="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:ue?i:i*.666,delay:ue?r:r||i*.333,easing:o})].join(","),e.style.opacity=0,e.style.transform=l8(.75),p&&p(e)}),P=O(d),j=function(e){v==="auto"&&(x.current=setTimeout(e,w.current||0)),n&&n(T.current,e)};return l4.useEffect(function(){return function(){clearTimeout(x.current)}},[]),l6(y,F({appear:o,in:l,nodeRef:T,onEnter:k,onEntered:R,onEntering:M,onExit:A,onExited:P,onExiting:S,addEndListener:j,timeout:v==="auto"?null:v},b,{children:function(e,t){return l4.cloneElement(i,F({style:F({opacity:0,transform:l8(.75),visibility:e==="exited"&&!l?"hidden":void 0},l9[e],m,i.props.style),ref:E},t))}}))});ut.muiSupportAuto=!0;var un=ut;import*as ur from"react";function uo(e){return tk("MuiTooltip",e)}var ui=tR("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ua=ui;import{jsx as ul}from"react/jsx-runtime";import{jsxs as uu}from"react/jsx-runtime";var uc=["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 us(e){return Math.round(e*1e5)/1e5}var up=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(oh(i.split("-")[0]))],arrow:["arrow"]};return tw(a,uo,t)},ud=om(l3,{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 F({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(ua.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),u(o,'&[data-popper-placement*="top"] .'.concat(ua.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),u(o,'&[data-popper-placement*="right"] .'.concat(ua.arrow),F({},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(ua.arrow),F({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),o))}),uf=om("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(oh(n.placement.split("-")[0]))]]}})(function(e){var t=e.theme,n=e.ownerState;var r;return F({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:rB(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(us(16/14),"em"),fontWeight:t.typography.fontWeightRegular},(r={},u(r,".".concat(ua.popper,'[data-popper-placement*="left"] &'),F({transformOrigin:"right center"},n.isRtl?F({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):F({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),u(r,".".concat(ua.popper,'[data-popper-placement*="right"] &'),F({transformOrigin:"left center"},n.isRtl?F({marginRight:"14px"},n.touch&&{marginRight:"24px"}):F({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),u(r,".".concat(ua.popper,'[data-popper-placement*="top"] &'),F({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),u(r,".".concat(ua.popper,'[data-popper-placement*="bottom"] &'),F({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})),r))}),um=om("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:rB(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),uh=!1,uv=null,ug={x:0,y:0};function uy(e,t){return function(n){t&&t(n),e(n)}}var ub=ur.forwardRef(function(e,t){var n,r,o,i,a,l,u,c,s,p,d,f,m,h,v,g,b,x,w;var C=op({props:e,name:"MuiTooltip"}),T=C.arrow,E=T===void 0?!1:T,O=C.children,M=C.components,k=M===void 0?{}:M,R=C.componentsProps,S=R===void 0?{}:R,A=C.describeChild,P=A===void 0?!1:A,j=C.disableFocusListener,L=j===void 0?!1:j,_=C.disableHoverListener,V=_===void 0?!1:_,N=C.disableInteractive,B=N===void 0?!1:N,D=C.disableTouchListener,I=D===void 0?!1:D,W=C.enterDelay,z=W===void 0?100:W,H=C.enterNextDelay,K=H===void 0?0:H,U=C.enterTouchDelay,Q=U===void 0?700:U,X=C.followCursor,Y=X===void 0?!1:X,Z=C.id,G=C.leaveDelay,q=G===void 0?0:G,$=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?un:ef,eh=C.TransitionProps,ev=tA(C,uc),eg=ur.isValidElement(O)?O:ul("span",{children:O}),ey=os(),eb=ey.direction==="rtl",ex=y(ur.useState(),2),ew=ex[0],eC=ex[1],eT=y(ur.useState(null),2),eE=eT[0],eO=eT[1],eM=ur.useRef(!1),ek=B||Y,eR=ur.useRef(),eS=ur.useRef(),eA=ur.useRef(),eP=ur.useRef(),ej=y(og({controlled:en,default:!1,name:"Tooltip",state:"open"}),2),eL=ej[0],e_=ej[1],eV=eL,eN=ov(Z),eB=ur.useRef(),eF=ur.useCallback(function(){eB.current!==void 0&&(document.body.style.WebkitUserSelect=eB.current,eB.current=void 0),clearTimeout(eP.current)},[]);ur.useEffect(function(){return function(){clearTimeout(eR.current),clearTimeout(eS.current),clearTimeout(eA.current),eF()}},[eF]);var eD=function(e){clearTimeout(uv),uh=!0,e_(!0),et&&!eV&&et(e)},eI=oy(function(e){clearTimeout(uv),uv=setTimeout(function(){uh=!1},800+q),e_(!1),ee&&eV&&ee(e),clearTimeout(eR.current),eR.current=setTimeout(function(){eM.current=!1},ey.transitions.duration.shortest)}),eW=function(e){eM.current&&e.type!=="touchstart"||(ew&&ew.removeAttribute("title"),clearTimeout(eS.current),clearTimeout(eA.current),z||uh&&K?eS.current=setTimeout(function(){eD(e)},uh?K:z):eD(e))},ez=function(e){clearTimeout(eS.current),clearTimeout(eA.current),eA.current=setTimeout(function(){eI(e)},q)},eH=ox(),eK=eH.isFocusVisibleRef,eU=eH.onBlur,eQ=eH.onFocus,eX=eH.ref,eY=y(ur.useState(!1),2),eZ=eY[1],eG=function(e){eU(e),eK.current===!1&&(eZ(!1),ez(e))},eq=function(e){ew||eC(e.currentTarget),eQ(e),eK.current===!0&&(eZ(!0),eW(e))},e$=function(e){eM.current=!0;var t=eg.props;t.onTouchStart&&t.onTouchStart(e)},eJ=eW,e0=ez,e1=function(e){e$(e),clearTimeout(eA.current),clearTimeout(eR.current),eF(),eB.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eP.current=setTimeout(function(){document.body.style.WebkitUserSelect=eB.current,eW(e)},Q)},e2=function(e){eg.props.onTouchEnd&&eg.props.onTouchEnd(e),eF(),clearTimeout(eA.current),eA.current=setTimeout(function(){eI(e)},J)};ur.useEffect(function(){var e=function e(e){(e.key==="Escape"||e.key==="Esc")&&eI(e)};if(!eV)return;return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[eI,eV]);var e5=ob(eg.ref,eX,eC,t);!ed&&ed!==0&&(eV=!1);var e3=ur.useRef(),e4=function(e){var t=eg.props;t.onMouseMove&&t.onMouseMove(e),ug={x:e.clientX,y:e.clientY},e3.current&&e3.current.update()},e6={},e7=typeof ed=="string";P?(e6.title=!eV&&e7&&!V?ed:null,e6["aria-describedby"]=eV?eN:null):(e6["aria-label"]=e7?ed:null,e6["aria-labelledby"]=eV&&!e7?eN:null);var e8=F({},e6,ev,eg.props,{className:rd(ev.className,eg.props.className),onTouchStart:e$,ref:e5},Y?{onMouseMove:e4}:{}),e9={};I||(e8.onTouchStart=e1,e8.onTouchEnd=e2),V||(e8.onMouseOver=uy(eJ,e8.onMouseOver),e8.onMouseLeave=uy(e0,e8.onMouseLeave),ek||(e9.onMouseOver=eJ,e9.onMouseLeave=e0)),L||(e8.onFocus=uy(eq,e8.onFocus),e8.onBlur=uy(eG,e8.onBlur),ek||(e9.onFocus=eq,e9.onBlur=eG));var te=ur.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)),F({},el.popperOptions,{modifiers:t})},[eE,el]),tt=F({},C,{isRtl:eb,arrow:E,disableInteractive:ek,placement:eo,PopperComponentProp:ei,touch:eM.current}),tn=up(tt),tr=(n=(r=ep.popper)!=null?r:k.Popper)!=null?n:ud,to=(o=(i=(a=ep.transition)!=null?a:k.Transition)!=null?i:em)!=null?o:un,ti=(l=(u=ep.tooltip)!=null?u:k.Tooltip)!=null?l:uf,ta=(c=(s=ep.arrow)!=null?s:k.Arrow)!=null?c:um,tl=iB(tr,F({},el,(p=ec.popper)!=null?p:S.popper,{className:rd(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=iB(to,F({},eh,(m=ec.transition)!=null?m:S.transition),tt),tc=iB(ti,F({},(h=ec.tooltip)!=null?h:S.tooltip,{className:rd(tn.tooltip,(v=(g=ec.tooltip)!=null?g:S.tooltip)==null?void 0:v.className)}),tt),ts=iB(ta,F({},(b=ec.arrow)!=null?b:S.arrow,{className:rd(tn.arrow,(x=(w=ec.arrow)!=null?w:S.arrow)==null?void 0:x.className)}),tt);return uu(ur.Fragment,{children:[ur.cloneElement(eg,e8),ul(tr,F({as:ei!==null&&ei!==void 0?ei:l3,placement:eo,anchorEl:Y?{getBoundingClientRect:function(){return{top:ug.y,left:ug.x,right:ug.x,bottom:ug.y,width:0,height:0}}}:ew,popperRef:e3,open:ew?eV:!1,id:eN,transition:!0},e9,tl,{popperOptions:te,children:function(e){var t=e.TransitionProps;return ul(to,F({timeout:ey.transitions.duration.shorter},t,tu,{children:uu(ti,F({},tc,{children:[ed,E?ul(ta,F({},ts,{ref:eO})):null]}))}))}}))]})}),ux=ub;import{Fragment as uw,jsx as uC,jsxs as uT}from"react/jsx-runtime";var uE=/*#__PURE__*/function(e){"use strict";s(t,e);function t(){i(this,t);return o(this,t,arguments)}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,h=m===void 0?function(){}:m,v=h(o||0,!0,f),g=c.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(v)),y=ey(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=h(b,!0,f),w=c.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(x)),C=ey(c.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),T=h(l!==null&&l!==void 0?l:0,!1,!1);return uT($,{children:[uC(J,{children:a?uT(uw,{children:[uC(ee,{children:uC(eS,{className:"loyalty-warning-icon",color:"#4A6987"})}),uC(eA,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#293A4A",noSpacing:!0,children:c.notQualify})]}):uT(uw,{children:[uC(eA,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:C}),"\xa0",uC(eA,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:"".concat(T)}),uC(ee,{children:uC(ux,{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:uC("span",{className:"info-icon",children:uC(iV,{"aria-label":c.estimateDisclaimer,children:uC(e_,{})})})})})]})}),r===i?"":a?uT(eA,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[y,"\xa0",uC(eA,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:"".concat(T)})]}):o!=null||o!=null?uC(eA,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:g}):uC(eA,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:w})]})}}]);return t}(eR.Component),uO=uE;import{useState as uM}from"react";import{FaExclamationTriangle as uk}from"react-icons/fa";import{NsTypography as uR}from"@nuskin/foundation-ui-components";import{CircularProgressbarWithChildren as uS,buildStyles as uA}from"react-circular-progressbar";import{Fragment as uP,jsx as uj,jsxs as uL}from"react/jsx-runtime";function u_(e){var t=e.voucherValue,n=e.minVoucher,r=e.maxVoucher,o=e.notQualifyForRewardThisMonth,i=e.learn3xMore,a=e.learnMoreText,l=e.translationLearnMore;return t===n&&!o?i:t===r||o?a:(t==null,l)}function uV(e){var t=e.isComplete,n=e.notQualifyForRewardThisMonth,r=e.hasVoucherValue,o=e.voucherEarned,i=e.voucherTargetAmount;return t&&!n?uj(ed,{}):n?uj(ee,{children:uj(uk,{className:"outline-exclamation-icon",color:"#91ACC8"})}):r?uL(q,{children:[uj(uR,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:o}),uj(uR,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:i})]}):uj(q,{children:uj(ev,{})})}function uN(e){var t=e.isComplete,n=e.amountShow,r=e.minAmount,o=e.voucherEarnedText,i=e.monthsCompleteText;return uj("div",{className:"info-item",children:t&&n!==void 0&&n>r?o:i})}function uB(e){var t=e.isComplete,n=e.notQualifyForRewardThisMonth,r=e.hasVoucherValue,o=e.approximateTotalText,i=e.amountShowText,a=e.currentlyTrackText,l=e.callToActionText;return t?null:n?uL(uR,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[o," ",uj(uR,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:i})]}):r?uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:a}):uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:l})}function uF(e){var t=e.notQualifyForRewardThisMonth,n=e.approximateMonthlyText,r=e.amountShowText,o=e.translationNotQualify,i=e.estimateDisclaimer,a=e.open,l=e.handleTooltipToggle,u=e.handleTooltipClose;return t?uL(uP,{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:o})]}):uL(uP,{children:[uL(uR,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:[n," "]}),"\xa0",uj(uR,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:r}),uj(ee,{children:uj(ux,{slotProps:er,title:i,arrow:!0,placement:"top",open:a,onClose:u,children:uj("span",{className:"info-icon",children:uj(iV,{onClick:l,children:uj(e_,{})})})})})]})}var uD=function(e){var t,n;var r;var o=y(uM(!1),2),i=o[0],a=o[1],l=function(){a(!i)},u=function(){return a(!1)},c=e.handleOpenSubscriptionRewardPopup,s=c===void 0?function(){}:c,p=e.notQualifyForRewardThisMonth,d=p===void 0?!1:p,f=e.value,m=f===void 0?0:f,h=e.voucherValue,v=h===void 0?0:h,g=e.amountShow,b=e.maxMonths,x=b===void 0?0:b,w=e.translationConfig,C=w===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:"",estimateDisclaimer:""}:w,T=e.learnMoreConfig,E=T===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:T,O=e.storeConfig,M=O===void 0?{tiers:[{consecutive_months:"",min_spend:"",max_spend:"",promo_code:""},{consecutive_months:"",min_spend:"",promo_code:""}]}:O,k=e.currencyAbbreviate,R=k===void 0?!1:k,S=e.currencyFormat,A=50,P=150,j=function(e,t,n){var r;return(r=S===null||S===void 0?void 0:S(e,t,n))!==null&&r!==void 0?r:""},L=ey(C.monthsComplete,{completed_months:m,total_months:x}),_=j(v||0,!0,R),V=C.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(_)),N=C.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(_)),B=ey(C.approximateTotal,{currency_symbol:"",projected_month_spend:""}),F=parseFloat(String(M===null||M===void 0?void 0:(n=M.tiers)===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.min_spend))||0,D=j(F,!0,R),I=C.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(D)),W=ey(C.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),z=ey(C.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),H=j(g!==null&&g!==void 0?g:0,!1,!1),K=m===x,U=v!=null,Q=m===x&&!d?"rgb(195 240 194)":"#fff",X=u_({voucherValue:v,minVoucher:A,maxVoucher:P,notQualifyForRewardThisMonth:d,learn3xMore:C.learn3xMore,learnMoreText:E.learnMore,translationLearnMore:C.learnMore}),q=uV({isComplete:K,notQualifyForRewardThisMonth:d,hasVoucherValue:U,voucherEarned:_,voucherTargetAmount:z}),ee=uN({isComplete:K,amountShow:g,minAmount:F,voucherEarnedText:V,monthsCompleteText:L}),et=uB({isComplete:K,notQualifyForRewardThisMonth:d,hasVoucherValue:U,approximateTotalText:B,amountShowText:H,currentlyTrackText:N,callToActionText:I}),en=uF({notQualifyForRewardThisMonth:d,approximateMonthlyText:W,amountShowText:H,translationNotQualify:C.notQualify,estimateDisclaimer:(r=C.estimateDisclaimer)!==null&&r!==void 0?r:"",open:i,handleTooltipToggle:l,handleTooltipClose:u});return uL(Y,{children:[uj(Z,{children:uj("img",{className:"reward-logo",src:C.loyaltyLogoBlack,alt:"Rewards Logo"})}),uj("div",{className:"reward-progress",children:uL(uS,{value:m/x*100,strokeWidth:12,background:!0,styles:uA({rotation:.5,strokeLinecap:"butt",backgroundColor:Q,pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[uj(el,{count:x}),q]})}),uj(Z,{children:ee}),uL($,{children:[et,uj(J,{children:en})]}),uj(Z,{children:uj(G,{onClick:s,children:uj("u",{children:X})})})]})},uI=uD;var uW=(typeof window==="undefined"?"undefined":w(window))=="object",uz=/*#__PURE__*/function(){"use strict";function e(){i(this,e);this.width=uW?window.innerWidth:0;this.scroll={vertical:uW?window.scrollY:0,horizontal:uW?window.scrollX:0,direction:"none"}}l(e,[{key:"isMobile",get:function e(){return this.isPhone}},{key:"isPhone",get:function e(){return uW?window.innerWidth<768:this.width<768}}]);return e}(),uH=new uz;var uK=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return x(e).sort(function(e,t){return e.year===t.year?t.month-e.month:t.year-e.year})},uU=function(e,t){return e.month===t.getMonth()+1&&e.year===t.getFullYear()},uQ=function(e,t){return e.filter(function(e){return uU(e,t)})},uX=function(e){var t;var n;return(n=e===null||e===void 0?void 0:(t=e[0])===null||t===void 0?void 0:t.totalAmount)!==null&&n!==void 0?n:0},uY=function(e){var t;var n;return parseInt((n=e===null||e===void 0?void 0:(t=e.approximateMonthlyTotalResponse)===null||t===void 0?void 0:t.currentMonthTotal)!==null&&n!==void 0?n:"0")},uZ=function(e,t,n){return e>n?n:t},uG=function(e,t){return e.some(function(e){return e.totalAmount>=t})},uq=function(e,t,n){return n?new Date(e.getFullYear(),e.getMonth()-(t-1),1):new Date(e.getFullYear(),e.getMonth()-t,1)},u$=function(e,t){return e.filter(function(e){return new Date(e.year,e.month-1)>=t})},uJ=function(e){return e.filter(function(e){return e.promocode===null||e.promocode===void 0||e.promocode===""})},u0=function(e,t,n){return n?e:e.filter(function(e){return!uU(e,t)})},u1=function(e,t){return e.slice(0,t)},u2=function(e){return e&&e.some(function(e){return e===void 0})?e.every(function(t){return t===e[0]}):!1},u5=function(e,t,n){var r=t?e.getMonth():e.getMonth()-1;return new Date(e.getFullYear(),r-n).getMonth()+1},u3=function(e){return e!==void 0&&e!==""&&e!==null},u4=function(e){return e===void 0||e===""||e===null},u6=function(e,t){return(e===null||e===void 0?void 0:e.month)&&e.month!==t},u7=function(e,t){return e&&u3(t)},u8=function(e,t,n,r){var o=t,i=n.minVoucher;return n.allMonthsAboveMaxAmount||t===2&&e>=n.maxAmount?i=n.maxVoucher:o=1,{monthCompletionValue:r+1,voucherValue:i,tier:o}},u9=function(e,t){if(!e||!t.promoCodes)return{monthCompletionValue:t.monthCompletionValue,voucherValue:t.voucherValue};var n=t.voucherValue,r=t.monthCompletionValue,o=2;for(var i=0;i<e.length;i++){var a=e[i],l=t.promoCodes[i],u=u5(t.today,t.isCurrentMonthEligible,i);if(u6(a,u))return{monthCompletionValue:r,voucherValue:n};if(u7(t.allSamePromoCode,l))return{monthCompletionValue:0,voucherValue:n};var c=a.totalAmount>=t.minAmount,s=u4(l);if(c&&s){var p=u8(a.totalAmount,o,t,r);r=p.monthCompletionValue,n=p.voucherValue,o=p.tier;continue}if(a.totalAmount<t.minAmount)return{monthCompletionValue:r,voucherValue:n}}return{monthCompletionValue:r,voucherValue:n}},ce=function(e){var t=e.data,n=e.minAmount,r=e.maxAmount,o=e.minVoucher,i=e.maxVoucher,a=e.initialVoucherValue,l=e.initialMonthCompletionValue,u=e.maxMonths,c=e.today;var s=a,p=l;if(!t)return{monthCompletionValue:p,voucherValue:s};var d;var f=uK(t.csmMonthlySubsOrderTotal),m=uQ(f,c),h=m.length>0,v=uX(m),g=uY(t),y=uZ(g,n,r),b=uG(m,y),x=uq(c,u,h&&b),w=u$(f,x),C=uJ(w),T=u0(C,c,b),E=u1(T,u),O=(d=E===null||E===void 0?void 0:E.every(function(e){return e.totalAmount>=r}))!==null&&d!==void 0?d:!1,M=E===null||E===void 0?void 0:E.map(function(e){return e.promocode}),k=u2(M);var R;return R=u9(E,{minAmount:n,maxAmount:r,minVoucher:o,maxVoucher:i,isCurrentMonthEligible:b,today:c,monthCompletionValue:p,voucherValue:s,allMonthsAboveMaxAmount:O,promoCodes:M,allSamePromoCode:k}),p=R.monthCompletionValue,s=R.voucherValue,R,(!h||!b)&&s!==o&&(s=g>=r?i:o),!b&&s===o&&p<u&&v>=n&&(p+=1),{monthCompletionValue:p,voucherValue:s}};import{Fragment as ct,jsx as cn,jsxs as cr}from"react/jsx-runtime";var co=function(e,t,n,r){return e<t?n:e>t?r:0},ci=function(e){var t,n,r,o,i,a,l,u,c;var s,p,d;var f=e.title,m=e.subscriptionData,h=e.translationConfig,v=e.learnMoreConfig,g=e.storeConfig,b=e.currencyFormat,x=(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,w=(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,C=(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,T=y(H(!1),2),E=T[0],O=T[1],M=function(){return O(!0)},k=function(){return O(!1)},R=m,S=0,A=0;g===null||g===void 0?void 0:(l=g.tiers)===null||l===void 0?void 0:l.map(function(e){e.min_spend<w&&(w=e.min_spend),"max_spend"in e&&e.max_spend>x&&(x=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===w){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",""),S=parseInt(r)}if(e.min_spend===x){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",""),A=parseInt(a)}});var P;var j=parseFloat((P=R===null||R===void 0?void 0:(c=R.approximateMonthlyTotalResponse)===null||c===void 0?void 0:c.currentMonthTotal)!==null&&P!==void 0?P:"0"),L=co(j,x,S,A),_=ce({data:R,minAmount:w,maxAmount:x,minVoucher:S,maxVoucher:A,initialVoucherValue:L,initialMonthCompletionValue:0,maxMonths:C,today:new Date}),V=_.monthCompletionValue,N=_.voucherValue,B=V,F=j<w&&N!==0&&B!==C;return cr(X,{children:[uH.isMobile?cn(uI,{value:B,title:f,voucherValue:N,maxMonths:C,handleOpenSubscriptionRewardPopup:M,storeConfig:g,amountShow:j,notQualifyForRewardThisMonth:F,translationConfig:h,learnMoreConfig:v,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b}):cr(ct,{children:[cn(ek,{value:B,title:f,notQualifyForRewardThisMonth:F,monthCompletionValue:V,storeConfig:g,maxMonths:C,voucherValue:N,handleOpenSubscriptionRewardPopup:M,translationConfig:h,learnMoreConfig:v,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b}),cn(uO,{notQualifyForRewardThisMonth:F,value:B,voucherValue:N,maxMonths:C,title:f,monthCompletionValue:V,storeConfig:g,translationConfig:h,learnMoreConfig:v,handleOpenSubscriptionRewardPopup:M,amountShow:j,currencyAbbreviate:g===null||g===void 0?void 0:g.currencyAbbreviate,currencyFormat:b})]}),cn(z,{show:E,close:k,amountShow:j,learnMoreConfig:v,translationConfig:h})]})},ca=ci;export{ca 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 v(e,T()?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 h(){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 v(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)||h()}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 T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=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 O(){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"]);O=function t(){return e};return e}function M(){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"]);M=function t(){return e};return e}function k(){var e=b(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n"]);k=function t(){return e};return e}function R(){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"]);R=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 P(){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"]);P=function t(){return e};return e}function j(){var e=b(["\n position: absolute;\n height: 100%;\n"]);j=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 V(){var e=b(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]);V=function t(){return e};return e}function B(){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"]);B=function t(){return e};return e}function N(){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"]);N=function t(){return e};return e}import{a as F,b as D,c as I,d as W,e as z}from"../chunk-Z6ATMGBY.mjs";import{useState as H}from"react";import K from"react";import{CircularProgressbarWithChildren as U,buildStyles as Q}from"react-circular-progressbar";var X=W.div(E()),Y=W.div(O()),Z=W.div(M()),G=W.div(k()),q=W.div(R()),$=W.div(S()),J=W.div(A()),ee=W.span(P()),et=W.div(j()),en=W.div(L()),er={tooltip:{sx:{color:"#FFFFFF",backgroundColor:"#252525",fontFamily:"Inter",fontWeight:400,fontSize:"14px",lineHeight:"20px","& .MuiTooltip-arrow":{color:"#252525"}}}};import{jsx as eo}from"react/jsx-runtime";function ei(e){return eo(et,{style:{transform:"rotate(".concat(e.turns,"turn)")},children:eo(en,{})})}function ea(e){var t=1/e.count,n=.5;return Array.from({length:e.count},function(e,r){return r*t+n}).map(function(e){return eo(ei,{turns:e},e)})}var el=ea;import{FaExclamationTriangle as eu}from"react-icons/fa";import{jsx as ec,jsxs as es}from"react/jsx-runtime";function ep(){return es("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ec("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"}),ec("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"}),ec("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"}),ec("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"}),ec("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#405E50"}),ec("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#405E50"})]})}var ed=ep;import{jsx as ef,jsxs as em}from"react/jsx-runtime";function eh(){return em("svg",{width:"71",height:"42",viewBox:"0 0 71 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ef("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"}),ef("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"}),ef("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"}),ef("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"}),ef("path",{d:"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z",fill:"#B0B0B0"}),ef("path",{d:"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z",fill:"#B0B0B0"})]})}var ev=eh;import eg from"react";var ey=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 eb,jsxs as ex}from"react/jsx-runtime";var ew=/*#__PURE__*/function(e){"use strict";s(t,e);function t(){i(this,t);return o(this,t,arguments)}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 h=ey(l.monthsComplete,{completed_months:t,total_months:r}),v=f(n||0,!0,p),g=l.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(v));return ex(Z,{children:[eb("img",{className:"reward-logo",src:l.loyaltyLogoBlack,alt:"Rewards Logo"}),t===r?eb("div",{className:"info-item",children:g}):eb("div",{className:"info-item",children:h}),eb(G,{id:"learnMore",onClick:o,children:eb("u",{children:m})})]})}}]);return t}(eg.Component),eC=ew;import{NsTypography as eT}from"@nuskin/foundation-ui-components";import{jsx as eE,jsxs as eO}from"react/jsx-runtime";var eM=/*#__PURE__*/function(e){"use strict";s(t,e);function t(){i(this,t);return o(this,t,arguments)}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,h=e.currencyAbbreviate,v=h===void 0?!1:h,g=e.currencyFormat,y=g===void 0?function(){}:g,b=ey(d.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),x=y(o||0,!0,v);return eO(Y,{children:[eE("div",{className:"reward-progress",children:eO(U,{value:n/a*100,strokeWidth:12,background:!0,styles:Q({rotation:.5,strokeLinecap:"butt",backgroundColor:n===a&&!s?"rgb(195 240 194)":"#fff",pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[eE(el,{count:a}),n===a&&!s?eE(ed,{}):s?eE(ee,{children:eE(eu,{className:"outline-exclamation-icon",color:"#91ACC8"})}):o!=null||o!=null?eO(q,{children:[eE(eT,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(x)}),eE(eT,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:b})]}):eE(q,{children:eE(ev,{})})]})}),eE(eC,{value:n,voucherValue:o,notQualifyForRewardThisMonth:s,handleOpenSubscriptionRewardPopup:u,maxMonths:a,translationConfig:d,learnMoreConfig:m,currencyAbbreviate:v,currencyFormat:y})]})}}]);return t}(K.Component),ek=eM;import eR from"react";import{FaExclamationTriangle as eS}from"react-icons/fa";import{NsTypography as eA}from"@nuskin/foundation-ui-components";import{jsx as eP,jsxs as ej}from"react/jsx-runtime";function eL(){return ej("svg",{width:"19",height:"19",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[eP("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"}),eP("line",{x1:"10.1667",y1:"9.375",x2:"10.1667",y2:"14.7917",stroke:"#4A6987",strokeWidth:"2"}),eP("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 e_=eL;var eV={black:"#000",white:"#fff"},eB=eV;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 eW={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"},ez=eW;var eH={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"},eK=eH;var eU={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"},eQ=eU;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 e$(e){if(!eq(e))return e;var t={};return Object.keys(e).forEach(function(n){t[n]=e$(e[n])}),t}function eJ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0};var r=n.clone?F({},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]=eJ(e[o],t[o],n):n.clone?r[o]=eq(t[o])?e$(t[o]):t[o]:r[o]=t[o])}),r}function e0(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 e1(e){if(typeof e!="string")throw new Error(e0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function e2(e){return e&&e.ownerDocument||document}function e5(e,t){typeof e=="function"?e(t):e&&(e.current=t)}import*as e3 from"react";var e4=(typeof window==="undefined"?"undefined":w(window))<"u"?e3.useLayoutEffect:e3.useEffect,e6=e4;import*as e7 from"react";var e8=0;function e9(e){var t=y(e7.useState(e),2),n=t[0],r=t[1],o=e||n;return e7.useEffect(function(){n==null&&(e8+=1,r("mui-".concat(e8)))},[n]),o}var te=e7.useId;function tt(e){if(te!==void 0){var t=te();return e!==null&&e!==void 0?e:t}return e9(e)}import*as tn from"react";function tr(e){var t=e.controlled,n=e.default,r=e.name,o=e.state,i=o===void 0?"value":o;var a=tn.useRef(t!==void 0),l=a.current,u=y(tn.useState(n),2),c=u[0],s=u[1],p=l?t:c,d=tn.useCallback(function(e){l||s(e)},[]);return[p,d]}import*as to from"react";function ti(e){var t=this;var n=to.useRef(e);return e6(function(){n.current=e}),to.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 ta=ti;import*as tl from"react";function tu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return tl.useMemo(function(){return t.every(function(e){return e==null})?null:function(e){t.forEach(function(t){e5(t,e)})}},t)}import*as tc from"react";var ts=!0,tp=!1,td,tf={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 tm(e){var t=e.type,n=e.tagName;return!!(n==="INPUT"&&tf[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function th(e){e.metaKey||e.altKey||e.ctrlKey||(ts=!0)}function tv(){ts=!1}function tg(){this.visibilityState==="hidden"&&tp&&(ts=!0)}function ty(e){e.addEventListener("keydown",th,!0),e.addEventListener("mousedown",tv,!0),e.addEventListener("pointerdown",tv,!0),e.addEventListener("touchstart",tv,!0),e.addEventListener("visibilitychange",tg,!0)}function tb(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return ts||tm(t)}function tx(){var e=tc.useCallback(function(e){e!=null&&ty(e.ownerDocument)},[]),t=tc.useRef(!1);function n(){return t.current?(tp=!0,window.clearTimeout(td),td=window.setTimeout(function(){tp=!1},100),t.current=!1,!0):!1}function r(e){return tb(e)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function tw(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 tC=function(e){return e},tT=function(){var e=tC;return{configure:function t(t){e=t},generate:function t(t){return e(t)},reset:function t(){e=tC}}},tE=tT(),tO=tE;var tM={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=tM[t];return r?"".concat(n,"-").concat(r):"".concat(tO.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 tS="$$material";function tA(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 tP(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 tL=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};import*as t_ from"react";function tV(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(t_.isValidElement(e)||!tV(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?F({},e):e;return tV(e)&&tV(t)&&Object.keys(t).forEach(function(o){t_.isValidElement(t[o])?r[o]=t[o]:tV(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tV(e[o])?r[o]=tN(e[o],t[o],n):n.clone?r[o]=tV(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 F({},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=tA(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 F({keys:c,values:u,up:s,down:p,between:d,only:f,not:m,unit:o},l)}var tW={borderRadius:4},tz=tW;function tH(e,t){return t?tN(e,t,{clone:!1}):e}var tK=tH;var tU={xs:0,sm:600,md:900,lg:1200,xl:1536},tQ={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(tU[e],"px)")}};function tX(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||tQ;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||tQ;return Object.keys(t).reduce(function(e,r){if(Object.keys(i.values||tU).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(tP(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 t$(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 tJ(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=t$(l,i,e);return e===n&&typeof e=="string"&&(n=t$(l,i,"".concat(t).concat(e==="default"?"":tG(e)),e)),r===!1?n:u({},r,n)})};return a.propTypes={},a.filterProps=[t],a}var t0=tJ;function t1(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var t2={m:"margin",p:"padding"},t5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},t3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},t4=t1(function(e){if(e.length>2)if(t3[e])e=t3[e];else return[e];var t=y(e.split(""),2),n=t[0],r=t[1],o=t2[n],i=t5[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),t6=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],t7=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],t8=x(t6).concat(x(t7));function t9(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 ne(e){return t9(e,"spacing",8,"spacing")}function nt(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 nn(e,t){return function(n){return e.reduce(function(e,r){return e[r]=nt(t,n),e},{})}}function nr(e,t,n,r){if(t.indexOf(n)===-1)return null;var o=t4(n),i=nn(o,r),a=e[n];return tX(e,a,i)}function no(e,t){var n=ne(e.theme);return Object.keys(e).map(function(r){return nr(e,t,r,n)}).reduce(tK,{})}function ni(e){return no(e,t6)}ni.propTypes={};ni.filterProps=t6;function na(e){return no(e,t7)}na.propTypes={};na.filterProps=t7;function nl(e){return no(e,t8)}nl.propTypes={};nl.filterProps=t8;function nu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=ne({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 nc(){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]?tK(t,r[n](e)):t},{})};return o.propTypes={},o.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),o}var ns=nc;function np(e){return typeof e!="number"?e:"".concat(e,"px solid")}function nd(e,t){return t0({prop:e,themeKey:"borders",transform:t})}var nf=nd("border",np),nm=nd("borderTop",np),nh=nd("borderRight",np),nv=nd("borderBottom",np),ng=nd("borderLeft",np),ny=nd("borderColor"),nb=nd("borderTopColor"),nx=nd("borderRightColor"),nw=nd("borderBottomColor"),nC=nd("borderLeftColor"),nT=nd("outline",np),nE=nd("outlineColor"),nO=function(e){if(e.borderRadius!==void 0&&e.borderRadius!==null){var t=t9(e.theme,"shape.borderRadius",4,"borderRadius"),n=function(e){return{borderRadius:nt(t,e)}};return tX(e,e.borderRadius,n)}return null};nO.propTypes={};nO.filterProps=["borderRadius"];var nM=ns(nf,nm,nh,nv,ng,ny,nb,nx,nw,nC,nO,nT,nE);var nk=function(e){if(e.gap!==void 0&&e.gap!==null){var t=t9(e.theme,"spacing",8,"gap"),n=function(e){return{gap:nt(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=t9(e.theme,"spacing",8,"columnGap"),n=function(e){return{columnGap:nt(t,e)}};return tX(e,e.columnGap,n)}return null};nR.propTypes={};nR.filterProps=["columnGap"];var nS=function(e){if(e.rowGap!==void 0&&e.rowGap!==null){var t=t9(e.theme,"spacing",8,"rowGap"),n=function(e){return{rowGap:nt(t,e)}};return tX(e,e.rowGap,n)}return null};nS.propTypes={};nS.filterProps=["rowGap"];var nA=t0({prop:"gridColumn"}),nP=t0({prop:"gridRow"}),nj=t0({prop:"gridAutoFlow"}),nL=t0({prop:"gridAutoColumns"}),n_=t0({prop:"gridAutoRows"}),nV=t0({prop:"gridTemplateColumns"}),nB=t0({prop:"gridTemplateRows"}),nN=t0({prop:"gridTemplateAreas"}),nF=t0({prop:"gridArea"}),nD=ns(nk,nR,nS,nA,nP,nj,nL,n_,nV,nB,nN,nF);function nI(e,t){return t==="grey"?t:e}var nW=t0({prop:"color",themeKey:"palette",transform:nI}),nz=t0({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nI}),nH=t0({prop:"backgroundColor",themeKey:"palette",transform:nI}),nK=ns(nW,nz,nH);function nU(e){return e<=1&&e!==0?"".concat(e*100,"%"):e}var nQ=t0({prop:"width",transform:nU}),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])||tU[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:nU(t)}};return tX(e,e.maxWidth,t)}return null};nX.filterProps=["maxWidth"];var nY=t0({prop:"minWidth",transform:nU}),nZ=t0({prop:"height",transform:nU}),nG=t0({prop:"maxHeight",transform:nU}),nq=t0({prop:"minHeight",transform:nU}),n$=t0({prop:"size",cssProperty:"width",transform:nU}),nJ=t0({prop:"size",cssProperty:"height",transform:nU}),n0=t0({prop:"boxSizing"}),n1=ns(nQ,nX,nY,nZ,nG,nq,n0);var n2={border:{themeKey:"borders",transform:np},borderTop:{themeKey:"borders",transform:np},borderRight:{themeKey:"borders",transform:np},borderBottom:{themeKey:"borders",transform:np},borderLeft:{themeKey:"borders",transform:np},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:np},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nO},color:{themeKey:"palette",transform:nI},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nI},backgroundColor:{themeKey:"palette",transform:nI},p:{style:na},pt:{style:na},pr:{style:na},pb:{style:na},pl:{style:na},px:{style:na},py:{style:na},padding:{style:na},paddingTop:{style:na},paddingRight:{style:na},paddingBottom:{style:na},paddingLeft:{style:na},paddingX:{style:na},paddingY:{style:na},paddingInline:{style:na},paddingInlineStart:{style:na},paddingInlineEnd:{style:na},paddingBlock:{style:na},paddingBlockStart:{style:na},paddingBlockEnd:{style:na},m:{style:ni},mt:{style:ni},mr:{style:ni},mb:{style:ni},ml:{style:ni},mx:{style:ni},my:{style:ni},margin:{style:ni},marginTop:{style:ni},marginRight:{style:ni},marginBottom:{style:ni},marginLeft:{style:ni},marginX:{style:ni},marginY:{style:ni},marginInline:{style:ni},marginInlineStart:{style:ni},marginInlineEnd:{style:ni},marginBlock:{style:ni},marginBlockStart:{style:ni},marginBlockEnd:{style:ni},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:nS},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:nU},maxWidth:{style:nX},minWidth:{transform:nU},height:{transform:nU},maxHeight:{transform:nU},minHeight:{transform:nU},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},n5=n2;function n3(){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 n4(e,t){return typeof e=="function"?e(t):e}function n6(){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=t$(f,p,t);return t===n&&typeof t=="string"&&(n=t$(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:n5;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=n4(r[n],l);if(o!=null)if((typeof o==="undefined"?"undefined":w(o))=="object")if(c[n])a=tK(a,e(n,o,l,c));else{var i=tX({theme:l},o,function(e){return u({},n,e)});n3(i,o)?a[n]=t({sx:o,theme:l}):a=tK(a,i)}else a=tK(a,e(n,o,l,c))}),tZ(i,a)}return Array.isArray(i)?i.map(s):s(i)}return t}var n7=n6();n7.filterProps=["sx"];var n8=n7;function n9(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 re=["breakpoints","palette","spacing","shape"];function rt(){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=tA(e,re),d=tI(i),f=nu(u),m=tN({breakpoints:d,direction:"ltr",components:{},palette:F({mode:"light"},l),spacing:f,shape:F({},tz,s)},p);return m.applyStyles=n9,m=n.reduce(function(e,t){return tN(e,t)},m),m.unstable_sxConfig=F({},n5,p===null||p===void 0?void 0:p.unstable_sxConfig),m.unstable_sx=function(e){return n8({sx:e,theme:this})},m}var rn=rt;import*as rr from"react";function ro(e){return Object.keys(e).length===0}function ri(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;var t=rr.useContext(D);return!t||ro(t)?e:t}var ra=ri;var rl=rn();function ru(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rl;return ra(e)}var rc=ru;function rs(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=rs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rs(e))&&(r&&(r+=" "),r+=t);return r}var rd=rp;var rf=["ownerState"],rm=["variants"],rh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rv(e){return Object.keys(e).length===0}function rg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ry(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var rb=rn(),rx=function(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)};function rw(e){var t=e.defaultTheme,n=e.theme,r=e.themeId;return rv(n)?t:n[r]||n}function rC(e){return e?function(t,n){return n[e]}:null}function rT(e,t){var n=t.ownerState,r=tA(t,rf),o=typeof e=="function"?e(F({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(function(e){return rT(e,F({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=tA(o,rm);return a.forEach(function(e){var t=!0;typeof e.props=="function"?t=e.props(F({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(F({ownerState:n},r,n)):e.style))}),l}return o}function rE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t=e.themeId,n=e.defaultTheme,r=n===void 0?rb:n,o=e.rootShouldForwardProp,i=o===void 0?ry:o,a=e.slotShouldForwardProp,l=a===void 0?ry:a,u=function(e){return n8(F({},e,{theme:rw(F({},e,{defaultTheme:r,themeId:t}))}))};return u.__mui_systemSx=!0,function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};tL(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?rC(rx(a)):p,f=tA(n,rh),m=c!==void 0?c:a&&a!=="Root"&&a!=="root"||!1,h=s||!1,v,g=ry;a==="Root"||a==="root"?g=i:a?g=l:rg(e)&&(g=void 0);var b=tj(e,F({shouldForwardProp:g,label:v},f)),w=function(e){return typeof e=="function"&&e.__emotion_real!==e||tV(e)?function(n){return rT(e,F({},n,{theme:rw({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=rw(F({},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]=rT(i,F({},e,{theme:n}))}),d(e,a)}),o&&!m&&s.push(function(e){var n;var i=rw(F({},e,{defaultTheme:r,themeId:t})),a=i==null||(n=i.components)==null||(n=n[o])==null?void 0:n.variants;return rT({variants:a},F({},e,{theme:i}))}),h||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 v=b.apply(void 0,[c].concat(x(s)));return e.muiName&&(v.muiName=e.muiName),v};return b.withConfig&&(C.withConfig=b.withConfig),C}}function rO(e,t){var n=F({},t);return Object.keys(e).forEach(function(r){if(r.toString().match(/^(components|slots)$/))n[r]=F({},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]=F({},i),Object.keys(o).forEach(function(e){n[r][e]=rO(o[e],i[e])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function rM(e){var t=e.theme,n=e.name,r=e.props;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:rO(t.components[n].defaultProps,r)}function rk(e){var t=e.props,n=e.name,r=e.defaultTheme,o=e.themeId;var i=rc(r);return o&&(i=i[o]||i),rM({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 rS=rR;function rA(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 rS(e,t,n)}function rP(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(rP(e));var t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(tP(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(tP(10,o))}else r=r.split(",");return r=r.map(function(e){return parseFloat(e)}),{type:n,values:r,colorSpace:o}}function rL(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 r_(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])),rL({type:l,values:u})}function rV(e){e=rj(e);var t=e.type==="hsl"||e.type==="hsla"?rj(r_(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=rV(e),r=rV(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rN(e,t){return e=rj(e),t=rA(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]="/".concat(t):e.values[3]=t,rL(e)}function rF(e,t){if(e=rj(e),t=rA(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 rL(e)}function rD(e,t){if(e=rj(e),t=rA(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 rL(e)}function rI(e,t){var n;return F({toolbar:(n={minHeight:56},u(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),u(n,e.up("sm"),{minHeight:64}),n)},t)}var rW=["mode","contrastThreshold","tonalOffset"],rz={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}},rH={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 rK(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 rU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:ez[200],light:ez[50],dark:ez[400]}:{main:ez[700],light:ez[400],dark:ez[800]}}function rQ(){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:eK[400],light:eK[300],dark:eK[700]}:{main:eK[700],light:eK[500],dark:eK[900]}}function rZ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"light";return e==="dark"?{main:eQ[400],light:eQ[300],dark:eQ[700]}:{main:eQ[800],light:eQ[500],dark:eQ[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=tA(e,rW),u=e.primary||rU(n),c=e.secondary||rQ(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,rH.text.primary)>=o?rH.text.primary:rz.text.primary}var h=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=F({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(e0(11,n?" (".concat(n,")"):"",o));if(typeof t.main!="string")throw new Error(e0(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return rK(t,"light",l,a),rK(t,"dark",c,a),t.contrastText||(t.contrastText=m(t.main)),t},v={dark:rH,light:rz};return eJ(F({common:F({},eB),mode:n,primary:h({color:u,name:"primary"}),secondary:h({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:p,name:"info"}),success:h({color:d,name:"success"}),grey:eG,contrastThreshold:o,getContrastText:m,augmentColor:h,tonalOffset:a},v[n]),l)}var r$=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rJ(e){return Math.round(e*1e5)/1e5}var r0={textTransform:"uppercase"},r1='"Roboto", "Helvetica", "Arial", sans-serif';function r2(e,t){var n=typeof t=="function"?t(e):t,r=n.fontFamily,o=r===void 0?r1: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,h=n.htmlFontSize,v=h===void 0?16:h,g=n.allVariants,y=n.pxToRem,b=tA(n,r$),x=a/14,w=y||function(e){return"".concat(e/v*x,"rem")},C=function(e,t,n,r,i){return F({fontFamily:o,fontWeight:e,fontSize:w(t),lineHeight:n},o===r1?{letterSpacing:"".concat(rJ(r/t),"em")}:{},i,g)},T={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,r0),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,r0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return eJ(F({htmlFontSize:v,pxToRem:w,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:m},T),b,{clone:!1})}function r5(){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 r3=["none",r5(0,2,1,-1,0,1,1,0,0,1,3,0),r5(0,3,1,-2,0,2,2,0,0,1,5,0),r5(0,3,3,-2,0,3,4,0,0,1,8,0),r5(0,2,4,-1,0,4,5,0,0,1,10,0),r5(0,3,5,-1,0,5,8,0,0,1,14,0),r5(0,3,5,-1,0,6,10,0,0,1,18,0),r5(0,4,5,-2,0,7,10,1,0,2,16,1),r5(0,5,5,-3,0,8,10,1,0,3,14,2),r5(0,5,6,-3,0,9,12,1,0,3,16,2),r5(0,6,6,-3,0,10,14,1,0,4,18,3),r5(0,6,7,-4,0,11,15,1,0,4,20,3),r5(0,7,8,-4,0,12,17,2,0,5,22,4),r5(0,7,8,-4,0,13,19,2,0,5,24,4),r5(0,7,9,-4,0,14,21,2,0,5,26,4),r5(0,8,9,-5,0,15,22,2,0,6,28,5),r5(0,8,10,-5,0,16,24,2,0,6,30,5),r5(0,8,11,-5,0,17,26,2,0,6,32,5),r5(0,9,11,-5,0,18,28,2,0,7,34,6),r5(0,9,12,-6,0,19,29,2,0,7,36,6),r5(0,10,13,-6,0,20,31,3,0,8,38,7),r5(0,10,13,-6,0,21,33,3,0,8,40,7),r5(0,10,14,-6,0,22,35,3,0,8,42,7),r5(0,11,14,-7,0,23,36,3,0,9,44,8),r5(0,11,15,-7,0,24,38,3,0,9,46,8)],r4=r3;var r6=["duration","easing","delay"],r7={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)"},r8={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function r9(e){return"".concat(Math.round(e),"ms")}function oe(e){if(!e)return 0;var t=e/36;return Math.round((4+15*Math.pow(t,.25)+t/5)*10)}function ot(e){var t=F({},r7,e.easing),n=F({},r8,e.duration);return F({getAutoHeightDuration:oe,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=tA(r,r6);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat(typeof i=="string"?i:r9(i)," ").concat(l," ").concat(typeof c=="string"?c:r9(c))}).join(",")}},e,{easing:t,duration:n})}var on={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},or=on;var oo=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oi(){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=tA(e,oo);if(e.vars)throw new Error(e0(18));var f=rq(l),m=rn(e),h=eJ(m,{mixins:rI(m.breakpoints,i),palette:f,shadows:r4.slice(),typography:r2(f,p),transitions:ot(c),zIndex:F({},or)});return h=eJ(h,d),h=n.reduce(function(e,t){return eJ(e,t)},h),h.unstable_sxConfig=F({},n5,d===null||d===void 0?void 0:d.unstable_sxConfig),h.unstable_sx=function(e){return n8({sx:e,theme:this})},h}var oa=oi;import*as ol from"react";var ou=oa(),oc=ou;function os(){var e=rc(oc);return e[tS]||e}function op(e){var t=e.props,n=e.name;return rk({props:t,name:n,defaultTheme:oc,themeId:tS})}var od=function(e){return ry(e)&&e!=="classes"};var of=rE({themeId:tS,defaultTheme:oc,rootShouldForwardProp:od}),om=of;var oh=e1;var ov=tt;var og=tr;var oy=ta;var ob=tu;var ox=tx;function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(e,t){return e.__proto__=t,e},ow(e,t)}function oC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ow(e,t)}import oT from"react";import oE from"react-dom";var oO={disabled:!1};import oM from"react";var ok=oM.createContext(null);var oR=function e(e){return e.scrollTop};var oS="unmounted",oA="exited",oP="entering",oj="entered",oL="exiting",o_=function(e){oC(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=oA,r.appearStatus=oP):a=oj:t.unmountOnExit||t.mountOnEnter?a=oS:a=oA,r.state={status:a},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===oS?{status:oA}: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!==oP&&n!==oj&&(t=oP):(n===oP||n===oj)&&(t=oL)}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===oP){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:oE.findDOMNode(this);n&&oR(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oA&&this.setState({status:oS})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[oE.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;if(!e&&!n||oO.disabled){this.safeSetState({status:oj},function(){t.props.onEntered(i)});return}this.props.onEnter(i,a),this.safeSetState({status:oP},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:oE.findDOMNode(this);if(!t||oO.disabled){this.safeSetState({status:oA},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:oL},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:oA},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:oE.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===oS)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,h=t.onExiting,v=t.onExited,g=t.nodeRef,y=tA(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oT.createElement(ok.Provider,{value:null},typeof n=="function"?n(e,y):oT.cloneElement(oT.Children.only(n),y))},t}(oT.Component);o_.contextType=ok;o_.propTypes={};function oV(){}o_.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oV,onEntering:oV,onEntered:oV,onExit:oV,onExiting:oV,onExited:oV};o_.UNMOUNTED=oS;o_.EXITED=oA;o_.ENTERING=oP;o_.ENTERED=oj;o_.EXITING=oL;var oB=o_;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 oW}from"react";function oz(e,t){var n=function e(e){return t&&oW(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 oH(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 oK(e,t,n){return n[t]!=null?n[t]:e.props[t]}function oU(e,t){return oz(e.children,function(n){return oI(n,{onExited:t.bind(null,n),in:!0,appear:oK(n,"appear",e),enter:oK(n,"enter",e),exit:oK(n,"exit",e)})})}function oQ(e,t,n){var r=oz(e.children),o=oH(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(oW(a)){var l=i in t,u=i in r,c=t[i],s=oW(c)&&!c.props.in;u&&(!l||s)?o[i]=oI(a,{onExited:n.bind(null,a),in:!0,exit:oK(a,"exit",e),enter:oK(a,"enter",e)}):!u&&l&&!s?o[i]=oI(a,{in:!1}):u&&l&&oW(c)&&(o[i]=oI(a,{onExited:n.bind(null,a),in:c.props.in,exit:oK(a,"exit",e),enter:oK(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){oC(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?oU(e,r):oQ(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=oz(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=F({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tA(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 o$(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 oJ from"react";import*as o0 from"react";import*as o1 from"react";import{jsx as o2}from"react/jsx-runtime";function o5(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(o1.useState(!1),2),d=p[0],f=p[1],m=rd(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},v=rd(n.child,d&&n.childLeaving,o&&n.childPulsate);return!u&&!d&&f(!0),o1.useEffect(function(){if(!u&&c!=null){var e=setTimeout(c,s);return function(){clearTimeout(e)}}},[c,u,s]),o2("span",{className:m,style:h,children:o2("span",{className:v})})}var o3=o5;var o4=tR("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o6=o4;import{jsx as o7}from"react/jsx-runtime";var o8=["center","classes","className"],o9=function(e){return e},ie,it,ir,io,ii=550,ia=80,il=I(ie||(ie=o9(_()))),iu=I(it||(it=o9(V()))),ic=I(ir||(ir=o9(B()))),is=om("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ip=om(o3,{name:"MuiTouchRipple",slot:"Ripple"})(io||(io=o9(N(),0,0,0,0,0,0,0,0,0,0,0,0,0,0)),o6.rippleVisible,il,ii,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o6.ripplePulsate,function(e){var t=e.theme;return t.transitions.duration.shorter},o6.child,o6.childLeaving,iu,ii,function(e){var t=e.theme;return t.transitions.easing.easeInOut},o6.childPulsate,ic,function(e){var t=e.theme;return t.transitions.easing.easeInOut}),id=o0.forwardRef(function(e,t){var n=op({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=tA(n,o8),c=y(o0.useState([]),2),s=c[0],p=c[1],d=o0.useRef(0),f=o0.useRef(null);o0.useEffect(function(){f.current&&(f.current(),f.current=null)},[s]);var m=o0.useRef(!1),h=o0.useRef(0),v=o0.useRef(null),g=o0.useRef(null);o0.useEffect(function(){return function(){h.current&&clearTimeout(h.current)}},[]);var b=o0.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([o7(ip,{classes:{ripple:rd(a.ripple,o6.ripple),rippleVisible:rd(a.rippleVisible,o6.rippleVisible),ripplePulsate:rd(a.ripplePulsate,o6.ripplePulsate),child:rd(a.child,o6.child),childLeaving:rd(a.childLeaving,o6.childLeaving),childPulsate:rd(a.childPulsate,o6.childPulsate)},timeout:ii,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},d.current)])}),d.current+=1,f.current=i},[a]),w=o0.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 T=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(T,2)+Math.pow(E,2))}e!=null&&e.touches?v.current===null&&(v.current=function(){b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},h.current=setTimeout(function(){v.current&&(v.current(),v.current=null)},ia)):b({pulsate:i,rippleX:d,rippleY:f,rippleSize:y,cb:n})},[o,b]),C=o0.useCallback(function(){w({},{pulsate:!0})},[w]),T=o0.useCallback(function(e,t){if(clearTimeout(h.current),(e===null||e===void 0?void 0:e.type)==="touchend"&&v.current){v.current(),v.current=null,h.current=setTimeout(function(){T(e,t)});return}v.current=null,p(function(e){return e.length>0?e.slice(1):e}),f.current=t},[]);return o0.useImperativeHandle(t,function(){return{pulsate:C,start:w,stop:T}},[C,w,T]),o7(is,F({className:rd(o6.root,a.root,l),ref:g},u,{children:o7(oG,{component:null,exit:!0,children:s})}))}),im=id;function ih(e){return tk("MuiButtonBase",e)}var iv=tR("MuiButtonBase",["root","disabled","focusVisible"]),ig=iv;import{jsx as iy}from"react/jsx-runtime";import{jsxs as ib}from"react/jsx-runtime";var ix;var iw=["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"],iC=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i=tw({root:["root",t&&"disabled",n&&"focusVisible"]},ih,o);return n&&r&&(i.root+=" ".concat(r)),i},iT=om("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((ix={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(ix,"&.".concat(ig.disabled),{pointerEvents:"none",cursor:"default"}),u(ix,"@media print",{colorAdjust:"exact"}),ix)),iE=oJ.forwardRef(function(e,t){var n=op({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,h=m===void 0?!1:m,v=n.focusRipple,g=v===void 0?!1:v,b=n.LinkComponent,x=b===void 0?"a":b,w=n.onBlur,C=n.onClick,T=n.onContextMenu,E=n.onDragLeave,O=n.onFocus,M=n.onFocusVisible,k=n.onKeyDown,R=n.onKeyUp,S=n.onMouseDown,A=n.onMouseLeave,P=n.onMouseUp,j=n.onTouchEnd,L=n.onTouchMove,_=n.onTouchStart,V=n.tabIndex,B=V===void 0?0:V,N=n.TouchRippleProps,D=n.touchRippleRef,I=n.type,W=tA(n,iw),z=oJ.useRef(null),H=oJ.useRef(null),K=ob(H,D),U=ox(),Q=U.isFocusVisibleRef,X=U.onFocus,Y=U.onBlur,Z=U.ref,G=y(oJ.useState(!1),2),q=G[0],$=G[1];p&&q&&$(!1),oJ.useImperativeHandle(r,function(){return{focusVisible:function(){$(!0),z.current.focus()}}},[]);var J=y(oJ.useState(!1),2),ee=J[0],et=J[1];oJ.useEffect(function(){et(!0)},[]);var en=ee&&!f&&!p;oJ.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]:h;return oy(function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0})}var eo=er("start",S),ei=er("stop",T),ea=er("stop",E),el=er("stop",P),eu=er("stop",function(e){q&&e.preventDefault(),A&&A(e)}),ec=er("start",_),es=er("stop",j),ep=er("stop",L),ed=er("stop",function(e){Y(e),Q.current===!1&&$(!1),w&&w(e)},!1),ef=oy(function(e){z.current||(z.current=e.currentTarget),X(e),Q.current===!0&&($(!0),M&&M(e)),O&&O(e)}),em=function(){var e=z.current;return c&&c!=="button"&&!(e.tagName==="A"&&e.href)},eh=oJ.useRef(!1),ev=oy(function(e){g&&!eh.current&&q&&H.current&&e.key===" "&&(eh.current=!0,H.current.stop(e,function(){H.current.start(e)})),e.target===e.currentTarget&&em()&&e.key===" "&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&em()&&e.key==="Enter"&&!p&&(e.preventDefault(),C&&C(e))}),eg=oy(function(e){g&&e.key===" "&&H.current&&q&&!e.defaultPrevented&&(eh.current=!1,H.current.stop(e,function(){H.current.pulsate(e)})),R&&R(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=I===void 0?"button":I,eb.disabled=p):(!W.href&&!W.to&&(eb.role="button"),p&&(eb["aria-disabled"]=p));var ex=ob(t,Z,z),ew=F({},n,{centerRipple:i,component:c,disabled:p,disableRipple:f,disableTouchRipple:h,focusRipple:g,tabIndex:B,focusVisible:q}),eC=iC(ew);return ib(iT,F({as:ey,className:rd(eC.root,l),ownerState:ew,onBlur:ed,onClick:C,onContextMenu:ei,onFocus:ef,onKeyDown:ev,onKeyUp:eg,onMouseDown:eo,onMouseLeave:eu,onMouseUp:el,onDragLeave:ea,onTouchEnd:es,onTouchMove:ep,onTouchStart:ec,ref:ex,tabIndex:p?-1:B,type:I},eb,W,{children:[a,en?iy(im,F({ref:K,center:i},N)):null]}))}),iO=iE;import*as iM 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"]),iS=iR;import{jsx as iA}from"react/jsx-runtime";var iP=["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(oh(r)),o&&"edge".concat(oh(o)),"size".concat(oh(i))]};return tw(a,ik,t)},iL=om(iO,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.color!=="default"&&t["color".concat(oh(n.color))],n.edge&&t["edge".concat(oh(n.edge))],t["size".concat(oh(n.size))]]}})(function(e){var t=e.theme,n=e.ownerState;return F({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 F({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&F({color:o===null||o===void 0?void 0:o.main},!n.disableRipple&&{"&:hover":F({},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(iS.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))}),i_=iM.forwardRef(function(e,t){var n=op({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,h=tA(n,iP),v=F({},n,{edge:o,color:u,disabled:s,disableFocusRipple:d,size:m}),g=ij(v);return iA(iL,F({className:rd(g.root,a),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:v},h,{children:i}))}),iV=i_;function iB(e){return typeof e=="string"}function iN(e,t,n){return e===void 0||iB(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}import*as iF from"react";import{jsx as iD}from"react/jsx-runtime";var iI={disableDefaultClasses:!1},iW=iF.createContext(iI);function iz(e){var t=iF.useContext(iW),n=t.disableDefaultClasses;return function(t){return n?"":e(t)}}function iH(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 iK(e,t,n){return typeof e=="function"?e(t,n):e}function iU(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 iQ(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=rd(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=F({},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=F({},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=iH(F({},o,r)),s=iU(r),p=iU(o),d=t(c),f=rd(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=F({},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),h=F({},d,n,p,s);return f.length>0&&(h.className=f),Object.keys(m).length>0&&(h.style=m),{props:h,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=tA(e,iX),u=a?{}:iK(r,o),c=iQ(F({},l,{externalSlotProps:u})),s=c.props,p=c.internalRef,d=tu(p,u===null||u===void 0?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return iN(n,F({},s,{ref:d}),o)}import*as iZ from"react";var iG="top",iq="bottom",i$="right",iJ="left",i0="auto",i1=[iG,iq,i$,iJ],i2="start",i5="end",i3="clippingParents",i4="viewport",i6="popper",i7="reference",i8=i1.reduce(function(e,t){return e.concat([t+"-"+i2,t+"-"+i5])},[]),i9=[].concat(i1,[i0]).reduce(function(e,t){return e.concat([t,t+"-"+i2,t+"-"+i5])},[]),ae="beforeRead",at="read",an="afterRead",ar="beforeMain",ao="main",ai="afterMain",aa="beforeWrite",al="write",au="afterWrite",ac=[ae,at,an,ar,ao,ai,aa,al,au];function as(e){return e?(e.nodeName||"").toLowerCase():null}function ap(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ad(e){var t=ap(e).Element;return p(e,t)||p(e,Element)}function af(e){var t=ap(e).HTMLElement;return p(e,t)||p(e,HTMLElement)}function am(e){if((typeof ShadowRoot==="undefined"?"undefined":w(ShadowRoot))>"u")return!1;var t=ap(e).ShadowRoot;return p(e,t)||p(e,ShadowRoot)}function ah(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];!af(o)||!as(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},{});!af(r)||!as(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}}var ag={name:"applyStyles",enabled:!0,phase:"write",fn:ah,effect:av,requires:["computeStyles"]};function ay(e){return e.split("-")[0]}var ab=Math.max,ax=Math.min,aw=Math.round;function aC(){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 aT(){return!/^((?!chrome|android).)*safari/i.test(aC())}function aE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&af(e)&&(o=e.offsetWidth>0&&aw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&aw(r.height)/e.offsetHeight||1);var a=ad(e)?ap(e):window,l=a.visualViewport,u=!aT()&&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 aO(e){var t=aE(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 aM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&am(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 ap(e).getComputedStyle(e)}function aR(e){return["table","td","th"].indexOf(as(e))>=0}function aS(e){return((ad(e)?e.ownerDocument:e.document)||window.document).documentElement}function aA(e){return as(e)==="html"?e:e.assignedSlot||e.parentNode||(am(e)?e.host:null)||aS(e)}function aP(e){return!af(e)||ak(e).position==="fixed"?null:e.offsetParent}function aj(e){var t=/firefox/i.test(aC()),n=/Trident/i.test(aC());if(n&&af(e)){var r=ak(e);if(r.position==="fixed")return null}var o=aA(e);for(am(o)&&(o=o.host);af(o)&&["html","body"].indexOf(as(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 aL(e){for(var t=ap(e),n=aP(e);n&&aR(n)&&ak(n).position==="static";)n=aP(n);return n&&(as(n)==="html"||as(n)==="body"&&ak(n).position==="static")?t:n||aj(e)||t}function a_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function aV(e,t,n){return ab(e,ax(t,n))}function aB(e,t,n){var r=aV(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,i1))};function aW(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ay(n.placement),u=a_(l),c=[iJ,i$].indexOf(l)>=0,s=c?"height":"width";if(!(!i||!a)){var p=aI(o.padding,n),d=aO(i),f=u==="y"?iG:iJ,m=u==="y"?iq:i$,h=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],g=aL(i),y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,b=h/2-v/2,x=p[f],w=y-d[s]-p[m],C=y/2-d[s]/2+b,T=aV(x,C,w),E=u;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-C,t)}}function az(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)||aM(t.elements.popper,o)&&(t.elements.arrow=o))}var aH={name:"arrow",enabled:!0,phase:"main",fn:aW,effect:az,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aK(e){return e.split("-")[1]}var aU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aQ(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:aw(n*o)/o||0,y:aw(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,h=m===void 0?0:m,v=typeof s=="function"?s({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=iJ,x=iG,w=window;if(c){var C=aL(n),T="clientHeight",E="clientWidth";if(C===ap(n)&&(C=aS(n),ak(C).position!=="static"&&l==="absolute"&&(T="scrollHeight",E="scrollWidth")),C=C,o===iG||(o===iJ||o===i$)&&i===i5){x=iq;var O=p&&C===w&&w.visualViewport?w.visualViewport.height:C[T];h-=O-r.height,h*=u?1:-1}if(o===iJ||(o===iG||o===iq)&&i===i5){b=i$;var M=p&&C===w&&w.visualViewport?w.visualViewport.width:C[E];f-=M-r.width,f*=u?1:-1}}var k=Object.assign({position:l},c&&aU),R=s===!0?aQ({x:f,y:h},ap(n)):{x:f,y:h};if(f=R.x,h=R.y,u){var S;return Object.assign({},k,(S={},S[x]=y?"0":"",S[b]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",S))}return Object.assign({},k,(t={},t[x]=y?h+"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:ay(t.placement),variation:aK(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=ap(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 a$={name:"eventListeners",enabled:!0,phase:"write",fn:function e(){},effect:aq,data:{}};var aJ={left:"right",right:"left",bottom:"top",top:"bottom"};function a0(e){return e.replace(/left|right|bottom|top/g,function(e){return aJ[e]})}var a1={start:"end",end:"start"};function a2(e){return e.replace(/start|end/g,function(e){return a1[e]})}function a5(e){var t=ap(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function a3(e){return aE(aS(e)).left+a5(e).scrollLeft}function a4(e,t){var n=ap(e),r=aS(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var c=aT();(c||!c&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+a3(e),y:u}}function a6(e){var t,n=aS(e),r=a5(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ab(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ab(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+a3(e),u=-r.scrollTop;return ak(o||n).direction==="rtl"&&(l+=ab(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function a7(e){var t=ak(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function a8(e){return["html","body","#document"].indexOf(as(e))>=0?e.ownerDocument.body:af(e)&&a7(e)?e:a8(aA(e))}function a9(e,t){var n;t===void 0&&(t=[]);var r=a8(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ap(r),a=o?[i].concat(i.visualViewport||[],a7(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(a9(aA(a)))}function le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lt(e,t){var n=aE(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 ln(e,t,n){return t===i4?le(a4(e,n)):ad(t)?lt(t,n):le(a6(aS(e)))}function lr(e){var t=a9(aA(e)),n=["absolute","fixed"].indexOf(ak(e).position)>=0,r=n&&af(e)?aL(e):e;return ad(r)?t.filter(function(e){return ad(e)&&aM(e,r)&&as(e)!=="body"}):[]}function lo(e,t,n,r){var o=t==="clippingParents"?lr(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=ln(e,n,r);return t.top=ab(o.top,t.top),t.right=ax(o.right,t.right),t.bottom=ax(o.bottom,t.bottom),t.left=ab(o.left,t.left),t},ln(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 li(e){var t=e.reference,n=e.element,r=e.placement,o=r?ay(r):null,i=r?aK(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 i$:u={x:t.x+t.width,y:l};break;case iJ:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=o?a_(o):null;if(c!=null){var s=c==="y"?"height":"width";switch(i){case i2:u[c]=u[c]-(t[s]/2-n[s]/2);break;case i5:u[c]=u[c]+(t[s]/2-n[s]/2);break;default:}}return u}function la(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?i3:l,c=n.rootBoundary,s=c===void 0?i4:c,p=n.elementContext,d=p===void 0?i6:p,f=n.altBoundary,m=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,g=aF(typeof v!="number"?v:aD(v,i1)),y=d===i6?i7:i6,b=e.rects.popper,x=e.elements[m?y:d],w=lo(ad(x)?x:x.contextElement||aS(e.elements.popper),u,s,a),C=aE(e.elements.reference),T=li({reference:C,element:b,strategy:"absolute",placement:o}),E=le(Object.assign({},b,T)),O=d===i6?E:C,M={top:w.top-O.top+g.top,bottom:O.bottom-w.bottom+g.bottom,left:w.left-O.left+g.left,right:O.right-w.right+g.right},k=e.modifiersData.offset;if(d===i6&&k){var R=k[o];Object.keys(M).forEach(function(e){var t=[i$,iq].indexOf(e)>=0?1:-1,n=[iG,iq].indexOf(e)>=0?"y":"x";M[e]+=R[n]*t})}return M}function ll(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?i9:u,s=aK(r),p=s?l?i8:i8.filter(function(e){return aK(e)===s}):i1,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]=la(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ay(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}function lu(e){if(ay(e)===i0)return[];var t=a0(e);return[a2(e),t,a2(t)]}function lc(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,h=n.allowedAutoPlacements,v=t.options.placement,g=ay(v),y=g===v,b=u||(y||!m?[a0(v)]:lu(v)),x=[v].concat(b).reduce(function(e,n){return e.concat(ay(n)===i0?ll(t,{placement:n,boundary:s,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)},[]),w=t.rects.reference,C=t.rects.popper,T=new Map,E=!0,O=x[0],M=0;M<x.length;M++){var k=x[M],R=ay(k),S=aK(k)===i2,A=[iG,iq].indexOf(R)>=0,P=A?"width":"height",j=la(t,{placement:k,boundary:s,rootBoundary:p,altBoundary:d,padding:c}),L=A?S?i$:iJ:S?iq:iG;w[P]>C[P]&&(L=a0(L));var _=a0(L),V=[];if(i&&V.push(j[R]<=0),l&&V.push(j[L]<=0,j[_]<=0),V.every(function(e){return e})){O=k,E=!1;break}T.set(k,V)}if(E)for(var B=m?3:1,N=function e(e){var t=x.find(function(t){var n=T.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return O=t,"break"},F=B;F>0;F--){var D=N(F);if(D==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}var ls={name:"flip",enabled:!0,phase:"main",fn:lc,requiresIfExists:["offset"],data:{_skip:!1}};function lp(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 ld(e){return[iG,i$,iq,iJ].some(function(t){return e[t]>=0})}function lf(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=la(t,{elementContext:"reference"}),l=la(t,{altBoundary:!0}),u=lp(a,r),c=lp(l,o,i),s=ld(u),p=ld(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 lm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lf};function lh(e,t,n){var r=ay(e),o=[iJ,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,[iJ,i$].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=i9.reduce(function(e,n){return e[n]=lh(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 lg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lv};function ly(e){var t=e.state,n=e.name;t.modifiersData[n]=li({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var lb={name:"popperOffsets",enabled:!0,phase:"read",fn:ly,data:{}};function lx(e){return e==="x"?"y":"x"}function lw(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,h=m===void 0?0:m,v=la(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:s}),g=ay(t.placement),y=aK(t.placement),b=!y,x=a_(g),w=lx(x),C=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,O=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,M=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(C){if(i){var S,A=x==="y"?iG:iJ,P=x==="y"?iq:i$,j=x==="y"?"height":"width",L=C[x],_=L+v[A],V=L-v[P],B=f?-E[j]/2:0,N=y===i2?T[j]:E[j],F=y===i2?-E[j]:-T[j],D=t.elements.arrow,I=f&&D?aO(D):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aN(),z=W[A],H=W[P],K=aV(0,T[j],I[j]),U=b?T[j]/2-B-K-z-M.mainAxis:N-K-z-M.mainAxis,Q=b?-T[j]/2+B+K+H+M.mainAxis:F+K+H+M.mainAxis,X=t.elements.arrow&&aL(t.elements.arrow),Y=X?x==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(S=k===null||k===void 0?void 0:k[x])!=null?S:0,G=L+U-Z-Y,q=L+Q-Z,$=aV(f?ax(_,G):_,L,f?ab(V,q):V);C[x]=$,R[x]=$-L}if(l){var J,ee=x==="x"?iG:iJ,et=x==="x"?iq:i$,en=C[w],er=w==="y"?"height":"width",eo=en+v[ee],ei=en-v[et],ea=[iG,iJ].indexOf(g)!==-1,el=(J=k===null||k===void 0?void 0:k[w])!=null?J:0,eu=ea?eo:en-T[er]-E[er]-el+M.altAxis,ec=ea?en+T[er]+E[er]-el-M.altAxis:ei,es=f&&ea?aB(eu,en,ec):aV(f?eu:eo,en,f?ec:ei);C[w]=es,R[w]=es-en}t.modifiersData[r]=R}}var lC={name:"preventOverflow",enabled:!0,phase:"main",fn:lw,requiresIfExists:["offset"]};function lT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lE(e){return e===ap(e)||!af(e)?a5(e):lT(e)}function lO(e){var t=e.getBoundingClientRect(),n=aw(t.width)/e.offsetWidth||1,r=aw(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lM(e,t,n){n===void 0&&(n=!1);var r=af(t),o=af(t)&&lO(t),i=aS(t),a=aE(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((as(t)!=="body"||a7(i))&&(l=lE(t)),af(t)?(u=aE(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=a3(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 ac.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function lS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lA(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 lP={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 lL(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?lP:o;return function(e,t,n){n===void 0&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},lP,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:ad(e)?a9(e):e.contextElement?a9(e.contextElement):[],popper:a9(t)};var l=lR(lA([].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:lM(t,aL(n),o.options.strategy==="fixed"),popper:aO(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:lS(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 l_=[a$,lb,aZ,ag,lg,ls,lC,aH,lm],lV=lL({defaultModifiers:l_});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=tu(lB.isValidElement(n)?n.ref:null,t);return e6(function(){i||u(lD(r)||document.body)},[r,i]),e6(function(){if(l&&!i)return e5(t,l),function(){e5(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 lW(e){return tk("MuiPopper",e)}var lz=tR("MuiPopper",["root"]);import{jsx as lH}from"react/jsx-runtime";var lK=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],lU=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function lQ(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 tw({root:["root"]},iz(lW))},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,h=m===void 0?{}:m,v=e.TransitionProps,g=tA(e,lK),b=iZ.useRef(null),x=tu(b,t),w=iZ.useRef(null),C=tu(w,p),T=iZ.useRef(C);e6(function(){T.current=C},[C]),iZ.useImperativeHandle(p,function(){return w.current},[]);var E=lQ(c,i),O=y(iZ.useState(E),2),M=O[0],k=O[1],R=y(iZ.useState(lX(r)),2),S=R[0],A=R[1];iZ.useEffect(function(){w.current&&w.current.forceUpdate()}),iZ.useEffect(function(){r&&A(lX(r))},[r]),e6(function(){if(!S||!u)return;var e=function(e){k(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=lV(S,b.current,F({placement:E},s,{modifiers:t}));return T.current(n),function(){n.destroy(),T.current(null)}},[S,a,l,u,s,E]);var P={placement:M};v!==null&&(P.TransitionProps=v);var j=lZ(),L=(n=h.root)!=null?n:"div",_=iY({elementType:L,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:j.root});return lH(L,F({},_,{children:typeof o=="function"?o(P):o}))}),l$=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,h=e.popperOptions,v=h===void 0?lG:h,g=e.popperRef,b=e.style,x=e.transition,w=x===void 0?!1:x,C=e.slotProps,T=C===void 0?{}:C,E=e.slots,O=E===void 0?{}:E,M=tA(e,lU),k=y(iZ.useState(!0),2),R=k[0],S=k[1],A=function(){S(!1)},P=function(){S(!0)};if(!s&&!d&&(!w||R))return null;var j;if(o)j=o;else if(n){var L=lX(n);j=L&&lY(L)?e2(L).body:e2(null).body}var _=!d&&s&&(!w||R)?"none":void 0,V=w?{in:d,onEnter:A,onExited:P}:void 0;return lH(lI,{disablePortal:u,container:j,children:lH(lq,F({anchorEl:n,direction:a,disablePortal:u,modifiers:p,ref:t,open:w?!R:d,placement:m,popperOptions:v,popperRef:g,slotProps:T,slots:O},M,{style:F({position:"fixed",top:0,left:0,display:_},b),TransitionProps:V,children:r}))})});import*as lJ from"react";import{jsx as l0}from"react/jsx-runtime";var l1=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],l2=om(l$,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),l5=lJ.forwardRef(function(e,t){var n;var r=ra(),o=op({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,h=o.popperOptions,v=o.popperRef,g=o.transition,y=o.slots,b=o.slotProps,x=tA(o,l1),w=(n=y===null||y===void 0?void 0:y.root)!=null?n:l===null||l===void 0?void 0:l.Root,C=F({anchorEl:i,container:c,disablePortal:s,keepMounted:p,modifiers:d,open:f,placement:m,popperOptions:h,popperRef:v,transition:g},x);return l0(l2,F({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}))}),l3=l5;import*as l4 from"react";import{jsx as l6}from"react/jsx-runtime";var l7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function l8(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var l9={entering:{opacity:1,transform:l8(1)},entered:{opacity:1,transform:"none"}},ue=(typeof navigator==="undefined"?"undefined":w(navigator))<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ut=l4.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,h=e.timeout,v=h===void 0?"auto":h,g=e.TransitionComponent,y=g===void 0?oB:g,b=tA(e,l7),x=l4.useRef(),w=l4.useRef(),C=os(),T=l4.useRef(null),E=ob(T,i.ref,t),O=function(e){return function(t){if(e){var n=T.current;t===void 0?e(n):e(n,t)}}},M=O(s),k=O(function(e,t){oq(e);var n=o$({style:m,timeout:v,easing:a},{mode:"enter"}),r=n.duration,o=n.delay,i=n.easing,l;v==="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:ue?l:l*.666,delay:o,easing:i})].join(","),u&&u(e,t)}),R=O(c),S=O(f),A=O(function(e){var t=o$({style:m,timeout:v,easing:a},{mode:"exit"}),n=t.duration,r=t.delay,o=t.easing,i;v==="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:ue?i:i*.666,delay:ue?r:r||i*.333,easing:o})].join(","),e.style.opacity=0,e.style.transform=l8(.75),p&&p(e)}),P=O(d),j=function(e){v==="auto"&&(x.current=setTimeout(e,w.current||0)),n&&n(T.current,e)};return l4.useEffect(function(){return function(){clearTimeout(x.current)}},[]),l6(y,F({appear:o,in:l,nodeRef:T,onEnter:k,onEntered:R,onEntering:M,onExit:A,onExited:P,onExiting:S,addEndListener:j,timeout:v==="auto"?null:v},b,{children:function(e,t){return l4.cloneElement(i,F({style:F({opacity:0,transform:l8(.75),visibility:e==="exited"&&!l?"hidden":void 0},l9[e],m,i.props.style),ref:E},t))}}))});ut.muiSupportAuto=!0;var un=ut;import*as ur from"react";function uo(e){return tk("MuiTooltip",e)}var ui=tR("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ua=ui;import{jsx as ul}from"react/jsx-runtime";import{jsxs as uu}from"react/jsx-runtime";var uc=["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 us(e){return Math.round(e*1e5)/1e5}var up=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(oh(i.split("-")[0]))],arrow:["arrow"]};return tw(a,uo,t)},ud=om(l3,{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 F({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(ua.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),u(o,'&[data-popper-placement*="top"] .'.concat(ua.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),u(o,'&[data-popper-placement*="right"] .'.concat(ua.arrow),F({},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(ua.arrow),F({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),o))}),uf=om("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(oh(n.placement.split("-")[0]))]]}})(function(e){var t=e.theme,n=e.ownerState;var r;return F({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(us(16/14),"em"),fontWeight:t.typography.fontWeightRegular},(r={},u(r,".".concat(ua.popper,'[data-popper-placement*="left"] &'),F({transformOrigin:"right center"},n.isRtl?F({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):F({marginRight:"14px"},n.touch&&{marginRight:"24px"}))),u(r,".".concat(ua.popper,'[data-popper-placement*="right"] &'),F({transformOrigin:"left center"},n.isRtl?F({marginRight:"14px"},n.touch&&{marginRight:"24px"}):F({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}))),u(r,".".concat(ua.popper,'[data-popper-placement*="top"] &'),F({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"})),u(r,".".concat(ua.popper,'[data-popper-placement*="bottom"] &'),F({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})),r))}),um=om("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)"}}}),uh=!1,uv=null,ug={x:0,y:0};function uy(e,t){return function(n){t&&t(n),e(n)}}var ub=ur.forwardRef(function(e,t){var n,r,o,i,a,l,u,c,s,p,d,f,m,h,v,g,b,x,w;var C=op({props:e,name:"MuiTooltip"}),T=C.arrow,E=T===void 0?!1:T,O=C.children,M=C.components,k=M===void 0?{}:M,R=C.componentsProps,S=R===void 0?{}:R,A=C.describeChild,P=A===void 0?!1:A,j=C.disableFocusListener,L=j===void 0?!1:j,_=C.disableHoverListener,V=_===void 0?!1:_,B=C.disableInteractive,N=B===void 0?!1:B,D=C.disableTouchListener,I=D===void 0?!1:D,W=C.enterDelay,z=W===void 0?100:W,H=C.enterNextDelay,K=H===void 0?0:H,U=C.enterTouchDelay,Q=U===void 0?700:U,X=C.followCursor,Y=X===void 0?!1:X,Z=C.id,G=C.leaveDelay,q=G===void 0?0:G,$=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?un:ef,eh=C.TransitionProps,ev=tA(C,uc),eg=ur.isValidElement(O)?O:ul("span",{children:O}),ey=os(),eb=ey.direction==="rtl",ex=y(ur.useState(),2),ew=ex[0],eC=ex[1],eT=y(ur.useState(null),2),eE=eT[0],eO=eT[1],eM=ur.useRef(!1),ek=N||Y,eR=ur.useRef(),eS=ur.useRef(),eA=ur.useRef(),eP=ur.useRef(),ej=y(og({controlled:en,default:!1,name:"Tooltip",state:"open"}),2),eL=ej[0],e_=ej[1],eV=eL,eB=ov(Z),eN=ur.useRef(),eF=ur.useCallback(function(){eN.current!==void 0&&(document.body.style.WebkitUserSelect=eN.current,eN.current=void 0),clearTimeout(eP.current)},[]);ur.useEffect(function(){return function(){clearTimeout(eR.current),clearTimeout(eS.current),clearTimeout(eA.current),eF()}},[eF]);var eD=function(e){clearTimeout(uv),uh=!0,e_(!0),et&&!eV&&et(e)},eI=oy(function(e){clearTimeout(uv),uv=setTimeout(function(){uh=!1},800+q),e_(!1),ee&&eV&&ee(e),clearTimeout(eR.current),eR.current=setTimeout(function(){eM.current=!1},ey.transitions.duration.shortest)}),eW=function(e){eM.current&&e.type!=="touchstart"||(ew&&ew.removeAttribute("title"),clearTimeout(eS.current),clearTimeout(eA.current),z||uh&&K?eS.current=setTimeout(function(){eD(e)},uh?K:z):eD(e))},ez=function(e){clearTimeout(eS.current),clearTimeout(eA.current),eA.current=setTimeout(function(){eI(e)},q)},eH=ox(),eK=eH.isFocusVisibleRef,eU=eH.onBlur,eQ=eH.onFocus,eX=eH.ref,eY=y(ur.useState(!1),2),eZ=eY[1],eG=function(e){eU(e),eK.current===!1&&(eZ(!1),ez(e))},eq=function(e){ew||eC(e.currentTarget),eQ(e),eK.current===!0&&(eZ(!0),eW(e))},e$=function(e){eM.current=!0;var t=eg.props;t.onTouchStart&&t.onTouchStart(e)},eJ=eW,e0=ez,e1=function(e){e$(e),clearTimeout(eA.current),clearTimeout(eR.current),eF(),eN.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eP.current=setTimeout(function(){document.body.style.WebkitUserSelect=eN.current,eW(e)},Q)},e2=function(e){eg.props.onTouchEnd&&eg.props.onTouchEnd(e),eF(),clearTimeout(eA.current),eA.current=setTimeout(function(){eI(e)},J)};ur.useEffect(function(){var e=function e(e){(e.key==="Escape"||e.key==="Esc")&&eI(e)};if(!eV)return;return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[eI,eV]);var e5=ob(eg.ref,eX,eC,t);!ed&&ed!==0&&(eV=!1);var e3=ur.useRef(),e4=function(e){var t=eg.props;t.onMouseMove&&t.onMouseMove(e),ug={x:e.clientX,y:e.clientY},e3.current&&e3.current.update()},e6={},e7=typeof ed=="string";P?(e6.title=!eV&&e7&&!V?ed:null,e6["aria-describedby"]=eV?eB:null):(e6["aria-label"]=e7?ed:null,e6["aria-labelledby"]=eV&&!e7?eB:null);var e8=F({},e6,ev,eg.props,{className:rd(ev.className,eg.props.className),onTouchStart:e$,ref:e5},Y?{onMouseMove:e4}:{}),e9={};I||(e8.onTouchStart=e1,e8.onTouchEnd=e2),V||(e8.onMouseOver=uy(eJ,e8.onMouseOver),e8.onMouseLeave=uy(e0,e8.onMouseLeave),ek||(e9.onMouseOver=eJ,e9.onMouseLeave=e0)),L||(e8.onFocus=uy(eq,e8.onFocus),e8.onBlur=uy(eG,e8.onBlur),ek||(e9.onFocus=eq,e9.onBlur=eG));var te=ur.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)),F({},el.popperOptions,{modifiers:t})},[eE,el]),tt=F({},C,{isRtl:eb,arrow:E,disableInteractive:ek,placement:eo,PopperComponentProp:ei,touch:eM.current}),tn=up(tt),tr=(n=(r=ep.popper)!=null?r:k.Popper)!=null?n:ud,to=(o=(i=(a=ep.transition)!=null?a:k.Transition)!=null?i:em)!=null?o:un,ti=(l=(u=ep.tooltip)!=null?u:k.Tooltip)!=null?l:uf,ta=(c=(s=ep.arrow)!=null?s:k.Arrow)!=null?c:um,tl=iN(tr,F({},el,(p=ec.popper)!=null?p:S.popper,{className:rd(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,F({},eh,(m=ec.transition)!=null?m:S.transition),tt),tc=iN(ti,F({},(h=ec.tooltip)!=null?h:S.tooltip,{className:rd(tn.tooltip,(v=(g=ec.tooltip)!=null?g:S.tooltip)==null?void 0:v.className)}),tt),ts=iN(ta,F({},(b=ec.arrow)!=null?b:S.arrow,{className:rd(tn.arrow,(x=(w=ec.arrow)!=null?w:S.arrow)==null?void 0:x.className)}),tt);return uu(ur.Fragment,{children:[ur.cloneElement(eg,e8),ul(tr,F({as:ei!==null&&ei!==void 0?ei:l3,placement:eo,anchorEl:Y?{getBoundingClientRect:function(){return{top:ug.y,left:ug.x,right:ug.x,bottom:ug.y,width:0,height:0}}}:ew,popperRef:e3,open:ew?eV:!1,id:eB,transition:!0},e9,tl,{popperOptions:te,children:function(e){var t=e.TransitionProps;return ul(to,F({timeout:ey.transitions.duration.shorter},t,tu,{children:uu(ti,F({},tc,{children:[ed,E?ul(ta,F({},ts,{ref:eO})):null]}))}))}}))]})}),ux=ub;import{Fragment as uw,jsx as uC,jsxs as uT}from"react/jsx-runtime";var uE=/*#__PURE__*/function(e){"use strict";s(t,e);function t(){i(this,t);return o(this,t,arguments)}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,h=m===void 0?function(){}:m,v=h(o||0,!0,f),g=c.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(v)),y=ey(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=h(b,!0,f),w=c.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(x)),C=ey(c.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),T=h(l!==null&&l!==void 0?l:0,!1,!1);return uT($,{children:[uC(J,{children:a?uT(uw,{children:[uC(ee,{children:uC(eS,{className:"loyalty-warning-icon",color:"#4A6987"})}),uC(eA,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#293A4A",noSpacing:!0,children:c.notQualify})]}):uT(uw,{children:[uC(eA,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:C}),"\xa0",uC(eA,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:"".concat(T)}),uC(ee,{children:uC(ux,{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:uC("span",{className:"info-icon",children:uC(iV,{"aria-label":c.estimateDisclaimer,children:uC(e_,{})})})})})]})}),r===i?"":a?uT(eA,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[y,"\xa0",uC(eA,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:"".concat(T)})]}):o!=null||o!=null?uC(eA,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:g}):uC(eA,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:w})]})}}]);return t}(eR.Component),uO=uE;import{useState as uM}from"react";import{FaExclamationTriangle as uk}from"react-icons/fa";import{NsTypography as uR}from"@nuskin/foundation-ui-components";import{CircularProgressbarWithChildren as uS,buildStyles as uA}from"react-circular-progressbar";import{Fragment as uP,jsx as uj,jsxs as uL}from"react/jsx-runtime";function u_(e){var t=e.voucherValue,n=e.minVoucher,r=e.maxVoucher,o=e.notQualifyForRewardThisMonth,i=e.learn3xMore,a=e.learnMoreText,l=e.translationLearnMore;return t===n&&!o?i:t===r||o?a:(t==null,l)}function uV(e){var t=e.isComplete,n=e.notQualifyForRewardThisMonth,r=e.hasVoucherValue,o=e.voucherEarned,i=e.voucherTargetAmount;return t&&!n?uj(ed,{}):n?uj(ee,{children:uj(uk,{className:"outline-exclamation-icon",color:"#91ACC8"})}):r?uL(q,{children:[uj(uR,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:o}),uj(uR,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:i})]}):uj(q,{children:uj(ev,{})})}function uB(e){var t=e.isComplete,n=e.amountShow,r=e.minAmount,o=e.voucherEarnedText,i=e.monthsCompleteText;return uj("div",{className:"info-item",children:t&&n!==void 0&&n>r?o:i})}function uN(e){var t=e.isComplete,n=e.notQualifyForRewardThisMonth,r=e.hasVoucherValue,o=e.approximateTotalText,i=e.amountShowText,a=e.currentlyTrackText,l=e.callToActionText;return t?null:n?uL(uR,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[o," ",uj(uR,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:i})]}):r?uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:a}):uj(uR,{variant:"body-s",weight:"bold",className:"reward-subtitle",colorOverride:"#252525",children:l})}function uF(e){var t=e.notQualifyForRewardThisMonth,n=e.approximateMonthlyText,r=e.amountShowText,o=e.translationNotQualify,i=e.estimateDisclaimer,a=e.open,l=e.handleTooltipToggle,u=e.handleTooltipClose;return t?uL(uP,{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:o})]}):uL(uP,{children:[uL(uR,{variant:"body-s",weight:"normal",colorOverride:"#252525",className:"reward-subtitle",component:"span",noSpacing:!0,children:[n," "]}),"\xa0",uj(uR,{weight:"bold",className:"button-price",variant:"body-s",component:"span",children:r}),uj(ee,{children:uj(ux,{slotProps:er,title:i,arrow:!0,placement:"top",open:a,onClose:u,children:uj("span",{className:"info-icon",children:uj(iV,{onClick:l,children:uj(e_,{})})})})})]})}var uD=function(e){var t,n;var r;var o=y(uM(!1),2),i=o[0],a=o[1],l=function(){a(!i)},u=function(){return a(!1)},c=e.handleOpenSubscriptionRewardPopup,s=c===void 0?function(){}:c,p=e.notQualifyForRewardThisMonth,d=p===void 0?!1:p,f=e.value,m=f===void 0?0:f,h=e.voucherValue,v=h===void 0?0:h,g=e.amountShow,b=e.maxMonths,x=b===void 0?0:b,w=e.translationConfig,C=w===void 0?{voucherTargetAmount:"",monthsComplete:"",voucherEarned:"",learnMore:"",learn3xMore:"",callToAction:"",notQualify:"",approximateMonthly:"",approximateTotal:"",currentlyTrack:"",loyaltyLogoBlack:"",estimateDisclaimer:""}:w,T=e.learnMoreConfig,E=T===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:T,O=e.storeConfig,M=O===void 0?{tiers:[{consecutive_months:"",min_spend:"",max_spend:"",promo_code:""},{consecutive_months:"",min_spend:"",promo_code:""}]}:O,k=e.currencyAbbreviate,R=k===void 0?!1:k,S=e.currencyFormat,A=50,P=150,j=function(e,t,n){var r;return(r=S===null||S===void 0?void 0:S(e,t,n))!==null&&r!==void 0?r:""},L=ey(C.monthsComplete,{completed_months:m,total_months:x}),_=j(v||0,!0,R),V=C.voucherEarned.replace("%currency_symbol%%currency_amount%","".concat(_)),B=C.currentlyTrack.replace("%currency_symbol%%currency_amount%","".concat(_)),N=ey(C.approximateTotal,{currency_symbol:"",projected_month_spend:""}),F=parseFloat(String(M===null||M===void 0?void 0:(n=M.tiers)===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.min_spend))||0,D=j(F,!0,R),I=C.callToAction.replace("%currency_symbol%%current_spend_target%","".concat(D)),W=ey(C.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),z=ey(C.voucherTargetAmount,{currency_symbol:"",voucher_amount:""}),H=j(g!==null&&g!==void 0?g:0,!1,!1),K=m===x,U=v!=null,Q=m===x&&!d?"rgb(195 240 194)":"#fff",X=u_({voucherValue:v,minVoucher:A,maxVoucher:P,notQualifyForRewardThisMonth:d,learn3xMore:C.learn3xMore,learnMoreText:E.learnMore,translationLearnMore:C.learnMore}),q=uV({isComplete:K,notQualifyForRewardThisMonth:d,hasVoucherValue:U,voucherEarned:_,voucherTargetAmount:z}),ee=uB({isComplete:K,amountShow:g,minAmount:F,voucherEarnedText:V,monthsCompleteText:L}),et=uN({isComplete:K,notQualifyForRewardThisMonth:d,hasVoucherValue:U,approximateTotalText:N,amountShowText:H,currentlyTrackText:B,callToActionText:I}),en=uF({notQualifyForRewardThisMonth:d,approximateMonthlyText:W,amountShowText:H,translationNotQualify:C.notQualify,estimateDisclaimer:(r=C.estimateDisclaimer)!==null&&r!==void 0?r:"",open:i,handleTooltipToggle:l,handleTooltipClose:u});return uL(Y,{children:[uj(Z,{children:uj("img",{className:"reward-logo",src:C.loyaltyLogoBlack,alt:"Rewards Logo"})}),uj("div",{className:"reward-progress",children:uL(uS,{value:m/x*100,strokeWidth:12,background:!0,styles:uA({rotation:.5,strokeLinecap:"butt",backgroundColor:Q,pathColor:"#6BC56A",trailColor:"#E0E0E0"}),children:[uj(el,{count:x}),q]})}),uj(Z,{children:ee}),uL($,{children:[et,uj(J,{children:en})]}),uj(Z,{children:uj(G,{onClick:s,children:uj("u",{children:X})})})]})},uI=uD;var uW=(typeof window==="undefined"?"undefined":w(window))=="object",uz=/*#__PURE__*/function(){"use strict";function e(){i(this,e);this.width=uW?window.innerWidth:0;this.scroll={vertical:uW?window.scrollY:0,horizontal:uW?window.scrollX:0,direction:"none"}}l(e,[{key:"isMobile",get:function e(){return this.isPhone}},{key:"isPhone",get:function e(){return uW?window.innerWidth<768:this.width<768}}]);return e}(),uH=new uz;var uK=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];var n=true,r=false,o=undefined;try{for(var i=t[Symbol.iterator](),a;!(n=(a=i.next()).done);n=true){var l=a.value;var u;var c=l.min_spend,s=(u=l.max_spend)!==null&&u!==void 0?u:1/0;if(e>=c&&e<s)return l}}catch(e){r=true;o=e}finally{try{if(!n&&i.return!=null){i.return()}}finally{if(r){throw o}}}return t[0]},uU=function(e){var t,n;var r=e===null||e===void 0?void 0:(n=e.split("-"))===null||n===void 0?void 0:(t=n[0])===null||t===void 0?void 0:t.replace("NSR","");return parseInt(r)||0},uQ=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return x(e).sort(function(e,t){return e.year===t.year?t.month-e.month:t.year-e.year})},uX=function(e,t){return e.month===t.getMonth()+1&&e.year===t.getFullYear()},uY=function(e,t){return e.filter(function(e){return uX(e,t)})},uZ=function(e){var t;var n;return(n=e===null||e===void 0?void 0:(t=e[0])===null||t===void 0?void 0:t.totalAmount)!==null&&n!==void 0?n:0},uG=function(e){var t;var n;return parseInt((n=e===null||e===void 0?void 0:(t=e.approximateMonthlyTotalResponse)===null||t===void 0?void 0:t.currentMonthTotal)!==null&&n!==void 0?n:"0")},uq=function(e,t,n){var r;var o;return e<n?n:(o=(r=uK(e,t))===null||r===void 0?void 0:r.min_spend)!==null&&o!==void 0?o:n},u$=function(e,t){return e.some(function(e){return e.totalAmount>=t})},uJ=function(e,t,n){return n?new Date(e.getFullYear(),e.getMonth()-(t-1),1):new Date(e.getFullYear(),e.getMonth()-t,1)},u0=function(e,t){return e.filter(function(e){return new Date(e.year,e.month-1)>=t})},u1=function(e){return e.filter(function(e){return e.promocode===null||e.promocode===void 0||e.promocode===""})},u2=function(e,t,n){return n?e:e.filter(function(e){return!uX(e,t)})},u5=function(e,t){return e.slice(0,t)},u3=function(e){return e&&e.some(function(e){return e===void 0})?e.every(function(t){return t===e[0]}):!1},u4=function(e,t,n){var r=t?e.getMonth():e.getMonth()-1;return new Date(e.getFullYear(),r-n).getMonth()+1},u6=function(e){return e!==void 0&&e!==""&&e!==null},u7=function(e){return e===void 0||e===""||e===null},u8=function(e,t){return(e===null||e===void 0?void 0:e.month)&&e.month!==t},u9=function(e,t){return e&&u6(t)},ce=function(e,t,n,r){var o;var i=uK(e,t.tiers),a=uU((o=i===null||i===void 0?void 0:i.promo_code)!==null&&o!==void 0?o:""),l=n===0?a:Math.min(r,a);return{monthCompletionValue:n+1,voucherValue:l}},ct=function(e,t){if(!e||!t.promoCodes)return{monthCompletionValue:t.monthCompletionValue,voucherValue:t.voucherValue};var n=t.voucherValue,r=t.monthCompletionValue;for(var o=0;o<e.length;o++){var i=e[o],a=t.promoCodes[o],l=u4(t.today,t.isCurrentMonthEligible,o);if(u8(i,l))return{monthCompletionValue:r,voucherValue:n};if(u9(t.allSamePromoCode,a))return{monthCompletionValue:0,voucherValue:n};var u=i.totalAmount>=t.minAmount,c=u7(a);if(u&&c){var s=ce(i.totalAmount,t,r,n);r=s.monthCompletionValue,n=s.voucherValue;continue}if(i.totalAmount<t.minAmount)return{monthCompletionValue:r,voucherValue:n}}return{monthCompletionValue:r,voucherValue:n}},cn=function(e){var t=e.data,n=e.minAmount,r=e.tiers,o=e.initialVoucherValue,i=e.initialMonthCompletionValue,a=e.maxMonths,l=e.today;var u,c;var s=o,p=i;if(!t)return{monthCompletionValue:p,voucherValue:s};var d=uQ(t.csmMonthlySubsOrderTotal),f=uY(d,l),m=f.length>0,h=uZ(f),v=uG(t),g=uq(v,r,n),y=u$(f,g),b=uJ(l,a,m&&y),x=u0(d,b),w=u1(x),C=u2(w,l,y),T=u5(C,a),E=T===null||T===void 0?void 0:T.map(function(e){return e.promocode}),O=u3(E);var M;var k;if(k=ct(T,{minAmount:n,tiers:r,isCurrentMonthEligible:y,today:l,monthCompletionValue:p,voucherValue:s,promoCodes:E,allSamePromoCode:O}),p=k.monthCompletionValue,s=k.voucherValue,k,v<n)return p=0,s=uU((M=(u=r[0])===null||u===void 0?void 0:u.promo_code)!==null&&M!==void 0?M:""),{monthCompletionValue:p,voucherValue:s};var R;if(p===0&&s===0&&r.length>0&&(s=uU((R=(c=r[0])===null||c===void 0?void 0:c.promo_code)!==null&&R!==void 0?R:"")),!y&&h>=n){var S;var A=uK(v,r),P=uU((S=A===null||A===void 0?void 0:A.promo_code)!==null&&S!==void 0?S:"");s=Math.min(s,P)}return!y&&p<a&&h>=g&&(p+=1),{monthCompletionValue:p,voucherValue:s}};import{Fragment as cr,jsx as co,jsxs as ci}from"react/jsx-runtime";var ca=function(e){var t,n,r;var o,i,a,l,u;var c=e.title,s=e.subscriptionData,p=e.translationConfig,d=e.learnMoreConfig,f=e.storeConfig,m=e.currencyFormat,h=(o=f===null||f===void 0?void 0:f.tiers)!==null&&o!==void 0?o:[],v=(i=(t=h[0])===null||t===void 0?void 0:t.min_spend)!==null&&i!==void 0?i:0,g=(a=(n=h[0])===null||n===void 0?void 0:n.consecutive_months)!==null&&a!==void 0?a:0,b=y(H(!1),2),x=b[0],w=b[1],C=function(){return w(!0)},T=function(){return w(!1)},E=s,O=parseFloat((l=E===null||E===void 0?void 0:(r=E.approximateMonthlyTotalResponse)===null||r===void 0?void 0:r.currentMonthTotal)!==null&&l!==void 0?l:"0"),M=uK(O,h),k=uU((u=M===null||M===void 0?void 0:M.promo_code)!==null&&u!==void 0?u:""),R=cn({data:E,minAmount:v,tiers:h,initialVoucherValue:k,initialMonthCompletionValue:0,maxMonths:g,today:new Date}),S=R.monthCompletionValue,A=R.voucherValue,P=S,j=O<v&&P<g;return ci(X,{children:[uH.isMobile?co(uI,{value:P,title:c,voucherValue:A,maxMonths:g,handleOpenSubscriptionRewardPopup:C,storeConfig:f,amountShow:O,notQualifyForRewardThisMonth:j,translationConfig:p,learnMoreConfig:d,currencyAbbreviate:f===null||f===void 0?void 0:f.currencyAbbreviate,currencyFormat:m}):ci(cr,{children:[co(ek,{value:P,title:c,notQualifyForRewardThisMonth:j,monthCompletionValue:S,storeConfig:f,maxMonths:g,voucherValue:A,handleOpenSubscriptionRewardPopup:C,translationConfig:p,learnMoreConfig:d,currencyAbbreviate:f===null||f===void 0?void 0:f.currencyAbbreviate,currencyFormat:m}),co(uO,{notQualifyForRewardThisMonth:j,value:P,voucherValue:A,maxMonths:g,title:c,monthCompletionValue:S,storeConfig:f,translationConfig:p,learnMoreConfig:d,handleOpenSubscriptionRewardPopup:C,amountShow:O,currencyAbbreviate:f===null||f===void 0?void 0:f.currencyAbbreviate,currencyFormat:m})]}),co(z,{show:x,close:T,amountShow:O,learnMoreConfig:d,translationConfig:p})]})},cl=ca;export{cl as SubscriptionReward};/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
@mui/styled-engine/index.js:
|
|
4
4
|
(**
|