@verifiedinc-public/shared-ui-elements 5.16.0 → 5.17.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "5.16.0",
3
+ "version": "5.17.1",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -1,2 +0,0 @@
1
- "use strict";import{j as l}from"./jsx-runtime-DHlBLioN.mjs";import{Alert as Ao,Box as Te,IconButton as Er,Stack as Oe,Typography as ue,useTheme as je,Paper as Cr,TableContainer as _o,Table as Mo,TableHead as Io,TableRow as Tr,TableCell as de,TableBody as Ro}from"@mui/material";import*as Ne from"react";import{forwardRef as Do,useCallback as He,useMemo as ht,createElement as Po,useState as yt,useRef as Fo,useEffect as Nr}from"react";import{ResponsiveContainer as gt,LineChart as Ar,CartesianGrid as Ut,XAxis as Gt,YAxis as Wt,Label as Lo,Tooltip as Bt,Legend as Kt,Line as _r,ComposedChart as Vo,ReferenceLine as Mr,ReferenceArea as Ir,Bar as zo,Sector as Rr,PieChart as Uo,Pie as Go,Cell as Wo}from"recharts";import Dr,{Decimal as Yt}from"decimal.js";import{b as Pr,c as Fr,u as Bo,_ as Ko}from"./uuidColor-LRbEKYAZ.mjs";import{AnimatePresence as Lr}from"framer-motion";import{a as bt,u as Vr}from"./usePrevious-DG_IMu2h.mjs";import"qrcode";import{g as Yo,e as Ae}from"./_baseGetTag-B6tQMIzM.mjs";import{a as zr,C as qt}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 T(){return T=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},T.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,p=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=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 p:case c:case n:case a:case o:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case f: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=p,U.ConcurrentMode=c,U.ContextConsumer=s,U.ContextProvider=i,U.Element=t,U.ForwardRef=f,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)===p},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)===f},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===f||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 Ht,Zr;function ia(){if(Zr)return Ht;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 p=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(p.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ht=o()?Object.assign:function(a,i){for(var s,p=n(a),c,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var h in s)t.call(s,h)&&(p[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)r.call(s,c[u])&&(p[c[u]]=s[c[u]])}}return p},Ht}var Zt,Jr;function Qr(){if(Jr)return Zt;Jr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zt=e,Zt}var Xr,en;function sa(){return en||(en=1,Xr=Function.call.bind(Object.prototype.hasOwnProperty)),Xr}var Jt,tn;function ca(){if(tn)return Jt;tn=1;var e=function(){};if(0)var t,r,n;function o(a,i,s,p,c){if(0){for(var f in a)if(n(a,f)){var h;try{if(typeof a[f]!="function")var u}catch(y){}if(h&&!(h instanceof Error)&&e((p||"React class")+": type specification of "+s+" `"+f+"` 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(){},Jt=o,Jt}var Qt,rn;function Ml(){if(rn)return Qt;rn=1;var e=aa(),t=ia(),r=Qr(),n=sa(),o=ca(),a=function(){};function i(){return null}return Qt=function(s,p){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(v){var w=v&&(c&&v[c]||v[f]);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,A,M,P,D,C,Y){if(P=P||u,C=C||M,Y!==r){if(p){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 mt}return A[M]==null?R?A[M]===null?new g("The "+D+" `"+C+"` is marked as required "+("in `"+P+"`, but its value is `null`.")):new g("The "+D+" `"+C+"` is marked as required in "+("`"+P+"`, but its value is `undefined`.")):null:v(A,M,P,D,C)}var N=_.bind(null,!1);return N.isRequired=_.bind(null,!0),N}function x(v){function w(I,_,N,R,A,M){var P=I[_],D=K(P);if(D!==v){var C=X(P);return new g("Invalid "+R+" `"+A+"` of type "+("`"+C+"` supplied to `"+N+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return d(w)}function O(){return d(i)}function j(v){function w(I,_,N,R,A){if(typeof v!="function")return new g("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var M=I[_];if(!Array.isArray(M)){var P=K(M);return new g("Invalid "+R+" `"+A+"` of type "+("`"+P+"` supplied to `"+N+"`, expected an array."))}for(var D=0;D<M.length;D++){var C=v(M,D,N,R,A+"["+D+"]",r);if(C instanceof Error)return C}return null}return d(w)}function F(){function v(w,I,_,N,R){var A=w[I];if(!s(A)){var M=K(A);return new g("Invalid "+N+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement."))}return null}return d(v)}function m(){function v(w,I,_,N,R){var A=w[I];if(!e.isValidElementType(A)){var M=K(A);return new g("Invalid "+N+" `"+R+"` of type "+("`"+M+"` supplied to `"+_+"`, expected a single ReactElement type."))}return null}return d(v)}function k(v){function w(I,_,N,R,A){if(!(I[_]instanceof v)){var M=v.name||u,P=Se(I[_]);return new g("Invalid "+R+" `"+A+"` of type "+("`"+P+"` supplied to `"+N+"`, expected ")+("instance of `"+M+"`."))}return null}return d(w)}function $(v){if(!Array.isArray(v))return i;function w(I,_,N,R,A){for(var M=I[_],P=0;P<v.length;P++)if(y(M,v[P]))return null;var D=JSON.stringify(v,function(C,Y){var W=X(Y);return W==="symbol"?String(Y):Y});return new g("Invalid "+R+" `"+A+"` of value `"+String(M)+"` "+("supplied to `"+N+"`, expected one of "+D+"."))}return d(w)}function B(v){function w(I,_,N,R,A){if(typeof v!="function")return new g("Property `"+A+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+A+"` of type "+("`"+P+"` supplied to `"+N+"`, expected an object."));for(var D in M)if(n(M,D)){var C=v(M,D,N,R,A+"."+D,r);if(C instanceof Error)return C}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 _(N,R,A,M,P){for(var D=[],C=0;C<v.length;C++){var Y=v[C],W=Y(N,R,A,M,P,r);if(W==null)return null;W.data&&n(W.data,"expectedType")&&D.push(W.data.expectedType)}var mt=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new g("Invalid "+M+" `"+P+"` supplied to "+("`"+A+"`"+mt+"."))}return d(_)}function Q(){function v(w,I,_,N,R){return H(w[I])?null:new g("Invalid "+N+" `"+R+"` supplied to "+("`"+_+"`, expected a ReactNode."))}return d(v)}function S(v,w,I,_,N){return new g((v||"React class")+": "+w+" type `"+I+"."+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function E(v){function w(I,_,N,R,A){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+A+"` of type `"+P+"` "+("supplied to `"+N+"`, expected `object`."));for(var D in v){var C=v[D];if(typeof C!="function")return S(N,R,A,D,X(C));var Y=C(M,D,N,R,A+"."+D,r);if(Y)return Y}return null}return d(w)}function z(v){function w(I,_,N,R,A){var M=I[_],P=K(M);if(P!=="object")return new g("Invalid "+R+" `"+A+"` of type `"+P+"` "+("supplied to `"+N+"`, expected `object`."));var D=t({},I[_],v);for(var C in D){var Y=v[C];if(n(v,C)&&typeof Y!="function")return S(N,R,A,C,X(Y));if(!Y)return new g("Invalid "+R+" `"+A+"` key `"+C+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(I[_],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(v),null," "));var W=Y(M,C,N,R,A+"."+C,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 N=_.value;if(N&&!H(N[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},Qt}var Xt,nn;function la(){if(nn)return Xt;nn=1;var e=Qr();function t(){}function r(){}return r.resetWarningCache=t,Xt=function(){function n(i,s,p,c,f,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},Xt}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 er(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},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]=T({},a),Object.keys(o).forEach(i=>{r[n][i]=er(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=Ae(fa);function ma(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ha=Object.freeze(Object.defineProperty({__proto__:null,default:ma},Symbol.toStringTag,{value:"Module"})),ya=Ae(ha);var un=ln;Object.defineProperty(ee,"__esModule",{value:!0});var ga=ee.alpha=gn;ee.blend=Ca,ee.colorChannel=void 0;var pn=ee.darken=rr;ee.decomposeColor=he,ee.emphasize=bn;var ba=ee.getContrastRatio=Oa;ee.getLuminance=vt,ee.hexToRgb=mn,ee.hslToRgb=yn;var fn=ee.lighten=nr;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(ya);function tr(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 he(e){if(e.type)return e;if(e.charAt(0)==="#")return he(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 hn=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=hn;const wa=(e,t)=>{try{return hn(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}=he(e);return`#${t.map((r,n)=>xa(n===3?Math.round(255*r):r)).join("")}`}function yn(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,f=(c+r/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const p=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",p.push(t[3])),Pe({type:s,values:p})}function vt(e){e=he(e);let t=e.type==="hsl"||e.type==="hsla"?he(yn(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=vt(e),n=vt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function gn(e,t){return e=he(e),t=tr(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 rr(e,t){if(e=he(e),t=tr(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 rr(e,t)}catch{return e}}function nr(e,t){if(e=he(e),t=tr(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 nr(e,t)}catch{return e}}function bn(e,t=.15){return vt(e)>.5?rr(e,t):nr(e,t)}function Ea(e,t,r){try{return bn(e,t)}catch{return e}}function Ca(e,t,r,n=1){const o=(p,c)=>Math.round((p**(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 Ze={},vn={exports:{}},xn;function Ta(){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 Na(){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 Aa(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=Aa(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-",xt="-moz-",L="-webkit-",On="comm",or="rule",ar="decl",Ia="@import",jn="@keyframes",Ra="@layer",Da=Math.abs,wt=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 ir(e,t){return e.indexOf(t)}function ae(e,t){return e.charCodeAt(t)|0}function Je(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function sr(e){return e.length}function St(e,t){return t.push(e),e}function Va(e,t){return e.map(t).join("")}var Ot=1,Fe=1,$n=0,ce=0,ne=0,Le="";function jt(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Ot,column:Fe,length:i,return:""}}function Qe(e,t){return Pa(jt("",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,Ot--),ne}function pe(){return ne=ce<$n?ae(Le,ce++):0,Fe++,ne===10&&(Fe=1,Ot++),ne}function we(){return ae(Le,ce)}function kt(){return ce}function Xe(e,t){return Je(Le,e,t)}function et(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 Ot=Fe=1,$n=xe(Le=e),ce=0,[]}function Cn(e){return Le="",e}function $t(e){return kn(Xe(ce-1,cr(e===91?e+2:e===40?e+1:e)))}function Ga(e){for(;(ne=we())&&ne<33;)pe();return et(e)>2||et(ne)>3?"":" "}function Wa(e,t){for(;--t&&pe()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return Xe(e,kt()+(t<6&&we()==32&&pe()==32))}function cr(e){for(;pe();)switch(ne){case e:return ce;case 34:case 39:e!==34&&e!==39&&cr(ne);break;case 40:e===41&&cr(e);break;case 92:pe();break}return ce}function Ba(e,t){for(;pe()&&e+ne!==57&&!(e+ne===84&&we()===47););return"/*"+Xe(t,ce-1)+"*"+wt(e===47?e:pe())}function Ka(e){for(;!et(we());)pe();return Xe(e,ce)}function Ya(e){return Cn(Et("",null,null,null,[""],e=En(e),0,[0],e))}function Et(e,t,r,n,o,a,i,s,p){for(var c=0,f=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=pe()){case 40:if(y!=108&&ae($,h-1)==58){ir($+=V($t(O),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:$+=$t(O);break;case 9:case 10:case 13:case 32:$+=Ga(y);break;case 92:$+=Wa(kt()-1,7);continue;case 47:switch(we()){case 42:case 47:St(qa(Ba(pe(),kt()),t,r),p);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+f:x==-1&&($=V($,/\f/g,"")),b>0&&xe($)-h&&St(b>32?Nn($+";",n,r,h-1):Nn(V($," ","")+";",n,r,h-2),p);break;case 59:$+=";";default:if(St(k=Tn($,t,r,c,f,o,s,j,F=[],m=[],h),a),O===123)if(f===0)Et($,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:Et(e,k,k,n&&St(Tn(e,k,k,0,0,o,s,j,o,F=[],h),m),o,m,h,s,n?F:m);break;default:Et($,k,k,k,[""],m,0,s,m)}}c=f=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($+=wt(O),O*g){case 38:x=f>0?1:($+="\f",-1);break;case 44:s[c++]=(xe($)-1)*x,x=1;break;case 64:we()===45&&($+=$t(pe())),u=we(),f=h=xe(j=$+=Ka(kt())),O++;break;case 45:y===45&&xe($)==2&&(g=0)}}return a}function Tn(e,t,r,n,o,a,i,s,p,c,f){for(var h=o-1,u=o===0?a:[""],b=sr(u),y=0,g=0,d=0;y<n;++y)for(var x=0,O=Je(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])))&&(p[d++]=j);return jt(e,t,r,o===0?or:s,p,c,f)}function qa(e,t,r){return jt(e,t,r,On,wt(za()),Je(e,2,-2),0)}function Nn(e,t,r,n){return jt(e,t,r,ar,Je(e,0,n),Je(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=sr(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 ar:return e.return=e.return||e.value;case On:return"";case jn:return e.return=e.value+"{"+Ve(e.children,n)+"}";case or:e.value=e.props.join(",")}return xe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Za(e){var t=sr(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),!et(o);)pe();return Xe(e,ce)},Xa=function(e,t){var r=-1,n=44;do switch(et(n)){case 0:n===38&&we()===12&&(t[r]=1),e[r]+=Qa(ce-1,t,r);break;case 2:e[r]+=$t(n);break;case 4:if(n===44){e[++r]=we()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=wt(n)}while(n=pe());return e},ei=function(e,t){return Cn(Xa(En(e),t))},An=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&&!An.get(r))&&!n){An.set(e,!0);for(var o=[],a=ei(t,o),i=r.props,s=0,p=0;s<a.length;s++)for(var c=0;c<i.length;c++,p++)e.props[p]=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 p=i[s];if(p.line<t.line)break;if(p.column<t.column){if(oi(p))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+xt+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"+xt+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ir(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-(~ir(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 ar:e.return=In(e.value,e.length);break;case jn:return Ve([Qe(e,{value:V(e.value,"@","@"+L)})],n);case or:if(e.length)return Va(e.props,function(o){switch(La(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([Qe(e,{props:[V(o,/:(read-\w+)/,":"+xt+"$1")]})],n);case"::placeholder":return Ve([Qe(e,{props:[V(o,/:(plac\w+)/,":"+L+"input-$1")]}),Qe(e,{props:[V(o,/:(plac\w+)/,":"+xt+"$1")]}),Qe(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,p=[ti,ri];{var c,f=[Ha,Ja(function(y){c.insert(y)})],h=Za(p.concat(n,f)),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 lr;typeof document=="object"&&(lr=ci({key:"css",prepend:!0}));function li(e){const{injectFirst:t,children:r}=e;return t&&lr?l.jsx(Ho,{value:lr,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=Ae(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 Fn(e){if(!ke(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?T({},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])?Fn(t[o]):t[o]:n[o]=t[o]}),n}const di=Object.freeze(Object.defineProperty({__proto__:null,default:ve,isPlainObject:ke},Symbol.toStringTag,{value:"Module"})),mi=Ae(di);function Ct(e){if(typeof e!="string")throw new Error(De(7));return e.charAt(0).toUpperCase()+e.slice(1)}const hi=Object.freeze(Object.defineProperty({__proto__:null,default:Ct},Symbol.toStringTag,{value:"Module"})),yi=Ae(hi);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"),p=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=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 f:return d;default:switch(d=d&&d.$$typeof,d){case s:case i:case p: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=p,G.Fragment=r,G.Lazy=u,G.Memo=h,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=c,G.SuspenseList=f,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)===p},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)===f},G.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===c||d===f||d===b||typeof d=="object"&&d!==null&&(d.$$typeof===u||d.$$typeof===h||d.$$typeof===a||d.$$typeof===i||d.$$typeof===p||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 ur=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 ur.ForwardRef:return Wn(e,e.render,"ForwardRef");case ur.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=Ae(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)=>T({},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 p(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 f(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?p(i[b]):c(u,i[i.indexOf(u)+1]).replace("@media","@media not all and")}return T({keys:i,values:a,up:s,down:p,between:c,only:f,not:h,unit:r},o)}const ki={borderRadius:4},Ll={};function tt(e,t){return t?ve(e,t,{clone:!1}):e}const pr={xs:0,sm:600,md:900,lg:1200,xl:1536},Kn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pr[e]}px)`};function $e(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||pr).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 Tt(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 Nt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Tt(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],p=i.theme,c=Tt(p,n)||{};return $e(i,s,f=>{let h=Nt(c,o,f);return f===h&&typeof f=="string"&&(h=Nt(c,o,`${t}${f==="default"?"":Ct(f)}`,f)),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 Ti={m:"margin",p:"padding"},Ni={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ai=Ci(e=>{if(e.length>2)if(Yn[e])e=Yn[e];else return[e];const[t,r]=e.split(""),n=Ti[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"],dr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vl=[...fr,...dr];function rt(e,t,r,n){var o;const a=(o=Tt(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 rt(e,"spacing",8,"spacing")}function nt(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]=nt(t,r),n),{})}function Mi(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Ai(r),a=_i(o,n),i=e[r];return $e(e,i,a)}function Hn(e,t){const r=qn(e.theme);return Object.keys(e).map(n=>Mi(e,t,n,r)).reduce(tt,{})}function Z(e){return Hn(e,fr)}Z.propTypes={},Z.filterProps=fr;function J(e){return Hn(e,dr)}J.propTypes={},J.filterProps=dr;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 At(...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]?tt(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 Ri=ge("border",ye),Di=ge("borderTop",ye),Pi=ge("borderRight",ye),Fi=ge("borderBottom",ye),Li=ge("borderLeft",ye),Vi=ge("borderColor"),zi=ge("borderTopColor"),Ui=ge("borderRightColor"),Gi=ge("borderBottomColor"),Wi=ge("borderLeftColor"),Bi=ge("outline",ye),Ki=ge("outlineColor"),_t=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:nt(t,n)});return $e(e,e.borderRadius,r)}return null};_t.propTypes={},_t.filterProps=["borderRadius"],At(Ri,Di,Pi,Fi,Li,Vi,zi,Ui,Gi,Wi,_t,Bi,Ki);const Mt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rt(e.theme,"spacing",8,"gap"),r=n=>({gap:nt(t,n)});return $e(e,e.gap,r)}return null};Mt.propTypes={},Mt.filterProps=["gap"];const It=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:nt(t,n)});return $e(e,e.columnGap,r)}return null};It.propTypes={},It.filterProps=["columnGap"];const Rt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:nt(t,n)});return $e(e,e.rowGap,r)}return null};Rt.propTypes={},Rt.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"});At(Mt,It,Rt,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});At(rs,ns,os);function fe(e){return e<=1&&e!==0?`${e*100}%`:e}const as=te({prop:"width",transform:fe}),mr=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])||pr[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};mr.filterProps=["maxWidth"];const is=te({prop:"minWidth",transform:fe}),ss=te({prop:"height",transform:fe}),cs=te({prop:"maxHeight",transform:fe}),ls=te({prop:"minHeight",transform:fe});te({prop:"size",cssProperty:"width",transform:fe}),te({prop:"size",cssProperty:"height",transform:fe});const us=te({prop:"boxSizing"});At(as,mr,is,ss,cs,ls,us);const ot={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:_t},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:Mt},rowGap:{style:Rt},columnGap:{style:It},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:mr},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 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:p=r,themeKey:c,transform:f,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const u=Tt(o,c)||{};return h?h(i):$e(i,n,b=>{let y=Nt(u,f,b);return b===y&&typeof b=="string"&&(y=Nt(u,f,`${r}${b==="default"?"":Ct(b)}`,b)),p===!1?y:{[p]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:ot;function s(p){let c=p;if(typeof p=="function")c=p(a);else if(typeof p!="object")return p;if(!c)return null;const f=$i(a.breakpoints),h=Object.keys(f);let u=f;return Object.keys(c).forEach(b=>{const y=fs(c[b],a);if(y!=null)if(typeof y=="object")if(i[b])u=tt(u,e(b,y,a,i));else{const g=$e({theme:a},y,d=>({[b]:d}));ps(g,y)?u[b]=t({sx:y,theme:a}):u=tt(u,g)}else u=tt(u,e(b,y,a,i))}),Ei(h,u)}return Array.isArray(o)?o.map(s):s(o)}return t}const at=Zn();at.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 it(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=me(e,ds),s=Bn(r),p=Ii(o);let c=ve({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:p,shape:T({},ki,a)},i);return c.applyStyles=Jn,c=t.reduce((f,h)=>ve(f,h),c),c.unstable_sxConfig=T({},ot,i?.unstable_sxConfig),c.unstable_sx=function(f){return at({sx:f,theme:this})},c}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:it,private_createBreakpoints:Bn,unstable_applyStyles:Jn},Symbol.toStringTag,{value:"Module"})),hs=Ae(ms),ys=["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:ot;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function hr(e){const{sx:t}=e,r=me(e,ys),{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 ke(s)?T({},n,s):n}:a=T({},n,t),T({},o,{sx:a})}const bs=Object.freeze(Object.defineProperty({__proto__:null,default:at,extendSxProp:hr,unstable_createStyleFunctionSx:Zn,unstable_defaultSxConfig:ot},Symbol.toStringTag,{value:"Module"})),vs=Ae(bs);var Ue=ln;Object.defineProperty(Ze,"__esModule",{value:!0});var xs=Ze.default=Ms;Ze.shouldForwardProp=Dt,Ze.systemDefaultTheme=void 0;var be=Ue(Ta()),yr=Ue(Na()),Qn=Es(fi),ws=mi,zl=Ue(yi),Ul=Ue(Si),Ss=Ue(hs),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 Cs(e){return Object.keys(e).length===0}function Ts(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Dt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ns=Ze.systemDefaultTheme=(0,Ss.default)(),As=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Pt({defaultTheme:e,theme:t,themeId:r}){return Cs(t)?e:t[r]||t}function _s(e){return e?(t,r)=>r[e]:null}function Ft(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=>Ft(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 p=!0;typeof s.props=="function"?p=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]&&(p=!1)}),p&&(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=Ns,rootShouldForwardProp:n=Dt,slotShouldForwardProp:o=Dt}=e,a=i=>(0,Os.default)((0,be.default)({},i,{theme:Pt((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:p,slot:c,skipVariantsResolver:f,skipSx:h,overridesResolver:u=_s(As(c))}=s,b=(0,yr.default)(s,$s),y=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=Dt;c==="Root"||c==="root"?x=n:c?x=o:Ts(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=>Ft(m,(0,be.default)({},k,{theme:Pt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];p&&u&&B.push(S=>{const E=Pt((0,be.default)({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[p]||!E.components[p].styleOverrides)return null;const z=E.components[p].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Ft(K,(0,be.default)({},S,{theme:E}))}),u(S,H)}),p&&!y&&B.push(S=>{var E;const z=Pt((0,be.default)({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[p])==null?void 0:E.variants;return Ft({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 T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const st={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"},ct={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:st.white,default:st.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}},gr={text:{primary:st.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:st.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:ct[400],light:ct[300],dark:ct[700]}:{main:"#ed6c02",light:ct[500],dark:ct[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),p=e.info||Gs(t),c=e.success||Ws(t),f=e.warning||Bs(t);function h(y){return ba(y,gr.text.primary)>=r?gr.text.primary:ro.text.primary}const u=({color:y,name:g,mainShade:d=500,lightShade:x=300,darkShade:O=700})=>{if(y=T({},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:gr,light:ro};return ve(T({common:T({},st),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:f,name:"warning"}),info:u({color:p,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:p=700,htmlFontSize:c=16,allVariants:f,pxToRem:h}=r,u=me(r,Ys),b=o/14,y=h||(x=>`${x/c*b}rem`),g=(x,O,j,F,m)=>T({fontFamily:n,fontWeight:x,fontSize:y(O),lineHeight:j},n===ao?{letterSpacing:`${qs(F/O)}em`}:{},m,f),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(T({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:p},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=T({},tc,e.easing),r=T({},rc,e.duration);return T({getAutoHeightDuration:nc,create:(n=["all"],o={})=>{const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=o,p=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),p=it(e);let c=ve(p,{mixins:Ps(p.breakpoints,r),palette:s,shadows:Xs.slice(),typography:Hs(s,a),transitions:oc(o),zIndex:T({},ac)});return c=ve(c,i),c=t.reduce((f,h)=>ve(f,h),c),c.unstable_sxConfig=T({},ot,i?.unstable_sxConfig),c.unstable_sx=function(f){return at({sx:f,theme:this})},c}const br=sc(),vr="$$material";function so(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const co=e=>so(e)&&e!=="classes",lo=xs({themeId:vr,defaultTheme:br,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:er(t.components[r].defaultProps,n)}function lc(e){return Object.keys(e).length===0}function uc(e=null){const t=Ne.useContext(Ur);return!t||lc(t)?e:t}const pc=it();function xr(e=pc){return uc(e)}function uo({props:e,name:t,defaultTheme:r,themeId:n}){let o=xr(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:br,themeId:vr})}const fc=["ownerState"],dc=["variants"],mc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hc(e){return Object.keys(e).length===0}function yc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function wr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gc=it(),bc=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Lt({defaultTheme:e,theme:t,themeId:r}){return hc(t)?e:t[r]||t}function vc(e){return e?(t,r)=>r[e]:null}function Vt(e,t){let{ownerState:r}=t,n=me(t,fc);const o=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Vt(a,T({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 p=!0;typeof s.props=="function"?p=s.props(T({ownerState:r},n,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&n[c]!==s.props[c]&&(p=!1)}),p&&(Array.isArray(i)||(i=[i]),i.push(typeof s.style=="function"?s.style(T({ownerState:r},n,r)):s.style))}),i}return o}function xc(e={}){const{themeId:t,defaultTheme:r=gc,rootShouldForwardProp:n=wr,slotShouldForwardProp:o=wr}=e,a=i=>at(T({},i,{theme:Lt(T({},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:p,slot:c,skipVariantsResolver:f,skipSx:h,overridesResolver:u=vc(bc(c))}=s,b=me(s,mc),y=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,g=h||!1;let d,x=wr;c==="Root"||c==="root"?x=n:c?x=o:yc(i)&&(x=void 0);const O=Dn(i,T({shouldForwardProp:x,label:d},b)),j=m=>typeof m=="function"&&m.__emotion_real!==m||ke(m)?k=>Vt(m,T({},k,{theme:Lt({theme:k.theme,defaultTheme:r,themeId:t})})):m,F=(m,...k)=>{let $=j(m);const B=k?k.map(j):[];p&&u&&B.push(S=>{const E=Lt(T({},S,{defaultTheme:r,themeId:t}));if(!E.components||!E.components[p]||!E.components[p].styleOverrides)return null;const z=E.components[p].styleOverrides,H={};return Object.entries(z).forEach(([oe,K])=>{H[oe]=Vt(K,T({},S,{theme:E}))}),u(S,H)}),p&&!y&&B.push(S=>{var E;const z=Lt(T({},S,{defaultTheme:r,themeId:t})),H=z==null||(E=z.components)==null||(E=E[p])==null?void 0:E.variants;return Vt({variants:H},T({},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 Ne.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 lt(e){return e.unstable_level>0&&e.container}function mo(e){return function(t){return`var(--Grid-${t}Spacing${Ee(e.unstable_level)})`}}function Sr(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 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} / ${Or(t)}${lt(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} / ${Or(t)})`}),n(r,a)}),r},kc=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=lt(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},$c=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Sr(t),n=lt(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},Ec=({theme:e,ownerState:t})=>{if(!t.container)return{};const r=Sr(t),n=lt(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},Tc=({ownerState:e})=>{const t=mo(e),r=Sr(e);return T({minWidth:0,boxSizing:"border-box"},e.container&&T({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||lt(e))&&T({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},Ac=(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=it(),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=Ne.createContext(void 0),a=(p,c)=>{const{container:f,direction:h,spacing:u,wrap:b,gridSize:y}=p,g={root:["root",f&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,..._c(h),...Nc(y),...f?Ac(u,c.breakpoints.keys[0]):[]]};return sn(g,d=>to(n,d),{})},i=t(kc,Ec,$c,Oc,Cc,Tc,jc),s=Ne.forwardRef(function(p,c){var f,h,u,b,y,g,d,x;const O=xr(),j=r(p),F=hr(j),m=Ne.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=p.disableEqualOverflow);const v={},w={},I={};Object.entries(Ie).forEach(([C,Y])=>{O.breakpoints.values[C]!==void 0?v[C]=Y:O.breakpoints.values[C.replace("Offset","")]!==void 0?w[C.replace("Offset","")]=Y:I[C]=Y});const _=(f=p.columns)!=null?f:X?void 0:B,N=(h=p.spacing)!=null?h:X?void 0:z,R=(u=(b=p.rowSpacing)!=null?b:p.spacing)!=null?u:X?void 0:H,A=(y=(g=p.columnSpacing)!=null?g:p.spacing)!=null?y:X?void 0:oe,M=T({},F,{level:X,columns:_,container:re,direction:S,wrap:E,spacing:N,rowSpacing:R,columnSpacing:A,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,T({ref:c,as:Q,ownerState:M,className:an(P.root,k)},I,{children:Ne.Children.map($,C=>{if(Ne.isValidElement(C)&&fo(C,["Grid"])){var Y;return Ne.cloneElement(C,{unstable_level:(Y=C.props.unstable_level)!=null?Y:X+1})}return C})}));return Se!==void 0&&Se!==(m??!1)&&(D=l.jsx(o.Provider,{value:Se,children:D})),D});return s.muiName="Grid",s}function jr({value:e,children:t}){return e?typeof t=="function"?l.jsx(l.Fragment,{children:t(e)}):l.jsx(l.Fragment,{children:t}):null}const ho={},ut={};function pt(e,t){try{const r=(ho[e]||(ho[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return r in ut?ut[r]:yo(r,r.split(":"))}catch{if(e in ut)return ut[e];const r=e?.match(Fc);return r?yo(e,r.slice(1)):NaN}}const Fc=/([+-]\d\d):?(\d\d)?/;function yo(e,t){const r=+t[0],n=+(t[1]||0);return ut[e]=r>0?r*60+n:r*60-n}class Ce extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(pt(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),kr(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new Ce(...r,t):new Ce(Date.now(),t)}withTimeZone(t){return new Ce(+this,t)}getTimezoneOffset(){return-pt(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),kr(this),+this}[Symbol.for("constructDateFrom")](t){return new Ce(+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");Ce.prototype[t]&&(e.startsWith("get")?Ce.prototype[e]=function(){return this.internal[t]()}:(Ce.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Lc(this),+this},Ce.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),kr(this),+this}))});function kr(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=pt(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 p=pt(e.timeZone,e),c=-new Date(+e).getTimezoneOffset()-p,f=p!==t,h=c-s;if(f&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const u=pt(e.timeZone,e),b=p-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}),ft=Pc({createStyledComponent:lo("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>po({props:e,name:"MuiGrid2"})});function $r(){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:p,anchorOrigin:c,iconVariant:f,...h},u)=>l.jsx(ea,{ref:u,...h,children:l.jsx(Ao,{severity:r,action:l.jsxs(Te,{ml:1,children:[l.jsx(jr,{value:n,children:l.jsx(Er,{size:"small",onClick:()=>{var b;return e&&((b=n?.onAction)==null?void 0:b.call(n,e))},color:"inherit",children:n?.icon})}),l.jsx(jr,{value:!n&&a,children:l.jsx(Er,{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=He(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=He(u=>{const b=new Yt(n(u)||0),y=t?.reduce((x,O)=>x+n(O),0)||0,g=new Yt(y),d=Number(b.div(g).times(100).toFixed(2,Yt.ROUND_DOWN));return isNaN(d)||!isFinite(d)?0:d},[n,t]),a=ht(()=>n(e),[e,n]),i=bt(a),s=ht(()=>Number(o(e)),[e,o]),p=bt(s),c=He(u=>Math.floor(u).toLocaleString(),[]),f=Vr({type:"text/plain"}),h=$r();return l.jsxs(zr,{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(Oe,{children:[l.jsxs(ue,{component:"p",variant:"caption",children:[l.jsx(Oe,{component:"span",display:"inline-flex",mr:.5,children:l.jsx(qt,{from:i??0,to:a,map:c,children:"0"})}),l.jsxs(Oe,{component:"span",direction:"row",display:"inline-flex",children:["(",l.jsx(qt,{from:p??0,to:s,map:c,children:"0"}),"%)"]})]}),l.jsx(ue,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(ue,{variant:"body2",children:e.payload.integrationType}),r&&e.payload.uuid&&l.jsxs(ue,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{f.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(ft,{container:!0,direction:"row",component:"ul",gap:2,sx:{mt:2,justifyContent:"flex-start",alignItem:"center",flexWrap:"wrap"},children:l.jsx(Lr,{children:t?.map(r=>l.jsx(ft,{children:l.jsx(Gc,{entry:r,payload:t,showUuid:e.showUuid})},`item-${r.payload.uuid}-${r.value}`))})})}function xo(e){const t=je();return l.jsx(Te,{sx:{width:"100%",height:"100%",...e.sx},children:l.jsx(gt,{children:l.jsxs(Ar,{width:500,height:300,margin:{top:5,right:60,left:20,bottom:5},children:[l.jsx(Ut,{vertical:!1}),l.jsx(Gt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:r=>Pr(r,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Wt,{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(Bt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},formatter:r=>Number(r).toLocaleString(),labelFormatter:r=>Fr(r,{timeZone:e.filter.timezone,hour12:!1}),itemSorter:r=>-Number(r?.value??0)}),l.jsx(Kt,{content:l.jsx(vo,{showUuid:e.showUuid})}),e.data.map(r=>Po(_r,{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=He(p=>{const c=p.payload.latestData;return c&&p.dataKey?c[p.dataKey]??0:0},[]),n=ht(()=>r(e),[e,r]),o=bt(n),a=He(p=>p.toFixed(1),[]),i=Vr({type:"text/plain"}),s=$r();return l.jsxs(zr,{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(Oe,{children:[l.jsx(ue,{component:"p",variant:"caption",children:l.jsxs(Oe,{component:"span",direction:"row",display:"inline-flex",children:[l.jsx(qt,{from:o??0,to:n,map:a,children:"0"}),"%"]})}),l.jsx(ue,{variant:"body1",children:e.value}),e.payload.integrationType&&l.jsx(ue,{variant:"body2",children:e.payload.integrationType}),t&&e.payload.uuid&&l.jsxs(ue,{variant:"body2",sx:{cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:()=>{e.payload.uuid&&(i.copy(e.payload.uuid).catch(()=>{}),s.enqueueSnackbar("UUID copied to clipboard","success"))},children:[e.payload.uuid.slice(0,5),"..."]})]})]})}function Bc(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(Lr,{children:t?.map(r=>l.jsx(ft,{children:l.jsx(Wc,{entry:r,showUuid:e.showUuid})},`item-${r.payload.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 p;const c=`${n.uuid}_${s}`,f=o[s],h=(p=t.find(b=>b.isTotal))==null?void 0:p.key,u=typeof f=="string"?f.trim()===""?0:parseInt(f,10):typeof f=="number"?f:0;if(i[`${c}_absolute`]=u,s!==h){const b=o[h||""];let y;b===0?y=100:y=b>0?parseFloat(new Dr(u.toString()).div(b).mul(100).toFixed(2,Dr.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=je(),r=ht(()=>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(gt,{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(Ut,{strokeDasharray:"3 3"}),l.jsx(Gt,{dataKey:"date",type:"number",domain:["dataMin","dataMax"],tickFormatter:n=>Pr(n,{timeZone:e.filter.timezone,hour12:!1,hour:"numeric"}),allowDuplicatedCategory:!1,tickLine:!1,fontSize:12,tickMargin:12}),l.jsx(Wt,{textAnchor:"end",tickLine:!1,tickFormatter:n=>`${n.toFixed(0)}%`}),l.jsx(Bt,{cursor:{stroke:t.palette.neutral.main,strokeWidth:1},labelFormatter:n=>Fr(n,{timeZone:e.filter.timezone,hour12:!1}),formatter:(n,o)=>{const a=typeof n=="number"?n.toFixed(1):n;return[`${o}: ${a}%`]}}),l.jsx(Kt,{content:n=>{var o;const{height:a,width:i,...s}=n,p=r[r.length-1],c={};Object.entries(p).forEach(([h,u])=>{h!=="date"&&typeof u=="number"&&(c[h]=u)});const f=new Map;return e.data.forEach(h=>{e.keyValues.filter(u=>!u.isTotal&&u.key==="oneClickSuccess").forEach(u=>{const b=`${h.uuid}_${u.key}`;f.set(b,h.uuid)})}),l.jsx(Bc,{...s,payload:(o=n.payload)==null?void 0:o.map(h=>({uuid:f.get(h.dataKey)||"",value:h.value,color:h.color||t.palette.primary.main,dataKey:h.dataKey,payload:{...h.payload,latestData:c,uuid:f.get(h.dataKey)}}))})}}),e.data.map(n=>e.keyValues.filter(o=>!o.isTotal&&o.key==="oneClickSuccess").map(o=>l.jsx(_r,{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 dt(e){const t=bt(e.value),{ref:r}=ra({from:t??0,to:e.value,duration:1,map:e.map});return l.jsx(Cr,{sx:{p:3,flex:1,...e.sx},children:l.jsxs(Oe,{spacing:1,alignItems:"center",children:[l.jsx(ue,{ref:r,variant:"h4",fontWeight:"bold",children:e.initialValue}),l.jsx(ue,{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 zt({data:e,series:t,xAxis:r,yAxis:n,tooltip:o,bar:a,referenceLines:i,referenceAreas:s,sx:p}){const c=je(),f=u=>!u.isFront,h=u=>!!u.isFront;return l.jsx(Te,{sx:{width:"100%",height:"100%",...p},children:l.jsx(gt,{children:l.jsxs(Vo,{data:e,...So,children:[l.jsx(Ut,{strokeDasharray:"3 3",vertical:!1}),l.jsx(Gt,{...Yc,...r}),l.jsx(Wt,{...qc,...n}),l.jsx(Bt,{cursor:{stroke:c.palette.neutral.main,strokeWidth:1},...o}),i?.filter(f).map((u,b)=>l.jsx(Mr,{...u},u.label??b)),s?.filter(f).map((u,b)=>l.jsx(Ir,{...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(Mr,{...u},u.label??b)),s?.filter(h).map((u,b)=>l.jsx(Ir,{...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(ue,{variant:"h6",fontWeight:"900",...e})}function ko(e){return l.jsx(ue,{variant:"h6",fontWeight:"400",...e})}function _e(){const e=Re();return l.jsxs(Oe,{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(Oe,{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=je(),s=Re(),p=Object.entries(e??{}).map(([f,h])=>({key:f,[f]:h})),c=p.map(({key:f})=>({key:f,dataKey:f,color:i.palette.error.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(zt,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:p,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:f=>`${Oo[f]?`${Oo[f]}`:""}`}})}function Zc({data:e,threshold:t=100,isLoading:r=!1,isFetching:n=!1,isSuccess:o=!0,sx:a}){const i=je(),s=Re(),p=Object.entries(e??{}).map(([f,h])=>({key:f,[f]:h})),c=p.map(({key:f})=>({key:f,dataKey:f,color:i.palette.warning.light}));return r?l.jsx(Me,{}):!e||Object.keys(e).length===0||!o?l.jsx(_e,{}):l.jsx(zt,{sx:{...s.smallChartWrapper,opacity:n?.4:1,...a},data:p,series:c,xAxis:{tickLine:!1,dataKey:"key"},yAxis:{tickLine:!1,domain:[0,`dataMax + ${t>0?t+5:0}`]},tooltip:{labelFormatter:f=>"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:p,fill:c,payload:f,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:f.name});return l.jsxs("g",{children:[E(),l.jsx(Rr,{cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:s,endAngle:p,fill:c}),l.jsx(Rr,{cx:r,cy:n,startAngle:s,endAngle:p,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:p}=e,c=Math.PI/180;let f=0;r.forEach(E=>{f+=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/f))),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=p??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:p,needleColor:c="#aaa",allActive:f=!1}){const{innerRadius:h=60,outerRadius:u=100}=i??{},b=je(),[y,g]=yt(void 0),[d,x]=yt(new Set),O=Fo(null),[j,F]=yt(null),[m,k]=yt(null),$=(S,E)=>{f||g(E)},B=()=>{f||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 Nr(()=>{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()}},[]),Nr(()=>{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(gt,{children:l.jsxs(Uo,{...So,children:[l.jsx(Go,{data:Q,nameKey:"name",dataKey:"value",innerRadius:h,outerRadius:u,activeIndex:f?Q.filter(S=>S.value>0).map(S=>S.index):y,activeShape:S=>Jc({...S,valueText:o,valuePercentage:a,needleVisible:s,allActive:f}),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(Kt,{content:l.jsx($o,{legendLabel:r,hiddenItems:d,onToggle:re})}),s&&p!==void 0&&j&&m&&Qc({data:Q,value:p,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=je(),p=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:{...p.smallChartWrapper,opacity:o?.4:1,...i}})}function tl({data:e,isLoading:t,isFetching:r,isSuccess:n,sx:o}){const a=je(),i=Re(),s=(c=>{const f={};return c.forEach(h=>{Object.entries(h).forEach(([u,b])=>{const y=parseInt(u);y<=1e3&&(f[y]=(f[y]||0)+b)})}),Array.from({length:1001},(h,u)=>({key:u.toString(),value:f[u]||0}))})(e),p=[{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(zt,{data:s,series:p,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,f,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;je();const p=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:{...p.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),p=(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:p}});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:Cr,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(ue,{variant:"caption",color:"text.secondary",fontWeight:"600",children:["The data was last updated on"," ",zc(e??Date.now(),{hour12:!1}),"."]})}const Co=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),To={totalSignups:0,totalSuccess:0,totalCost:0,successRate:0};function pl(e){if(!(e!=null&&e.length))return To;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?To:pl(e);return l.jsxs(Oe,{direction:"row",spacing:3,children:[l.jsx(dt,{label:"Total 1-Click Signups",value:n.totalSignups,initialValue:n.totalSignups,map:Co}),l.jsx(dt,{label:"Finished 1-Click Signups",value:n.totalSuccess,initialValue:n.totalSuccess,map:Co}),!r&&l.jsx(dt,{label:"Total Cost",value:n.totalCost,initialValue:n.totalCost,map:ll}),l.jsx(dt,{label:"Success Rate",value:n.successRate,initialValue:n.successRate,map:ul})]})}export{br as A,dt 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,ur 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,vr as T,ft as U,jr as W,me as _,vo as a,wo as b,zt 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,T as n,xr as o,to as p,an as q,po as r,lo as s,sn as t,$r as u,co as v,Ct as w,ga as x,er as y,hr as z};