@verifiedinc-public/shared-ui-elements 5.19.4 → 5.19.5-beta.0
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/components/chart/NoRiskSignalsPermissionSection/index.d.ts +2 -0
- package/dist/components/chart/ReasonCodesChart/index.d.ts +5 -1
- package/dist/components/chart/RiskScoreBarChart/index.d.ts +5 -1
- package/dist/components/chart/RiskScorePieChart/index.d.ts +5 -1
- package/dist/components/chart/index.mjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/SignupBigNumbers-DHYEwrnQ.mjs +2 -0
- package/dist/shared/{index-B50A4wDg.mjs → index-C0Ed6Mof.mjs} +1 -1
- package/package.json +1 -1
- package/dist/shared/SignupBigNumbers-BRtnxvpN.mjs +0 -2
@@ -26,6 +26,10 @@ interface ReasonCodesChartProps {
|
|
26
26
|
* Data success state
|
27
27
|
*/
|
28
28
|
isSuccess: boolean;
|
29
|
+
/**
|
30
|
+
* Whether the user has permission to view risk signals
|
31
|
+
*/
|
32
|
+
hasPermissionToDisplay?: boolean;
|
29
33
|
/**
|
30
34
|
* MUI System props object for custom styling of the chart container
|
31
35
|
*/
|
@@ -53,5 +57,5 @@ interface ReasonCodesChartProps {
|
|
53
57
|
* />
|
54
58
|
* ```
|
55
59
|
*/
|
56
|
-
export declare function ReasonCodesChart({ data, threshold, isLoading, isFetching, isSuccess, sx, }: ReasonCodesChartProps): ReactElement;
|
60
|
+
export declare function ReasonCodesChart({ data, threshold, isLoading, isFetching, isSuccess, hasPermissionToDisplay, sx, }: ReasonCodesChartProps): ReactElement;
|
57
61
|
export {};
|
@@ -18,9 +18,13 @@ export interface RiskScoreBarChartProps {
|
|
18
18
|
* Data success state
|
19
19
|
*/
|
20
20
|
isSuccess: boolean;
|
21
|
+
/**
|
22
|
+
* Whether the user has permission to view risk signals
|
23
|
+
*/
|
24
|
+
hasPermissionToDisplay?: boolean;
|
21
25
|
/**
|
22
26
|
* MUI System props object for custom styling of the chart container
|
23
27
|
*/
|
24
28
|
sx?: SxProps;
|
25
29
|
}
|
26
|
-
export declare function RiskScoreBarChart({ data, isLoading, isFetching, isSuccess, sx, }: RiskScoreBarChartProps): ReactElement;
|
30
|
+
export declare function RiskScoreBarChart({ data, isLoading, isFetching, isSuccess, hasPermissionToDisplay, sx, }: RiskScoreBarChartProps): ReactElement;
|
@@ -25,6 +25,10 @@ export interface RiskScorePieChartProps {
|
|
25
25
|
* Data success state
|
26
26
|
*/
|
27
27
|
isSuccess: boolean;
|
28
|
+
/**
|
29
|
+
* Whether the user has permission to view risk signals
|
30
|
+
*/
|
31
|
+
hasPermissionToDisplay?: boolean;
|
28
32
|
/**
|
29
33
|
* MUI System props object for custom styling of the chart container
|
30
34
|
*/
|
@@ -35,4 +39,4 @@ export interface RiskScorePieChartProps {
|
|
35
39
|
* Displays a semi-circular gauge with three segments (Allow, Flag, Block)
|
36
40
|
* and a needle indicating the current score.
|
37
41
|
*/
|
38
|
-
export declare function RiskScorePieChart({ data, score, legendLabel, isLoading, isFetching, isSuccess, sx, }: RiskScorePieChartProps): ReactElement;
|
42
|
+
export declare function RiskScorePieChart({ data, score, legendLabel, isLoading, isFetching, isSuccess, hasPermissionToDisplay, sx, }: RiskScorePieChartProps): ReactElement;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{B as a,i as s,E as e,L as r,j as i,M as t,g as C,O as h,P as n,R as o,e as S,d as m,S as g,a as p,b as c,k as d,c as l,f as O,h as b,m as k}from"../../shared/SignupBigNumbers-
|
1
|
+
"use strict";import{B as a,i as s,E as e,L as r,j as i,M as t,g as C,O as h,P as n,R as o,e as S,d as m,S as g,a as p,b as c,k as d,c as l,f as O,h as b,m as k}from"../../shared/SignupBigNumbers-DHYEwrnQ.mjs";export{a as BigNumber,s as EmptyChartSection,e as ErrorCodesChart,r as LoadingChartSection,i as MetricLastUpdated,t as MonthlySignupsOverviewTable,C as OneClickOverTimeChart,h as OneClickPercentageChart,n as PieChart,o as ReasonCodesChart,S as RiskScoreBarChart,m as RiskScorePieChart,g as SeriesChart,p as SeriesChartLegend,c as SeriesPercentageChart,d as SignupBigNumbers,l as SimpleBarChart,O as SimpleLegend,b as mapMonthlySignupsOverviewTableData,k as mapTimeSeriesData};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,c as s,m as e,B as r,o as t,n,C as i,D as o,f as p,E as c,k as d,F as m,I as u,b as h,L as C,O as l,h as S,j as g,e as P,P as B,Q as k,R as I,S as b,d as O,l as T,T as y,g as L,a as f,V as R,i as v,t as E,u as D}from"../shared/index-
|
1
|
+
"use strict";import{A as a,c as s,m as e,B as r,o as t,n,C as i,D as o,f as p,E as c,k as d,F as m,I as u,b as h,L as C,O as l,h as S,j as g,e as P,P as B,Q as k,R as I,S as b,d as O,l as T,T as y,g as L,a as f,V as R,i as v,t as E,u as D}from"../shared/index-C0Ed6Mof.mjs";import{a as N,b as F,P as A,S as M}from"../shared/PageSectionHeader-DdpDhBZG.mjs";import{B as V,C as w,i as x,E as W,L as j,j as H,M as Q,g as q,O as z,P as U,R as G,e as J,d as K,S as X,a as Y,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"../shared/SignupBigNumbers-DHYEwrnQ.mjs";import{SnackbarProvider as na}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,V as BigNumber,t as BrandFilterInput,n as Button,i as CredentialRequestsEditor,w as CustomAlertComponent,o as DateInput,p as DateRangeInput,c as EmailInput,x as EmptyChartSection,W as ErrorCodesChart,d as ExactBirthdayBanner,m as FullWidthAlert,u as Image,h as LegalLink,C as LinkButton,j as LoadingChartSection,H as MetricLastUpdated,Q as MonthlySignupsOverviewTable,l as OTPInput,S as OneClickForm,q as OneClickOverTimeChart,z as OneClickPercentageChart,g as OneClickPoweredByVerified,N as PageHeader,F as PageSectionHeader,A as Paragraph,P as PhoneInput,U as PieChart,B as PrivacyPolicyNotice,k as QRCodeDisplay,G as ReasonCodesChart,I as ResendPhoneBanner,J as RiskScoreBarChart,K as RiskScorePieChart,b as SSNInput,M as SectionHeader,O as SelectInput,X as SeriesChart,Y as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,na as SnackbarProvider,T as TestPhoneNumbersBanner,y as TextButton,L as TimezoneInput,f as Typography,R as VerifiedImage,v as VerifiedIncLogo,sa as When,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,E as toOption,D as useBrandFilterInput,ta as useSnackbar};
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";import{A as a,c as s,m as e,B as r,o as t,n as o,C as i,D as n,f as m,E as l,k as u,F as p,I as c,b as d,L as h,O as C,h as S,j as g,e as f,P as k,Q as P,R as b,S as y,d as B,l as D,T,g as O,a as v,V as I,i as R,t as w,u as N}from"./shared/index-
|
1
|
+
"use strict";import{A as a,c as s,m as e,B as r,o as t,n as o,C as i,D as n,f as m,E as l,k as u,F as p,I as c,b as d,L as h,O as C,h as S,j as g,e as f,P as k,Q as P,R as b,S as y,d as B,l as D,T,g as O,a as v,V as I,i as R,t as w,u as N}from"./shared/index-C0Ed6Mof.mjs";import{a as L,b as M,P as E,S as Y}from"./shared/PageSectionHeader-DdpDhBZG.mjs";import{B as x,C as F,i as z,E as A,L as V,j as W,M as G,g as U,O as j,P as H,R as Q,e as q,d as J,S as X,a as K,b as Z,k as _,c as $,f as aa,W as sa,h as ea,m as ra,u as ta}from"./shared/SignupBigNumbers-DHYEwrnQ.mjs";import{b as oa,k as ia,a as na,i as ma,u as la,j as ua,d as pa,c as ca,e as da,f as ha,g as Ca,h as Sa}from"./shared/useDebounceCallback-CO7X29ng.mjs";import{u as ga,a as fa}from"./shared/usePrevious-DG_IMu2h.mjs";import{a as ka,b as Pa,u as ba}from"./shared/useOnClickOutside-DgJxDzLx.mjs";import{u as ya}from"./shared/useCounter-BV32zXDQ.mjs";import{u as Ba}from"./shared/useResizeObserver-D434c1uN.mjs";import{b as Da,a as Ta,x as Oa,m as va,e as Ia,d as Ra,q as wa,v as Na,h as La,j as Ma,g as Ea,p as Ya,u as xa,n as Fa,c as za,l as Aa,o as Va,s as Wa,f as Ga,i as Ua,r as ja,A as Ha,t as Qa,z as qa,k as Ja,w as Xa,y as Ka}from"./shared/shadows-DLu0KeAU.mjs";import{wrapPromise as Za}from"./utils/wrapPromise/index.mjs";import{f as _a,b as $a,a as as,c as ss,u as es}from"./shared/uuidColor-LRbEKYAZ.mjs";import{c as rs,g as ts,a as os,p as is,s as ns,v as ms}from"./shared/phone-eqP--V9t.mjs";import{masks as ls}from"./utils/masks/index.mjs";import{o as us}from"./shared/omitProperty-DZYdN2vK.mjs";import{s as ps}from"./shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as cs,toSentenceCase as ds}from"./utils/string/index.mjs";import{k as hs}from"./shared/formatKebabToPretty-Du43TgPC.mjs";import{contrastColor as Cs,darken as Ss,lighten as gs}from"./utils/color/index.mjs";import{M as fs,S as ks,U as Ps,d as bs,e as ys,f as Bs,g as Ds,a as Ts,s as Os}from"./shared/unix.schema-CMYTtXco.mjs";import{p as vs}from"./shared/phone.schema-XBbyizhq.mjs";import{SnackbarProvider as Is}from"notistack";export{a as AcceptTermsNotice,s as Alert,e as Backdrop,r as Banner,x as BigNumber,t as BrandFilterInput,o as Button,i as CredentialRequestsEditor,F as CustomAlertComponent,n as DateInput,m as DateRangeInput,l as EmailInput,z as EmptyChartSection,A as ErrorCodesChart,u as ExactBirthdayBanner,p as FullWidthAlert,c as Image,d as LegalLink,h as LinkButton,V as LoadingChartSection,fs as MaskedAndUnmaskedSSNSchema,W as MetricLastUpdated,G as MonthlySignupsOverviewTable,C as OTPInput,S as OneClickForm,U as OneClickOverTimeChart,j as OneClickPercentageChart,g as OneClickPoweredByVerified,L as PageHeader,M as PageSectionHeader,E as Paragraph,f as PhoneInput,H as PieChart,k as PrivacyPolicyNotice,P as QRCodeDisplay,Q as ReasonCodesChart,b as ResendPhoneBanner,q as RiskScoreBarChart,J as RiskScorePieChart,y as SSNInput,ks as SSNSchema,Y as SectionHeader,B as SelectInput,X as SeriesChart,K as SeriesChartLegend,Z as SeriesPercentageChart,_ as SignupBigNumbers,$ as SimpleBarChart,aa as SimpleLegend,Is as SnackbarProvider,D as TestPhoneNumbersBanner,T as TextButton,O as TimezoneInput,v as Typography,Ps as USDateSchema,I as VerifiedImage,R as VerifiedIncLogo,sa as When,Da as black,Ta as blue,Oa as colors,Cs as contrastColor,rs as countries,va as dangerContrast,Ia as darkBlue,Ra as darkGreen,wa as darkGrey,Na as darkGreyContrast,La as darkRed,Ma as darkYellow,Ss as darken,bs as descriptionSchema,ys as emailSchema,Bs as fieldSchema,_a as formatDateMMDDYYYY,$a as formatDateMMYY,as as formatDateToTimestamp,ss as formatExtendedDate,Ds as getDateSchemaWithPastValidation,ts as getPhoneData,os as getPhoneDataByFieldName,Ts as getUnixSchema,Ea as green,Ya as grey,xa as greyContrast,Fa as infoContrast,hs as kebabCaseToPretty,za as lightBlue,Aa as lightGreen,Va as lightGrey,Wa as lightGreyContrast,Ga as lightRed,Ua as lightYellow,gs as lighten,ea as mapMonthlySignupsOverviewTableData,ra as mapTimeSeriesData,ls as masks,us as omitProperties,is as parseToPhoneNational,vs as phoneSchema,ja as red,Ha as shadows,ns as sortByCountryName,ps as ssnFormatter,Os as stateSchema,Qa as textDisabled,qa as theme,cs as toCapitalize,w as toOption,ds as toSentenceCase,N as useBrandFilterInput,oa as useCallbackRef,ga as useCopyToClipboard,ya as useCounter,ia as useDebounceCallback,ka as useDebounceValue,na as useDisclosure,ma as useIntersectionObserver,la as useLocalStorage,ua as useNavigatorOnline,Pa as useOnClickOutside,fa as usePrevious,ba as useQRCode,Ba as useResizeObserver,pa as useScript,ca as useSearchParams,ta as useSnackbar,da as useThrottle,ha as useToggle,Ca as useWindowScroll,Sa as useWindowSize,es as uuidToHashedColor,ms as validatePhone,Ja as warningContrast,Xa as white,Za as wrapPromise,Ka as yellow};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";import{j as l}from"./jsx-runtime-DHlBLioN.mjs";import{Alert as _o,Box as Ce,IconButton as Cr,Stack as Se,Typography as pe,useTheme as je,Paper as Ar,TableContainer as Mo,Table as Ro,TableHead as Io,TableRow as Nr,TableCell as de,TableBody as Do}from"@mui/material";import*as Ae from"react";import{forwardRef as Po,useCallback as Lt,useMemo as Vt,createElement as Fo,useState as mt,useRef as Lo,useEffect as _r}from"react";import{ResponsiveContainer as ht,LineChart as Mr,CartesianGrid as zt,XAxis as Ut,YAxis as Gt,Label as Vo,Tooltip as Wt,Legend as Bt,Line as Rr,ComposedChart as zo,ReferenceLine as Ir,ReferenceArea as Dr,Bar as Uo,Sector as Pr,PieChart as Go,Pie as Wo,Cell as Bo}from"recharts";import Fr,{Decimal as Kt}from"decimal.js";import{b as Lr,c as Vr,u as Ko,_ as Yo}from"./uuidColor-LRbEKYAZ.mjs";import{AnimatePresence as zr}from"framer-motion";import{a as Yt,u as Ur}from"./usePrevious-DG_IMu2h.mjs";import"qrcode";import{g as qo,e as Ne}from"./_baseGetTag-B6tQMIzM.mjs";import{a as Gr,C as Wr}from"./motions-BBPeWBPV.mjs";import Ho from"@emotion/styled";import{CacheProvider as Zo,Global as Jo,ThemeContext as Br,css as Qo,keyframes as Xo}from"@emotion/react";import{k as Kr}from"./formatKebabToPretty-Du43TgPC.mjs";import{Close as ea}from"@mui/icons-material";import{SnackbarContent as ta,closeSnackbar as Yr,enqueueSnackbar as ra}from"notistack";import{u as na}from"./useCounter-BV32zXDQ.mjs";function me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}var qr={exports:{}},Hr={exports:{}},U={},Zr;function oa(){if(Zr)return U;Zr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function j(m){if(typeof m=="object"&&m!==null){var k=m.$$typeof;switch(k){case t:switch(m=m.type,m){case f:case c:case n:case a:case o:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case p:case g:case b:case i:return m;default:return k}}case r:return k}}}function F(m){return j(m)===c}return U.AsyncMode=f,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=p,U.Fragment=n,U.Lazy=g,U.Memo=b,U.Portal=r,U.Profiler=a,U.StrictMode=o,U.Suspense=h,U.isAsyncMode=function(m){return F(m)||j(m)===f},U.isConcurrentMode=F,U.isContextConsumer=function(m){return j(m)===s},U.isContextProvider=function(m){return j(m)===i},U.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},U.isForwardRef=function(m){return j(m)===p},U.isFragment=function(m){return j(m)===n},U.isLazy=function(m){return j(m)===g},U.isMemo=function(m){return j(m)===b},U.isPortal=function(m){return j(m)===r},U.isProfiler=function(m){return j(m)===a},U.isStrictMode=function(m){return j(m)===o},U.isSuspense=function(m){return j(m)===h},U.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===h||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===g||m.$$typeof===b||m.$$typeof===i||m.$$typeof===s||m.$$typeof===p||m.$$typeof===d||m.$$typeof===x||m.$$typeof===S||m.$$typeof===y)},U.typeOf=j,U}var aa={},Jr;function Ml(){return Jr||(Jr=1),aa}var Qr;function ia(){return Qr||(Qr=1,Hr.exports=oa()),Hr.exports}var qt,Xr;function sa(){if(Xr)return qt;Xr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var f=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(f.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qt=o()?Object.assign:function(a,i){for(var s,f=n(a),c,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var h in s)t.call(s,h)&&(f[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)r.call(s,c[u])&&(f[c[u]]=s[c[u]])}}return f},qt}var Ht,en;function tn(){if(en)return Ht;en=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ht=e,Ht}var rn,nn;function ca(){return nn||(nn=1,rn=Function.call.bind(Object.prototype.hasOwnProperty)),rn}var Zt,on;function la(){if(on)return Zt;on=1;var e=function(){};if(0)var t,r,n;function o(a,i,s,f,c){if(0){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function")var u}catch(g){}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r))var b}}}return o.resetWarningCache=function(){},Zt=o,Zt}var Jt,an;function Rl(){if(an)return Jt;an=1;var e=ia(),t=sa(),r=tn(),n=ca(),o=la(),a=function(){};function i(){return null}return Jt=function(s,f){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(v){var w=v&&(c&&v[c]||v[p]);if(typeof w=="function")return w}var u="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:S(),arrayOf:j,element:F(),elementType:m(),instanceOf:k,node:Q(),objectOf:B,oneOf:$,oneOfType:re,shape:E,exact:z};function g(v,w){return v===w?v!==0||1/v===1/w:v!==v&&w!==w}function y(v,w){this.message=v,this.data=w&&typeof w=="object"?w:{},this.stack=""}y.prototype=Error.prototype;function d(v){if(0)var w,R;function _(I,N,M,P,D,T,Y){if(P=P||u,T=T||M,Y!==r){if(f){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(0)var dt}return N[M]==null?I?N[M]===null?new y("The "+D+" `"+T+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new y("The "+D+" `"+T+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:v(N,M,P,D,T)}var A=_.bind(null,!1);return A.isRequired=_.bind(null,!0),A}function x(v){function w(R,_,A,I,N,M){var P=R[_],D=K(P);if(D!==v){var T=X(P);return new y("Invalid "+I+" `"+N+"` of type "+("`"+T+"` supplied to `"+A+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return d(w)}function S(){return d(i)}function j(v){function w(R,_,A,I,N){if(typeof v!="function")return new y("Property `"+N+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var M=R[_];if(!Array.isArray(M)){var P=K(M);return new y("Invalid "+I+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected an array."))}for(var D=0;D<M.length;D++){var T=v(M,D,A,I,N+"["+D+"]",r);if(T instanceof Error)return T}return null}return d(w)}function F(){function v(w,R,_,A,I){var N=w[R];if(!s(N)){var M=K(N);return new y("Invalid "+A+" `"+I+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return d(v)}function m(){function v(w,R,_,A,I){var N=w[R];if(!e.isValidElementType(N)){var M=K(N);return new y("Invalid "+A+" `"+I+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return d(v)}function k(v){function w(R,_,A,I,N){if(!(R[_]instanceof v)){var M=v.name||u,P=Oe(R[_]);return new y("Invalid "+I+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected ")+("instance of `"+M+"`."))}return null}return d(w)}function $(v){if(!Array.isArray(v))return i;function w(R,_,A,I,N){for(var M=R[_],P=0;P<v.length;P++)if(g(M,v[P]))return null;var D=JSON.stringify(v,function(T,Y){var W=X(Y);return W==="symbol"?String(Y):Y});return new y("Invalid "+I+" `"+N+"` of value `"+String(M)+"` "+("supplied to `"+A+"`, expected one of "+D+"."))}return d(w)}function B(v){function w(R,_,A,I,N){if(typeof v!="function")return new y("Property `"+N+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var M=R[_],P=K(M);if(P!=="object")return new y("Invalid "+I+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected an object."));for(var D in M)if(n(M,D)){var T=v(M,D,A,I,N+"."+D,r);if(T instanceof Error)return T}return null}return d(w)}function re(v){if(!Array.isArray(v))return i;for(var w=0;w<v.length;w++){var R=v[w];if(typeof R!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(R)+" at index "+w+"."),i}function _(A,I,N,M,P){for(var D=[],T=0;T<v.length;T++){var Y=v[T],W=Y(A,I,N,M,P,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&D.push(W.data.expectedType)}var dt=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new y("Invalid "+M+" `"+P+"` supplied to "+("`"+N+"`"+dt+"."))}return d(_)}function Q(){function v(w,R,_,A,I){return H(w[R])?null:new y("Invalid "+A+" `"+I+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return d(v)}function O(v,w,R,_,A){return new y((v||"React class")+": "+w+" type `"+R+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function E(v){function w(R,_,A,I,N){var M=R[_],P=K(M);if(P!=="object")return new y("Invalid "+I+" `"+N+"` of type `"+P+"` "+("supplied to `"+A+"`, expected `object`."));for(var D in v){var T=v[D];if(typeof T!="function")return O(A,I,N,D,X(T));var Y=T(M,D,A,I,N+"."+D,r);if(Y)return Y}return null}return d(w)}function z(v){function w(R,_,A,I,N){var M=R[_],P=K(M);if(P!=="object")return new y("Invalid "+I+" `"+N+"` of type `"+P+"` "+("supplied to `"+A+"`, expected `object`."));var D=t({},R[_],v);for(var T in D){var Y=v[T];if(n(v,T)&&typeof Y!="function")return O(A,I,N,T,X(Y));if(!Y)return new y("Invalid "+I+" `"+N+"` key `"+T+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(R[_],null," ")+`
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var W=Y(M,T,A,I,N+"."+T,r);if(W)return W}return null}return d(w)}function H(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(H);if(v===null||s(v))return!0;var w=h(v);if(w){var R=w.call(v),_;if(w!==v.entries){for(;!(_=R.next()).done;)if(!H(_.value))return!1}else for(;!(_=R.next()).done;){var A=_.value;if(A&&!H(A[1]))return!1}}else return!1;return!0;default:return!1}}function oe(v,w){return v==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function K(v){var w=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":oe(w,v)?"symbol":w}function X(v){if(typeof v>"u"||v===null)return""+v;var w=K(v);if(w==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return w}function Ie(v){var w=X(v);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function Oe(v){return!v.constructor||!v.constructor.name?u:v.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Jt}var Qt,sn;function ua(){if(sn)return Qt;sn=1;var e=tn();function t(){}function r(){}return r.resetWarningCache=t,Qt=function(){function n(i,s,f,c,p,h){if(h!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Qt}if(0)var Il,Dl;else qr.exports=ua()();var fa=qr.exports;const pa=qo(fa);function cn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=cn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ln(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=cn(e))&&(n&&(n+=" "),n+=t);return n}function Xt(e,t){const r=C({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=C({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=C({},a),Object.keys(o).forEach(i=>{r[n][i]=Xt(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function un(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}var ee={},fn={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(fn);var pn=fn.exports;function De(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const da=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),ma=Ne(da);function ha(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ya=Object.freeze(Object.defineProperty({__proto__:null,default:ha},Symbol.toStringTag,{value:"Module"})),ga=Ne(ya);var dn=pn;Object.defineProperty(ee,"__esModule",{value:!0});var ba=ee.alpha=xn;ee.blend=Ca,ee.colorChannel=void 0;var mn=ee.darken=tr;ee.decomposeColor=he,ee.emphasize=wn;var va=ee.getContrastRatio=ja;ee.getLuminance=yt,ee.hexToRgb=gn,ee.hslToRgb=vn;var hn=ee.lighten=rr;ee.private_safeAlpha=ka,ee.private_safeColorChannel=void 0,ee.private_safeDarken=$a,ee.private_safeEmphasize=Ta,ee.private_safeLighten=Ea,ee.recomposeColor=Pe,ee.rgbToHex=Sa;var yn=dn(ma),xa=dn(ga);function er(e,t=0,r=1){return(0,xa.default)(e,t,r)}function gn(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function wa(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function he(e){if(e.type)return e;if(e.charAt(0)==="#")return he(gn(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,yn.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,yn.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const bn=e=>{const t=he(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ee.colorChannel=bn;const Oa=(e,t)=>{try{return bn(e)}catch{return e}};ee.private_safeColorChannel=Oa;function Pe(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Sa(e){if(e.indexOf("#")===0)return e;const{values:t}=he(e);return`#${t.map((r,n)=>wa(n===3?Math.round(255*r):r)).join("")}`}function vn(e){e=he(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,p=(c+r/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let s="rgb";const f=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",f.push(t[3])),Pe({type:s,values:f})}function yt(e){e=he(e);let t=e.type==="hsl"||e.type==="hsla"?he(vn(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ja(e,t){const r=yt(e),n=yt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function xn(e,t){return e=he(e),t=er(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pe(e)}function ka(e,t,r){try{return xn(e,t)}catch{return e}}function tr(e,t){if(e=he(e),t=er(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Pe(e)}function $a(e,t,r){try{return tr(e,t)}catch{return e}}function rr(e,t){if(e=he(e),t=er(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Pe(e)}function Ea(e,t,r){try{return rr(e,t)}catch{return e}}function wn(e,t=.15){return yt(e)>.5?tr(e,t):rr(e,t)}function Ta(e,t,r){try{return wn(e,t)}catch{return e}}function Ca(e,t,r,n=1){const o=(f,c)=>Math.round((f**(1/n)*(1-r)+c**(1/n)*r)**n),a=he(e),i=he(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Pe({type:"rgb",values:s})}var He={},On={exports:{}},Sn;function Aa(){return Sn||(Sn=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(On)),On.exports}var jn={exports:{}},kn;function Na(){return kn||(kn=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(jn)),jn.exports}function _a(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ma(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ra=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ma(this));var n=this.tags[this.tags.length-1];if(0)var o;if(this.isSpeedy){var a=_a(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),se="-ms-",gt="-moz-",L="-webkit-",$n="comm",nr="rule",or="decl",Ia="@import",En="@keyframes",Da="@layer",Pa=Math.abs,bt=String.fromCharCode,Fa=Object.assign;function La(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function Tn(e){return e.trim()}function Va(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function ar(e,t){return e.indexOf(t)}function ae(e,t){return e.charCodeAt(t)|0}function Ze(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function ir(e){return e.length}function vt(e,t){return t.push(e),e}function za(e,t){return e.map(t).join("")}var xt=1,Fe=1,Cn=0,ce=0,ne=0,Le="";function wt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:xt,column:Fe,length:i,return:""}}function Je(e,t){return Fa(wt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ua(){return ne}function Ga(){return ne=ce>0?ae(Le,--ce):0,Fe--,ne===10&&(Fe=1,xt--),ne}function ue(){return ne=ce<Cn?ae(Le,ce++):0,Fe++,ne===10&&(Fe=1,xt++),ne}function we(){return ae(Le,ce)}function Ot(){return ce}function Qe(e,t){return Ze(Le,e,t)}function Xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function An(e){return xt=Fe=1,Cn=xe(Le=e),ce=0,[]}function Nn(e){return Le="",e}function St(e){return Tn(Qe(ce-1,sr(e===91?e+2:e===40?e+1:e)))}function Wa(e){for(;(ne=we())&&ne<33;)ue();return Xe(e)>2||Xe(ne)>3?"":" "}function Ba(e,t){for(;--t&&ue()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Qe(e,Ot()+(t<6&&we()==32&&ue()==32))}function sr(e){for(;ue();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&sr(ne);break;case 40:e===41&&sr(e);break;case 92:ue();break}return ce}function Ka(e,t){for(;ue()&&e+ne!==57&&!(e+ne===84&&we()===47););return"/*"+Qe(t,ce-1)+"*"+bt(e===47?e:ue())}function Ya(e){for(;!Xe(we());)ue();return Qe(e,ce)}function qa(e){return Nn(jt("",null,null,null,[""],e=An(e),0,[0],e))}function jt(e,t,r,n,o,a,i,s,f){for(var c=0,p=0,h=i,u=0,b=0,g=0,y=1,d=1,x=1,S=0,j="",F=o,m=a,k=n,$=j;d;)switch(g=S,S=ue()){case 40:if(g!=108&&ae($,h-1)==58){ar($+=V(St(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=St(S);break;case 9:case 10:case 13:case 32:$+=Wa(g);break;case 92:$+=Ba(Ot()-1,7);continue;case 47:switch(we()){case 42:case 47:vt(Ha(Ka(ue(),Ot()),t,r),f);break;default:$+="/"}break;case 123*y:s[c++]=xe($)*x;case 125*y:case 59:case 0:switch(S){case 0:case 125:d=0;case 59+p:x==-1&&($=V($,/\f/g,"")),b>0&&xe($)-h&&vt(b>32?Mn($+";",n,r,h-1):Mn(V($," ","")+";",n,r,h-2),f);break;case 59:$+=";";default:if(vt(k=_n($,t,r,c,p,o,s,j,F=[],m=[],h),a),S===123)if(p===0)jt($,t,k,k,F,a,h,s,m);else switch(u===99&&ae($,3)===110?100:u){case 100:case 108:case 109:case 115:jt(e,k,k,n&&vt(_n(e,k,k,0,0,o,s,j,o,F=[],h),m),o,m,h,s,n?F:m);break;default:jt($,k,k,k,[""],m,0,s,m)}}c=p=b=0,y=x=1,j=$="",h=i;break;case 58:h=1+xe($),b=g;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&Ga()==125)continue}switch($+=bt(S),S*y){case 38:x=p>0?1:($+="\f",-1);break;case 44:s[c++]=(xe($)-1)*x,x=1;break;case 64:we()===45&&($+=St(ue())),u=we(),p=h=xe(j=$+=Ya(Ot())),S++;break;case 45:g===45&&xe($)==2&&(y=0)}}return a}function _n(e,t,r,n,o,a,i,s,f,c,p){for(var h=o-1,u=o===0?a:[""],b=ir(u),g=0,y=0,d=0;g<n;++g)for(var x=0,S=Ze(e,h+1,h=Pa(y=i[g])),j=e;x<b;++x)(j=Tn(y>0?u[x]+" "+S:V(S,/&\f/g,u[x])))&&(f[d++]=j);return wt(e,t,r,o===0?nr:s,f,c,p)}function Ha(e,t,r){return wt(e,t,r,$n,bt(Ua()),Ze(e,2,-2),0)}function Mn(e,t,r,n){return wt(e,t,r,or,Ze(e,0,n),Ze(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=ir(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Za(e,t,r,n){switch(e.type){case Da:if(e.children.length)break;case Ia:case or:return e.return=e.return||e.value;case $n:return"";case En:return e.return=e.value+"{"+Ve(e.children,n)+"}";case nr:e.value=e.props.join(",")}return xe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ja(e){var t=ir(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function Qa(e){return function(t){t.root||(t=t.return)&&e(t)}}var Xa=function(e,t,r){for(var n=0,o=0;n=o,o=we(),n===38&&o===12&&(t[r]=1),!Xe(o);)ue();return Qe(e,ce)},ei=function(e,t){var r=-1,n=44;do switch(Xe(n)){case 0:n===38&&we()===12&&(t[r]=1),e[r]+=Xa(ce-1,t,r);break;case 2:e[r]+=St(n);break;case 4:if(n===44){e[++r]=we()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=bt(n)}while(n=ue());return e},ti=function(e,t){return Nn(ei(An(e),t))},Rn=new WeakMap,ri=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Rn.get(r))&&!n){Rn.set(e,!0);for(var o=[],a=ti(t,o),i=r.props,s=0,f=0;s<a.length;s++)for(var c=0;c<i.length;c++,f++)e.props[f]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ni=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},oi="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ai=function(e){return e.type==="comm"&&e.children.indexOf(oi)>-1},Pl=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!t.parent,i=a?t.parent.children:n,s=i.length-1;s>=0;s--){var f=i[s];if(f.line<t.line)break;if(f.column<t.column){if(ai(f))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},In=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ii=function(e,t){for(var r=e-1;r>=0;r--)if(!In(t[r]))return!0;return!1},Dn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Fl=function(e,t,r){In(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Dn(e)):ii(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Dn(e)))};function Pn(e,t){switch(La(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+gt+e+se+e+e;case 6828:case 4268:return L+e+se+e+e;case 6165:return L+e+se+"flex-"+e+e;case 5187:return L+e+V(e,/(\w+).+(:[^]+)/,L+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return L+e+se+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return L+e+se+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+se+V(e,"shrink","negative")+e;case 5292:return L+e+se+V(e,"basis","preferred-size")+e;case 6060:return L+"box-"+V(e,"-grow","")+L+e+se+V(e,"grow","positive")+e;case 4554:return L+V(e,/([^-])(transform)/g,"$1"+L+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+gt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ar(e,"stretch")?Pn(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,xe(e)-3-(~ar(e,"!important")&&10))){case 107:return V(e,":",":"+L)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(ae(e,14)===45?"inline-":"")+"box$3$1"+L+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+se+e+e}return e}var si=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case or:e.return=Pn(e.value,e.length);break;case En:return Ve([Je(e,{value:V(e.value,"@","@"+L)})],n);case nr:if(e.length)return za(e.props,function(o){switch(Va(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([Je(e,{props:[V(o,/:(read-\w+)/,":"+gt+"$1")]})],n);case"::placeholder":return Ve([Je(e,{props:[V(o,/:(plac\w+)/,":"+L+"input-$1")]}),Je(e,{props:[V(o,/:(plac\w+)/,":"+gt+"$1")]}),Je(e,{props:[V(o,/:(plac\w+)/,se+"input-$1")]})],n)}return""})}},ci=[si],li=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var n=e.stylisPlugins||ci,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),d=1;d<y.length;d++)o[y[d]]=!0;i.push(g)});var s,f=[ri,ni];{var c,p=[Za,Qa(function(g){c.insert(g)})],h=Ja(f.concat(n,p)),u=function(g){return Ve(qa(g),h)};s=function(g,y,d,x){c=d,u(g?g+"{"+y.styles+"}":y.styles),x&&(b.inserted[y.name]=!0)}}var b={key:t,sheet:new Ra({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return b.sheet.hydrate(i),b};let cr;typeof document=="object"&&(cr=li({key:"css",prepend:!0}));function ui(e){const{injectFirst:t,children:r}=e;return t&&cr?l.jsx(Zo,{value:cr,children:r}):r}function fi(e){return e==null||Object.keys(e).length===0}function Fn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(fi(o)?r:o):t;return l.jsx(Jo,{styles:n})}function Ln(e,t){return Ho(e,t)}const Vn=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},pi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Fn,StyledEngineProvider:ui,ThemeContext:Br,css:Qo,default:Ln,internal_processStyles:Vn,keyframes:Xo},Symbol.toStringTag,{value:"Module"})),di=Ne(pi);function ke(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zn(e){if(!ke(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zn(e[r])}),t}function ve(e,t,r={clone:!0}){const n=r.clone?C({},e):e;return ke(e)&&ke(t)&&Object.keys(t).forEach(o=>{ke(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ke(e[o])?n[o]=ve(e[o],t[o],r):r.clone?n[o]=ke(t[o])?zn(t[o]):t[o]:n[o]=t[o]}),n}const mi=Object.freeze(Object.defineProperty({__proto__:null,default:ve,isPlainObject:ke},Symbol.toStringTag,{value:"Module"})),hi=Ne(mi);function kt(e){if(typeof e!="string")throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yi=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"})),gi=Ne(yi);var Un={exports:{}},G={},Gn;function bi(){if(Gn)return G;Gn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case r:case o:case n:case c:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case f:case u:case h:case a:return d;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=a,G.Element=e,G.ForwardRef=f,G.Fragment=r,G.Lazy=u,G.Memo=h,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=c,G.SuspenseList=p,G.isAsyncMode=function(){return!1},G.isConcurrentMode=function(){return!1},G.isContextConsumer=function(d){return y(d)===i},G.isContextProvider=function(d){return y(d)===a},G.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},G.isForwardRef=function(d){return y(d)===f},G.isFragment=function(d){return y(d)===r},G.isLazy=function(d){return y(d)===u},G.isMemo=function(d){return y(d)===h},G.isPortal=function(d){return y(d)===t},G.isProfiler=function(d){return y(d)===o},G.isStrictMode=function(d){return y(d)===n},G.isSuspense=function(d){return y(d)===c},G.isSuspenseList=function(d){return y(d)===p},G.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===c||d===p||d===b||typeof d=="object"&&d!==null&&(d.$$typeof===u||d.$$typeof===h||d.$$typeof===a||d.$$typeof===i||d.$$typeof===f||d.$$typeof===g||d.getModuleId!==void 0)},G.typeOf=y,G}var vi={},Wn;function Ll(){return Wn||(Wn=1),vi}Un.exports=bi();var lr=Un.exports;const xi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bn(e){const t=`${e}`.match(xi);return t&&t[1]||""}function Kn(e,t=""){return e.displayName||e.name||Bn(e)||t}function Yn(e,t,r){const n=Kn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function wi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Kn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lr.ForwardRef:return Yn(e,e.render,"ForwardRef");case lr.Memo:return Yn(e,e.type,"memo");default:return}}}const Oi=Object.freeze(Object.defineProperty({__proto__:null,default:wi,getFunctionName:Bn},Symbol.toStringTag,{value:"Module"})),Si=Ne(Oi),ji=["values","unit","step"],ki=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>C({},r,{[n.key]:n.val}),{})};function qn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=me(e,ji),a=ki(t),i=Object.keys(a);function s(u){return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r})`}function f(u){return`@media (max-width:${(typeof t[u]=="number"?t[u]:u)-n/100}${r})`}function c(u,b){const g=i.indexOf(b);return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:b)-n/100}${r})`}function p(u){return i.indexOf(u)+1<i.length?c(u,i[i.indexOf(u)+1]):s(u)}function h(u){const b=i.indexOf(u);return b===0?s(i[1]):b===i.length-1?f(i[b]):c(u,i[i.indexOf(u)+1]).replace("@media","@media not all and")}return C({keys:i,values:a,up:s,down:f,between:c,only:p,not:h,unit:r},o)}const $i={borderRadius:4},Vl={};function et(e,t){return t?ve(e,t,{clone:!1}):e}const ur={xs:0,sm:600,md:900,lg:1200,xl:1536},Hn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ur[e]}px)`};function $e(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Hn;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||Hn;return Object.keys(t).reduce((a,i)=>{if(Object.keys(o.values||ur).indexOf(i)!==-1){const s=o.up(i);a[s]=r(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return r(t)}function Ei(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{}))||{}}function Ti(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function $t(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Et(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=$t(e,r)||n,t&&(o=t(o,n,e)),o}function te(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],f=i.theme,c=$t(f,n)||{};return $e(i,s,p=>{let h=Et(c,o,p);return p===h&&typeof p=="string"&&(h=Et(c,o,`${t}${p==="default"?"":kt(p)}`,p)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function Ci(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ai={m:"margin",p:"padding"},Ni={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_i=Ci(e=>{if(e.length>2)if(Zn[e])e=Zn[e];else return[e];const[t,r]=e.split(""),n=Ai[t],o=Ni[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),fr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],zl=[...fr,...pr];function tt(e,t,r,n){var o;const a=(o=$t(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function Jn(e){return tt(e,"spacing",8,"spacing")}function rt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Mi(e,t){return r=>e.reduce((n,o)=>(n[o]=rt(t,r),n),{})}function Ri(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=_i(r),a=Mi(o,n),i=e[r];return $e(e,i,a)}function Qn(e,t){const r=Jn(e.theme);return Object.keys(e).map(n=>Ri(e,t,n,r)).reduce(et,{})}function Z(e){return Qn(e,fr)}Z.propTypes={},Z.filterProps=fr;function J(e){return Qn(e,pr)}J.propTypes={},J.filterProps=pr;function Ii(e=8){if(e.mui)return e;const t=Jn({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Tt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?et(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ye(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Di=ge("border",ye),Pi=ge("borderTop",ye),Fi=ge("borderRight",ye),Li=ge("borderBottom",ye),Vi=ge("borderLeft",ye),zi=ge("borderColor"),Ui=ge("borderTopColor"),Gi=ge("borderRightColor"),Wi=ge("borderBottomColor"),Bi=ge("borderLeftColor"),Ki=ge("outline",ye),Yi=ge("outlineColor"),Ct=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=tt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:rt(t,n)});return $e(e,e.borderRadius,r)}return null};Ct.propTypes={},Ct.filterProps=["borderRadius"],Tt(Di,Pi,Fi,Li,Vi,zi,Ui,Gi,Wi,Bi,Ct,Ki,Yi);const At=e=>{if(e.gap!==void 0&&e.gap!==null){const t=tt(e.theme,"spacing",8,"gap"),r=n=>({gap:rt(t,n)});return $e(e,e.gap,r)}return null};At.propTypes={},At.filterProps=["gap"];const Nt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=tt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:rt(t,n)});return $e(e,e.columnGap,r)}return null};Nt.propTypes={},Nt.filterProps=["columnGap"];const _t=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=tt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:rt(t,n)});return $e(e,e.rowGap,r)}return null};_t.propTypes={},_t.filterProps=["rowGap"];const qi=te({prop:"gridColumn"}),Hi=te({prop:"gridRow"}),Zi=te({prop:"gridAutoFlow"}),Ji=te({prop:"gridAutoColumns"}),Qi=te({prop:"gridAutoRows"}),Xi=te({prop:"gridTemplateColumns"}),es=te({prop:"gridTemplateRows"}),ts=te({prop:"gridTemplateAreas"}),rs=te({prop:"gridArea"});Tt(At,Nt,_t,qi,Hi,Zi,Ji,Qi,Xi,es,ts,rs);function ze(e,t){return t==="grey"?t:e}const ns=te({prop:"color",themeKey:"palette",transform:ze}),os=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ze}),as=te({prop:"backgroundColor",themeKey:"palette",transform:ze});Tt(ns,os,as);function fe(e){return e<=1&&e!==0?`${e*100}%`:e}const is=te({prop:"width",transform:fe}),dr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ur[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:fe(r)}};return $e(e,e.maxWidth,t)}return null};dr.filterProps=["maxWidth"];const ss=te({prop:"minWidth",transform:fe}),cs=te({prop:"height",transform:fe}),ls=te({prop:"maxHeight",transform:fe}),us=te({prop:"minHeight",transform:fe});te({prop:"size",cssProperty:"width",transform:fe}),te({prop:"size",cssProperty:"height",transform:fe});const fs=te({prop:"boxSizing"});Tt(is,dr,ss,cs,ls,us,fs);const nt={border:{themeKey:"borders",transform:ye},borderTop:{themeKey:"borders",transform:ye},borderRight:{themeKey:"borders",transform:ye},borderBottom:{themeKey:"borders",transform:ye},borderLeft:{themeKey:"borders",transform:ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ct},color:{themeKey:"palette",transform:ze},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ze},backgroundColor:{themeKey:"palette",transform:ze},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:At},rowGap:{style:_t},columnGap:{style:Nt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fe},maxWidth:{style:dr},minWidth:{transform:fe},height:{transform:fe},maxHeight:{transform:fe},minHeight:{transform:fe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ps(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ds(e,t){return typeof e=="function"?e(t):e}function Xn(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:f=r,themeKey:c,transform:p,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const u=$t(o,c)||{};return h?h(i):$e(i,n,b=>{let g=Et(u,p,b);return b===g&&typeof b=="string"&&(g=Et(u,p,`${r}${b==="default"?"":kt(b)}`,b)),f===!1?g:{[f]:g}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nt;function s(f){let c=f;if(typeof f=="function")c=f(a);else if(typeof f!="object")return f;if(!c)return null;const p=Ei(a.breakpoints),h=Object.keys(p);let u=p;return Object.keys(c).forEach(b=>{const g=ds(c[b],a);if(g!=null)if(typeof g=="object")if(i[b])u=et(u,e(b,g,a,i));else{const y=$e({theme:a},g,d=>({[b]:d}));ps(y,g)?u[b]=t({sx:g,theme:a}):u=et(u,y)}else u=et(u,e(b,g,a,i))}),Ti(h,u)}return Array.isArray(o)?o.map(s):s(o)}return t}const ot=Xn();ot.filterProps=["sx"];function eo(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const ms=["breakpoints","palette","spacing","shape"];function at(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=me(e,ms),s=qn(r),f=Ii(o);let c=ve({breakpoints:s,direction:"ltr",components:{},palette:C({mode:"light"},n),spacing:f,shape:C({},$i,a)},i);return c.applyStyles=eo,c=t.reduce((p,h)=>ve(p,h),c),c.unstable_sxConfig=C({},nt,i?.unstable_sxConfig),c.unstable_sx=function(p){return ot({sx:p,theme:this})},c}const hs=Object.freeze(Object.defineProperty({__proto__:null,default:at,private_createBreakpoints:qn,unstable_applyStyles:eo},Symbol.toStringTag,{value:"Module"})),ys=Ne(hs),gs=["sx"],bs=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nt;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function mr(e){const{sx:t}=e,r=me(e,gs),{systemProps:n,otherProps:o}=bs(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return ke(s)?C({},n,s):n}:a=C({},n,t),C({},o,{sx:a})}const vs=Object.freeze(Object.defineProperty({__proto__:null,default:ot,extendSxProp:mr,unstable_createStyleFunctionSx:Xn,unstable_defaultSxConfig:nt},Symbol.toStringTag,{value:"Module"})),xs=Ne(vs);var Ue=pn;Object.defineProperty(He,"__esModule",{value:!0});var ws=He.default=Rs;He.shouldForwardProp=Mt,He.systemDefaultTheme=void 0;var be=Ue(Aa()),hr=Ue(Na()),to=Ts(di),Os=hi,Ul=Ue(gi),Gl=Ue(Si),Ss=Ue(ys),js=Ue(xs);const ks=["ownerState"],$s=["variants"],Es=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ro(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ro=function(n){return n?r:t})(e)}function Ts(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ro(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Cs(e){return Object.keys(e).length===0}function As(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ns=He.systemDefaultTheme=(0,Ss.default)(),_s=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Rt({defaultTheme:e,theme:t,themeId:r}){return Cs(t)?e:t[r]||t}function Ms(e){return e?(t,r)=>r[e]:null}function It(e,t){let{ownerState:r}=t,n=(0,hr.default)(t,ks);const o=typeof e=="function"?e((0,be.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>It(a,(0,be.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=(0,hr.default)(o,$s);return a.forEach(s=>{let f=!0;typeof s.props=="function"?f=s.props((0,be.default)({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(f=!1)}),f&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style((0,be.default)({ownerState:r},n,r)):s.style))}),i}return o}function Rs(e={}){const{themeId:t,defaultTheme:r=Ns,rootShouldForwardProp:n=Mt,slotShouldForwardProp:o=Mt}=e,a=i=>(0,js.default)((0,be.default)({},i,{theme:Rt((0,be.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,to.internal_processStyles)(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:f,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:u=Ms(_s(c))}=s,b=(0,hr.default)(s,Es),g=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,y=h||!1;let d,x=Mt;c==="Root"||c==="root"?x=n:c?x=o:As(i)&&(x=void 0);const S=(0,to.default)(i,(0,be.default)({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||(0,Os.isPlainObject)(m)?k=>It(m,(0,be.default)({},k,{theme:Rt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];f&&u&&B.push(O=>{const E=Rt((0,be.default)({},O,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[f]||!E.components[f].styleOverrides)return null;const z=E.components[f].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=It(K,(0,be.default)({},O,{theme:E}))}),u(O,H)}),f&&!g&&B.push(O=>{var E;const z=Rt((0,be.default)({},O,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[f])==null?void 0:E.variants;return It({variants:H},(0,be.default)({},O,{theme:z}))}),y||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const O=new Array(re).fill("");$=[...m,...O],$.raw=[...m.raw,...O]}const Q=S($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return S.withConfig&&(F.withConfig=S.withConfig),F}}const no=e=>e,Is=()=>{let e=no;return{configure(t){e=t},generate(t){return e(t)},reset(){e=no}}},Ds=Is(),Ps={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 oo(e,t,r="Mui"){const n=Ps[t];return n?`${r}-${n}`:`${Ds.generate(e)}-${t}`}function Fs(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const it={black:"#000",white:"#fff"},Ls={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"},Ge={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"},We={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"},st={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"},Be={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"},Ke={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"},Ye={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"},Vs=["mode","contrastThreshold","tonalOffset"],ao={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:it.white,default:it.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}},yr={text:{primary:it.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:it.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 io(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=hn(e.main,o):t==="dark"&&(e.dark=mn(e.main,a)))}function zs(e="light"){return e==="dark"?{main:Be[200],light:Be[50],dark:Be[400]}:{main:Be[700],light:Be[400],dark:Be[800]}}function Us(e="light"){return e==="dark"?{main:Ge[200],light:Ge[50],dark:Ge[400]}:{main:Ge[500],light:Ge[300],dark:Ge[700]}}function Gs(e="light"){return e==="dark"?{main:We[500],light:We[300],dark:We[700]}:{main:We[700],light:We[400],dark:We[800]}}function Ws(e="light"){return e==="dark"?{main:Ke[400],light:Ke[300],dark:Ke[700]}:{main:Ke[700],light:Ke[500],dark:Ke[900]}}function Bs(e="light"){return e==="dark"?{main:Ye[400],light:Ye[300],dark:Ye[700]}:{main:Ye[800],light:Ye[500],dark:Ye[900]}}function Ks(e="light"){return e==="dark"?{main:st[400],light:st[300],dark:st[700]}:{main:"#ed6c02",light:st[500],dark:st[900]}}function Ys(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=me(e,Vs),a=e.primary||zs(t),i=e.secondary||Us(t),s=e.error||Gs(t),f=e.info||Ws(t),c=e.success||Bs(t),p=e.warning||Ks(t);function h(g){return va(g,yr.text.primary)>=r?yr.text.primary:ao.text.primary}const u=({color:g,name:y,mainShade:d=500,lightShade:x=300,darkShade:S=700})=>{if(g=C({},g),!g.main&&g[d]&&(g.main=g[d]),!g.hasOwnProperty("main"))throw new Error(De(11,y?` (${y})`:"",d));if(typeof g.main!="string")throw new Error(De(12,y?` (${y})`:"",JSON.stringify(g.main)));return io(g,"light",x,n),io(g,"dark",S,n),g.contrastText||(g.contrastText=h(g.main)),g},b={dark:yr,light:ao};return ve(C({common:C({},it),mode:t,primary:u({color:a,name:"primary"}),secondary:u({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:u({color:s,name:"error"}),warning:u({color:p,name:"warning"}),info:u({color:f,name:"info"}),success:u({color:c,name:"success"}),grey:Ls,contrastThreshold:r,getContrastText:h,augmentColor:u,tonalOffset:n},b[t]),o)}const qs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Hs(e){return Math.round(e*1e5)/1e5}const so={textTransform:"uppercase"},co='"Roboto", "Helvetica", "Arial", sans-serif';function Zs(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=co,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:f=700,htmlFontSize:c=16,allVariants:p,pxToRem:h}=r,u=me(r,qs),b=o/14,g=h||(x=>`${x/c*b}rem`),y=(x,S,j,F,m)=>C({fontFamily:n,fontWeight:x,fontSize:g(S),lineHeight:j},n===co?{letterSpacing:`${Hs(F/S)}em`}:{},m,p),d={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,so),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,so),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ve(C({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:f},d),u,{clone:!1})}const Js=.2,Qs=.14,Xs=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Js})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Qs})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Xs})`].join(",")}const ec=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],tc=["duration","easing","delay"],rc={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)"},nc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lo(e){return`${Math.round(e)}ms`}function oc(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ac(e){const t=C({},rc,e.easing),r=C({},nc,e.duration);return C({getAutoHeightDuration:oc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,f=me(o,tc);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:lo(a)} ${i} ${typeof s=="string"?s:lo(s)}`).join(",")}},e,{easing:t,duration:r})}const ic={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},sc=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=me(e,sc);if(e.vars)throw new Error(De(18));const s=Ys(n),f=at(e);let c=ve(f,{mixins:Fs(f.breakpoints,r),palette:s,shadows:ec.slice(),typography:Zs(s,a),transitions:ac(o),zIndex:C({},ic)});return c=ve(c,i),c=t.reduce((p,h)=>ve(p,h),c),c.unstable_sxConfig=C({},nt,i?.unstable_sxConfig),c.unstable_sx=function(p){return ot({sx:p,theme:this})},c}const gr=cc(),br="$$material";function uo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fo=e=>uo(e)&&e!=="classes",po=ws({themeId:br,defaultTheme:gr,rootShouldForwardProp:fo});function lc(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Xt(t.components[r].defaultProps,n)}function uc(e){return Object.keys(e).length===0}function fc(e=null){const t=Ae.useContext(Br);return!t||uc(t)?e:t}const pc=at();function vr(e=pc){return fc(e)}function mo({props:e,name:t,defaultTheme:r,themeId:n}){let o=vr(r);return n&&(o=o[n]||o),lc({theme:o,name:t,props:e})}function ho({props:e,name:t}){return mo({props:e,name:t,defaultTheme:gr,themeId:br})}const dc=["ownerState"],mc=["variants"],hc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yc(e){return Object.keys(e).length===0}function gc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bc=at(),vc=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Dt({defaultTheme:e,theme:t,themeId:r}){return yc(t)?e:t[r]||t}function xc(e){return e?(t,r)=>r[e]:null}function Pt(e,t){let{ownerState:r}=t,n=me(t,dc);const o=typeof e=="function"?e(C({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Pt(a,C({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=me(o,mc);return a.forEach(s=>{let f=!0;typeof s.props=="function"?f=s.props(C({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(f=!1)}),f&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(C({ownerState:r},n,r)):s.style))}),i}return o}function wc(e={}){const{themeId:t,defaultTheme:r=bc,rootShouldForwardProp:n=xr,slotShouldForwardProp:o=xr}=e,a=i=>ot(C({},i,{theme:Dt(C({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Vn(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:f,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:u=xc(vc(c))}=s,b=me(s,hc),g=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,y=h||!1;let d,x=xr;c==="Root"||c==="root"?x=n:c?x=o:gc(i)&&(x=void 0);const S=Ln(i,C({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||ke(m)?k=>Pt(m,C({},k,{theme:Dt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];f&&u&&B.push(O=>{const E=Dt(C({},O,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[f]||!E.components[f].styleOverrides)return null;const z=E.components[f].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Pt(K,C({},O,{theme:E}))}),u(O,H)}),f&&!g&&B.push(O=>{var E;const z=Dt(C({},O,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[f])==null?void 0:E.variants;return Pt({variants:H},C({},O,{theme:z}))}),y||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const O=new Array(re).fill("");$=[...m,...O],$.raw=[...m.raw,...O]}const Q=S($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return S.withConfig&&(F.withConfig=S.withConfig),F}}const Oc=wc();function yo(e,t){var r,n;return Ae.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}const Sc=(e,t)=>e.filter(r=>t.includes(r)),qe=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{r((i,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,s):i[e.up(e.keys[a])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Sc(e.keys,Object.keys(t))).forEach(o=>{if(e.keys.indexOf(o)!==-1){const a=t[o];a!==void 0&&r((i,s)=>{n===o?Object.assign(i,s):i[e.up(o)]=s},a)}}):(typeof t=="number"||typeof t=="string")&&r((o,a)=>{Object.assign(o,a)},t)};function Ee(e){return e?`Level${e}`:""}function ct(e){return e.unstable_level>0&&e.container}function go(e){return function(t){return`var(--Grid-${t}Spacing${Ee(e.unstable_level)})`}}function wr(e){return function(t){return e.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${Ee(e.unstable_level-1)})`}}function Or(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Ee(e.unstable_level-1)})`}const jc=({theme:e,ownerState:t})=>{const r=go(t),n={};return qe(e.breakpoints,t.gridSize,(o,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Or(t)}${ct(t)?` + ${r("column")}`:""})`}),o(n,i)}),n},kc=({theme:e,ownerState:t})=>{const r={};return qe(e.breakpoints,t.gridOffset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Or(t)})`}),n(r,a)}),r},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=ct(t)?{[`--Grid-columns${Ee(t.unstable_level)}`]:Or(t)}:{"--Grid-columns":12};return qe(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${Ee(t.unstable_level)}`]:o})}),r},Ec=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=wr(t),n=ct(t)?{[`--Grid-rowSpacing${Ee(t.unstable_level)}`]:r("row")}:{};return qe(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${Ee(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Tc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=wr(t),n=ct(t)?{[`--Grid-columnSpacing${Ee(t.unstable_level)}`]:r("column")}:{};return qe(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${Ee(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Cc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return qe(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},Ac=({ownerState:e})=>{const t=go(e),r=wr(e);return C({minWidth:0,boxSizing:"border-box"},e.container&&C({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||ct(e))&&C({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Nc=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},_c=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},Mc=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Rc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ic=at(),Dc=Oc("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Pc(e){return mo({props:e,name:"MuiGrid",defaultTheme:Ic})}function Fc(e={}){const{createStyledComponent:t=Dc,useThemeProps:r=Pc,componentName:n="MuiGrid"}=e,o=Ae.createContext(void 0),a=(f,c)=>{const{container:p,direction:h,spacing:u,wrap:b,gridSize:g}=f,y={root:["root",p&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...Mc(h),...Nc(g),...p?_c(u,c.breakpoints.keys[0]):[]]};return un(y,d=>oo(n,d),{})},i=t($c,Tc,Ec,jc,Cc,Ac,kc),s=Ae.forwardRef(function(f,c){var p,h,u,b,g,y,d,x;const S=vr(),j=r(f),F=mr(j),m=Ae.useContext(o),{className:k,children:$,columns:B=12,container:re=!1,component:Q="div",direction:O="row",wrap:E="wrap",spacing:z=0,rowSpacing:H=z,columnSpacing:oe=z,disableEqualOverflow:K,unstable_level:X=0}=F,Ie=me(F,Rc);let Oe=K;X&&K!==void 0&&(Oe=f.disableEqualOverflow);const v={},w={},R={};Object.entries(Ie).forEach(([T,Y])=>{S.breakpoints.values[T]!==void 0?v[T]=Y:S.breakpoints.values[T.replace("Offset","")]!==void 0?w[T.replace("Offset","")]=Y:R[T]=Y});const _=(p=f.columns)!=null?p:X?void 0:B,A=(h=f.spacing)!=null?h:X?void 0:z,I=(u=(b=f.rowSpacing)!=null?b:f.spacing)!=null?u:X?void 0:H,N=(g=(y=f.columnSpacing)!=null?y:f.spacing)!=null?g:X?void 0:oe,M=C({},F,{level:X,columns:_,container:re,direction:O,wrap:E,spacing:A,rowSpacing:I,columnSpacing:N,gridSize:v,gridOffset:w,disableEqualOverflow:(d=(x=Oe)!=null?x:m)!=null?d:!1,parentDisableEqualOverflow:m}),P=a(M,S);let D=l.jsx(i,C({ref:c,as:Q,ownerState:M,className:ln(P.root,k)},R,{children:Ae.Children.map($,T=>{if(Ae.isValidElement(T)&&yo(T,["Grid"])){var Y;return Ae.cloneElement(T,{unstable_level:(Y=T.props.unstable_level)!=null?Y:X+1})}return T})}));return Oe!==void 0&&Oe!==(m??!1)&&(D=l.jsx(o.Provider,{value:Oe,children:D})),D});return s.muiName="Grid",s}function Sr({value:e,children:t}){return e?typeof t=="function"?l.jsx(l.Fragment,{children:t(e)}):l.jsx(l.Fragment,{children:t}):null}const bo={},lt={};function ut(e,t){try{const r=(bo[e]||(bo[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in lt?lt[r]:vo(r,r.split(":"))}catch{if(e in lt)return lt[e];const r=e?.match(Lc);return r?vo(e,r.slice(1)):NaN}}const Lc=/([+-]\d\d):?(\d\d)?/;function vo(e,t){const r=+t[0],n=+(t[1]||0);return lt[e]=r>0?r*60+n:r*60-n}class Te extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ut(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),wo(this),jr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new Te(...r,t):new Te(Date.now(),t)}withTimeZone(t){return new Te(+this,t)}getTimezoneOffset(){return-ut(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),jr(this),+this}[Symbol.for("constructDateFrom")](t){return new Te(+new Date(t),this.timeZone)}}const xo=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!xo.test(e))return;const t=e.replace(xo,"$1UTC");Te.prototype[t]&&(e.startsWith("get")?Te.prototype[e]=function(){return this.internal[t]()}:(Te.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Vc(this),+this},Te.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),jr(this),+this}))});function jr(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Vc(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),wo(e)}function wo(e){const t=ut(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),o=-new Date(+r).getTimezoneOffset(),a=n-o,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=n-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const f=ut(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-f,p=f!==t,h=c-s;if(p&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const u=ut(e.timeZone,e),b=f-u;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}const zc=e=>{let t=new Date(Number(e));if(!e){const a=new Date;t=new Date(a.getFullYear(),a.getMonth(),a.getDate())}const r=String(t.getDate()).padStart(2,"0"),n=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return[n,r,o].join("/")},Uc=(e,t)=>new Date(Number(e)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...t}),ft=Fc({createStyledComponent:po("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>ho({props:e,name:"MuiGrid2"})});function kr(){return{enqueueSnackbar:(e,t="success",r)=>{ra(e,{severity:t,variant:"customAlertComponent",persist:!0,...r})},closeSnackbar:Yr}}const Gc=Po(({id:e,message:t,severity:r,alertAction:n,sx:o,showCloseIcon:a=!0,persist:i,hideIconVariant:s,autoHideDuration:f,anchorOrigin:c,iconVariant:p,...h},u)=>l.jsx(ta,{ref:u,...h,children:l.jsx(_o,{severity:r,action:l.jsxs(Ce,{ml:1,children:[l.jsx(Sr,{value:n,children:l.jsx(Cr,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),l.jsx(Sr,{value:!n&&a,children:l.jsx(Cr,{size:"small",onClick:()=>{Yr(e)},color:"inherit",children:l.jsx(ea,{})})})]}),sx:{alignItems:"center",width:"320px",...o},children:t})}));function Wc({entry:e,payload:t,showUuid:r=!0}){const n=Lt(u=>{var b,g,y;return(y=(g=(b=u.payload)==null?void 0:b.data)==null?void 0:g.reduce)==null?void 0:y.call(g,(d,x)=>d+x.value,0)},[]),o=Lt(u=>{const b=new Kt(n(u)||0),g=t?.reduce((x,S)=>x+n(S),0)||0,y=new Kt(g),d=Number(b.div(y).times(100).toFixed(2,Kt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=Vt(()=>n(e),[e,n]),i=Yt(a),s=Vt(()=>Number(o(e)),[e,o]),f=Yt(s),c=Lt(u=>Math.floor(u).toLocaleString(),[]),p=Ur({type:"text/plain"}),h=kr();return l.jsxs(Gr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Ce,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Se,{children:[l.jsxs(pe,{component:"p",variant:"caption",children:[l.jsx(Se,{component:"span",display:"inline-flex",mr:.5,children:l.jsx(Wr,{from:i??0,to:a,map:c,children:"0"})}),l.jsxs(Se,{component:"span",direction:"row",display:"inline-flex",children:["(",l.jsx(Wr,{from:f??0,to:s,map:c,children:"0"}),"%)"]})]}),l.jsx(pe,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(pe,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&l.jsxs(pe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{p.copy(e.payload.uuid).catch(()=>{}),h.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function Oo(e){const{payload:t}=e;return l.jsx(ft,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(zr,{children:t?.map(r=>l.jsx(ft,{children:l.jsx(Wc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.payload.uuid}-${r.value}`))})})}function So(e){const t=je();return l.jsx(Ce,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(ht,{children:l.jsxs(Mr,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(zt,{vertical:!1}),l.jsx(Ut,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Lr(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Gt,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&l.jsx(Vo,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),l.jsx(Wt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Vr(r,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:r=>-Number(r?.value??0)}),l.jsx(Bt,{content:l.jsx(Oo,{showUuid:e.showUuid})}),e.data.map(r=>Fo(Rr,{uuid:r.uuid,integrationType:r.integrationType,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}function Bc({entry:e,showUuid:t=!0}){const r=Ur({type:"text/plain"}),n=kr();return l.jsxs(Gr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Ce,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Se,{children:[l.jsx(pe,{variant:"body1",children:e.value}),e.integrationType&&l.jsx(pe,{variant:"body2",children:e.integrationType}),t&&e.uuid&&l.jsxs(pe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{e.uuid&&(r.copy(e.uuid).catch(()=>{}),n.enqueueSnackbar("UUID copied to clipboard","success"))},children:[e.uuid.slice(0,5),"..."]})]})]})}function Kc(e){const{payload:t}=e;return l.jsx(ft,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(zr,{children:t?.map(r=>l.jsx(ft,{children:l.jsx(Bc,{entry:r,showUuid:e.showUuid})},`item-${r.uuid}-${r.value}`))})})}const Yc=(e,t)=>{const r=new Map;return e.forEach(n=>{n.chartData.forEach(o=>{const a=new Date(o.date).getTime().toString();if(!r.has(a)){const s={date:a};r.set(a,s)}const i=r.get(a);t.forEach(({key:s})=>{var f;const c=`${n.uuid}_${s}`,p=o[s],h=(f=t.find(b=>b.isTotal))==null?void 0:f.key,u=typeof p=="string"?p.trim()===""?0:parseInt(p,10):typeof p=="number"?p:0;if(i[`${c}_absolute`]=u,s!==h){const b=o[h??""];let g;b===0?g=100:g=b>0?parseFloat(new Fr(u.toString()).div(b).mul(100).toFixed(2,Fr.ROUND_DOWN)):0,i[c]=g}else i[c]=100})})}),Array.from(r.values()).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function jo(e){const t=je(),r=Vt(()=>e.data?Yc(e.data,e.keyValues):[],[e.data,e.keyValues]);return l.jsx(Ce,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(ht,{width:"100%",height:"100%",children:l.jsxs(Mr,{data:r,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(zt,{strokeDasharray:"3 3"}),l.jsx(Ut,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Lr(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Gt,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(0)}%`}),l.jsx(Wt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Vr(n,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:n=>-Number(n?.value??0),formatter:(n,o)=>{const a=typeof n=="number"?n.toFixed(1):n;return[`${o}: ${a}%`]}}),l.jsx(Bt,{content:n=>{var o;const{height:a,width:i,...s}=n,f=r[r.length-1];Object.entries(f).forEach(([p,h])=>{});const c=new Map;return e.data.forEach(p=>{e.keyValues.filter(h=>!h.isTotal&&h.key==="oneClickSuccess").forEach(h=>{const u=`${p.uuid}_${h.key}`;c.set(u,p.uuid),c.set(`${u}_integrationType`,p.integrationType??"")})}),l.jsx(Kc,{...s,payload:(o=n.payload)==null?void 0:o.map(p=>({uuid:c.get(p.dataKey)??"",value:p.value,color:p.color??t.palette.primary.main,integrationType:c.get(`${p.dataKey}_integrationType`),dataKey:p.dataKey}))})}}),e.data.map(n=>e.keyValues.filter(o=>!o.isTotal&&o.key==="oneClickSuccess").map(o=>l.jsx(Rr,{type:"monotone",dataKey:`${n.uuid}_${o.key}`,name:n.name??n.uuid,stroke:n.color??t.palette.primary.main,strokeWidth:2,dot:!1},`${n.uuid}_${o.key}`)))]})})})}function pt(e){const t=Yt(e.value),{ref:r}=na({from:t??0,to:e.value,duration:1,map:e.map});return l.jsx(Ar,{sx:{p:3,flex:1,...e.sx},children:l.jsxs(Se,{spacing:1,alignItems:"center",children:[l.jsx(pe,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),l.jsx(pe,{color:"text.secondary",children:e.label})]})})}const ko={margin:{top:5,right:30,left:20,bottom:5}},qc={tickLine:!1,fontSize:12,tickMargin:12},Hc={textAnchor:"end",tickLine:!1};function Ft({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:f}){const c=je(),p=u=>!u.isFront,h=u=>!!u.isFront;return l.jsx(Ce,{sx:{width:"100%",height:"100%",...f},children:l.jsx(ht,{children:l.jsxs(zo,{data:e,...ko,children:[l.jsx(zt,{strokeDasharray:"3 3",vertical:!1}),l.jsx(Ut,{...qc,...r}),l.jsx(Gt,{...Hc,...n}),l.jsx(Wt,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(p).map((u,b)=>l.jsx(Ir,{...u},u.label??b)),s?.filter(p).map((u,b)=>l.jsx(Dr,{...u},u.label??b)),t.map(u=>l.jsx(Uo,{name:u.key,dataKey:u.dataKey,fill:u.color,stackId:"stack",isAnimationActive:!1,...a},u.key)),i?.filter(h).map((u,b)=>l.jsx(Ir,{...u},u.label??b)),s?.filter(h).map((u,b)=>l.jsx(Dr,{...u},u.label??b))]})})})}const le={ALLOW:{MIN:0,MAX:400,NAME:"Allow",LABEL:"0-400"},FLAG:{MIN:401,MAX:600,NAME:"Flag",LABEL:"401-600"},BLOCK:{MIN:601,MAX:1e3,NAME:"Block",LABEL:"601-1000"}},$o={ERR001:"Generic error code",OCE001:"1-Click error code",OCE002:"Unsupported phone number",OCE003:"Either phone or email is required",OCE004:"User not found",OCE005:"Credential requests are missing",OCE006:"User identifier is missing",OCE007:"Missing mandatory credentials",OCE008:"Invalid/expired verification code",OCE009:"Verification code required",OCE010:"Missing fields to autofill",OCE011:"Additional information required",OCE012:"BirthDate or SSN4 mismatch",OCE013:"No credentials found",OCE014:"1-Click request expired",OCE015:"1-Click not found",OCE016:"Conflict request for phone number",OCE017:"Risk score too high",OCE018:"Maximum code attempts exceeded",OCE019:"Maximum input attempts exceeded"},_e=()=>({regularChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500},smallChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:300}});function $r(e){return l.jsx(pe,{variant:"h6",fontWeight:"900",...e})}function Er(e){return l.jsx(pe,{variant:"h6",fontWeight:"400",...e})}function Me(){const e=_e();return l.jsxs(Se,{sx:e.smallChartWrapper,children:[l.jsx($r,{children:"No data available for the selected period and brands"}),l.jsx(Er,{children:"Please select a different period or brand"})]})}function Re(){const e=_e();return l.jsxs(Se,{sx:e.smallChartWrapper,children:[l.jsx($r,{children:"Loading..."}),l.jsx(Er,{children:"Preparing your chart data"})]})}function Zc({data:e,threshold:t=120,isLoading:r,isFetching:n,isSuccess:o,sx:a}){const i=je(),s=_e(),f=Object.entries(e??{}).map(([p,h])=>({key:p,[p]:h})),c=f.map(({key:p})=>({key:p,dataKey:p,color:i.palette.error.light}));return r?l.jsx(Re,{}):!e||Object.keys(e).length===0||!o?l.jsx(Me,{}):l.jsx(Ft,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:f,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>`${$o[p]?`${$o[p]}`:""}`}})}function Tr(){const e=_e();return l.jsxs(Se,{sx:e.smallChartWrapper,children:[l.jsx($r,{children:"No data available for the selected period and brands"}),l.jsx(Er,{children:"Please change the Risk Signals setting for your brands to enable risk signals metadata"})]})}function Jc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,hasPermissionToDisplay:a=!0,sx:i}){const s=je(),f=_e(),c=Object.entries(e??{}).map(([h,u])=>({key:h,[h]:u})),p=c.map(({key:h})=>({key:h,dataKey:h,color:s.palette.warning.light}));return a?r?l.jsx(Re,{}):!e||Object.keys(e).length===0||!o?l.jsx(Me,{}):l.jsx(Ft,{sx:{...f.smallChartWrapper,opacity:n?.4:1,...i},data:c,series:p,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:h=>"Total"}}):l.jsx(Tr,{})}function Eo({payload:e=[],hiddenItems:t,onToggle:r,legendLabel:n}){return l.jsx(Ce,{sx:{display:"flex",justifyContent:"center",gap:"20px",paddingTop:"20px"},children:e.map((o,a)=>{const i=t.has(o.payload.name);return l.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",opacity:i?.4:1},onClick:()=>{r?.(o.payload)},children:[l.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:o.color,marginRight:"8px",borderRadius:"2px"}}),l.jsx("span",{style:{color:o.color},children:n?`${n}: ${o.value}`:o.value})]},`legend-${a}`)})})}const Qc=e=>{const t=Math.PI/180,{cx:r,cy:n,midAngle:o,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f,fill:c,payload:p,percent:h,value:u,valueText:b,valuePercentage:g,needleVisible:y,customText:d,allActive:x}=e,S=Math.sin(-t*o),j=Math.cos(-t*o),F=r+(i+5)*j,m=n+(i+5)*S,k=r+(i+15)*j,$=n+(i+15)*S,B=k+(j>=0?1:-1)*22,re=$,Q=j>=0?"start":"end",O=u.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),E=()=>y||x?null:l.jsx("text",{x:r,y:n,dy:8,textAnchor:"middle",fill:"#333",fontSize:14,children:p.name});return l.jsxs("g",{children:[E(),l.jsx(Pr,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f,fill:c}),l.jsx(Pr,{cx:r,cy:n,startAngle:s,endAngle:f,innerRadius:i+2,outerRadius:i+6,fill:c}),l.jsx("path",{d:`M${F},${m}L${k},${$}L${B},${re}`,stroke:c,fill:"none"}),l.jsx("circle",{cx:B,cy:re,r:2,fill:c,stroke:"none"}),l.jsx("text",{x:B+(j>=0?1:-1)*12,y:re,textAnchor:Q,fill:"#333",fontSize:12,children:d||(b?`${b} ${O}`:O)}),g&&l.jsxs("text",{x:B+(j>=0?1:-1)*12,y:re,dy:16,textAnchor:Q,fill:"#999",fontSize:11,children:[`${(h*100).toFixed(2)}%`," (",O,")"]})]})},Xc=e=>{const{value:t,data:r,color:n,innerRadius:o,outerRadius:a,boxDimensions:i,legendDimensions:s,valueText:f}=e,c=Math.PI/180;let p=0;r.forEach(E=>{p+=E.value});const h=i?i.width/2:150,u=(i?i.height/2:200)-s.height/2,b=180*(1-Math.max(0,Math.min(1,t/p))),g=(Number(o)+2*Number(a))/3,y=Math.sin(-c*b),d=Math.cos(-c*b),x=5,S=h-x,j=u,F=S+x*y,m=j-x*d,k=S-x*y,$=j+x*d,B=S+g*d,re=j+g*y,Q=t.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),O=f??Q;return l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:S,cy:j,r:x,fill:n,stroke:"none",style:{pointerEvents:"none"}},"needle-circle"),l.jsx("path",{d:`M${F} ${m}L${k} ${$} L${B} ${re} L${F} ${m}`,stroke:"none",fill:n,style:{pointerEvents:"none"}},"needle-path"),l.jsx("text",{x:S+x,y:j+26,textAnchor:"middle",fill:"#333",fontSize:12,children:O},"needle-value")]})},el=(e,t)=>({Allow:t.palette.success.main,Flag:t.palette.warning.main,Block:t.palette.error.main})[e]??t.palette.primary.main;function To({data:e,sx:t,legendLabel:r,legendToggle:n=!1,valueText:o="",valuePercentage:a=!0,pie:i,needleVisible:s=!1,needleValue:f,needleColor:c="#aaa",allActive:p=!1}){const{innerRadius:h=60,outerRadius:u=100}=i??{},b=je(),[g,y]=mt(void 0),[d,x]=mt(new Set),S=Lo(null),[j,F]=mt(null),[m,k]=mt(null),$=(O,E)=>{p||y(E)},B=()=>{p||y(void 0)},re=O=>{n&&O&&x(E=>{const z=new Set(E);return z.has(O.name)?z.delete(O.name):z.size<e.length-1&&z.add(O.name),z})},Q=e.map((O,E)=>({...O,index:E,value:d.has(O.name)?0:O.value}));return _r(()=>{const O=S.current;if(!O)return;const E=new ResizeObserver(H=>{var oe;const K=(oe=H[0])==null?void 0:oe.contentRect;K&&F(K)});E.observe(O);const z=O.getBoundingClientRect();return F(z),()=>{E.disconnect()}},[]),_r(()=>{var O;const E=(O=S.current)==null?void 0:O.querySelector(".recharts-legend-wrapper");if(!E){const oe=setInterval(()=>{var K;const X=(K=S.current)==null?void 0:K.querySelector(".recharts-legend-wrapper");if(X){const Ie=X.getBoundingClientRect();k(Ie),clearInterval(oe)}},100);return()=>{clearInterval(oe)}}const z=new ResizeObserver(oe=>{var K;const X=(K=oe[0])==null?void 0:K.contentRect;X&&k(X)});z.observe(E);const H=E.getBoundingClientRect();return k(H),()=>{z.disconnect()}},[]),l.jsx(Ce,{ref:S,sx:{width:"100%",height:"100%","& g":{outline:"none"},...t},children:l.jsx(ht,{children:l.jsxs(Go,{...ko,children:[l.jsx(Wo,{data:Q,nameKey:"name",dataKey:"value",innerRadius:h,outerRadius:u,activeIndex:p?Q.filter(O=>O.value>0).map(O=>O.index):g,activeShape:O=>Qc({...O,valueText:o,valuePercentage:a,needleVisible:s,allActive:p}),paddingAngle:0,onMouseEnter:$,onMouseLeave:B,...i,children:Q.map(O=>l.jsx(Bo,{fill:O.color??el(O.name,b),opacity:d.has(O.name)?.5:1,stroke:"none"},O.name))}),l.jsx(Bt,{content:l.jsx(Eo,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&f!==void 0&&j&&m&&Xc({data:Q,value:f,color:c,innerRadius:h,outerRadius:u,boxDimensions:j,legendDimensions:m,valueText:o})]})})})}function tl({data:e,score:t=200,legendLabel:r,isLoading:n,isFetching:o,isSuccess:a,hasPermissionToDisplay:i=!0,sx:s}){const f=je(),c=_e();if(!i)return l.jsx(Tr,{});if(n)return l.jsx(Re,{});if(!e||e.length<=0||!a)return l.jsx(Me,{});const p=[{name:le.ALLOW.NAME,customText:le.ALLOW.LABEL,value:e[0].value,color:f.palette.primary.main},{name:le.FLAG.NAME,customText:le.FLAG.LABEL,value:e[1].value,color:f.palette.warning.main},{name:le.BLOCK.NAME,customText:le.BLOCK.LABEL,value:e[2].value,color:f.palette.error.main}];return l.jsx(To,{data:p,legendToggle:!0,needleValue:t,legendLabel:r,allActive:!0,sx:{...c.smallChartWrapper,opacity:o?.4:1,...s}})}function rl({data:e,isLoading:t,isFetching:r,isSuccess:n,hasPermissionToDisplay:o=!0,sx:a}){const i=je(),s=_e(),f=(p=>{const h={};return p.forEach(u=>{Object.entries(u).forEach(([b,g])=>{const y=parseInt(b);y<=1e3&&(h[y]=(h[y]||0)+g)})}),Array.from({length:1001},(u,b)=>({key:b.toString(),value:h[b]||0}))})(e),c=[{key:"Risk Score",dataKey:"value",color:i.palette.error.main}];return o?t?l.jsx(Re,{}):!e||Object.keys(e).length===0||!n?l.jsx(Me,{}):l.jsx(Ft,{data:f,series:c,sx:{...s.smallChartWrapper,opacity:r?.4:1,...a},yAxis:{label:{value:"Count",angle:-90,position:"insideLeft"},domain:[0,"dataMax + 10"]},xAxis:{domain:[0,"dataMax"],interval:"preserveStartEnd"},tooltip:{labelFormatter:()=>"Risk Score",formatter:(p,h,u)=>[p,u.payload.key]},referenceAreas:[{x1:le.ALLOW.MIN,x2:le.ALLOW.MAX,fill:"#ffffff00",isFront:!1,label:le.ALLOW.NAME},{x1:le.FLAG.MIN,x2:le.FLAG.MAX,fill:i.palette.warning.light,isFront:!1,label:le.FLAG.NAME},{x1:le.BLOCK.MIN,fill:i.palette.error.light,isFront:!1,label:le.BLOCK.NAME}]}):l.jsx(Tr,{})}function nl({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o,sx:a}){var i,s;je();const f=_e(),c={oneClickCreated:{key:"oneClickCreated",name:"Started",isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished"}};return t?l.jsx(Re,{}):!e.length||!((s=(i=e[0])==null?void 0:i.chartData)!=null&&s.length)||!n?l.jsx(Me,{}):l.jsx(jo,{data:e,keyValues:Object.values(c),filter:o,sx:{...f.smallChartWrapper,opacity:r?.4:1,...a}})}const ol={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function al({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o}){return t?l.jsx(Re,{}):!e.length||!n?l.jsx(Me,{}):l.jsx(So,{label:"Uniques",data:e,filter:o,sx:{...ol.chartWrapper,opacity:r?.4:1}})}function il(e){const{brands:t,data:r,keyValue:n}=e,o=t.flatMap(({_raw:a})=>{var i;const s=r?.find(c=>c.brandUuid===a.brandUuid),f=(s?.interval??[]).map(c=>({date:+new Date(c.date),value:Number(c[n]||0)})).filter(c=>e.filterOutZeroValues?c.value>0:!0);return{uuid:a.brandUuid,name:a.brandName,integrationType:Kr(a.integrationType),color:((i=a.additionalData)==null?void 0:i.primaryColor)??Ko(a.brandUuid),chartData:f}});return Yo.chain(o).sortBy(a=>a.name).toArray().value()}const sl=({data:e,brands:t})=>e.flatMap(r=>{const n=t.find(o=>o.brandUuid===r.brandUuid);return!n||!r.interval?[]:r.interval.map(o=>({month:o.date,brandUuid:r.brandUuid,brand:n.brandName,integrationType:Kr(n.integrationType),total:o.oneClickCreated,finished:o.oneClickSuccess,totalCost:o.totalCost}))}),cl=({data:e,isLoading:t,showTotalCost:r=!0})=>t?l.jsx(Re,{}):e!=null&&e.length?l.jsx(Mo,{component:Ar,children:l.jsxs(Ro,{children:[l.jsx(Io,{children:l.jsxs(Nr,{children:[l.jsx(de,{children:"Month"}),l.jsx(de,{children:"Brand"}),l.jsx(de,{children:"Integration Type"}),l.jsx(de,{align:"right",children:"Started"}),l.jsx(de,{align:"right",children:"Finished"}),r&&l.jsx(de,{align:"right",children:"Total Cost"})]})}),l.jsx(Do,{children:e.map(n=>l.jsxs(Nr,{children:[l.jsx(de,{children:new Date(n.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:"UTC"})}),l.jsx(de,{children:n.brand}),l.jsx(de,{children:n.integrationType}),l.jsx(de,{align:"right",children:n.total}),l.jsx(de,{align:"right",children:n.finished}),r&&l.jsx(de,{align:"right",children:n.totalCost??"-"})]},`${n.brandUuid}-${n.month}`))})]})}):l.jsx(Me,{});function ll({lastUpdated:e}){return l.jsxs(pe,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",Uc(e??Date.now(),{hour12:!1}),"."]})}const Co=e=>new Intl.NumberFormat("en-US").format(Number(e.toFixed(0))),ul=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),fl=e=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),Ao={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function pl(e){if(!(e!=null&&e.length))return Ao;const t=e.reduce((a,i)=>a+(i.overall.oneClickCreated||0),0),r=e.reduce((a,i)=>a+(i.overall.oneClickSuccess||0),0),n=e.reduce((a,i)=>{const s=i.overall.totalCost?Number(i.overall.totalCost.replace("$","").replace(/,/g,"")):0;return a+s},0),o=r/t;return{totalSignups:t,totalSuccess:r,totalCost:n,successRate:isNaN(o)?0:o}}function dl({chartData:e,isLoading:t=!0,hideTotalCost:r=!1}){const n=t?Ao:pl(e);return l.jsxs(Se,{direction:"row",spacing:3,children:[l.jsx(pt,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:Co}),l.jsx(pt,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:Co}),!r&&l.jsx(pt,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:ul}),l.jsx(pt,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:fl})]})}export{gr as A,pt as B,Gc as C,mn as D,Zc as E,hn as F,Fn as G,De as H,ve as I,yo as J,lr as K,Re as L,cl as M,uo as N,nl as O,To as P,zc as Q,Jc as R,So as S,br as T,ft as U,Sr as W,me as _,Oo as a,jo as b,Ft as c,tl as d,rl as e,Eo as f,al as g,sl as h,Me as i,ll as j,dl as k,pa as l,il as m,C as n,vr as o,oo as p,ln as q,ho as r,po as s,un as t,kr as u,fo as v,kt as w,ba as x,Xt as y,mr as z};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var v5=Object.defineProperty,x5=(t,r,n)=>r in t?v5(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,G=(t,r,n)=>x5(t,typeof r!="symbol"?r+"":r,n);import{j as o}from"./jsx-runtime-DHlBLioN.mjs";import*as v from"react";import A,{Children as y5,isValidElement as k2,cloneElement as g6,forwardRef as j3,createContext as e2,useEffect as D1,useContext as t2,useMemo as i1,useState as p1,useRef as F1,useCallback as R3,useLayoutEffect as K4,createElement as M5,Component as E1,createRef as N3,useImperativeHandle as w5,useReducer as k5,memo as b6,Fragment as U4}from"react";import{Typography as z1,Box as B,Tooltip as j5,IconButton as v6,Stack as n1,Autocomplete as x6,TextField as B1,Radio as S5,Chip as T5,RadioGroup as k7,Dialog as _5,DialogTitle as P5,DialogContent as A5,DialogActions as D5,useTheme as U3,Paper as Q4,Accordion as Z5,AccordionSummary as E5,AccordionDetails as O5,Link as R5,Alert as N5,InputAdornment as j7,Button as X4,Menu as z5,MenuItem as J4,FormControl as e8,InputBase as I5,Popper as F5,FormHelperText as G5,Checkbox as t8,Skeleton as B5,AlertTitle as V5,Backdrop as W5,CircularProgress as Y5}from"@mui/material";import{useForm as n8,FormProvider as r8,useController as Q3,useFormContext as y6,useFieldArray as $5,appendErrors as q5}from"react-hook-form";import{d as j2,b as a8,a as H5,u as K5}from"./useOnClickOutside-DgJxDzLx.mjs";import{o as U5}from"./omitProperty-DZYdN2vK.mjs";import{Code as Q5,Delete as X5,ChevronLeft as J5,Menu as ee,CheckCircle as te,Close as S7,Add as ne,CalendarToday as re,KeyboardArrowDown as ae,Image as oe,LocationOn as ie,Edit as Ce}from"@mui/icons-material";import{useDrag as se,useDrop as le,DndProvider as ce}from"react-dnd";import{HTML5Backend as de}from"react-dnd-html5-backend";import{_ as A1}from"./uuidColor-LRbEKYAZ.mjs";import{l as M6,_ as H,n as k,o as o8,G as ue,p as b1,q as V,s as Y,r as M1,t as w1,v as p3,w as K,x as z3,y as pe,z as he,A as i8,T as C8,D as s8,F as l8,H as c8,I as T7,J as _7,N as fe,Q as me,U as P7,u as Le}from"./SignupBigNumbers-BRtnxvpN.mjs";import{a as d8}from"./usePrevious-DG_IMu2h.mjs";import{g as u8}from"./_baseGetTag-B6tQMIzM.mjs";import{c as p8,s as ge,a as h8,t as f8,_ as be,p as ve}from"./phone-eqP--V9t.mjs";import{useQuery as xe,QueryClient as ye,QueryClientProvider as Me}from"@tanstack/react-query";import{produce as w6}from"immer";import{validateFieldsNatively as we,toNestErrors as ke}from"@hookform/resolvers";import*as Z1 from"zod";import je,{isValidPhoneNumber as Se}from"libphonenumber-js";import{p as Te}from"./phone.schema-XBbyizhq.mjs";import{IMaskInput as m8}from"react-imask";import*as L8 from"react-dom";import n2 from"react-dom";import"qrcode";import"framer-motion";import{masks as g8}from"../utils/masks/index.mjs";import _e from"@mona-health/react-input-mask";import{wrapPromise as A7}from"../utils/wrapPromise/index.mjs";import"tinycolor2";import{keyframes as D7}from"@emotion/react";const _p=M6.oneOfType([M6.func,M6.object]);function Z7(t,r){return()=>null}function Pe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function Ae(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!Pe(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pp=Z7(M6.elementType,Ae);function E7(t,r){typeof t=="function"?t(r):t&&(t.current=r)}function V1(...t){return v.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(n=>{E7(n,r)})},t)}const X3=typeof window<"u"?v.useLayoutEffect:v.useEffect;function k6(t){const r=v.useRef(t);return X3(()=>{r.current=t}),v.useRef((...n)=>(0,r.current)(...n)).current}const b8={};function De(t,r){const n=v.useRef(b8);return n.current===b8&&(n.current=t(r)),n}const Ze=[];function Ee(t){v.useEffect(t,Ze)}class w7{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new w7}start(r,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},r)}}function v8(){const t=De(w7.create).current;return Ee(t.disposeEffect),t}let S2=!0,O7=!1;const Oe=new w7,Re={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 Ne(t){const{type:r,tagName:n}=t;return!!(n==="INPUT"&&Re[r]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function ze(t){t.metaKey||t.altKey||t.ctrlKey||(S2=!0)}function R7(){S2=!1}function Ie(){this.visibilityState==="hidden"&&O7&&(S2=!0)}function Fe(t){t.addEventListener("keydown",ze,!0),t.addEventListener("mousedown",R7,!0),t.addEventListener("pointerdown",R7,!0),t.addEventListener("touchstart",R7,!0),t.addEventListener("visibilitychange",Ie,!0)}function Ge(t){const{target:r}=t;try{return r.matches(":focus-visible")}catch{}return S2||Ne(r)}function Be(){const t=v.useCallback(a=>{a!=null&&Fe(a.ownerDocument)},[]),r=v.useRef(!1);function n(){return r.current?(O7=!0,Oe.start(100,()=>{O7=!1}),r.current=!1,!0):!1}function e(a){return Ge(a)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:e,onBlur:n,ref:t}}function N7(t,r){return N7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},N7(t,r)}function x8(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,N7(t,r)}const y8={disabled:!1};var Ap=null;const T2=A.createContext(null);var Ve=function(t){return t.scrollTop},r2="unmounted",J3="exited",e6="entering",j6="entered",z7="exiting",h3=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=a,s=C&&!C.isMounting?e.enter:e.appear,l;return i.appearStatus=null,e.in?s?(l=J3,i.appearStatus=e6):l=j6:e.unmountOnExit||e.mountOnEnter?l=r2:l=J3,i.state={status:l},i.nextCallback=null,i}r.getDerivedStateFromProps=function(e,a){var i=e.in;return i&&a.status===r2?{status:J3}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var a=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==e6&&i!==j6&&(a=e6):(i===e6||i===j6)&&(a=z7)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,a,i,C;return a=i=C=e,e!=null&&typeof e!="number"&&(a=e.exit,i=e.enter,C=e.appear!==void 0?e.appear:i),{exit:a,enter:i,appear:C}},n.updateStatus=function(e,a){if(e===void 0&&(e=!1),a!==null)if(this.cancelNextCallback(),a===e6){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this);i&&Ve(i)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===J3&&this.setState({status:r2})},n.performEnter=function(e){var a=this,i=this.props.enter,C=this.context?this.context.isMounting:e,s=this.props.nodeRef?[C]:[n2.findDOMNode(this),C],l=s[0],c=s[1],d=this.getTimeouts(),u=C?d.appear:d.enter;if(!e&&!i||y8.disabled){this.safeSetState({status:j6},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:e6},function(){a.props.onEntering(l,c),a.onTransitionEnd(u,function(){a.safeSetState({status:j6},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var e=this,a=this.props.exit,i=this.getTimeouts(),C=this.props.nodeRef?void 0:n2.findDOMNode(this);if(!a||y8.disabled){this.safeSetState({status:J3},function(){e.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:z7},function(){e.props.onExiting(C),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:J3},function(){e.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,a){a=this.setNextCallback(a),this.setState(e,a)},n.setNextCallback=function(e){var a=this,i=!0;return this.nextCallback=function(C){i&&(i=!1,a.nextCallback=null,e(C))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(e,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this),C=e==null&&!this.props.addEndListener;if(!i||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===r2)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var C=H(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(T2.Provider,{value:null},typeof i=="function"?i(e,C):A.cloneElement(A.Children.only(i),C))},r}(A.Component);h3.contextType=T2,h3.propTypes={};function S6(){}h3.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S6,onEntering:S6,onEntered:S6,onExit:S6,onExiting:S6,onExited:S6},h3.UNMOUNTED=r2,h3.EXITED=J3,h3.ENTERING=e6,h3.ENTERED=j6,h3.EXITING=z7;function We(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I7(t,r){var n=function(a){return r&&k2(a)?r(a):a},e=Object.create(null);return t&&y5.map(t,function(a){return a}).forEach(function(a){e[a.key]=n(a)}),e}function Ye(t,r){t=t||{},r=r||{};function n(d){return d in r?r[d]:t[d]}var e=Object.create(null),a=[];for(var i in t)i in r?a.length&&(e[i]=a,a=[]):a.push(i);var C,s={};for(var l in r){if(e[l])for(C=0;C<e[l].length;C++){var c=e[l][C];s[e[l][C]]=n(c)}s[l]=n(l)}for(C=0;C<a.length;C++)s[a[C]]=n(a[C]);return s}function t6(t,r,n){return n[r]!=null?n[r]:t.props[r]}function $e(t,r){return I7(t.children,function(n){return g6(n,{onExited:r.bind(null,n),in:!0,appear:t6(n,"appear",t),enter:t6(n,"enter",t),exit:t6(n,"exit",t)})})}function qe(t,r,n){var e=I7(t.children),a=Ye(r,e);return Object.keys(a).forEach(function(i){var C=a[i];if(k2(C)){var s=i in r,l=i in e,c=r[i],d=k2(c)&&!c.props.in;l&&(!s||d)?a[i]=g6(C,{onExited:n.bind(null,C),in:!0,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}):!l&&s&&!d?a[i]=g6(C,{in:!1}):l&&s&&k2(c)&&(a[i]=g6(C,{onExited:n.bind(null,C),in:c.props.in,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}))}}),a}var He=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},Ke={component:"div",childFactory:function(t){return t}},F7=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=i.handleExited.bind(We(i));return i.state={contextValue:{isMounting:!0},handleExited:C,firstRender:!0},i}var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,a){var i=a.children,C=a.handleExited,s=a.firstRender;return{children:s?$e(e,C):qe(e,i,C),firstRender:!1}},n.handleExited=function(e,a){var i=I7(this.props.children);e.key in i||(e.props.onExited&&e.props.onExited(a),this.mounted&&this.setState(function(C){var s=k({},C.children);return delete s[e.key],{children:s}}))},n.render=function(){var e=this.props,a=e.component,i=e.childFactory,C=H(e,["component","childFactory"]),s=this.state.contextValue,l=He(this.state.children).map(i);return delete C.appear,delete C.enter,delete C.exit,a===null?A.createElement(T2.Provider,{value:s},l):A.createElement(T2.Provider,{value:s},A.createElement(a,C,l))},r}(A.Component);F7.propTypes={},F7.defaultProps=Ke;function Ue({styles:t,themeId:r,defaultTheme:n={}}){const e=o8(n),a=typeof t=="function"?t(r&&e[r]||e):t;return o.jsx(ue,{styles:a})}function v1(t,r,n="Mui"){const e={};return r.forEach(a=>{e[a]=b1(t,a,n)}),e}function Qe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function M8(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;const l=i.type;return typeof l=="function"&&!Qe(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xe=Z7(M6.element,M8);Xe.isRequired=Z7(M6.element.isRequired,M8);const Dp="exact-prop: \u200B";function Zp(t){return t}function Ep(t,r,n,e,a){return null}function w8(...t){return t.reduce((r,n)=>n==null?r:function(...e){r.apply(this,e),n.apply(this,e)},()=>{})}function k8(t,r=166){let n;function e(...a){const i=()=>{t.apply(this,a)};clearTimeout(n),n=setTimeout(i,r)}return e.clear=()=>{clearTimeout(n)},e}function U1(t){return t&&t.ownerDocument||document}function n6(t){return U1(t).defaultView||window}let j8=0;function Je(t){const[r,n]=v.useState(t),e=t||r;return v.useEffect(()=>{r==null&&(j8+=1,n(`mui-${j8}`))},[r]),e}const S8=v.useId;function T8(t){if(S8!==void 0){const r=S8();return t??r}return Je(t)}function _8({controlled:t,default:r,name:n,state:e="value"}){const{current:a}=v.useRef(t!==void 0),[i,C]=v.useState(r),s=a?t:i,l=v.useCallback(c=>{a||C(c)},[]);return[s,l]}function P8(t){const r=t.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}function et(t){const r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":Number.isFinite(t)?t!==Math.floor(t)?"float":"number":"Infinity";case"object":return t===null?"null":t.constructor.name;default:return r}}function tt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const nt=Number.isInteger||tt;function A8(t,r,n,e){const a=t[r];if(a==null||!nt(a)){const i=et(a);return new RangeError(`Invalid ${e} \`${r}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rt(t,r,...n){return t[r]===void 0?null:A8(t,r,...n)}function G7(){return null}rt.isRequired=A8,G7.isRequired=G7;const Op=G7,at=v.createContext(),ot=()=>v.useContext(at)??!1;function it(t){const{className:r,classes:n,pulsate:e=!1,rippleX:a,rippleY:i,rippleSize:C,in:s,onExited:l,timeout:c}=t,[d,u]=v.useState(!1),p=V(r,n.ripple,n.rippleVisible,e&&n.ripplePulsate),h={width:C,height:C,top:-(C/2)+i,left:-(C/2)+a},m=V(n.child,d&&n.childLeaving,e&&n.childPulsate);return!s&&!d&&u(!0),v.useEffect(()=>{if(!s&&l!=null){const L=setTimeout(l,c);return()=>{clearTimeout(L)}}},[l,s,c]),o.jsx("span",{className:p,style:h,children:o.jsx("span",{className:m})})}const n3=v1("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ct=["center","classes","className"];let _2=t=>t,D8,Z8,E8,O8;const B7=550,st=80,lt=D7(D8||(D8=_2`
|
1
|
+
"use strict";var v5=Object.defineProperty,x5=(t,r,n)=>r in t?v5(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,G=(t,r,n)=>x5(t,typeof r!="symbol"?r+"":r,n);import{j as o}from"./jsx-runtime-DHlBLioN.mjs";import*as v from"react";import A,{Children as y5,isValidElement as k2,cloneElement as g6,forwardRef as j3,createContext as e2,useEffect as D1,useContext as t2,useMemo as i1,useState as p1,useRef as F1,useCallback as R3,useLayoutEffect as K4,createElement as M5,Component as E1,createRef as N3,useImperativeHandle as w5,useReducer as k5,memo as b6,Fragment as U4}from"react";import{Typography as z1,Box as B,Tooltip as j5,IconButton as v6,Stack as n1,Autocomplete as x6,TextField as B1,Radio as S5,Chip as T5,RadioGroup as k7,Dialog as _5,DialogTitle as P5,DialogContent as A5,DialogActions as D5,useTheme as U3,Paper as Q4,Accordion as Z5,AccordionSummary as E5,AccordionDetails as O5,Link as R5,Alert as N5,InputAdornment as j7,Button as X4,Menu as z5,MenuItem as J4,FormControl as e8,InputBase as I5,Popper as F5,FormHelperText as G5,Checkbox as t8,Skeleton as B5,AlertTitle as V5,Backdrop as W5,CircularProgress as Y5}from"@mui/material";import{useForm as n8,FormProvider as r8,useController as Q3,useFormContext as y6,useFieldArray as $5,appendErrors as q5}from"react-hook-form";import{d as j2,b as a8,a as H5,u as K5}from"./useOnClickOutside-DgJxDzLx.mjs";import{o as U5}from"./omitProperty-DZYdN2vK.mjs";import{Code as Q5,Delete as X5,ChevronLeft as J5,Menu as ee,CheckCircle as te,Close as S7,Add as ne,CalendarToday as re,KeyboardArrowDown as ae,Image as oe,LocationOn as ie,Edit as Ce}from"@mui/icons-material";import{useDrag as se,useDrop as le,DndProvider as ce}from"react-dnd";import{HTML5Backend as de}from"react-dnd-html5-backend";import{_ as A1}from"./uuidColor-LRbEKYAZ.mjs";import{l as M6,_ as H,n as k,o as o8,G as ue,p as b1,q as V,s as Y,r as M1,t as w1,v as p3,w as K,x as z3,y as pe,z as he,A as i8,T as C8,D as s8,F as l8,H as c8,I as T7,J as _7,N as fe,Q as me,U as P7,u as Le}from"./SignupBigNumbers-DHYEwrnQ.mjs";import{a as d8}from"./usePrevious-DG_IMu2h.mjs";import{g as u8}from"./_baseGetTag-B6tQMIzM.mjs";import{c as p8,s as ge,a as h8,t as f8,_ as be,p as ve}from"./phone-eqP--V9t.mjs";import{useQuery as xe,QueryClient as ye,QueryClientProvider as Me}from"@tanstack/react-query";import{produce as w6}from"immer";import{validateFieldsNatively as we,toNestErrors as ke}from"@hookform/resolvers";import*as Z1 from"zod";import je,{isValidPhoneNumber as Se}from"libphonenumber-js";import{p as Te}from"./phone.schema-XBbyizhq.mjs";import{IMaskInput as m8}from"react-imask";import*as L8 from"react-dom";import n2 from"react-dom";import"qrcode";import"framer-motion";import{masks as g8}from"../utils/masks/index.mjs";import _e from"@mona-health/react-input-mask";import{wrapPromise as A7}from"../utils/wrapPromise/index.mjs";import"tinycolor2";import{keyframes as D7}from"@emotion/react";const _p=M6.oneOfType([M6.func,M6.object]);function Z7(t,r){return()=>null}function Pe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function Ae(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!Pe(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pp=Z7(M6.elementType,Ae);function E7(t,r){typeof t=="function"?t(r):t&&(t.current=r)}function V1(...t){return v.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(n=>{E7(n,r)})},t)}const X3=typeof window<"u"?v.useLayoutEffect:v.useEffect;function k6(t){const r=v.useRef(t);return X3(()=>{r.current=t}),v.useRef((...n)=>(0,r.current)(...n)).current}const b8={};function De(t,r){const n=v.useRef(b8);return n.current===b8&&(n.current=t(r)),n}const Ze=[];function Ee(t){v.useEffect(t,Ze)}class w7{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new w7}start(r,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},r)}}function v8(){const t=De(w7.create).current;return Ee(t.disposeEffect),t}let S2=!0,O7=!1;const Oe=new w7,Re={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 Ne(t){const{type:r,tagName:n}=t;return!!(n==="INPUT"&&Re[r]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function ze(t){t.metaKey||t.altKey||t.ctrlKey||(S2=!0)}function R7(){S2=!1}function Ie(){this.visibilityState==="hidden"&&O7&&(S2=!0)}function Fe(t){t.addEventListener("keydown",ze,!0),t.addEventListener("mousedown",R7,!0),t.addEventListener("pointerdown",R7,!0),t.addEventListener("touchstart",R7,!0),t.addEventListener("visibilitychange",Ie,!0)}function Ge(t){const{target:r}=t;try{return r.matches(":focus-visible")}catch{}return S2||Ne(r)}function Be(){const t=v.useCallback(a=>{a!=null&&Fe(a.ownerDocument)},[]),r=v.useRef(!1);function n(){return r.current?(O7=!0,Oe.start(100,()=>{O7=!1}),r.current=!1,!0):!1}function e(a){return Ge(a)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:e,onBlur:n,ref:t}}function N7(t,r){return N7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},N7(t,r)}function x8(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,N7(t,r)}const y8={disabled:!1};var Ap=null;const T2=A.createContext(null);var Ve=function(t){return t.scrollTop},r2="unmounted",J3="exited",e6="entering",j6="entered",z7="exiting",h3=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=a,s=C&&!C.isMounting?e.enter:e.appear,l;return i.appearStatus=null,e.in?s?(l=J3,i.appearStatus=e6):l=j6:e.unmountOnExit||e.mountOnEnter?l=r2:l=J3,i.state={status:l},i.nextCallback=null,i}r.getDerivedStateFromProps=function(e,a){var i=e.in;return i&&a.status===r2?{status:J3}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var a=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==e6&&i!==j6&&(a=e6):(i===e6||i===j6)&&(a=z7)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,a,i,C;return a=i=C=e,e!=null&&typeof e!="number"&&(a=e.exit,i=e.enter,C=e.appear!==void 0?e.appear:i),{exit:a,enter:i,appear:C}},n.updateStatus=function(e,a){if(e===void 0&&(e=!1),a!==null)if(this.cancelNextCallback(),a===e6){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this);i&&Ve(i)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===J3&&this.setState({status:r2})},n.performEnter=function(e){var a=this,i=this.props.enter,C=this.context?this.context.isMounting:e,s=this.props.nodeRef?[C]:[n2.findDOMNode(this),C],l=s[0],c=s[1],d=this.getTimeouts(),u=C?d.appear:d.enter;if(!e&&!i||y8.disabled){this.safeSetState({status:j6},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:e6},function(){a.props.onEntering(l,c),a.onTransitionEnd(u,function(){a.safeSetState({status:j6},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var e=this,a=this.props.exit,i=this.getTimeouts(),C=this.props.nodeRef?void 0:n2.findDOMNode(this);if(!a||y8.disabled){this.safeSetState({status:J3},function(){e.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:z7},function(){e.props.onExiting(C),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:J3},function(){e.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,a){a=this.setNextCallback(a),this.setState(e,a)},n.setNextCallback=function(e){var a=this,i=!0;return this.nextCallback=function(C){i&&(i=!1,a.nextCallback=null,e(C))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(e,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this),C=e==null&&!this.props.addEndListener;if(!i||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===r2)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var C=H(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(T2.Provider,{value:null},typeof i=="function"?i(e,C):A.cloneElement(A.Children.only(i),C))},r}(A.Component);h3.contextType=T2,h3.propTypes={};function S6(){}h3.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:S6,onEntering:S6,onEntered:S6,onExit:S6,onExiting:S6,onExited:S6},h3.UNMOUNTED=r2,h3.EXITED=J3,h3.ENTERING=e6,h3.ENTERED=j6,h3.EXITING=z7;function We(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I7(t,r){var n=function(a){return r&&k2(a)?r(a):a},e=Object.create(null);return t&&y5.map(t,function(a){return a}).forEach(function(a){e[a.key]=n(a)}),e}function Ye(t,r){t=t||{},r=r||{};function n(d){return d in r?r[d]:t[d]}var e=Object.create(null),a=[];for(var i in t)i in r?a.length&&(e[i]=a,a=[]):a.push(i);var C,s={};for(var l in r){if(e[l])for(C=0;C<e[l].length;C++){var c=e[l][C];s[e[l][C]]=n(c)}s[l]=n(l)}for(C=0;C<a.length;C++)s[a[C]]=n(a[C]);return s}function t6(t,r,n){return n[r]!=null?n[r]:t.props[r]}function $e(t,r){return I7(t.children,function(n){return g6(n,{onExited:r.bind(null,n),in:!0,appear:t6(n,"appear",t),enter:t6(n,"enter",t),exit:t6(n,"exit",t)})})}function qe(t,r,n){var e=I7(t.children),a=Ye(r,e);return Object.keys(a).forEach(function(i){var C=a[i];if(k2(C)){var s=i in r,l=i in e,c=r[i],d=k2(c)&&!c.props.in;l&&(!s||d)?a[i]=g6(C,{onExited:n.bind(null,C),in:!0,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}):!l&&s&&!d?a[i]=g6(C,{in:!1}):l&&s&&k2(c)&&(a[i]=g6(C,{onExited:n.bind(null,C),in:c.props.in,exit:t6(C,"exit",t),enter:t6(C,"enter",t)}))}}),a}var He=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},Ke={component:"div",childFactory:function(t){return t}},F7=function(t){x8(r,t);function r(e,a){var i;i=t.call(this,e,a)||this;var C=i.handleExited.bind(We(i));return i.state={contextValue:{isMounting:!0},handleExited:C,firstRender:!0},i}var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,a){var i=a.children,C=a.handleExited,s=a.firstRender;return{children:s?$e(e,C):qe(e,i,C),firstRender:!1}},n.handleExited=function(e,a){var i=I7(this.props.children);e.key in i||(e.props.onExited&&e.props.onExited(a),this.mounted&&this.setState(function(C){var s=k({},C.children);return delete s[e.key],{children:s}}))},n.render=function(){var e=this.props,a=e.component,i=e.childFactory,C=H(e,["component","childFactory"]),s=this.state.contextValue,l=He(this.state.children).map(i);return delete C.appear,delete C.enter,delete C.exit,a===null?A.createElement(T2.Provider,{value:s},l):A.createElement(T2.Provider,{value:s},A.createElement(a,C,l))},r}(A.Component);F7.propTypes={},F7.defaultProps=Ke;function Ue({styles:t,themeId:r,defaultTheme:n={}}){const e=o8(n),a=typeof t=="function"?t(r&&e[r]||e):t;return o.jsx(ue,{styles:a})}function v1(t,r,n="Mui"){const e={};return r.forEach(a=>{e[a]=b1(t,a,n)}),e}function Qe(t){const{prototype:r={}}=t;return!!r.isReactComponent}function M8(t,r,n,e,a){const i=t[r],C=a||r;if(i==null||typeof window>"u")return null;let s;const l=i.type;return typeof l=="function"&&!Qe(l)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${e} \`${C}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xe=Z7(M6.element,M8);Xe.isRequired=Z7(M6.element.isRequired,M8);const Dp="exact-prop: \u200B";function Zp(t){return t}function Ep(t,r,n,e,a){return null}function w8(...t){return t.reduce((r,n)=>n==null?r:function(...e){r.apply(this,e),n.apply(this,e)},()=>{})}function k8(t,r=166){let n;function e(...a){const i=()=>{t.apply(this,a)};clearTimeout(n),n=setTimeout(i,r)}return e.clear=()=>{clearTimeout(n)},e}function U1(t){return t&&t.ownerDocument||document}function n6(t){return U1(t).defaultView||window}let j8=0;function Je(t){const[r,n]=v.useState(t),e=t||r;return v.useEffect(()=>{r==null&&(j8+=1,n(`mui-${j8}`))},[r]),e}const S8=v.useId;function T8(t){if(S8!==void 0){const r=S8();return t??r}return Je(t)}function _8({controlled:t,default:r,name:n,state:e="value"}){const{current:a}=v.useRef(t!==void 0),[i,C]=v.useState(r),s=a?t:i,l=v.useCallback(c=>{a||C(c)},[]);return[s,l]}function P8(t){const r=t.documentElement.clientWidth;return Math.abs(window.innerWidth-r)}function et(t){const r=typeof t;switch(r){case"number":return Number.isNaN(t)?"NaN":Number.isFinite(t)?t!==Math.floor(t)?"float":"number":"Infinity";case"object":return t===null?"null":t.constructor.name;default:return r}}function tt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}const nt=Number.isInteger||tt;function A8(t,r,n,e){const a=t[r];if(a==null||!nt(a)){const i=et(a);return new RangeError(`Invalid ${e} \`${r}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rt(t,r,...n){return t[r]===void 0?null:A8(t,r,...n)}function G7(){return null}rt.isRequired=A8,G7.isRequired=G7;const Op=G7,at=v.createContext(),ot=()=>v.useContext(at)??!1;function it(t){const{className:r,classes:n,pulsate:e=!1,rippleX:a,rippleY:i,rippleSize:C,in:s,onExited:l,timeout:c}=t,[d,u]=v.useState(!1),p=V(r,n.ripple,n.rippleVisible,e&&n.ripplePulsate),h={width:C,height:C,top:-(C/2)+i,left:-(C/2)+a},m=V(n.child,d&&n.childLeaving,e&&n.childPulsate);return!s&&!d&&u(!0),v.useEffect(()=>{if(!s&&l!=null){const L=setTimeout(l,c);return()=>{clearTimeout(L)}}},[l,s,c]),o.jsx("span",{className:p,style:h,children:o.jsx("span",{className:m})})}const n3=v1("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ct=["center","classes","className"];let _2=t=>t,D8,Z8,E8,O8;const B7=550,st=80,lt=D7(D8||(D8=_2`
|
2
2
|
0% {
|
3
3
|
transform: scale(0);
|
4
4
|
opacity: 0.1;
|
package/package.json
CHANGED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";import{j as l}from"./jsx-runtime-DHlBLioN.mjs";import{Alert as No,Box as Te,IconButton as $r,Stack as Ce,Typography as fe,useTheme as Oe,Paper as Er,TableContainer as _o,Table as Mo,TableHead as Io,TableRow as Tr,TableCell as de,TableBody as Ro}from"@mui/material";import*as Ae from"react";import{forwardRef as Do,useCallback as Lt,useMemo as Vt,createElement as Po,useState as mt,useRef as Fo,useEffect as Cr}from"react";import{ResponsiveContainer as yt,LineChart as Ar,CartesianGrid as zt,XAxis as Ut,YAxis as Gt,Label as Lo,Tooltip as Wt,Legend as Bt,Line as Nr,ComposedChart as Vo,ReferenceLine as _r,ReferenceArea as Mr,Bar as zo,Sector as Ir,PieChart as Uo,Pie as Go,Cell as Wo}from"recharts";import Rr,{Decimal as Kt}from"decimal.js";import{b as Dr,c as Pr,u as Bo,_ as Ko}from"./uuidColor-LRbEKYAZ.mjs";import{AnimatePresence as Fr}from"framer-motion";import{a as Yt,u as Lr}from"./usePrevious-DG_IMu2h.mjs";import"qrcode";import{g as Yo,e as Ne}from"./_baseGetTag-B6tQMIzM.mjs";import{a as Vr,C as zr}from"./motions-BBPeWBPV.mjs";import qo from"@emotion/styled";import{CacheProvider as Ho,Global as Zo,ThemeContext as Ur,css as Jo,keyframes as Qo}from"@emotion/react";import{k as Gr}from"./formatKebabToPretty-Du43TgPC.mjs";import{Close as Xo}from"@mui/icons-material";import{SnackbarContent as ea,closeSnackbar as Wr,enqueueSnackbar as ta}from"notistack";import{u as ra}from"./useCounter-BV32zXDQ.mjs";function me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}var Br={exports:{}},Kr={exports:{}},U={},Yr;function na(){if(Yr)return U;Yr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function j(m){if(typeof m=="object"&&m!==null){var k=m.$$typeof;switch(k){case t:switch(m=m.type,m){case f:case c:case n:case a:case o:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case p:case y:case b:case i:return m;default:return k}}case r:return k}}}function F(m){return j(m)===c}return U.AsyncMode=f,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=p,U.Fragment=n,U.Lazy=y,U.Memo=b,U.Portal=r,U.Profiler=a,U.StrictMode=o,U.Suspense=h,U.isAsyncMode=function(m){return F(m)||j(m)===f},U.isConcurrentMode=F,U.isContextConsumer=function(m){return j(m)===s},U.isContextProvider=function(m){return j(m)===i},U.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},U.isForwardRef=function(m){return j(m)===p},U.isFragment=function(m){return j(m)===n},U.isLazy=function(m){return j(m)===y},U.isMemo=function(m){return j(m)===b},U.isPortal=function(m){return j(m)===r},U.isProfiler=function(m){return j(m)===a},U.isStrictMode=function(m){return j(m)===o},U.isSuspense=function(m){return j(m)===h},U.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===a||m===o||m===h||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===b||m.$$typeof===i||m.$$typeof===s||m.$$typeof===p||m.$$typeof===d||m.$$typeof===x||m.$$typeof===O||m.$$typeof===g)},U.typeOf=j,U}var oa={},qr;function _l(){return qr||(qr=1),oa}var Hr;function aa(){return Hr||(Hr=1,Kr.exports=na()),Kr.exports}var qt,Zr;function ia(){if(Zr)return qt;Zr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var f=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(f.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qt=o()?Object.assign:function(a,i){for(var s,f=n(a),c,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var h in s)t.call(s,h)&&(f[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)r.call(s,c[u])&&(f[c[u]]=s[c[u]])}}return f},qt}var Ht,Jr;function Qr(){if(Jr)return Ht;Jr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ht=e,Ht}var Xr,en;function sa(){return en||(en=1,Xr=Function.call.bind(Object.prototype.hasOwnProperty)),Xr}var Zt,tn;function ca(){if(tn)return Zt;tn=1;var e=function(){};if(0)var t,r,n;function o(a,i,s,f,c){if(0){for(var p in a)if(n(a,p)){var h;try{if(typeof a[p]!="function")var u}catch(y){}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r))var b}}}return o.resetWarningCache=function(){},Zt=o,Zt}var Jt,rn;function Ml(){if(rn)return Jt;rn=1;var e=aa(),t=ia(),r=Qr(),n=sa(),o=ca(),a=function(){};function i(){return null}return Jt=function(s,f){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(v){var w=v&&(c&&v[c]||v[p]);if(typeof w=="function")return w}var u="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:O(),arrayOf:j,element:F(),elementType:m(),instanceOf:k,node:Q(),objectOf:B,oneOf:$,oneOfType:re,shape:E,exact:z};function y(v,w){return v===w?v!==0||1/v===1/w:v!==v&&w!==w}function g(v,w){this.message=v,this.data=w&&typeof w=="object"?w:{},this.stack=""}g.prototype=Error.prototype;function d(v){if(0)var w,I;function _(R,N,M,P,D,T,Y){if(P=P||u,T=T||M,Y!==r){if(f){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(0)var dt}return N[M]==null?R?N[M]===null?new g("The "+D+" `"+T+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+D+" `"+T+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:v(N,M,P,D,T)}var A=_.bind(null,!1);return A.isRequired=_.bind(null,!0),A}function x(v){function w(I,_,A,R,N,M){var P=I[_],D=K(P);if(D!==v){var T=X(P);return new g("Invalid "+R+" `"+N+"` of type "+("`"+T+"` supplied to `"+A+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return d(w)}function O(){return d(i)}function j(v){function w(I,_,A,R,N){if(typeof v!="function")return new g("Property `"+N+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var M=I[_];if(!Array.isArray(M)){var P=K(M);return new g("Invalid "+R+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected an array."))}for(var D=0;D<M.length;D++){var T=v(M,D,A,R,N+"["+D+"]",r);if(T instanceof Error)return T}return null}return d(w)}function F(){function v(w,I,_,A,R){var N=w[I];if(!s(N)){var M=K(N);return new g("Invalid "+A+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return d(v)}function m(){function v(w,I,_,A,R){var N=w[I];if(!e.isValidElementType(N)){var M=K(N);return new g("Invalid "+A+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return d(v)}function k(v){function w(I,_,A,R,N){if(!(I[_]instanceof v)){var M=v.name||u,P=Se(I[_]);return new g("Invalid "+R+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected ")+("instance of `"+M+"`."))}return null}return d(w)}function $(v){if(!Array.isArray(v))return i;function w(I,_,A,R,N){for(var M=I[_],P=0;P<v.length;P++)if(y(M,v[P]))return null;var D=JSON.stringify(v,function(T,Y){var W=X(Y);return W==="symbol"?String(Y):Y});return new g("Invalid "+R+" `"+N+"` of value `"+String(M)+"` "+("supplied to `"+A+"`, expected one of "+D+"."))}return d(w)}function B(v){function w(I,_,A,R,N){if(typeof v!="function")return new g("Property `"+N+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+N+"` of type "+("`"+P+"` supplied to `"+A+"`, expected an object."));for(var D in M)if(n(M,D)){var T=v(M,D,A,R,N+"."+D,r);if(T instanceof Error)return T}return null}return d(w)}function re(v){if(!Array.isArray(v))return i;for(var w=0;w<v.length;w++){var I=v[w];if(typeof I!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(I)+" at index "+w+"."),i}function _(A,R,N,M,P){for(var D=[],T=0;T<v.length;T++){var Y=v[T],W=Y(A,R,N,M,P,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&D.push(W.data.expectedType)}var dt=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new g("Invalid "+M+" `"+P+"` supplied to "+("`"+N+"`"+dt+"."))}return d(_)}function Q(){function v(w,I,_,A,R){return H(w[I])?null:new g("Invalid "+A+" `"+R+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return d(v)}function S(v,w,I,_,A){return new g((v||"React class")+": "+w+" type `"+I+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function E(v){function w(I,_,A,R,N){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+N+"` of type `"+P+"` "+("supplied to `"+A+"`, expected `object`."));for(var D in v){var T=v[D];if(typeof T!="function")return S(A,R,N,D,X(T));var Y=T(M,D,A,R,N+"."+D,r);if(Y)return Y}return null}return d(w)}function z(v){function w(I,_,A,R,N){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+N+"` of type `"+P+"` "+("supplied to `"+A+"`, expected `object`."));var D=t({},I[_],v);for(var T in D){var Y=v[T];if(n(v,T)&&typeof Y!="function")return S(A,R,N,T,X(Y));if(!Y)return new g("Invalid "+R+" `"+N+"` key `"+T+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[_],null," ")+`
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var W=Y(M,T,A,R,N+"."+T,r);if(W)return W}return null}return d(w)}function H(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(H);if(v===null||s(v))return!0;var w=h(v);if(w){var I=w.call(v),_;if(w!==v.entries){for(;!(_=I.next()).done;)if(!H(_.value))return!1}else for(;!(_=I.next()).done;){var A=_.value;if(A&&!H(A[1]))return!1}}else return!1;return!0;default:return!1}}function oe(v,w){return v==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function K(v){var w=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":oe(w,v)?"symbol":w}function X(v){if(typeof v>"u"||v===null)return""+v;var w=K(v);if(w==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return w}function Ie(v){var w=X(v);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function Se(v){return!v.constructor||!v.constructor.name?u:v.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Jt}var Qt,nn;function la(){if(nn)return Qt;nn=1;var e=Qr();function t(){}function r(){}return r.resetWarningCache=t,Qt=function(){function n(i,s,f,c,p,h){if(h!==e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Qt}if(0)var Il,Rl;else Br.exports=la()();var ua=Br.exports;const pa=Yo(ua);function on(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=on(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function an(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=on(e))&&(n&&(n+=" "),n+=t);return n}function Xt(e,t){const r=C({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=C({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=C({},a),Object.keys(o).forEach(i=>{r[n][i]=Xt(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function sn(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}var ee={},cn={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(cn);var ln=cn.exports;function De(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const fa=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"})),da=Ne(fa);function ma(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ya=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ha=Ne(ya);var un=ln;Object.defineProperty(ee,"__esModule",{value:!0});var ga=ee.alpha=gn;ee.blend=Ta,ee.colorChannel=void 0;var pn=ee.darken=tr;ee.decomposeColor=ye,ee.emphasize=bn;var ba=ee.getContrastRatio=Oa;ee.getLuminance=ht,ee.hexToRgb=mn,ee.hslToRgb=hn;var fn=ee.lighten=rr;ee.private_safeAlpha=ja,ee.private_safeColorChannel=void 0,ee.private_safeDarken=ka,ee.private_safeEmphasize=Ea,ee.private_safeLighten=$a,ee.recomposeColor=Pe,ee.rgbToHex=Sa;var dn=un(da),va=un(ha);function er(e,t=0,r=1){return(0,va.default)(e,t,r)}function mn(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xa(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ye(e){if(e.type)return e;if(e.charAt(0)==="#")return ye(mn(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,dn.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,dn.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const yn=e=>{const t=ye(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ee.colorChannel=yn;const wa=(e,t)=>{try{return yn(e)}catch{return e}};ee.private_safeColorChannel=wa;function Pe(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Sa(e){if(e.indexOf("#")===0)return e;const{values:t}=ye(e);return`#${t.map((r,n)=>xa(n===3?Math.round(255*r):r)).join("")}`}function hn(e){e=ye(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(c,p=(c+r/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let s="rgb";const f=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",f.push(t[3])),Pe({type:s,values:f})}function ht(e){e=ye(e);let t=e.type==="hsl"||e.type==="hsla"?ye(hn(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Oa(e,t){const r=ht(e),n=ht(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function gn(e,t){return e=ye(e),t=er(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pe(e)}function ja(e,t,r){try{return gn(e,t)}catch{return e}}function tr(e,t){if(e=ye(e),t=er(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Pe(e)}function ka(e,t,r){try{return tr(e,t)}catch{return e}}function rr(e,t){if(e=ye(e),t=er(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Pe(e)}function $a(e,t,r){try{return rr(e,t)}catch{return e}}function bn(e,t=.15){return ht(e)>.5?tr(e,t):rr(e,t)}function Ea(e,t,r){try{return bn(e,t)}catch{return e}}function Ta(e,t,r,n=1){const o=(f,c)=>Math.round((f**(1/n)*(1-r)+c**(1/n)*r)**n),a=ye(e),i=ye(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Pe({type:"rgb",values:s})}var He={},vn={exports:{}},xn;function Ca(){return xn||(xn=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(vn)),vn.exports}var wn={exports:{}},Sn;function Aa(){return Sn||(Sn=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wn)),wn.exports}function Na(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function _a(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ma=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_a(this));var n=this.tags[this.tags.length-1];if(0)var o;if(this.isSpeedy){var a=Na(n);try{a.insertRule(r,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),se="-ms-",gt="-moz-",L="-webkit-",On="comm",nr="rule",or="decl",Ia="@import",jn="@keyframes",Ra="@layer",Da=Math.abs,bt=String.fromCharCode,Pa=Object.assign;function Fa(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function kn(e){return e.trim()}function La(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function ar(e,t){return e.indexOf(t)}function ae(e,t){return e.charCodeAt(t)|0}function Ze(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function ir(e){return e.length}function vt(e,t){return t.push(e),e}function Va(e,t){return e.map(t).join("")}var xt=1,Fe=1,$n=0,ce=0,ne=0,Le="";function wt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:xt,column:Fe,length:i,return:""}}function Je(e,t){return Pa(wt("",null,null,"",null,null,0),e,{length:-e.length},t)}function za(){return ne}function Ua(){return ne=ce>0?ae(Le,--ce):0,Fe--,ne===10&&(Fe=1,xt--),ne}function ue(){return ne=ce<$n?ae(Le,ce++):0,Fe++,ne===10&&(Fe=1,xt++),ne}function we(){return ae(Le,ce)}function St(){return ce}function Qe(e,t){return Ze(Le,e,t)}function Xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function En(e){return xt=Fe=1,$n=xe(Le=e),ce=0,[]}function Tn(e){return Le="",e}function Ot(e){return kn(Qe(ce-1,sr(e===91?e+2:e===40?e+1:e)))}function Ga(e){for(;(ne=we())&&ne<33;)ue();return Xe(e)>2||Xe(ne)>3?"":" "}function Wa(e,t){for(;--t&&ue()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Qe(e,St()+(t<6&&we()==32&&ue()==32))}function sr(e){for(;ue();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&sr(ne);break;case 40:e===41&&sr(e);break;case 92:ue();break}return ce}function Ba(e,t){for(;ue()&&e+ne!==57&&!(e+ne===84&&we()===47););return"/*"+Qe(t,ce-1)+"*"+bt(e===47?e:ue())}function Ka(e){for(;!Xe(we());)ue();return Qe(e,ce)}function Ya(e){return Tn(jt("",null,null,null,[""],e=En(e),0,[0],e))}function jt(e,t,r,n,o,a,i,s,f){for(var c=0,p=0,h=i,u=0,b=0,y=0,g=1,d=1,x=1,O=0,j="",F=o,m=a,k=n,$=j;d;)switch(y=O,O=ue()){case 40:if(y!=108&&ae($,h-1)==58){ar($+=V(Ot(O),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=Ot(O);break;case 9:case 10:case 13:case 32:$+=Ga(y);break;case 92:$+=Wa(St()-1,7);continue;case 47:switch(we()){case 42:case 47:vt(qa(Ba(ue(),St()),t,r),f);break;default:$+="/"}break;case 123*g:s[c++]=xe($)*x;case 125*g:case 59:case 0:switch(O){case 0:case 125:d=0;case 59+p:x==-1&&($=V($,/\f/g,"")),b>0&&xe($)-h&&vt(b>32?An($+";",n,r,h-1):An(V($," ","")+";",n,r,h-2),f);break;case 59:$+=";";default:if(vt(k=Cn($,t,r,c,p,o,s,j,F=[],m=[],h),a),O===123)if(p===0)jt($,t,k,k,F,a,h,s,m);else switch(u===99&&ae($,3)===110?100:u){case 100:case 108:case 109:case 115:jt(e,k,k,n&&vt(Cn(e,k,k,0,0,o,s,j,o,F=[],h),m),o,m,h,s,n?F:m);break;default:jt($,k,k,k,[""],m,0,s,m)}}c=p=b=0,g=x=1,j=$="",h=i;break;case 58:h=1+xe($),b=y;default:if(g<1){if(O==123)--g;else if(O==125&&g++==0&&Ua()==125)continue}switch($+=bt(O),O*g){case 38:x=p>0?1:($+="\f",-1);break;case 44:s[c++]=(xe($)-1)*x,x=1;break;case 64:we()===45&&($+=Ot(ue())),u=we(),p=h=xe(j=$+=Ka(St())),O++;break;case 45:y===45&&xe($)==2&&(g=0)}}return a}function Cn(e,t,r,n,o,a,i,s,f,c,p){for(var h=o-1,u=o===0?a:[""],b=ir(u),y=0,g=0,d=0;y<n;++y)for(var x=0,O=Ze(e,h+1,h=Da(g=i[y])),j=e;x<b;++x)(j=kn(g>0?u[x]+" "+O:V(O,/&\f/g,u[x])))&&(f[d++]=j);return wt(e,t,r,o===0?nr:s,f,c,p)}function qa(e,t,r){return wt(e,t,r,On,bt(za()),Ze(e,2,-2),0)}function An(e,t,r,n){return wt(e,t,r,or,Ze(e,0,n),Ze(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=ir(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ha(e,t,r,n){switch(e.type){case Ra:if(e.children.length)break;case Ia:case or:return e.return=e.return||e.value;case On:return"";case jn:return e.return=e.value+"{"+Ve(e.children,n)+"}";case nr:e.value=e.props.join(",")}return xe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Za(e){var t=ir(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function Ja(e){return function(t){t.root||(t=t.return)&&e(t)}}var Qa=function(e,t,r){for(var n=0,o=0;n=o,o=we(),n===38&&o===12&&(t[r]=1),!Xe(o);)ue();return Qe(e,ce)},Xa=function(e,t){var r=-1,n=44;do switch(Xe(n)){case 0:n===38&&we()===12&&(t[r]=1),e[r]+=Qa(ce-1,t,r);break;case 2:e[r]+=Ot(n);break;case 4:if(n===44){e[++r]=we()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=bt(n)}while(n=ue());return e},ei=function(e,t){return Tn(Xa(En(e),t))},Nn=new WeakMap,ti=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Nn.get(r))&&!n){Nn.set(e,!0);for(var o=[],a=ei(t,o),i=r.props,s=0,f=0;s<a.length;s++)for(var c=0;c<i.length;c++,f++)e.props[f]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ri=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},ni="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",oi=function(e){return e.type==="comm"&&e.children.indexOf(ni)>-1},Dl=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!t.parent,i=a?t.parent.children:n,s=i.length-1;s>=0;s--){var f=i[s];if(f.line<t.line)break;if(f.column<t.column){if(oi(f))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},_n=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ai=function(e,t){for(var r=e-1;r>=0;r--)if(!_n(t[r]))return!0;return!1},Mn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Pl=function(e,t,r){_n(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Mn(e)):ai(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Mn(e)))};function In(e,t){switch(Fa(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+gt+e+se+e+e;case 6828:case 4268:return L+e+se+e+e;case 6165:return L+e+se+"flex-"+e+e;case 5187:return L+e+V(e,/(\w+).+(:[^]+)/,L+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return L+e+se+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return L+e+se+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+se+V(e,"shrink","negative")+e;case 5292:return L+e+se+V(e,"basis","preferred-size")+e;case 6060:return L+"box-"+V(e,"-grow","")+L+e+se+V(e,"grow","positive")+e;case 4554:return L+V(e,/([^-])(transform)/g,"$1"+L+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+gt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ar(e,"stretch")?In(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,xe(e)-3-(~ar(e,"!important")&&10))){case 107:return V(e,":",":"+L)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(ae(e,14)===45?"inline-":"")+"box$3$1"+L+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+se+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+se+e+e}return e}var ii=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case or:e.return=In(e.value,e.length);break;case jn:return Ve([Je(e,{value:V(e.value,"@","@"+L)})],n);case nr:if(e.length)return Va(e.props,function(o){switch(La(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([Je(e,{props:[V(o,/:(read-\w+)/,":"+gt+"$1")]})],n);case"::placeholder":return Ve([Je(e,{props:[V(o,/:(plac\w+)/,":"+L+"input-$1")]}),Je(e,{props:[V(o,/:(plac\w+)/,":"+gt+"$1")]}),Je(e,{props:[V(o,/:(plac\w+)/,se+"input-$1")]})],n)}return""})}},si=[ii],ci=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||si,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),d=1;d<g.length;d++)o[g[d]]=!0;i.push(y)});var s,f=[ti,ri];{var c,p=[Ha,Ja(function(y){c.insert(y)})],h=Za(f.concat(n,p)),u=function(y){return Ve(Ya(y),h)};s=function(y,g,d,x){c=d,u(y?y+"{"+g.styles+"}":g.styles),x&&(b.inserted[g.name]=!0)}}var b={key:t,sheet:new Ma({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return b.sheet.hydrate(i),b};let cr;typeof document=="object"&&(cr=ci({key:"css",prepend:!0}));function li(e){const{injectFirst:t,children:r}=e;return t&&cr?l.jsx(Ho,{value:cr,children:r}):r}function ui(e){return e==null||Object.keys(e).length===0}function Rn(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(ui(o)?r:o):t;return l.jsx(Zo,{styles:n})}function Dn(e,t){return qo(e,t)}const Pn=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},pi=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Rn,StyledEngineProvider:li,ThemeContext:Ur,css:Jo,default:Dn,internal_processStyles:Pn,keyframes:Qo},Symbol.toStringTag,{value:"Module"})),fi=Ne(pi);function je(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fn(e){if(!je(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Fn(e[r])}),t}function ve(e,t,r={clone:!0}){const n=r.clone?C({},e):e;return je(e)&&je(t)&&Object.keys(t).forEach(o=>{je(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&je(e[o])?n[o]=ve(e[o],t[o],r):r.clone?n[o]=je(t[o])?Fn(t[o]):t[o]:n[o]=t[o]}),n}const di=Object.freeze(Object.defineProperty({__proto__:null,default:ve,isPlainObject:je},Symbol.toStringTag,{value:"Module"})),mi=Ne(di);function kt(e){if(typeof e!="string")throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yi=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"})),hi=Ne(yi);var Ln={exports:{}},G={},Vn;function gi(){if(Vn)return G;Vn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function g(d){if(typeof d=="object"&&d!==null){var x=d.$$typeof;switch(x){case e:switch(d=d.type,d){case r:case o:case n:case c:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case f:case u:case h:case a:return d;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=a,G.Element=e,G.ForwardRef=f,G.Fragment=r,G.Lazy=u,G.Memo=h,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=c,G.SuspenseList=p,G.isAsyncMode=function(){return!1},G.isConcurrentMode=function(){return!1},G.isContextConsumer=function(d){return g(d)===i},G.isContextProvider=function(d){return g(d)===a},G.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},G.isForwardRef=function(d){return g(d)===f},G.isFragment=function(d){return g(d)===r},G.isLazy=function(d){return g(d)===u},G.isMemo=function(d){return g(d)===h},G.isPortal=function(d){return g(d)===t},G.isProfiler=function(d){return g(d)===o},G.isStrictMode=function(d){return g(d)===n},G.isSuspense=function(d){return g(d)===c},G.isSuspenseList=function(d){return g(d)===p},G.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===c||d===p||d===b||typeof d=="object"&&d!==null&&(d.$$typeof===u||d.$$typeof===h||d.$$typeof===a||d.$$typeof===i||d.$$typeof===f||d.$$typeof===y||d.getModuleId!==void 0)},G.typeOf=g,G}var bi={},zn;function Fl(){return zn||(zn=1),bi}Ln.exports=gi();var lr=Ln.exports;const vi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Un(e){const t=`${e}`.match(vi);return t&&t[1]||""}function Gn(e,t=""){return e.displayName||e.name||Un(e)||t}function Wn(e,t,r){const n=Gn(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function xi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Gn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lr.ForwardRef:return Wn(e,e.render,"ForwardRef");case lr.Memo:return Wn(e,e.type,"memo");default:return}}}const wi=Object.freeze(Object.defineProperty({__proto__:null,default:xi,getFunctionName:Un},Symbol.toStringTag,{value:"Module"})),Si=Ne(wi),Oi=["values","unit","step"],ji=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>C({},r,{[n.key]:n.val}),{})};function Bn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=me(e,Oi),a=ji(t),i=Object.keys(a);function s(u){return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r})`}function f(u){return`@media (max-width:${(typeof t[u]=="number"?t[u]:u)-n/100}${r})`}function c(u,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[u]=="number"?t[u]:u}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function p(u){return i.indexOf(u)+1<i.length?c(u,i[i.indexOf(u)+1]):s(u)}function h(u){const b=i.indexOf(u);return b===0?s(i[1]):b===i.length-1?f(i[b]):c(u,i[i.indexOf(u)+1]).replace("@media","@media not all and")}return C({keys:i,values:a,up:s,down:f,between:c,only:p,not:h,unit:r},o)}const ki={borderRadius:4},Ll={};function et(e,t){return t?ve(e,t,{clone:!1}):e}const ur={xs:0,sm:600,md:900,lg:1200,xl:1536},Kn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ur[e]}px)`};function ke(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Kn;return t.reduce((a,i,s)=>(a[o.up(o.keys[s])]=r(t[s]),a),{})}if(typeof t=="object"){const o=n.breakpoints||Kn;return Object.keys(t).reduce((a,i)=>{if(Object.keys(o.values||ur).indexOf(i)!==-1){const s=o.up(i);a[s]=r(t[i],i)}else{const s=i;a[s]=t[s]}return a},{})}return r(t)}function $i(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{}))||{}}function Ei(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function $t(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Et(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=$t(e,r)||n,t&&(o=t(o,n,e)),o}function te(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],f=i.theme,c=$t(f,n)||{};return ke(i,s,p=>{let h=Et(c,o,p);return p===h&&typeof p=="string"&&(h=Et(c,o,`${t}${p==="default"?"":kt(p)}`,p)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function Ti(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ci={m:"margin",p:"padding"},Ai={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ni=Ti(e=>{if(e.length>2)if(Yn[e])e=Yn[e];else return[e];const[t,r]=e.split(""),n=Ci[t],o=Ai[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),pr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vl=[...pr,...fr];function tt(e,t,r,n){var o;const a=(o=$t(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function qn(e){return tt(e,"spacing",8,"spacing")}function rt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function _i(e,t){return r=>e.reduce((n,o)=>(n[o]=rt(t,r),n),{})}function Mi(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ni(r),a=_i(o,n),i=e[r];return ke(e,i,a)}function Hn(e,t){const r=qn(e.theme);return Object.keys(e).map(n=>Mi(e,t,n,r)).reduce(et,{})}function Z(e){return Hn(e,pr)}Z.propTypes={},Z.filterProps=pr;function J(e){return Hn(e,fr)}J.propTypes={},J.filterProps=fr;function Ii(e=8){if(e.mui)return e;const t=qn({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function Tt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?et(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function he(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Ri=ge("border",he),Di=ge("borderTop",he),Pi=ge("borderRight",he),Fi=ge("borderBottom",he),Li=ge("borderLeft",he),Vi=ge("borderColor"),zi=ge("borderTopColor"),Ui=ge("borderRightColor"),Gi=ge("borderBottomColor"),Wi=ge("borderLeftColor"),Bi=ge("outline",he),Ki=ge("outlineColor"),Ct=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=tt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:rt(t,n)});return ke(e,e.borderRadius,r)}return null};Ct.propTypes={},Ct.filterProps=["borderRadius"],Tt(Ri,Di,Pi,Fi,Li,Vi,zi,Ui,Gi,Wi,Ct,Bi,Ki);const At=e=>{if(e.gap!==void 0&&e.gap!==null){const t=tt(e.theme,"spacing",8,"gap"),r=n=>({gap:rt(t,n)});return ke(e,e.gap,r)}return null};At.propTypes={},At.filterProps=["gap"];const Nt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=tt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:rt(t,n)});return ke(e,e.columnGap,r)}return null};Nt.propTypes={},Nt.filterProps=["columnGap"];const _t=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=tt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:rt(t,n)});return ke(e,e.rowGap,r)}return null};_t.propTypes={},_t.filterProps=["rowGap"];const Yi=te({prop:"gridColumn"}),qi=te({prop:"gridRow"}),Hi=te({prop:"gridAutoFlow"}),Zi=te({prop:"gridAutoColumns"}),Ji=te({prop:"gridAutoRows"}),Qi=te({prop:"gridTemplateColumns"}),Xi=te({prop:"gridTemplateRows"}),es=te({prop:"gridTemplateAreas"}),ts=te({prop:"gridArea"});Tt(At,Nt,_t,Yi,qi,Hi,Zi,Ji,Qi,Xi,es,ts);function ze(e,t){return t==="grey"?t:e}const rs=te({prop:"color",themeKey:"palette",transform:ze}),ns=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ze}),os=te({prop:"backgroundColor",themeKey:"palette",transform:ze});Tt(rs,ns,os);function pe(e){return e<=1&&e!==0?`${e*100}%`:e}const as=te({prop:"width",transform:pe}),dr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ur[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pe(r)}};return ke(e,e.maxWidth,t)}return null};dr.filterProps=["maxWidth"];const is=te({prop:"minWidth",transform:pe}),ss=te({prop:"height",transform:pe}),cs=te({prop:"maxHeight",transform:pe}),ls=te({prop:"minHeight",transform:pe});te({prop:"size",cssProperty:"width",transform:pe}),te({prop:"size",cssProperty:"height",transform:pe});const us=te({prop:"boxSizing"});Tt(as,dr,is,ss,cs,ls,us);const nt={border:{themeKey:"borders",transform:he},borderTop:{themeKey:"borders",transform:he},borderRight:{themeKey:"borders",transform:he},borderBottom:{themeKey:"borders",transform:he},borderLeft:{themeKey:"borders",transform:he},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:he},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ct},color:{themeKey:"palette",transform:ze},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ze},backgroundColor:{themeKey:"palette",transform:ze},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:At},rowGap:{style:_t},columnGap:{style:Nt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pe},maxWidth:{style:dr},minWidth:{transform:pe},height:{transform:pe},maxHeight:{transform:pe},minHeight:{transform:pe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ps(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function fs(e,t){return typeof e=="function"?e(t):e}function Zn(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:f=r,themeKey:c,transform:p,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const u=$t(o,c)||{};return h?h(i):ke(i,n,b=>{let y=Et(u,p,b);return b===y&&typeof b=="string"&&(y=Et(u,p,`${r}${b==="default"?"":kt(b)}`,b)),f===!1?y:{[f]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nt;function s(f){let c=f;if(typeof f=="function")c=f(a);else if(typeof f!="object")return f;if(!c)return null;const p=$i(a.breakpoints),h=Object.keys(p);let u=p;return Object.keys(c).forEach(b=>{const y=fs(c[b],a);if(y!=null)if(typeof y=="object")if(i[b])u=et(u,e(b,y,a,i));else{const g=ke({theme:a},y,d=>({[b]:d}));ps(g,y)?u[b]=t({sx:y,theme:a}):u=et(u,g)}else u=et(u,e(b,y,a,i))}),Ei(h,u)}return Array.isArray(o)?o.map(s):s(o)}return t}const ot=Zn();ot.filterProps=["sx"];function Jn(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const ds=["breakpoints","palette","spacing","shape"];function at(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=me(e,ds),s=Bn(r),f=Ii(o);let c=ve({breakpoints:s,direction:"ltr",components:{},palette:C({mode:"light"},n),spacing:f,shape:C({},ki,a)},i);return c.applyStyles=Jn,c=t.reduce((p,h)=>ve(p,h),c),c.unstable_sxConfig=C({},nt,i?.unstable_sxConfig),c.unstable_sx=function(p){return ot({sx:p,theme:this})},c}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:at,private_createBreakpoints:Bn,unstable_applyStyles:Jn},Symbol.toStringTag,{value:"Module"})),ys=Ne(ms),hs=["sx"],gs=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nt;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function mr(e){const{sx:t}=e,r=me(e,hs),{systemProps:n,otherProps:o}=gs(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return je(s)?C({},n,s):n}:a=C({},n,t),C({},o,{sx:a})}const bs=Object.freeze(Object.defineProperty({__proto__:null,default:ot,extendSxProp:mr,unstable_createStyleFunctionSx:Zn,unstable_defaultSxConfig:nt},Symbol.toStringTag,{value:"Module"})),vs=Ne(bs);var Ue=ln;Object.defineProperty(He,"__esModule",{value:!0});var xs=He.default=Ms;He.shouldForwardProp=Mt,He.systemDefaultTheme=void 0;var be=Ue(Ca()),yr=Ue(Aa()),Qn=Es(fi),ws=mi,zl=Ue(hi),Ul=Ue(Si),Ss=Ue(ys),Os=Ue(vs);const js=["ownerState"],ks=["variants"],$s=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xn(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Xn=function(n){return n?r:t})(e)}function Es(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Xn(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Ts(e){return Object.keys(e).length===0}function Cs(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const As=He.systemDefaultTheme=(0,Ss.default)(),Ns=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function It({defaultTheme:e,theme:t,themeId:r}){return Ts(t)?e:t[r]||t}function _s(e){return e?(t,r)=>r[e]:null}function Rt(e,t){let{ownerState:r}=t,n=(0,yr.default)(t,js);const o=typeof e=="function"?e((0,be.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Rt(a,(0,be.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=(0,yr.default)(o,ks);return a.forEach(s=>{let f=!0;typeof s.props=="function"?f=s.props((0,be.default)({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(f=!1)}),f&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style((0,be.default)({ownerState:r},n,r)):s.style))}),i}return o}function Ms(e={}){const{themeId:t,defaultTheme:r=As,rootShouldForwardProp:n=Mt,slotShouldForwardProp:o=Mt}=e,a=i=>(0,Os.default)((0,be.default)({},i,{theme:It((0,be.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,Qn.internal_processStyles)(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:f,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:u=_s(Ns(c))}=s,b=(0,yr.default)(s,$s),y=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=Mt;c==="Root"||c==="root"?x=n:c?x=o:Cs(i)&&(x=void 0);const O=(0,Qn.default)(i,(0,be.default)({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||(0,ws.isPlainObject)(m)?k=>Rt(m,(0,be.default)({},k,{theme:It({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];f&&u&&B.push(S=>{const E=It((0,be.default)({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[f]||!E.components[f].styleOverrides)return null;const z=E.components[f].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Rt(K,(0,be.default)({},S,{theme:E}))}),u(S,H)}),f&&!y&&B.push(S=>{var E;const z=It((0,be.default)({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[f])==null?void 0:E.variants;return Rt({variants:H},(0,be.default)({},S,{theme:z}))}),g||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const S=new Array(re).fill("");$=[...m,...S],$.raw=[...m.raw,...S]}const Q=O($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return O.withConfig&&(F.withConfig=O.withConfig),F}}const eo=e=>e,Is=()=>{let e=eo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eo}}},Rs=Is(),Ds={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 to(e,t,r="Mui"){const n=Ds[t];return n?`${r}-${n}`:`${Rs.generate(e)}-${t}`}function Ps(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const it={black:"#000",white:"#fff"},Fs={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"},Ge={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"},We={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"},st={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"},Be={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"},Ke={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"},Ye={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"},Ls=["mode","contrastThreshold","tonalOffset"],ro={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:it.white,default:it.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}},hr={text:{primary:it.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:it.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 no(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=fn(e.main,o):t==="dark"&&(e.dark=pn(e.main,a)))}function Vs(e="light"){return e==="dark"?{main:Be[200],light:Be[50],dark:Be[400]}:{main:Be[700],light:Be[400],dark:Be[800]}}function zs(e="light"){return e==="dark"?{main:Ge[200],light:Ge[50],dark:Ge[400]}:{main:Ge[500],light:Ge[300],dark:Ge[700]}}function Us(e="light"){return e==="dark"?{main:We[500],light:We[300],dark:We[700]}:{main:We[700],light:We[400],dark:We[800]}}function Gs(e="light"){return e==="dark"?{main:Ke[400],light:Ke[300],dark:Ke[700]}:{main:Ke[700],light:Ke[500],dark:Ke[900]}}function Ws(e="light"){return e==="dark"?{main:Ye[400],light:Ye[300],dark:Ye[700]}:{main:Ye[800],light:Ye[500],dark:Ye[900]}}function Bs(e="light"){return e==="dark"?{main:st[400],light:st[300],dark:st[700]}:{main:"#ed6c02",light:st[500],dark:st[900]}}function Ks(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=me(e,Ls),a=e.primary||Vs(t),i=e.secondary||zs(t),s=e.error||Us(t),f=e.info||Gs(t),c=e.success||Ws(t),p=e.warning||Bs(t);function h(y){return ba(y,hr.text.primary)>=r?hr.text.primary:ro.text.primary}const u=({color:y,name:g,mainShade:d=500,lightShade:x=300,darkShade:O=700})=>{if(y=C({},y),!y.main&&y[d]&&(y.main=y[d]),!y.hasOwnProperty("main"))throw new Error(De(11,g?` (${g})`:"",d));if(typeof y.main!="string")throw new Error(De(12,g?` (${g})`:"",JSON.stringify(y.main)));return no(y,"light",x,n),no(y,"dark",O,n),y.contrastText||(y.contrastText=h(y.main)),y},b={dark:hr,light:ro};return ve(C({common:C({},it),mode:t,primary:u({color:a,name:"primary"}),secondary:u({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:u({color:s,name:"error"}),warning:u({color:p,name:"warning"}),info:u({color:f,name:"info"}),success:u({color:c,name:"success"}),grey:Fs,contrastThreshold:r,getContrastText:h,augmentColor:u,tonalOffset:n},b[t]),o)}const Ys=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function qs(e){return Math.round(e*1e5)/1e5}const oo={textTransform:"uppercase"},ao='"Roboto", "Helvetica", "Arial", sans-serif';function Hs(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ao,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:f=700,htmlFontSize:c=16,allVariants:p,pxToRem:h}=r,u=me(r,Ys),b=o/14,y=h||(x=>`${x/c*b}rem`),g=(x,O,j,F,m)=>C({fontFamily:n,fontWeight:x,fontSize:y(O),lineHeight:j},n===ao?{letterSpacing:`${qs(F/O)}em`}:{},m,p),d={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,oo),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,oo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ve(C({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:f},d),u,{clone:!1})}const Zs=.2,Js=.14,Qs=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zs})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Js})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qs})`].join(",")}const Xs=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],ec=["duration","easing","delay"],tc={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)"},rc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function io(e){return`${Math.round(e)}ms`}function nc(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function oc(e){const t=C({},tc,e.easing),r=C({},rc,e.duration);return C({getAutoHeightDuration:nc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,f=me(o,ec);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof a=="string"?a:io(a)} ${i} ${typeof s=="string"?s:io(s)}`).join(",")}},e,{easing:t,duration:r})}const ac={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ic=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function sc(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=me(e,ic);if(e.vars)throw new Error(De(18));const s=Ks(n),f=at(e);let c=ve(f,{mixins:Ps(f.breakpoints,r),palette:s,shadows:Xs.slice(),typography:Hs(s,a),transitions:oc(o),zIndex:C({},ac)});return c=ve(c,i),c=t.reduce((p,h)=>ve(p,h),c),c.unstable_sxConfig=C({},nt,i?.unstable_sxConfig),c.unstable_sx=function(p){return ot({sx:p,theme:this})},c}const gr=sc(),br="$$material";function so(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>so(e)&&e!=="classes",lo=xs({themeId:br,defaultTheme:gr,rootShouldForwardProp:co});function cc(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Xt(t.components[r].defaultProps,n)}function lc(e){return Object.keys(e).length===0}function uc(e=null){const t=Ae.useContext(Ur);return!t||lc(t)?e:t}const pc=at();function vr(e=pc){return uc(e)}function uo({props:e,name:t,defaultTheme:r,themeId:n}){let o=vr(r);return n&&(o=o[n]||o),cc({theme:o,name:t,props:e})}function po({props:e,name:t}){return uo({props:e,name:t,defaultTheme:gr,themeId:br})}const fc=["ownerState"],dc=["variants"],mc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yc(e){return Object.keys(e).length===0}function hc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gc=at(),bc=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Dt({defaultTheme:e,theme:t,themeId:r}){return yc(t)?e:t[r]||t}function vc(e){return e?(t,r)=>r[e]:null}function Pt(e,t){let{ownerState:r}=t,n=me(t,fc);const o=typeof e=="function"?e(C({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Pt(a,C({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let i=me(o,dc);return a.forEach(s=>{let f=!0;typeof s.props=="function"?f=s.props(C({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(f=!1)}),f&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(C({ownerState:r},n,r)):s.style))}),i}return o}function xc(e={}){const{themeId:t,defaultTheme:r=gc,rootShouldForwardProp:n=xr,slotShouldForwardProp:o=xr}=e,a=i=>ot(C({},i,{theme:Dt(C({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Pn(i,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:f,slot:c,skipVariantsResolver:p,skipSx:h,overridesResolver:u=vc(bc(c))}=s,b=me(s,mc),y=p!==void 0?p:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=xr;c==="Root"||c==="root"?x=n:c?x=o:hc(i)&&(x=void 0);const O=Dn(i,C({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||je(m)?k=>Pt(m,C({},k,{theme:Dt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];f&&u&&B.push(S=>{const E=Dt(C({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[f]||!E.components[f].styleOverrides)return null;const z=E.components[f].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Pt(K,C({},S,{theme:E}))}),u(S,H)}),f&&!y&&B.push(S=>{var E;const z=Dt(C({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[f])==null?void 0:E.variants;return Pt({variants:H},C({},S,{theme:z}))}),g||B.push(a);const re=B.length-k.length;if(Array.isArray(m)&&re>0){const S=new Array(re).fill("");$=[...m,...S],$.raw=[...m.raw,...S]}const Q=O($,...B);return i.muiName&&(Q.muiName=i.muiName),Q};return O.withConfig&&(F.withConfig=O.withConfig),F}}const wc=xc();function fo(e,t){var r,n;return Ae.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}const Sc=(e,t)=>e.filter(r=>t.includes(r)),qe=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((o,a)=>{r((i,s)=>{a<=e.keys.length-1&&(a===0?Object.assign(i,s):i[e.up(e.keys[a])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:Sc(e.keys,Object.keys(t))).forEach(o=>{if(e.keys.indexOf(o)!==-1){const a=t[o];a!==void 0&&r((i,s)=>{n===o?Object.assign(i,s):i[e.up(o)]=s},a)}}):(typeof t=="number"||typeof t=="string")&&r((o,a)=>{Object.assign(o,a)},t)};function $e(e){return e?`Level${e}`:""}function ct(e){return e.unstable_level>0&&e.container}function mo(e){return function(t){return`var(--Grid-${t}Spacing${$e(e.unstable_level)})`}}function wr(e){return function(t){return e.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${$e(e.unstable_level-1)})`}}function Sr(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${$e(e.unstable_level-1)})`}const Oc=({theme:e,ownerState:t})=>{const r=mo(t),n={};return qe(e.breakpoints,t.gridSize,(o,a)=>{let i={};a===!0&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Sr(t)}${ct(t)?` + ${r("column")}`:""})`}),o(n,i)}),n},jc=({theme:e,ownerState:t})=>{const r={};return qe(e.breakpoints,t.gridOffset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / ${Sr(t)})`}),n(r,a)}),r},kc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=ct(t)?{[`--Grid-columns${$e(t.unstable_level)}`]:Sr(t)}:{"--Grid-columns":12};return qe(e.breakpoints,t.columns,(n,o)=>{n(r,{[`--Grid-columns${$e(t.unstable_level)}`]:o})}),r},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=wr(t),n=ct(t)?{[`--Grid-rowSpacing${$e(t.unstable_level)}`]:r("row")}:{};return qe(e.breakpoints,t.rowSpacing,(o,a)=>{var i;o(n,{[`--Grid-rowSpacing${$e(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Ec=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=wr(t),n=ct(t)?{[`--Grid-columnSpacing${$e(t.unstable_level)}`]:r("column")}:{};return qe(e.breakpoints,t.columnSpacing,(o,a)=>{var i;o(n,{[`--Grid-columnSpacing${$e(t.unstable_level)}`]:typeof a=="string"?a:(i=e.spacing)==null?void 0:i.call(e,a)})}),n},Tc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return qe(e.breakpoints,t.direction,(n,o)=>{n(r,{flexDirection:o})}),r},Cc=({ownerState:e})=>{const t=mo(e),r=wr(e);return C({minWidth:0,boxSizing:"border-box"},e.container&&C({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||ct(e))&&C({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Ac=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},Nc=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},_c=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`],Mc=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ic=at(),Rc=wc("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Dc(e){return uo({props:e,name:"MuiGrid",defaultTheme:Ic})}function Pc(e={}){const{createStyledComponent:t=Rc,useThemeProps:r=Dc,componentName:n="MuiGrid"}=e,o=Ae.createContext(void 0),a=(f,c)=>{const{container:p,direction:h,spacing:u,wrap:b,gridSize:y}=f,g={root:["root",p&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,..._c(h),...Ac(y),...p?Nc(u,c.breakpoints.keys[0]):[]]};return sn(g,d=>to(n,d),{})},i=t(kc,Ec,$c,Oc,Tc,Cc,jc),s=Ae.forwardRef(function(f,c){var p,h,u,b,y,g,d,x;const O=vr(),j=r(f),F=mr(j),m=Ae.useContext(o),{className:k,children:$,columns:B=12,container:re=!1,component:Q="div",direction:S="row",wrap:E="wrap",spacing:z=0,rowSpacing:H=z,columnSpacing:oe=z,disableEqualOverflow:K,unstable_level:X=0}=F,Ie=me(F,Mc);let Se=K;X&&K!==void 0&&(Se=f.disableEqualOverflow);const v={},w={},I={};Object.entries(Ie).forEach(([T,Y])=>{O.breakpoints.values[T]!==void 0?v[T]=Y:O.breakpoints.values[T.replace("Offset","")]!==void 0?w[T.replace("Offset","")]=Y:I[T]=Y});const _=(p=f.columns)!=null?p:X?void 0:B,A=(h=f.spacing)!=null?h:X?void 0:z,R=(u=(b=f.rowSpacing)!=null?b:f.spacing)!=null?u:X?void 0:H,N=(y=(g=f.columnSpacing)!=null?g:f.spacing)!=null?y:X?void 0:oe,M=C({},F,{level:X,columns:_,container:re,direction:S,wrap:E,spacing:A,rowSpacing:R,columnSpacing:N,gridSize:v,gridOffset:w,disableEqualOverflow:(d=(x=Se)!=null?x:m)!=null?d:!1,parentDisableEqualOverflow:m}),P=a(M,O);let D=l.jsx(i,C({ref:c,as:Q,ownerState:M,className:an(P.root,k)},I,{children:Ae.Children.map($,T=>{if(Ae.isValidElement(T)&&fo(T,["Grid"])){var Y;return Ae.cloneElement(T,{unstable_level:(Y=T.props.unstable_level)!=null?Y:X+1})}return T})}));return Se!==void 0&&Se!==(m??!1)&&(D=l.jsx(o.Provider,{value:Se,children:D})),D});return s.muiName="Grid",s}function Or({value:e,children:t}){return e?typeof t=="function"?l.jsx(l.Fragment,{children:t(e)}):l.jsx(l.Fragment,{children:t}):null}const yo={},lt={};function ut(e,t){try{const r=(yo[e]||(yo[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in lt?lt[r]:ho(r,r.split(":"))}catch{if(e in lt)return lt[e];const r=e?.match(Fc);return r?ho(e,r.slice(1)):NaN}}const Fc=/([+-]\d\d):?(\d\d)?/;function ho(e,t){const r=+t[0],n=+(t[1]||0);return lt[e]=r>0?r*60+n:r*60-n}class Ee extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ut(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),bo(this),jr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new Ee(...r,t):new Ee(Date.now(),t)}withTimeZone(t){return new Ee(+this,t)}getTimezoneOffset(){return-ut(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),jr(this),+this}[Symbol.for("constructDateFrom")](t){return new Ee(+new Date(t),this.timeZone)}}const go=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!go.test(e))return;const t=e.replace(go,"$1UTC");Ee.prototype[t]&&(e.startsWith("get")?Ee.prototype[e]=function(){return this.internal[t]()}:(Ee.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Lc(this),+this},Ee.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),jr(this),+this}))});function jr(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Lc(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bo(e)}function bo(e){const t=ut(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),o=-new Date(+r).getTimezoneOffset(),a=n-o,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=n-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const f=ut(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-f,p=f!==t,h=c-s;if(p&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const u=ut(e.timeZone,e),b=f-u;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}const Vc=e=>{let t=new Date(Number(e));if(!e){const a=new Date;t=new Date(a.getFullYear(),a.getMonth(),a.getDate())}const r=String(t.getDate()).padStart(2,"0"),n=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return[n,r,o].join("/")},zc=(e,t)=>new Date(Number(e)).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",...t}),pt=Pc({createStyledComponent:lo("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>po({props:e,name:"MuiGrid2"})});function kr(){return{enqueueSnackbar:(e,t="success",r)=>{ta(e,{severity:t,variant:"customAlertComponent",persist:!0,...r})},closeSnackbar:Wr}}const Uc=Do(({id:e,message:t,severity:r,alertAction:n,sx:o,showCloseIcon:a=!0,persist:i,hideIconVariant:s,autoHideDuration:f,anchorOrigin:c,iconVariant:p,...h},u)=>l.jsx(ea,{ref:u,...h,children:l.jsx(No,{severity:r,action:l.jsxs(Te,{ml:1,children:[l.jsx(Or,{value:n,children:l.jsx($r,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),l.jsx(Or,{value:!n&&a,children:l.jsx($r,{size:"small",onClick:()=>{Wr(e)},color:"inherit",children:l.jsx(Xo,{})})})]}),sx:{alignItems:"center",width:"320px",...o},children:t})}));function Gc({entry:e,payload:t,showUuid:r=!0}){const n=Lt(u=>{var b,y,g;return(g=(y=(b=u.payload)==null?void 0:b.data)==null?void 0:y.reduce)==null?void 0:g.call(y,(d,x)=>d+x.value,0)},[]),o=Lt(u=>{const b=new Kt(n(u)||0),y=t?.reduce((x,O)=>x+n(O),0)||0,g=new Kt(y),d=Number(b.div(g).times(100).toFixed(2,Kt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=Vt(()=>n(e),[e,n]),i=Yt(a),s=Vt(()=>Number(o(e)),[e,o]),f=Yt(s),c=Lt(u=>Math.floor(u).toLocaleString(),[]),p=Lr({type:"text/plain"}),h=kr();return l.jsxs(Vr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Te,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Ce,{children:[l.jsxs(fe,{component:"p",variant:"caption",children:[l.jsx(Ce,{component:"span",display:"inline-flex",mr:.5,children:l.jsx(zr,{from:i??0,to:a,map:c,children:"0"})}),l.jsxs(Ce,{component:"span",direction:"row",display:"inline-flex",children:["(",l.jsx(zr,{from:f??0,to:s,map:c,children:"0"}),"%)"]})]}),l.jsx(fe,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(fe,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&l.jsxs(fe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{p.copy(e.payload.uuid).catch(()=>{}),h.enqueueSnackbar("UUID copied to clipboard","success")},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function vo(e){const{payload:t}=e;return l.jsx(pt,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Fr,{children:t?.map(r=>l.jsx(pt,{children:l.jsx(Gc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.payload.uuid}-${r.value}`))})})}function xo(e){const t=Oe();return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(yt,{children:l.jsxs(Ar,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(zt,{vertical:!1}),l.jsx(Ut,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Dr(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Gt,{textAnchor:"end",dataKey:"value",tickLine:!1,tickFormatter:r=>Number(r).toLocaleString(),allowDecimals:!1,domain:[1,"dataMax"],children:e.label&&l.jsx(Lo,{value:e.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"}})}),l.jsx(Wt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Pr(r,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:r=>-Number(r?.value??0)}),l.jsx(Bt,{content:l.jsx(vo,{showUuid:e.showUuid})}),e.data.map(r=>Po(Nr,{uuid:r.uuid,integrationType:r.integrationType,key:r.uuid,name:r.name,dataKey:"value",data:r.chartData,type:"monotone",stroke:r.color,strokeWidth:2}))]})})})}function Wc({entry:e,showUuid:t=!0}){const r=Lr({type:"text/plain"}),n=kr();return l.jsxs(Vr,{component:"li",direction:"row",spacing:1,sx:{color:e.color},layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[l.jsx(Te,{sx:{width:"3px",height:"100%",backgroundColor:e.color,borderRadius:3}}),l.jsxs(Ce,{children:[l.jsx(fe,{variant:"body1",children:e.value}),e.integrationType&&l.jsx(fe,{variant:"body2",children:e.integrationType}),t&&e.uuid&&l.jsxs(fe,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{e.uuid&&(r.copy(e.uuid).catch(()=>{}),n.enqueueSnackbar("UUID copied to clipboard","success"))},children:[e.uuid.slice(0,5),"..."]})]})]})}function Bc(e){const{payload:t}=e;return l.jsx(pt,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Fr,{children:t?.map(r=>l.jsx(pt,{children:l.jsx(Wc,{entry:r,showUuid:e.showUuid})},`item-${r.uuid}-${r.value}`))})})}const Kc=(e,t)=>{const r=new Map;return e.forEach(n=>{n.chartData.forEach(o=>{const a=new Date(o.date).getTime().toString();if(!r.has(a)){const s={date:a};r.set(a,s)}const i=r.get(a);t.forEach(({key:s})=>{var f;const c=`${n.uuid}_${s}`,p=o[s],h=(f=t.find(b=>b.isTotal))==null?void 0:f.key,u=typeof p=="string"?p.trim()===""?0:parseInt(p,10):typeof p=="number"?p:0;if(i[`${c}_absolute`]=u,s!==h){const b=o[h??""];let y;b===0?y=100:y=b>0?parseFloat(new Rr(u.toString()).div(b).mul(100).toFixed(2,Rr.ROUND_DOWN)):0,i[c]=y}else i[c]=100})})}),Array.from(r.values()).sort((n,o)=>parseInt(n.date)-parseInt(o.date))};function wo(e){const t=Oe(),r=Vt(()=>e.data?Kc(e.data,e.keyValues):[],[e.data,e.keyValues]);return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(yt,{width:"100%",height:"100%",children:l.jsxs(Ar,{data:r,width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(zt,{strokeDasharray:"3 3"}),l.jsx(Ut,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Dr(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Gt,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(0)}%`}),l.jsx(Wt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Pr(n,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:n=>-Number(n?.value??0),formatter:(n,o)=>{const a=typeof n=="number"?n.toFixed(1):n;return[`${o}: ${a}%`]}}),l.jsx(Bt,{content:n=>{var o;const{height:a,width:i,...s}=n,f=r[r.length-1];Object.entries(f).forEach(([p,h])=>{});const c=new Map;return e.data.forEach(p=>{e.keyValues.filter(h=>!h.isTotal&&h.key==="oneClickSuccess").forEach(h=>{const u=`${p.uuid}_${h.key}`;c.set(u,p.uuid),c.set(`${u}_integrationType`,p.integrationType??"")})}),l.jsx(Bc,{...s,payload:(o=n.payload)==null?void 0:o.map(p=>({uuid:c.get(p.dataKey)??"",value:p.value,color:p.color??t.palette.primary.main,integrationType:c.get(`${p.dataKey}_integrationType`),dataKey:p.dataKey}))})}}),e.data.map(n=>e.keyValues.filter(o=>!o.isTotal&&o.key==="oneClickSuccess").map(o=>l.jsx(Nr,{type:"monotone",dataKey:`${n.uuid}_${o.key}`,name:n.name??n.uuid,stroke:n.color??t.palette.primary.main,strokeWidth:2,dot:!1},`${n.uuid}_${o.key}`)))]})})})}function ft(e){const t=Yt(e.value),{ref:r}=ra({from:t??0,to:e.value,duration:1,map:e.map});return l.jsx(Er,{sx:{p:3,flex:1,...e.sx},children:l.jsxs(Ce,{spacing:1,alignItems:"center",children:[l.jsx(fe,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),l.jsx(fe,{color:"text.secondary",children:e.label})]})})}const So={margin:{top:5,right:30,left:20,bottom:5}},Yc={tickLine:!1,fontSize:12,tickMargin:12},qc={textAnchor:"end",tickLine:!1};function Ft({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:f}){const c=Oe(),p=u=>!u.isFront,h=u=>!!u.isFront;return l.jsx(Te,{sx:{width:"100%",height:"100%",...f},children:l.jsx(yt,{children:l.jsxs(Vo,{data:e,...So,children:[l.jsx(zt,{strokeDasharray:"3 3",vertical:!1}),l.jsx(Ut,{...Yc,...r}),l.jsx(Gt,{...qc,...n}),l.jsx(Wt,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(p).map((u,b)=>l.jsx(_r,{...u},u.label??b)),s?.filter(p).map((u,b)=>l.jsx(Mr,{...u},u.label??b)),t.map(u=>l.jsx(zo,{name:u.key,dataKey:u.dataKey,fill:u.color,stackId:"stack",isAnimationActive:!1,...a},u.key)),i?.filter(h).map((u,b)=>l.jsx(_r,{...u},u.label??b)),s?.filter(h).map((u,b)=>l.jsx(Mr,{...u},u.label??b))]})})})}const le={ALLOW:{MIN:0,MAX:400,NAME:"Allow",LABEL:"0-400"},FLAG:{MIN:401,MAX:600,NAME:"Flag",LABEL:"401-600"},BLOCK:{MIN:601,MAX:1e3,NAME:"Block",LABEL:"601-1000"}},Oo={ERR001:"Generic error code",OCE001:"1-Click error code",OCE002:"Unsupported phone number",OCE003:"Either phone or email is required",OCE004:"User not found",OCE005:"Credential requests are missing",OCE006:"User identifier is missing",OCE007:"Missing mandatory credentials",OCE008:"Invalid/expired verification code",OCE009:"Verification code required",OCE010:"Missing fields to autofill",OCE011:"Additional information required",OCE012:"BirthDate or SSN4 mismatch",OCE013:"No credentials found",OCE014:"1-Click request expired",OCE015:"1-Click not found",OCE016:"Conflict request for phone number",OCE017:"Risk score too high",OCE018:"Maximum code attempts exceeded",OCE019:"Maximum input attempts exceeded"},Re=()=>({regularChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500},smallChartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:300}});function jo(e){return l.jsx(fe,{variant:"h6",fontWeight:"900",...e})}function ko(e){return l.jsx(fe,{variant:"h6",fontWeight:"400",...e})}function _e(){const e=Re();return l.jsxs(Ce,{sx:e.smallChartWrapper,children:[l.jsx(jo,{children:"No data available for the selected period and brands"}),l.jsx(ko,{children:"Please select a different period or brand"})]})}function Me(){const e=Re();return l.jsxs(Ce,{sx:e.smallChartWrapper,children:[l.jsx(jo,{children:"Loading..."}),l.jsx(ko,{children:"Preparing your chart data"})]})}function Hc({data:e,threshold:t=120,isLoading:r,isFetching:n,isSuccess:o,sx:a}){const i=Oe(),s=Re(),f=Object.entries(e??{}).map(([p,h])=>({key:p,[p]:h})),c=f.map(({key:p})=>({key:p,dataKey:p,color:i.palette.error.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(Ft,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:f,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>`${Oo[p]?`${Oo[p]}`:""}`}})}function Zc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,sx:a}){const i=Oe(),s=Re(),f=Object.entries(e??{}).map(([p,h])=>({key:p,[p]:h})),c=f.map(({key:p})=>({key:p,dataKey:p,color:i.palette.warning.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(Ft,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:f,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:p=>"Total"}})}function $o({payload:e=[],hiddenItems:t,onToggle:r,legendLabel:n}){return l.jsx(Te,{sx:{display:"flex",justifyContent:"center",gap:"20px",paddingTop:"20px"},children:e.map((o,a)=>{const i=t.has(o.payload.name);return l.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",opacity:i?.4:1},onClick:()=>{r?.(o.payload)},children:[l.jsx("div",{style:{width:"12px",height:"12px",backgroundColor:o.color,marginRight:"8px",borderRadius:"2px"}}),l.jsx("span",{style:{color:o.color},children:n?`${n}: ${o.value}`:o.value})]},`legend-${a}`)})})}const Jc=e=>{const t=Math.PI/180,{cx:r,cy:n,midAngle:o,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f,fill:c,payload:p,percent:h,value:u,valueText:b,valuePercentage:y,needleVisible:g,customText:d,allActive:x}=e,O=Math.sin(-t*o),j=Math.cos(-t*o),F=r+(i+5)*j,m=n+(i+5)*O,k=r+(i+15)*j,$=n+(i+15)*O,B=k+(j>=0?1:-1)*22,re=$,Q=j>=0?"start":"end",S=u.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),E=()=>g||x?null:l.jsx("text",{x:r,y:n,dy:8,textAnchor:"middle",fill:"#333",fontSize:14,children:p.name});return l.jsxs("g",{children:[E(),l.jsx(Ir,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:f,fill:c}),l.jsx(Ir,{cx:r,cy:n,startAngle:s,endAngle:f,innerRadius:i+2,outerRadius:i+6,fill:c}),l.jsx("path",{d:`M${F},${m}L${k},${$}L${B},${re}`,stroke:c,fill:"none"}),l.jsx("circle",{cx:B,cy:re,r:2,fill:c,stroke:"none"}),l.jsx("text",{x:B+(j>=0?1:-1)*12,y:re,textAnchor:Q,fill:"#333",fontSize:12,children:d||(b?`${b} ${S}`:S)}),y&&l.jsxs("text",{x:B+(j>=0?1:-1)*12,y:re,dy:16,textAnchor:Q,fill:"#999",fontSize:11,children:[`${(h*100).toFixed(2)}%`," (",S,")"]})]})},Qc=e=>{const{value:t,data:r,color:n,innerRadius:o,outerRadius:a,boxDimensions:i,legendDimensions:s,valueText:f}=e,c=Math.PI/180;let p=0;r.forEach(E=>{p+=E.value});const h=i?i.width/2:150,u=(i?i.height/2:200)-s.height/2,b=180*(1-Math.max(0,Math.min(1,t/p))),y=(Number(o)+2*Number(a))/3,g=Math.sin(-c*b),d=Math.cos(-c*b),x=5,O=h-x,j=u,F=O+x*g,m=j-x*d,k=O-x*g,$=j+x*d,B=O+y*d,re=j+y*g,Q=t.toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}),S=f??Q;return l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:O,cy:j,r:x,fill:n,stroke:"none",style:{pointerEvents:"none"}},"needle-circle"),l.jsx("path",{d:`M${F} ${m}L${k} ${$} L${B} ${re} L${F} ${m}`,stroke:"none",fill:n,style:{pointerEvents:"none"}},"needle-path"),l.jsx("text",{x:O+x,y:j+26,textAnchor:"middle",fill:"#333",fontSize:12,children:S},"needle-value")]})},Xc=(e,t)=>({Allow:t.palette.success.main,Flag:t.palette.warning.main,Block:t.palette.error.main})[e]??t.palette.primary.main;function Eo({data:e,sx:t,legendLabel:r,legendToggle:n=!1,valueText:o="",valuePercentage:a=!0,pie:i,needleVisible:s=!1,needleValue:f,needleColor:c="#aaa",allActive:p=!1}){const{innerRadius:h=60,outerRadius:u=100}=i??{},b=Oe(),[y,g]=mt(void 0),[d,x]=mt(new Set),O=Fo(null),[j,F]=mt(null),[m,k]=mt(null),$=(S,E)=>{p||g(E)},B=()=>{p||g(void 0)},re=S=>{n&&S&&x(E=>{const z=new Set(E);return z.has(S.name)?z.delete(S.name):z.size<e.length-1&&z.add(S.name),z})},Q=e.map((S,E)=>({...S,index:E,value:d.has(S.name)?0:S.value}));return Cr(()=>{const S=O.current;if(!S)return;const E=new ResizeObserver(H=>{var oe;const K=(oe=H[0])==null?void 0:oe.contentRect;K&&F(K)});E.observe(S);const z=S.getBoundingClientRect();return F(z),()=>{E.disconnect()}},[]),Cr(()=>{var S;const E=(S=O.current)==null?void 0:S.querySelector(".recharts-legend-wrapper");if(!E){const oe=setInterval(()=>{var K;const X=(K=O.current)==null?void 0:K.querySelector(".recharts-legend-wrapper");if(X){const Ie=X.getBoundingClientRect();k(Ie),clearInterval(oe)}},100);return()=>{clearInterval(oe)}}const z=new ResizeObserver(oe=>{var K;const X=(K=oe[0])==null?void 0:K.contentRect;X&&k(X)});z.observe(E);const H=E.getBoundingClientRect();return k(H),()=>{z.disconnect()}},[]),l.jsx(Te,{ref:O,sx:{width:"100%",height:"100%","& g":{outline:"none"},...t},children:l.jsx(yt,{children:l.jsxs(Uo,{...So,children:[l.jsx(Go,{data:Q,nameKey:"name",dataKey:"value",innerRadius:h,outerRadius:u,activeIndex:p?Q.filter(S=>S.value>0).map(S=>S.index):y,activeShape:S=>Jc({...S,valueText:o,valuePercentage:a,needleVisible:s,allActive:p}),paddingAngle:0,onMouseEnter:$,onMouseLeave:B,...i,children:Q.map(S=>l.jsx(Wo,{fill:S.color??Xc(S.name,b),opacity:d.has(S.name)?.5:1,stroke:"none"},S.name))}),l.jsx(Bt,{content:l.jsx($o,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&f!==void 0&&j&&m&&Qc({data:Q,value:f,color:c,innerRadius:h,outerRadius:u,boxDimensions:j,legendDimensions:m,valueText:o})]})})})}function el({data:e,score:t=200,legendLabel:r,isLoading:n,isFetching:o,isSuccess:a,sx:i}){const s=Oe(),f=Re();if(n)return l.jsx(Me,{});if(!e||e.length<=0||!a)return l.jsx(_e,{});const c=[{name:le.ALLOW.NAME,customText:le.ALLOW.LABEL,value:e[0].value,color:s.palette.primary.main},{name:le.FLAG.NAME,customText:le.FLAG.LABEL,value:e[1].value,color:s.palette.warning.main},{name:le.BLOCK.NAME,customText:le.BLOCK.LABEL,value:e[2].value,color:s.palette.error.main}];return l.jsx(Eo,{data:c,legendToggle:!0,needleValue:t,legendLabel:r,allActive:!0,sx:{...f.smallChartWrapper,opacity:o?.4:1,...i}})}function tl({data:e,isLoading:t,isFetching:r,isSuccess:n,sx:o}){const a=Oe(),i=Re(),s=(c=>{const p={};return c.forEach(h=>{Object.entries(h).forEach(([u,b])=>{const y=parseInt(u);y<=1e3&&(p[y]=(p[y]||0)+b)})}),Array.from({length:1001},(h,u)=>({key:u.toString(),value:p[u]||0}))})(e),f=[{key:"Risk Score",dataKey:"value",color:a.palette.error.main}];return t?l.jsx(Me,{}):!e||Object.keys(e).length===0||!n?l.jsx(_e,{}):l.jsx(Ft,{data:s,series:f,sx:{...i.smallChartWrapper,opacity:r?.4:1,...o},yAxis:{label:{value:"Count",angle:-90,position:"insideLeft"},domain:[0,"dataMax + 10"]},xAxis:{domain:[0,"dataMax"],interval:"preserveStartEnd"},tooltip:{labelFormatter:()=>"Risk Score",formatter:(c,p,h)=>[c,h.payload.key]},referenceAreas:[{x1:le.ALLOW.MIN,x2:le.ALLOW.MAX,fill:"#ffffff00",isFront:!1,label:le.ALLOW.NAME},{x1:le.FLAG.MIN,x2:le.FLAG.MAX,fill:a.palette.warning.light,isFront:!1,label:le.FLAG.NAME},{x1:le.BLOCK.MIN,fill:a.palette.error.light,isFront:!1,label:le.BLOCK.NAME}]})}function rl({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o,sx:a}){var i,s;Oe();const f=Re(),c={oneClickCreated:{key:"oneClickCreated",name:"Started",isTotal:!0},oneClickSuccess:{key:"oneClickSuccess",name:"Finished"}};return t?l.jsx(Me,{}):!e.length||!((s=(i=e[0])==null?void 0:i.chartData)!=null&&s.length)||!n?l.jsx(_e,{}):l.jsx(wo,{data:e,keyValues:Object.values(c),filter:o,sx:{...f.smallChartWrapper,opacity:r?.4:1,...a}})}const nl={chartWrapper:{justifyContent:"center",alignItems:"center",width:"100%",height:500}};function ol({data:e,isLoading:t,isFetching:r,isSuccess:n,filter:o}){return t?l.jsx(Me,{}):!e.length||!n?l.jsx(_e,{}):l.jsx(xo,{label:"Uniques",data:e,filter:o,sx:{...nl.chartWrapper,opacity:r?.4:1}})}function al(e){const{brands:t,data:r,keyValue:n}=e,o=t.flatMap(({_raw:a})=>{var i;const s=r?.find(c=>c.brandUuid===a.brandUuid),f=(s?.interval??[]).map(c=>({date:+new Date(c.date),value:Number(c[n]||0)})).filter(c=>e.filterOutZeroValues?c.value>0:!0);return{uuid:a.brandUuid,name:a.brandName,integrationType:Gr(a.integrationType),color:((i=a.additionalData)==null?void 0:i.primaryColor)??Bo(a.brandUuid),chartData:f}});return Ko.chain(o).sortBy(a=>a.name).toArray().value()}const il=({data:e,brands:t})=>e.flatMap(r=>{const n=t.find(o=>o.brandUuid===r.brandUuid);return!n||!r.interval?[]:r.interval.map(o=>({month:o.date,brandUuid:r.brandUuid,brand:n.brandName,integrationType:Gr(n.integrationType),total:o.oneClickCreated,finished:o.oneClickSuccess,totalCost:o.totalCost}))}),sl=({data:e,isLoading:t,showTotalCost:r=!0})=>t?l.jsx(Me,{}):e!=null&&e.length?l.jsx(_o,{component:Er,children:l.jsxs(Mo,{children:[l.jsx(Io,{children:l.jsxs(Tr,{children:[l.jsx(de,{children:"Month"}),l.jsx(de,{children:"Brand"}),l.jsx(de,{children:"Integration Type"}),l.jsx(de,{align:"right",children:"Started"}),l.jsx(de,{align:"right",children:"Finished"}),r&&l.jsx(de,{align:"right",children:"Total Cost"})]})}),l.jsx(Ro,{children:e.map(n=>l.jsxs(Tr,{children:[l.jsx(de,{children:new Date(n.month).toLocaleDateString(void 0,{month:"short",year:"numeric",timeZone:"UTC"})}),l.jsx(de,{children:n.brand}),l.jsx(de,{children:n.integrationType}),l.jsx(de,{align:"right",children:n.total}),l.jsx(de,{align:"right",children:n.finished}),r&&l.jsx(de,{align:"right",children:n.totalCost??"-"})]},`${n.brandUuid}-${n.month}`))})]})}):l.jsx(_e,{});function cl({lastUpdated:e}){return l.jsxs(fe,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",zc(e??Date.now(),{hour12:!1}),"."]})}const To=e=>new Intl.NumberFormat("en-US").format(Number(e.toFixed(0))),ll=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),ul=e=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),Co={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function pl(e){if(!(e!=null&&e.length))return Co;const t=e.reduce((a,i)=>a+(i.overall.oneClickCreated||0),0),r=e.reduce((a,i)=>a+(i.overall.oneClickSuccess||0),0),n=e.reduce((a,i)=>{const s=i.overall.totalCost?Number(i.overall.totalCost.replace("$","").replace(/,/g,"")):0;return a+s},0),o=r/t;return{totalSignups:t,totalSuccess:r,totalCost:n,successRate:isNaN(o)?0:o}}function fl({chartData:e,isLoading:t=!0,hideTotalCost:r=!1}){const n=t?Co:pl(e);return l.jsxs(Ce,{direction:"row",spacing:3,children:[l.jsx(ft,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:To}),l.jsx(ft,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:To}),!r&&l.jsx(ft,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:ll}),l.jsx(ft,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:ul})]})}export{gr as A,ft as B,Uc as C,pn as D,Hc as E,fn as F,Rn as G,De as H,ve as I,fo as J,lr as K,Me as L,sl as M,so as N,rl as O,Eo as P,Vc as Q,Zc as R,xo as S,br as T,pt as U,Or as W,me as _,vo as a,wo as b,Ft as c,el as d,tl as e,$o as f,ol as g,il as h,_e as i,cl as j,fl as k,pa as l,al as m,C as n,vr as o,to as p,an as q,po as r,lo as s,sn as t,kr as u,co as v,kt as w,ga as x,Xt as y,mr as z};
|