@attabot/product-app 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- (function(c,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],z):(c=typeof globalThis<"u"?globalThis:c||self,c.ProductApp=z(c["react/jsx-runtime"],c.React,c.ReactDOM))})(this,(function(c,z,ho){"use strict";var Xa=typeof document<"u"?document.currentScript:null;function Vd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Vd(z),ey=Vd(ho);function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},go.apply(this,arguments)}var Vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vn||(Vn={}));const Ud="popstate";function ty(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return Ja("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:mo(i)}return ry(t,n,null,e)}function Ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ny(){return Math.random().toString(36).substr(2,8)}function Hd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ja(e,t,n,r){return n===void 0&&(n=null),go({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ir(t):t,{state:n,key:t&&t.key||r||ny()})}function mo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ir(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ry(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Vn.Pop,d=null,p=u();p==null&&(p=0,a.replaceState(go({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=Vn.Pop;let m=u(),b=m==null?null:m-p;p=m,d&&d({action:l,location:f.location,delta:b})}function x(m,b){l=Vn.Push;let w=Ja(f.location,m,b);p=u()+1;let S=Hd(w,p),v=f.createHref(w);try{a.pushState(S,"",v)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(v)}s&&d&&d({action:l,location:f.location,delta:1})}function y(m,b){l=Vn.Replace;let w=Ja(f.location,m,b);p=u();let S=Hd(w,p),v=f.createHref(w);a.replaceState(S,"",v),s&&d&&d({action:l,location:f.location,delta:0})}function g(m){let b=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof m=="string"?m:mo(m);return w=w.replace(/ $/,"%20"),Ne(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let f={get action(){return l},get location(){return e(i,a)},listen(m){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(Ud,h),d=m,()=>{i.removeEventListener(Ud,h),d=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let b=g(m);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:x,replace:y,go(m){return a.go(m)}};return f}var qd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qd||(qd={}));function oy(e,t,n){return n===void 0&&(n="/"),iy(e,t,n)}function iy(e,t,n,r){let i=typeof t=="string"?Ir(t):t,s=Un(i.pathname||"/",n);if(s==null)return null;let a=Yd(e);sy(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let p=yy(s);l=gy(a[d],p)}return l}function Yd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let d={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&(Ne(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let p=kn([r,d.relativePath]),u=n.concat(d);s.children&&s.children.length>0&&(Ne(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),Yd(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:fy(p,s.index),routesMeta:u})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let d of Kd(s.path))i(s,a,d)}),t}function Kd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=Kd(r.join("/")),l=[];return l.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function sy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ay=/^:[\w-]+$/,ly=3,cy=2,dy=1,uy=10,py=-2,Gd=e=>e==="*";function fy(e,t){let n=e.split("/"),r=n.length;return n.some(Gd)&&(r+=py),t&&(r+=cy),n.filter(i=>!Gd(i)).reduce((i,s)=>i+(ay.test(s)?ly:s===""?dy:uy),r)}function hy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function gy(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let l=0;l<r.length;++l){let d=r[l],p=l===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Qa({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),x=d.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:kn([s,h.pathname]),pathnameBase:wy(kn([s,h.pathnameBase])),route:x}),h.pathnameBase!=="/"&&(s=kn([s,h.pathnameBase]))}return a}function Qa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=my(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((p,u,h)=>{let{paramName:x,isOptional:y}=u;if(x==="*"){let f=l[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[h];return y&&!g?p[x]=void 0:p[x]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function my(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function yy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Un(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const by=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vy=e=>by.test(e);function xy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ir(e):e,s;if(n)if(vy(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Rt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Xd(n.substring(1),"/"):s=Xd(n,t)}else s=t;return{pathname:s,search:Cy(r),hash:Ey(i)}}function Xd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Za(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Sy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jd(e,t){let n=Sy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ir(e):(i=go({},e),Ne(!i.pathname||!i.pathname.includes("?"),Za("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),Za("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),Za("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let x=a.split("/");for(;x[0]==="..";)x.shift(),h-=1;i.pathname=x.join("/")}l=h>=0?t[h]:"/"}let d=xy(i,l),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const kn=e=>e.join("/").replace(/\/\/+/g,"/"),wy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ey=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ty(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zd=["post","put","patch","delete"];new Set(Zd);const Py=["get",...Zd];new Set(Py);function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yo.apply(this,arguments)}const bo=E.createContext(null);process.env.NODE_ENV!=="production"&&(bo.displayName="DataRouter");const el=E.createContext(null);process.env.NODE_ENV!=="production"&&(el.displayName="DataRouterState");const Oy=E.createContext(null);process.env.NODE_ENV!=="production"&&(Oy.displayName="Await");const Qt=E.createContext(null);process.env.NODE_ENV!=="production"&&(Qt.displayName="Navigation");const vo=E.createContext(null);process.env.NODE_ENV!=="production"&&(vo.displayName="Location");const In=E.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(In.displayName="Route");const tl=E.createContext(null);process.env.NODE_ENV!=="production"&&(tl.displayName="RouteError");function ky(e,t){let{relative:n}=t===void 0?{}:t;xo()||(process.env.NODE_ENV!=="production"?Ne(!1,"useHref() may be used only in the context of a <Router> component."):Ne(!1));let{basename:r,navigator:i}=E.useContext(Qt),{hash:s,pathname:a,search:l}=So(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:kn([r,a])),i.createHref({pathname:d,search:l,hash:s})}function xo(){return E.useContext(vo)!=null}function yt(){return xo()||(process.env.NODE_ENV!=="production"?Ne(!1,"useLocation() may be used only in the context of a <Router> component."):Ne(!1)),E.useContext(vo).location}const eu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tu(e){E.useContext(Qt).static||E.useLayoutEffect(e)}function bt(){let{isDataRoute:e}=E.useContext(In);return e?Ry():Iy()}function Iy(){xo()||(process.env.NODE_ENV!=="production"?Ne(!1,"useNavigate() may be used only in the context of a <Router> component."):Ne(!1));let e=E.useContext(bo),{basename:t,future:n,navigator:r}=E.useContext(Qt),{matches:i}=E.useContext(In),{pathname:s}=yt(),a=JSON.stringify(Jd(i,n.v7_relativeSplatPath)),l=E.useRef(!1);return tu(()=>{l.current=!0}),E.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&Rt(l.current,eu),!l.current)return;if(typeof p=="number"){r.go(p);return}let h=Qd(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:kn([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,s,e])}function So(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Qt),{matches:i}=E.useContext(In),{pathname:s}=yt(),a=JSON.stringify(Jd(i,r.v7_relativeSplatPath));return E.useMemo(()=>Qd(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function Ny(e,t){return Ay(e,t)}function Ay(e,t,n,r){xo()||(process.env.NODE_ENV!=="production"?Ne(!1,"useRoutes() may be used only in the context of a <Router> component."):Ne(!1));let{navigator:i}=E.useContext(Qt),{matches:s}=E.useContext(In),a=s[s.length-1],l=a?a.params:{},d=a?a.pathname:"/",p=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let w=u&&u.path||"";ou(d,!u||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1
+ (function(c,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],z):(c=typeof globalThis<"u"?globalThis:c||self,c.ProductApp=z(c["react/jsx-runtime"],c.React,c.ReactDOM))})(this,(function(c,z,ho){"use strict";var Xa=typeof document<"u"?document.currentScript:null;function Vd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=Vd(z),ey=Vd(ho);function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},go.apply(this,arguments)}var Un;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Un||(Un={}));const Ud="popstate";function ty(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return Ja("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:mo(i)}return ry(t,n,null,e)}function Ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ny(){return Math.random().toString(36).substr(2,8)}function Hd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ja(e,t,n,r){return n===void 0&&(n=null),go({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nr(t):t,{state:n,key:t&&t.key||r||ny()})}function mo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ry(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Un.Pop,d=null,p=u();p==null&&(p=0,a.replaceState(go({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=Un.Pop;let m=u(),b=m==null?null:m-p;p=m,d&&d({action:l,location:f.location,delta:b})}function x(m,b){l=Un.Push;let w=Ja(f.location,m,b);p=u()+1;let S=Hd(w,p),v=f.createHref(w);try{a.pushState(S,"",v)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(v)}s&&d&&d({action:l,location:f.location,delta:1})}function y(m,b){l=Un.Replace;let w=Ja(f.location,m,b);p=u();let S=Hd(w,p),v=f.createHref(w);a.replaceState(S,"",v),s&&d&&d({action:l,location:f.location,delta:0})}function g(m){let b=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof m=="string"?m:mo(m);return w=w.replace(/ $/,"%20"),Ie(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let f={get action(){return l},get location(){return e(i,a)},listen(m){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(Ud,h),d=m,()=>{i.removeEventListener(Ud,h),d=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let b=g(m);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:x,replace:y,go(m){return a.go(m)}};return f}var qd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qd||(qd={}));function oy(e,t,n){return n===void 0&&(n="/"),iy(e,t,n)}function iy(e,t,n,r){let i=typeof t=="string"?Nr(t):t,s=Hn(i.pathname||"/",n);if(s==null)return null;let a=Yd(e);sy(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let p=yy(s);l=gy(a[d],p)}return l}function Yd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let d={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&(Ie(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let p=kn([r,d.relativePath]),u=n.concat(d);s.children&&s.children.length>0&&(Ie(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),Yd(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:fy(p,s.index),routesMeta:u})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let d of Kd(s.path))i(s,a,d)}),t}function Kd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=Kd(r.join("/")),l=[];return l.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function sy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ay=/^:[\w-]+$/,ly=3,cy=2,dy=1,uy=10,py=-2,Gd=e=>e==="*";function fy(e,t){let n=e.split("/"),r=n.length;return n.some(Gd)&&(r+=py),t&&(r+=cy),n.filter(i=>!Gd(i)).reduce((i,s)=>i+(ay.test(s)?ly:s===""?dy:uy),r)}function hy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function gy(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let l=0;l<r.length;++l){let d=r[l],p=l===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Qa({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),x=d.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:kn([s,h.pathname]),pathnameBase:wy(kn([s,h.pathnameBase])),route:x}),h.pathnameBase!=="/"&&(s=kn([s,h.pathnameBase]))}return a}function Qa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=my(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((p,u,h)=>{let{paramName:x,isOptional:y}=u;if(x==="*"){let f=l[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[h];return y&&!g?p[x]=void 0:p[x]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function my(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function yy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const by=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vy=e=>by.test(e);function xy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nr(e):e,s;if(n)if(vy(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Rt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Xd(n.substring(1),"/"):s=Xd(n,t)}else s=t;return{pathname:s,search:Cy(r),hash:Ey(i)}}function Xd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Za(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Sy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jd(e,t){let n=Sy(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nr(e):(i=go({},e),Ie(!i.pathname||!i.pathname.includes("?"),Za("?","pathname","search",i)),Ie(!i.pathname||!i.pathname.includes("#"),Za("#","pathname","hash",i)),Ie(!i.search||!i.search.includes("#"),Za("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let x=a.split("/");for(;x[0]==="..";)x.shift(),h-=1;i.pathname=x.join("/")}l=h>=0?t[h]:"/"}let d=xy(i,l),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const kn=e=>e.join("/").replace(/\/\/+/g,"/"),wy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ey=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ty(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zd=["post","put","patch","delete"];new Set(Zd);const Py=["get",...Zd];new Set(Py);function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yo.apply(this,arguments)}const bo=E.createContext(null);process.env.NODE_ENV!=="production"&&(bo.displayName="DataRouter");const el=E.createContext(null);process.env.NODE_ENV!=="production"&&(el.displayName="DataRouterState");const Oy=E.createContext(null);process.env.NODE_ENV!=="production"&&(Oy.displayName="Await");const Qt=E.createContext(null);process.env.NODE_ENV!=="production"&&(Qt.displayName="Navigation");const vo=E.createContext(null);process.env.NODE_ENV!=="production"&&(vo.displayName="Location");const Nn=E.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Nn.displayName="Route");const tl=E.createContext(null);process.env.NODE_ENV!=="production"&&(tl.displayName="RouteError");function ky(e,t){let{relative:n}=t===void 0?{}:t;xo()||(process.env.NODE_ENV!=="production"?Ie(!1,"useHref() may be used only in the context of a <Router> component."):Ie(!1));let{basename:r,navigator:i}=E.useContext(Qt),{hash:s,pathname:a,search:l}=So(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:kn([r,a])),i.createHref({pathname:d,search:l,hash:s})}function xo(){return E.useContext(vo)!=null}function yt(){return xo()||(process.env.NODE_ENV!=="production"?Ie(!1,"useLocation() may be used only in the context of a <Router> component."):Ie(!1)),E.useContext(vo).location}const eu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tu(e){E.useContext(Qt).static||E.useLayoutEffect(e)}function bt(){let{isDataRoute:e}=E.useContext(Nn);return e?Ry():Ny()}function Ny(){xo()||(process.env.NODE_ENV!=="production"?Ie(!1,"useNavigate() may be used only in the context of a <Router> component."):Ie(!1));let e=E.useContext(bo),{basename:t,future:n,navigator:r}=E.useContext(Qt),{matches:i}=E.useContext(Nn),{pathname:s}=yt(),a=JSON.stringify(Jd(i,n.v7_relativeSplatPath)),l=E.useRef(!1);return tu(()=>{l.current=!0}),E.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&Rt(l.current,eu),!l.current)return;if(typeof p=="number"){r.go(p);return}let h=Qd(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:kn([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,s,e])}function So(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Qt),{matches:i}=E.useContext(Nn),{pathname:s}=yt(),a=JSON.stringify(Jd(i,r.v7_relativeSplatPath));return E.useMemo(()=>Qd(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function Iy(e,t){return Ay(e,t)}function Ay(e,t,n,r){xo()||(process.env.NODE_ENV!=="production"?Ie(!1,"useRoutes() may be used only in the context of a <Router> component."):Ie(!1));let{navigator:i}=E.useContext(Qt),{matches:s}=E.useContext(Nn),a=s[s.length-1],l=a?a.params:{},d=a?a.pathname:"/",p=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let w=u&&u.path||"";ou(d,!u||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
2
 
3
- `+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=yt(),x;if(t){var y;let w=typeof t=="string"?Ir(t):t;p==="/"||(y=w.pathname)!=null&&y.startsWith(p)||(process.env.NODE_ENV!=="production"?Ne(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):Ne(!1)),x=w}else x=h;let g=x.pathname||"/",f=g;if(p!=="/"){let w=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=oy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Rt(u||m!=null,'No routes matched location "'+x.pathname+x.search+x.hash+'" '),process.env.NODE_ENV!=="production"&&Rt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+x.pathname+x.search+x.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let b=$y(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:kn([p,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:kn([p,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&b?E.createElement(vo.Provider,{value:{location:yo({pathname:"/",search:"",hash:"",state:null,key:"default"},x),navigationType:Vn.Pop}},b):b}function My(){let e=Wy(),t=Ty(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route."))),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,a)}const Fy=E.createElement(My,null);class _y extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(In.Provider,{value:this.props.routeContext},E.createElement(tl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Dy(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(bo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(In.Provider,{value:t},r)}function $y(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?Ne(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Ne(!1)),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:x,errors:y}=n,g=h.route.loader&&x[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,x)=>{let y,g=!1,f=null,m=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,f=h.route.errorElement||Fy,d&&(p<0&&x===0?(ou("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===x&&(g=!0,m=h.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,x+1)),w=()=>{let S;return y?S=f:g?S=m:h.route.Component?S=E.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=u,E.createElement(Dy,{match:h,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||x===0)?E.createElement(_y,{location:n.location,revalidation:n.revalidation,component:f,error:y,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var nu=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(nu||{}),wo=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(wo||{});function nl(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zy(e){let t=E.useContext(bo);return t||(process.env.NODE_ENV!=="production"?Ne(!1,nl(e)):Ne(!1)),t}function Ly(e){let t=E.useContext(el);return t||(process.env.NODE_ENV!=="production"?Ne(!1,nl(e)):Ne(!1)),t}function jy(e){let t=E.useContext(In);return t||(process.env.NODE_ENV!=="production"?Ne(!1,nl(e)):Ne(!1)),t}function rl(e){let t=jy(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Ne(!1,e+' can only be used on routes that contain a unique "id"'):Ne(!1)),n.route.id}function By(){return rl(wo.UseRouteId)}function Wy(){var e;let t=E.useContext(tl),n=Ly(wo.UseRouteError),r=rl(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ry(){let{router:e}=zy(nu.UseNavigateStable),t=rl(wo.UseNavigateStable),n=E.useRef(!1);return tu(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Rt(n.current,eu),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,yo({fromRouteId:t},s)))},[e,t])}const ru={};function ou(e,t,n){!t&&!ru[e]&&(ru[e]=!0,process.env.NODE_ENV!=="production"&&Rt(!1,n))}const iu={};function Vy(e,t){process.env.NODE_ENV!=="production"&&!iu[t]&&(iu[t]=!0,console.warn(t))}const su=(e,t,n)=>Vy(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Uy(e,t){e?.v7_startTransition===void 0&&su("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&su("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Hn(e){process.env.NODE_ENV!=="production"?Ne(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Ne(!1)}function Hy(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vn.Pop,navigator:s,static:a=!1,future:l}=e;xo()&&(process.env.NODE_ENV!=="production"?Ne(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Ne(!1));let d=t.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:d,navigator:s,static:a,future:yo({v7_relativeSplatPath:!1},l)}),[d,l,s,a]);typeof r=="string"&&(r=Ir(r));let{pathname:u="/",search:h="",hash:x="",state:y=null,key:g="default"}=r,f=E.useMemo(()=>{let m=Un(u,d);return m==null?null:{location:{pathname:m,search:h,hash:x,state:y,key:g},navigationType:i}},[d,u,h,x,y,g,i]);return process.env.NODE_ENV!=="production"&&Rt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+x+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:E.createElement(Qt.Provider,{value:p},E.createElement(vo.Provider,{children:n,value:f}))}function qy(e){let{children:t,location:n}=e;return Ny(ol(t),n)}new Promise(()=>{});function ol(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let s=[...t,i];if(r.type===E.Fragment){n.push.apply(n,ol(r.props.children,s));return}r.type!==Hn&&(process.env.NODE_ENV!=="production"?Ne(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Ne(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Ne(!1,"An index route cannot have child routes."):Ne(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ol(r.props.children,s)),n.push(a)}),n}function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nr.apply(this,arguments)}function il(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Wi="get",Ri="application/x-www-form-urlencoded";function Vi(e){return e!=null&&typeof e.tagName=="string"}function Yy(e){return Vi(e)&&e.tagName.toLowerCase()==="button"}function Ky(e){return Vi(e)&&e.tagName.toLowerCase()==="form"}function Gy(e){return Vi(e)&&e.tagName.toLowerCase()==="input"}function Xy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jy(e,t){return e.button===0&&(!t||t==="_self")&&!Xy(e)}function sl(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Qy(e,t){let n=sl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let Ui=null;function Zy(){if(Ui===null)try{new FormData(document.createElement("form"),0),Ui=!1}catch{Ui=!0}return Ui}const eb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function al(e){return e!=null&&!eb.has(e)?(process.env.NODE_ENV!=="production"&&Rt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Ri+'"')),null):e}function tb(e,t){let n,r,i,s,a;if(Ky(e)){let l=e.getAttribute("action");r=l?Un(l,t):null,n=e.getAttribute("method")||Wi,i=al(e.getAttribute("enctype"))||Ri,s=new FormData(e)}else if(Yy(e)||Gy(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||l.getAttribute("action");if(r=d?Un(d,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Wi,i=al(e.getAttribute("formenctype"))||al(l.getAttribute("enctype"))||Ri,s=new FormData(l,e),!Zy()){let{name:p,type:u,value:h}=e;if(u==="image"){let x=p?p+".":"";s.append(x+"x","0"),s.append(x+"y","0")}else p&&s.append(p,h)}}else{if(Vi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Wi,r=null,i=Ri,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const nb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ob=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],ib="6";try{window.__reactRouterVersion=ib}catch{}const au=E.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(au.displayName="ViewTransition");const sb=E.createContext(new Map);process.env.NODE_ENV!=="production"&&(sb.displayName="Fetchers");const lu=E["startTransition"];function ab(e){let{basename:t,children:n,future:r,window:i}=e,s=E.useRef();s.current==null&&(s.current=ty({window:i,v5Compat:!0}));let a=s.current,[l,d]=E.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=E.useCallback(h=>{p&&lu?lu(()=>d(h)):d(h)},[d,p]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.useEffect(()=>Uy(r),[r]),E.createElement(Hy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const lb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cu=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,x=il(t,nb),{basename:y}=E.useContext(Qt),g,f=!1;if(typeof p=="string"&&cb.test(p)&&(g=p,lb))try{let S=new URL(window.location.href),v=p.startsWith("//")?new URL(S.protocol+p):new URL(p),C=Un(v.pathname,y);v.origin===S.origin&&C!=null?p=C+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Rt(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=ky(p,{relative:i}),b=fb(p,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,viewTransition:h});function w(S){r&&r(S),S.defaultPrevented||b(S)}return E.createElement("a",Nr({},x,{href:g||m,onClick:f||s?r:w,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(cu.displayName="Link");const db=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:d,viewTransition:p,children:u}=t,h=il(t,rb),x=So(d,{relative:h.relative}),y=yt(),g=E.useContext(el),{navigator:f,basename:m}=E.useContext(Qt),b=g!=null&&xb(x)&&p===!0,w=f.encodeLocation?f.encodeLocation(x).pathname:x.pathname,S=y.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(S=S.toLowerCase(),v=v?v.toLowerCase():null,w=w.toLowerCase()),v&&m&&(v=Un(v,m)||v);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let P=S===w||!a&&S.startsWith(w)&&S.charAt(C)==="/",O=v!=null&&(v===w||!a&&v.startsWith(w)&&v.charAt(w.length)==="/"),A={isActive:P,isPending:O,isTransitioning:b},k=P?r:void 0,L;typeof s=="function"?L=s(A):L=[s,P?"active":null,O?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let D=typeof l=="function"?l(A):l;return E.createElement(cu,Nr({},h,{"aria-current":k,className:L,ref:n,style:D,to:d,viewTransition:p}),typeof u=="function"?u(A):u)});process.env.NODE_ENV!=="production"&&(db.displayName="NavLink");const ub=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=Wi,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:x}=e,y=il(e,ob),g=bb(),f=vb(d,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",b=w=>{if(p&&p(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,v=S?.getAttribute("formmethod")||l;g(S||w.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:x})};return E.createElement("form",Nr({ref:t,method:m,action:f,onSubmit:i?p:b},y))});process.env.NODE_ENV!=="production"&&(ub.displayName="Form"),process.env.NODE_ENV;var Hi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hi||(Hi={}));var du;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(du||(du={}));function pb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function uu(e){let t=E.useContext(bo);return t||(process.env.NODE_ENV!=="production"?Ne(!1,pb(e)):Ne(!1)),t}function fb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,d=bt(),p=yt(),u=So(e,{relative:a});return E.useCallback(h=>{if(Jy(h,n)){h.preventDefault();let x=r!==void 0?r:mo(p)===mo(u);d(e,{replace:x,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[p,d,u,r,i,n,e,s,a,l])}function hb(e){process.env.NODE_ENV!=="production"&&Rt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(sl(e)),n=E.useRef(!1),r=yt(),i=E.useMemo(()=>Qy(r.search,n.current?null:t.current),[r.search]),s=bt(),a=E.useCallback((l,d)=>{const p=sl(typeof l=="function"?l(i):l);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function gb(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let mb=0,yb=()=>"__"+String(++mb)+"__";function bb(){let{router:e}=uu(Hi.UseSubmit),{basename:t}=E.useContext(Qt),n=By();return E.useCallback(function(r,i){i===void 0&&(i={}),gb();let{action:s,method:a,encType:l,formData:d,body:p}=tb(r,t);if(i.navigate===!1){let u=i.fetcherKey||yb();e.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function vb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(Qt),i=E.useContext(In);i||(process.env.NODE_ENV!=="production"?Ne(!1,"useFormAction must be used inside a RouteContext"):Ne(!1));let[s]=i.matches.slice(-1),a=Nr({},So(e||".",{relative:n})),l=yt();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(x=>x).forEach(x=>d.append("index",x));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:kn([r,a.pathname])),mo(a)}function xb(e,t){t===void 0&&(t={});let n=E.useContext(au);n==null&&(process.env.NODE_ENV!=="production"?Ne(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ne(!1));let{basename:r}=uu(Hi.useViewTransitionState),i=So(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Un(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Un(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qa(i.pathname,a)!=null||Qa(i.pathname,s)!=null}function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qi={exports:{}},ll={};var fu;function Sb(){if(fu)return ll;fu=1;var e=z;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return ll.useSyncExternalStoreWithSelector=function(d,p,u,h,x){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function m(C){if(!b){if(b=!0,w=C,C=h(C),x!==void 0&&g.hasValue){var P=g.value;if(x(P,C))return S=P}return S=C}if(P=S,n(w,C))return P;var O=h(C);return x!==void 0&&x(P,O)?(w=C,P):(w=C,S=O)}var b=!1,w,S,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,h,x]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},ll}var cl={};var hu;function wb(){return hu||(hu=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=z,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;cl.useSyncExternalStoreWithSelector=function(d,p,u,h,x){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function m(C){if(!b){if(b=!0,w=C,C=h(C),x!==void 0&&g.hasValue){var P=g.value;if(x(P,C))return S=P}return S=C}if(P=S,n(w,C))return P;var O=h(C);return x!==void 0&&x(P,O)?(w=C,P):(w=C,S=O)}var b=!1,w,S,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,h,x]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cl}var gu;function Cb(){return gu||(gu=1,process.env.NODE_ENV==="production"?qi.exports=Sb():qi.exports=wb()),qi.exports}var Eb=Cb();function Tb(e){e()}function Pb(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Tb(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var mu={notify(){},get:()=>[]};function Ob(e,t){let n,r=mu,i=0,s=!1;function a(f){u();const m=r.subscribe(f);let b=!1;return()=>{b||(b=!0,m(),h())}}function l(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=Pb())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=mu)}function x(){s||(s=!0,u())}function y(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:p,trySubscribe:x,tryUnsubscribe:y,getListeners:()=>r};return g}var kb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ib=kb(),Nb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ab=Nb(),Mb=()=>Ib||Ab?E.useLayoutEffect:E.useEffect,Fb=Mb(),_b=Symbol.for("react-redux-context"),Db=typeof globalThis<"u"?globalThis:{};function $b(){if(!E.createContext)return{};const e=Db[_b]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(E.createContext,t)),t}var qn=$b();function zb(e){const{children:t,context:n,serverState:r,store:i}=e,s=E.useMemo(()=>{const d=Ob(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[i,r]),a=E.useMemo(()=>i.getState(),[i]);Fb(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),a!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,a]);const l=n||qn;return E.createElement(l.Provider,{value:s},t)}var Lb=zb;function dl(e=qn){return function(){const n=E.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var yu=dl();function bu(e=qn){const t=e===qn?yu:dl(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var jb=bu();function Bb(e=qn){const t=e===qn?jb:bu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var $t=Bb(),Wb=(e,t)=>e===t;function Rb(e=qn){const t=e===qn?yu:dl(e),n=(r,i={})=>{const{equalityFn:s=Wb}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:l,subscription:d,getServerState:p}=a,u=E.useRef(!0),h=E.useCallback({[r.name](y){const g=r(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:b}=a,{identityFunctionCheck:w,stabilityCheck:S}={stabilityCheck:b,identityFunctionCheck:m,...f};if(S==="always"||S==="once"&&u.current){const v=r(y);if(!s(g,v)){let C;try{throw new Error}catch(P){({stack:C}=P)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
3
+ `+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=yt(),x;if(t){var y;let w=typeof t=="string"?Nr(t):t;p==="/"||(y=w.pathname)!=null&&y.startsWith(p)||(process.env.NODE_ENV!=="production"?Ie(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):Ie(!1)),x=w}else x=h;let g=x.pathname||"/",f=g;if(p!=="/"){let w=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=oy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Rt(u||m!=null,'No routes matched location "'+x.pathname+x.search+x.hash+'" '),process.env.NODE_ENV!=="production"&&Rt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+x.pathname+x.search+x.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let b=$y(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:kn([p,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:kn([p,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&b?E.createElement(vo.Provider,{value:{location:yo({pathname:"/",search:"",hash:"",state:null,key:"default"},x),navigationType:Un.Pop}},b):b}function My(){let e=Wy(),t=Ty(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route."))),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,a)}const Fy=E.createElement(My,null);class _y extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Nn.Provider,{value:this.props.routeContext},E.createElement(tl.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Dy(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(bo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Nn.Provider,{value:t},r)}function $y(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?Ie(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Ie(!1)),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:x,errors:y}=n,g=h.route.loader&&x[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,x)=>{let y,g=!1,f=null,m=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,f=h.route.errorElement||Fy,d&&(p<0&&x===0?(ou("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===x&&(g=!0,m=h.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,x+1)),w=()=>{let S;return y?S=f:g?S=m:h.route.Component?S=E.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=u,E.createElement(Dy,{match:h,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||x===0)?E.createElement(_y,{location:n.location,revalidation:n.revalidation,component:f,error:y,children:w(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):w()},null)}var nu=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(nu||{}),wo=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(wo||{});function nl(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zy(e){let t=E.useContext(bo);return t||(process.env.NODE_ENV!=="production"?Ie(!1,nl(e)):Ie(!1)),t}function Ly(e){let t=E.useContext(el);return t||(process.env.NODE_ENV!=="production"?Ie(!1,nl(e)):Ie(!1)),t}function jy(e){let t=E.useContext(Nn);return t||(process.env.NODE_ENV!=="production"?Ie(!1,nl(e)):Ie(!1)),t}function rl(e){let t=jy(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Ie(!1,e+' can only be used on routes that contain a unique "id"'):Ie(!1)),n.route.id}function By(){return rl(wo.UseRouteId)}function Wy(){var e;let t=E.useContext(tl),n=Ly(wo.UseRouteError),r=rl(wo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ry(){let{router:e}=zy(nu.UseNavigateStable),t=rl(wo.UseNavigateStable),n=E.useRef(!1);return tu(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Rt(n.current,eu),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,yo({fromRouteId:t},s)))},[e,t])}const ru={};function ou(e,t,n){!t&&!ru[e]&&(ru[e]=!0,process.env.NODE_ENV!=="production"&&Rt(!1,n))}const iu={};function Vy(e,t){process.env.NODE_ENV!=="production"&&!iu[t]&&(iu[t]=!0,console.warn(t))}const su=(e,t,n)=>Vy(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Uy(e,t){e?.v7_startTransition===void 0&&su("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&su("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function qn(e){process.env.NODE_ENV!=="production"?Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Ie(!1)}function Hy(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Un.Pop,navigator:s,static:a=!1,future:l}=e;xo()&&(process.env.NODE_ENV!=="production"?Ie(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Ie(!1));let d=t.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:d,navigator:s,static:a,future:yo({v7_relativeSplatPath:!1},l)}),[d,l,s,a]);typeof r=="string"&&(r=Nr(r));let{pathname:u="/",search:h="",hash:x="",state:y=null,key:g="default"}=r,f=E.useMemo(()=>{let m=Hn(u,d);return m==null?null:{location:{pathname:m,search:h,hash:x,state:y,key:g},navigationType:i}},[d,u,h,x,y,g,i]);return process.env.NODE_ENV!=="production"&&Rt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+x+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:E.createElement(Qt.Provider,{value:p},E.createElement(vo.Provider,{children:n,value:f}))}function qy(e){let{children:t,location:n}=e;return Iy(ol(t),n)}new Promise(()=>{});function ol(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let s=[...t,i];if(r.type===E.Fragment){n.push.apply(n,ol(r.props.children,s));return}r.type!==qn&&(process.env.NODE_ENV!=="production"?Ie(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Ie(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Ie(!1,"An index route cannot have child routes."):Ie(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ol(r.props.children,s)),n.push(a)}),n}function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ir.apply(this,arguments)}function il(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Wi="get",Ri="application/x-www-form-urlencoded";function Vi(e){return e!=null&&typeof e.tagName=="string"}function Yy(e){return Vi(e)&&e.tagName.toLowerCase()==="button"}function Ky(e){return Vi(e)&&e.tagName.toLowerCase()==="form"}function Gy(e){return Vi(e)&&e.tagName.toLowerCase()==="input"}function Xy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jy(e,t){return e.button===0&&(!t||t==="_self")&&!Xy(e)}function sl(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Qy(e,t){let n=sl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let Ui=null;function Zy(){if(Ui===null)try{new FormData(document.createElement("form"),0),Ui=!1}catch{Ui=!0}return Ui}const eb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function al(e){return e!=null&&!eb.has(e)?(process.env.NODE_ENV!=="production"&&Rt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Ri+'"')),null):e}function tb(e,t){let n,r,i,s,a;if(Ky(e)){let l=e.getAttribute("action");r=l?Hn(l,t):null,n=e.getAttribute("method")||Wi,i=al(e.getAttribute("enctype"))||Ri,s=new FormData(e)}else if(Yy(e)||Gy(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||l.getAttribute("action");if(r=d?Hn(d,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Wi,i=al(e.getAttribute("formenctype"))||al(l.getAttribute("enctype"))||Ri,s=new FormData(l,e),!Zy()){let{name:p,type:u,value:h}=e;if(u==="image"){let x=p?p+".":"";s.append(x+"x","0"),s.append(x+"y","0")}else p&&s.append(p,h)}}else{if(Vi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Wi,r=null,i=Ri,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const nb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ob=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],ib="6";try{window.__reactRouterVersion=ib}catch{}const au=E.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(au.displayName="ViewTransition");const sb=E.createContext(new Map);process.env.NODE_ENV!=="production"&&(sb.displayName="Fetchers");const lu=E["startTransition"];function ab(e){let{basename:t,children:n,future:r,window:i}=e,s=E.useRef();s.current==null&&(s.current=ty({window:i,v5Compat:!0}));let a=s.current,[l,d]=E.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=E.useCallback(h=>{p&&lu?lu(()=>d(h)):d(h)},[d,p]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.useEffect(()=>Uy(r),[r]),E.createElement(Hy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const lb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cu=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,x=il(t,nb),{basename:y}=E.useContext(Qt),g,f=!1;if(typeof p=="string"&&cb.test(p)&&(g=p,lb))try{let S=new URL(window.location.href),v=p.startsWith("//")?new URL(S.protocol+p):new URL(p),C=Hn(v.pathname,y);v.origin===S.origin&&C!=null?p=C+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Rt(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=ky(p,{relative:i}),b=fb(p,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,viewTransition:h});function w(S){r&&r(S),S.defaultPrevented||b(S)}return E.createElement("a",Ir({},x,{href:g||m,onClick:f||s?r:w,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(cu.displayName="Link");const db=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:d,viewTransition:p,children:u}=t,h=il(t,rb),x=So(d,{relative:h.relative}),y=yt(),g=E.useContext(el),{navigator:f,basename:m}=E.useContext(Qt),b=g!=null&&xb(x)&&p===!0,w=f.encodeLocation?f.encodeLocation(x).pathname:x.pathname,S=y.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(S=S.toLowerCase(),v=v?v.toLowerCase():null,w=w.toLowerCase()),v&&m&&(v=Hn(v,m)||v);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let P=S===w||!a&&S.startsWith(w)&&S.charAt(C)==="/",O=v!=null&&(v===w||!a&&v.startsWith(w)&&v.charAt(w.length)==="/"),A={isActive:P,isPending:O,isTransitioning:b},k=P?r:void 0,L;typeof s=="function"?L=s(A):L=[s,P?"active":null,O?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let D=typeof l=="function"?l(A):l;return E.createElement(cu,Ir({},h,{"aria-current":k,className:L,ref:n,style:D,to:d,viewTransition:p}),typeof u=="function"?u(A):u)});process.env.NODE_ENV!=="production"&&(db.displayName="NavLink");const ub=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=Wi,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:x}=e,y=il(e,ob),g=bb(),f=vb(d,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",b=w=>{if(p&&p(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,v=S?.getAttribute("formmethod")||l;g(S||w.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:x})};return E.createElement("form",Ir({ref:t,method:m,action:f,onSubmit:i?p:b},y))});process.env.NODE_ENV!=="production"&&(ub.displayName="Form"),process.env.NODE_ENV;var Hi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hi||(Hi={}));var du;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(du||(du={}));function pb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function uu(e){let t=E.useContext(bo);return t||(process.env.NODE_ENV!=="production"?Ie(!1,pb(e)):Ie(!1)),t}function fb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,d=bt(),p=yt(),u=So(e,{relative:a});return E.useCallback(h=>{if(Jy(h,n)){h.preventDefault();let x=r!==void 0?r:mo(p)===mo(u);d(e,{replace:x,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[p,d,u,r,i,n,e,s,a,l])}function hb(e){process.env.NODE_ENV!=="production"&&Rt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(sl(e)),n=E.useRef(!1),r=yt(),i=E.useMemo(()=>Qy(r.search,n.current?null:t.current),[r.search]),s=bt(),a=E.useCallback((l,d)=>{const p=sl(typeof l=="function"?l(i):l);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function gb(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let mb=0,yb=()=>"__"+String(++mb)+"__";function bb(){let{router:e}=uu(Hi.UseSubmit),{basename:t}=E.useContext(Qt),n=By();return E.useCallback(function(r,i){i===void 0&&(i={}),gb();let{action:s,method:a,encType:l,formData:d,body:p}=tb(r,t);if(i.navigate===!1){let u=i.fetcherKey||yb();e.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function vb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(Qt),i=E.useContext(Nn);i||(process.env.NODE_ENV!=="production"?Ie(!1,"useFormAction must be used inside a RouteContext"):Ie(!1));let[s]=i.matches.slice(-1),a=Ir({},So(e||".",{relative:n})),l=yt();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(x=>x).forEach(x=>d.append("index",x));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:kn([r,a.pathname])),mo(a)}function xb(e,t){t===void 0&&(t={});let n=E.useContext(au);n==null&&(process.env.NODE_ENV!=="production"?Ie(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ie(!1));let{basename:r}=uu(Hi.useViewTransitionState),i=So(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qa(i.pathname,a)!=null||Qa(i.pathname,s)!=null}function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qi={exports:{}},ll={};var fu;function Sb(){if(fu)return ll;fu=1;var e=z;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return ll.useSyncExternalStoreWithSelector=function(d,p,u,h,x){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function m(C){if(!b){if(b=!0,w=C,C=h(C),x!==void 0&&g.hasValue){var P=g.value;if(x(P,C))return S=P}return S=C}if(P=S,n(w,C))return P;var O=h(C);return x!==void 0&&x(P,O)?(w=C,P):(w=C,S=O)}var b=!1,w,S,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,h,x]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},ll}var cl={};var hu;function wb(){return hu||(hu=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=z,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;cl.useSyncExternalStoreWithSelector=function(d,p,u,h,x){var y=i(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function m(C){if(!b){if(b=!0,w=C,C=h(C),x!==void 0&&g.hasValue){var P=g.value;if(x(P,C))return S=P}return S=C}if(P=S,n(w,C))return P;var O=h(C);return x!==void 0&&x(P,O)?(w=C,P):(w=C,S=O)}var b=!1,w,S,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,h,x]);var f=r(d,y[0],y[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cl}var gu;function Cb(){return gu||(gu=1,process.env.NODE_ENV==="production"?qi.exports=Sb():qi.exports=wb()),qi.exports}var Eb=Cb();function Tb(e){e()}function Pb(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Tb(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var mu={notify(){},get:()=>[]};function Ob(e,t){let n,r=mu,i=0,s=!1;function a(f){u();const m=r.subscribe(f);let b=!1;return()=>{b||(b=!0,m(),h())}}function l(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=Pb())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=mu)}function x(){s||(s=!0,u())}function y(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:p,trySubscribe:x,tryUnsubscribe:y,getListeners:()=>r};return g}var kb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nb=kb(),Ib=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ab=Ib(),Mb=()=>Nb||Ab?E.useLayoutEffect:E.useEffect,Fb=Mb(),_b=Symbol.for("react-redux-context"),Db=typeof globalThis<"u"?globalThis:{};function $b(){if(!E.createContext)return{};const e=Db[_b]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(E.createContext,t)),t}var Yn=$b();function zb(e){const{children:t,context:n,serverState:r,store:i}=e,s=E.useMemo(()=>{const d=Ob(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[i,r]),a=E.useMemo(()=>i.getState(),[i]);Fb(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),a!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,a]);const l=n||Yn;return E.createElement(l.Provider,{value:s},t)}var Lb=zb;function dl(e=Yn){return function(){const n=E.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var yu=dl();function bu(e=Yn){const t=e===Yn?yu:dl(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var jb=bu();function Bb(e=Yn){const t=e===Yn?jb:bu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var $t=Bb(),Wb=(e,t)=>e===t;function Rb(e=Yn){const t=e===Yn?yu:dl(e),n=(r,i={})=>{const{equalityFn:s=Wb}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:l,subscription:d,getServerState:p}=a,u=E.useRef(!0),h=E.useCallback({[r.name](y){const g=r(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:b}=a,{identityFunctionCheck:w,stabilityCheck:S}={stabilityCheck:b,identityFunctionCheck:m,...f};if(S==="always"||S==="once"&&u.current){const v=r(y);if(!s(g,v)){let C;try{throw new Error}catch(P){({stack:C}=P)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
4
4
  Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:y,selected:g,selected2:v,stack:C})}}if((w==="always"||w==="once"&&u.current)&&g===y){let v;try{throw new Error}catch(C){({stack:v}=C)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
5
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:v})}u.current&&(u.current=!1)}return g}}[r.name],[r]),x=Eb.useSyncExternalStoreWithSelector(d.addNestedSub,l.getState,p||l.getState,h,s);return E.useDebugValue(x),x};return Object.assign(n,{withTypes:()=>n}),n}var Le=Rb(),Co={},vu;function Vb(){if(vu)return Co;vu=1,Co.__esModule=!0,Co.PersistGate=void 0;var e=t(z);function t(y){if(y&&y.__esModule)return y;var g={};if(y!=null){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(y,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=y[f]}}return g.default=y,g}function n(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(y)}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function i(y,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(y,m.key,m)}}function s(y,g,f){return g&&i(y.prototype,g),y}function a(y,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(y)}function l(y){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(y)}function d(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&u(y,g)}function u(y,g){return u=Object.setPrototypeOf||function(m,b){return m.__proto__=b,m},u(y,g)}function h(y,g,f){return g in y?Object.defineProperty(y,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[g]=f,y}var x=(function(y){p(g,y);function g(){var f,m;r(this,g);for(var b=arguments.length,w=new Array(b),S=0;S<b;S++)w[S]=arguments[S];return m=a(this,(f=l(g)).call.apply(f,[this].concat(w))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(d(m),"handlePersistorState",function(){var v=m.props.persistor,C=v.getState(),P=C.bootstrapped;P&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return Co.PersistGate=x,h(x,"defaultProps",{children:null,loading:null}),Co}var Ub=Vb();function gt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Hb=typeof Symbol=="function"&&Symbol.observable||"@@observable",xu=Hb,ul=()=>Math.random().toString(36).substring(7).split("").join("."),qb={INIT:`@@redux/INIT${ul()}`,REPLACE:`@@redux/REPLACE${ul()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ul()}`},sr=qb;function Eo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Yb(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Xb(e))return"date";if(Gb(e))return"error";const n=Kb(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Kb(e){return typeof e.constructor=="function"?e.constructor.name:null}function Gb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Xb(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Yn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Yb(e)),t}function pl(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?gt(2):`Expected the root reducer to be a function. Instead, received: '${Yn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?gt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?gt(1):`Expected the enhancer to be a function. Instead, received: '${Yn(n)}'`);return n(pl)(e,t)}let r=e,i=t,s=new Map,a=s,l=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((m,b)=>{a.set(b,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?gt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?gt(4):`Expected the listener to be a function. Instead, received: '${Yn(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?gt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;p();const w=l++;return a.set(w,m),function(){if(b){if(d)throw new Error(process.env.NODE_ENV==="production"?gt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,p(),a.delete(w),s=null}}}function x(m){if(!Eo(m))throw new Error(process.env.NODE_ENV==="production"?gt(7):`Actions must be plain objects. Instead, the actual type was: '${Yn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?gt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?gt(17):`Action "type" property must be a string. Instead, the actual type was: '${Yn(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?gt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=a).forEach(w=>{w()}),m}function y(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?gt(10):`Expected the nextReducer to be a function. Instead, received: '${Yn(m)}`);r=m,x({type:sr.REPLACE})}function g(){const m=h;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?gt(11):`Expected the observer to be an object. Instead, received: '${Yn(b)}'`);function w(){const v=b;v.next&&v.next(u())}return w(),{unsubscribe:m(w)}},[xu](){return this}}}return x({type:sr.INIT}),{dispatch:x,subscribe:h,getState:u,replaceReducer:y,[xu]:g}}function Su(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Jb(e,t,n,r){const i=Object.keys(t),s=n&&n.type===sr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Eo(e))return`The ${s} has unexpected type of "${Yn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===sr.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Qb(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:sr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:sr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${sr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function wu(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Su(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{Qb(n)}catch(a){s=a}return function(l={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=Jb(l,n,d,i);h&&Su(h)}let p=!1;const u={};for(let h=0;h<r.length;h++){const x=r[h],y=n[x],g=l[x],f=y(g,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?gt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${x}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[x]=f,p=p||f!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function Yi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Zb(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?gt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(d,...p)=>s(d,...p)},l=e.map(d=>d(a));return s=Yi(...l)(i.dispatch),{...i,dispatch:s}}}function Cu(e){return Eo(e)&&"type"in e&&typeof e.type=="string"}var Eu=Symbol.for("immer-nothing"),Tu=Symbol.for("immer-draftable"),Ct=Symbol.for("immer-state"),e0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function zt(e,...t){if(process.env.NODE_ENV!=="production"){const n=e0[e],r=ar(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lt=Object,Ar=Lt.getPrototypeOf,Ki="constructor",Gi="prototype",fl="configurable",Xi="enumerable",Ji="writable",To="value",Nn=e=>!!e&&!!e[Ct];function Zt(e){return e?Ou(e)||Zi(e)||!!e[Tu]||!!e[Ki]?.[Tu]||es(e)||ts(e):!1}var t0=Lt[Gi][Ki].toString(),Pu=new WeakMap;function Ou(e){if(!e||!gl(e))return!1;const t=Ar(e);if(t===null||t===Lt[Gi])return!0;const n=Lt.hasOwnProperty.call(t,Ki)&&t[Ki];if(n===Object)return!0;if(!ar(n))return!1;let r=Pu.get(n);return r===void 0&&(r=Function.toString.call(n),Pu.set(n,r)),r===t0}function Po(e,t,n=!0){Oo(e)===0?(n?Reflect.ownKeys(e):Lt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Oo(e){const t=e[Ct];return t?t.type_:Zi(e)?1:es(e)?2:ts(e)?3:0}var ku=(e,t,n=Oo(e))=>n===2?e.has(t):Lt[Gi].hasOwnProperty.call(e,t),hl=(e,t,n=Oo(e))=>n===2?e.get(t):e[t],Qi=(e,t,n,r=Oo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function n0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Zi=Array.isArray,es=e=>e instanceof Map,ts=e=>e instanceof Set,gl=e=>typeof e=="object",ar=e=>typeof e=="function",ml=e=>typeof e=="boolean",An=e=>e.copy_||e.base_,yl=e=>e.modified_?e.copy_:e.base_;function bl(e,t){if(es(e))return new Map(e);if(ts(e))return new Set(e);if(Zi(e))return Array[Gi].slice.call(e);const n=Ou(e);if(t===!0||t==="class_only"&&!n){const r=Lt.getOwnPropertyDescriptors(e);delete r[Ct];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],l=r[a];l[Ji]===!1&&(l[Ji]=!0,l[fl]=!0),(l.get||l.set)&&(r[a]={[fl]:!0,[Ji]:!0,[Xi]:l[Xi],[To]:e[a]})}return Lt.create(Ar(e),r)}else{const r=Ar(e);if(r!==null&&n)return{...e};const i=Lt.create(r);return Lt.assign(i,e)}}function vl(e,t=!1){return rs(e)||Nn(e)||!Zt(e)||(Oo(e)>1&&Lt.defineProperties(e,{set:ns,add:ns,clear:ns,delete:ns}),Lt.freeze(e),t&&Po(e,(n,r)=>{vl(r,!0)},!1)),e}function r0(){zt(2)}var ns={[To]:r0};function rs(e){return e===null||!gl(e)?!0:Lt.isFrozen(e)}var os="MapSet",xl="Patches",Iu={};function Mr(e){const t=Iu[e];return t||zt(0,e),t}var o0=e=>!!Iu[e],ko,Nu=()=>ko,i0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:o0(os)?Mr(os):void 0});function Au(e,t){t&&(e.patchPlugin_=Mr(xl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Sl(e){wl(e),e.drafts_.forEach(s0),e.drafts_=null}function wl(e){e===ko&&(ko=e.parent_)}var Mu=e=>ko=i0(ko,e);function s0(e){const t=e[Ct];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Fu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Ct].modified_&&(Sl(t),zt(4)),Zt(e)&&(e=_u(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Ct].base_,e,t)}else e=_u(t,n);return a0(t,e,!0),Sl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Eu?e:void 0}function _u(e,t){if(rs(t))return t;const n=t[Ct];if(!n)return Cl(t,e.handledSet_,e);if(!is(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);zu(n,e)}return n.copy_}function a0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vl(t,n)}function Du(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var is=(e,t)=>e.scope_===t,l0=[];function $u(e,t,n,r){const i=An(e),s=e.type_;if(r!==void 0&&hl(i,r,s)===t){Qi(i,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Po(i,(d,p)=>{if(Nn(p)){const u=l.get(p)||[];u.push(d),l.set(p,u)}})}const a=e.draftLocations_.get(t)??l0;for(const l of a)Qi(i,l,n,s)}function c0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!is(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=yl(s);$u(e,s.draft_??s,a,n),zu(s,i)})}function zu(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}Du(e)}}function d0(e,t,n){const{scope_:r}=e;if(Nn(n)){const i=n[Ct];is(i,r)&&i.callbacks_.push(function(){ss(e);const a=yl(i);$u(e,n,a,t)})}else Zt(n)&&e.callbacks_.push(function(){const s=An(e);hl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Cl(hl(e.copy_,t,e.type_),r.handledSet_,r)})}function Cl(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Nn(e)||t.has(e)||!Zt(e)||rs(e)||(t.add(e),Po(e,(r,i)=>{if(Nn(i)){const s=i[Ct];if(is(s,n)){const a=yl(s);Qi(e,r,a,e.type_),Du(s)}}else Zt(i)&&Cl(i,t,n)})),e}function u0(e,t){const n=Zi(e),r={type_:n?1:0,scope_:t?t.scope_:Nu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=El;n&&(i=[r],s=Io);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,[l,r]}var El={get(e,t){if(t===Ct)return e;const n=An(e);if(!ku(n,t,e.type_))return p0(e,n,t);const r=n[t];if(e.finalized_||!Zt(r))return r;if(r===Tl(e.base_,t)){ss(e);const i=e.type_===1?+t:t,s=Ol(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in An(e)},ownKeys(e){return Reflect.ownKeys(An(e))},set(e,t,n){const r=Lu(An(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Tl(An(e),t),s=i?.[Ct];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(n0(n,i)&&(n!==void 0||ku(e.base_,t,e.type_)))return!0;ss(e),Pl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),d0(e,t,n)),!0},deleteProperty(e,t){return ss(e),Tl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Pl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=An(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ji]:!0,[fl]:e.type_!==1||t!=="length",[Xi]:r[Xi],[To]:n[t]}},defineProperty(){zt(11)},getPrototypeOf(e){return Ar(e.base_)},setPrototypeOf(){zt(12)}},Io={};Po(El,(e,t)=>{Io[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Io.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&zt(13),Io.set.call(this,e,t,void 0)},Io.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&zt(14),El.set.call(this,e[0],t,n,e[0])};function Tl(e,t){const n=e[Ct];return(n?An(n):e)[t]}function p0(e,t,n){const r=Lu(t,n);return r?To in r?r[To]:r.get?.call(e.draft_):void 0}function Lu(e,t){if(!(t in e))return;let n=Ar(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ar(n)}}function Pl(e){e.modified_||(e.modified_=!0,e.parent_&&Pl(e.parent_))}function ss(e){e.copy_||(e.assigned_=new Map,e.copy_=bl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var f0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(ar(t)&&!ar(n)){const s=n;n=t;const a=this;return function(d=s,...p){return a.produce(d,u=>n.call(this,u,...p))}}ar(n)||zt(6),r!==void 0&&!ar(r)&&zt(7);let i;if(Zt(t)){const s=Mu(this),a=Ol(s,t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?Sl(s):wl(s)}return Au(s,r),Fu(i,s)}else if(!t||!gl(t)){if(i=n(t),i===void 0&&(i=t),i===Eu&&(i=void 0),this.autoFreeze_&&vl(i,!0),r){const s=[],a=[];Mr(xl).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else zt(1,t)},this.produceWithPatches=(t,n)=>{if(ar(t))return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},ml(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ml(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ml(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Zt(e)||zt(8),Nn(e)&&(e=h0(e));const t=Mu(this),n=Ol(t,e,void 0);return n[Ct].isManual_=!0,wl(t),n}finishDraft(e,t){const n=e&&e[Ct];(!n||!n.isManual_)&&zt(9);const{scope_:r}=n;return Au(r,t),Fu(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Mr(xl).applyPatches_;return Nn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Ol(e,t,n,r){const[i,s]=es(t)?Mr(os).proxyMap_(t,n):ts(t)?Mr(os).proxySet_(t,n):u0(t,n);return(n?.scope_??Nu()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?c0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),i}function h0(e){return Nn(e)||zt(10,e),ju(e)}function ju(e){if(!Zt(e)||rs(e))return e;const t=e[Ct];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=bl(e,!0);return Po(n,(i,s)=>{Qi(n,i,ju(s))},r),t&&(t.finalized_=!1),n}var g0=new f0,Bu=g0.produce,m0=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
5
+ Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:v})}u.current&&(u.current=!1)}return g}}[r.name],[r]),x=Eb.useSyncExternalStoreWithSelector(d.addNestedSub,l.getState,p||l.getState,h,s);return E.useDebugValue(x),x};return Object.assign(n,{withTypes:()=>n}),n}var Le=Rb(),Co={},vu;function Vb(){if(vu)return Co;vu=1,Co.__esModule=!0,Co.PersistGate=void 0;var e=t(z);function t(y){if(y&&y.__esModule)return y;var g={};if(y!=null){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(y,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=y[f]}}return g.default=y,g}function n(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(y)}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function i(y,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(y,m.key,m)}}function s(y,g,f){return g&&i(y.prototype,g),y}function a(y,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(y)}function l(y){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(y)}function d(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&u(y,g)}function u(y,g){return u=Object.setPrototypeOf||function(m,b){return m.__proto__=b,m},u(y,g)}function h(y,g,f){return g in y?Object.defineProperty(y,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[g]=f,y}var x=(function(y){p(g,y);function g(){var f,m;r(this,g);for(var b=arguments.length,w=new Array(b),S=0;S<b;S++)w[S]=arguments[S];return m=a(this,(f=l(g)).call.apply(f,[this].concat(w))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(d(m),"handlePersistorState",function(){var v=m.props.persistor,C=v.getState(),P=C.bootstrapped;P&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return Co.PersistGate=x,h(x,"defaultProps",{children:null,loading:null}),Co}var Ub=Vb();function gt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Hb=typeof Symbol=="function"&&Symbol.observable||"@@observable",xu=Hb,ul=()=>Math.random().toString(36).substring(7).split("").join("."),qb={INIT:`@@redux/INIT${ul()}`,REPLACE:`@@redux/REPLACE${ul()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ul()}`},sr=qb;function Eo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Yb(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Xb(e))return"date";if(Gb(e))return"error";const n=Kb(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Kb(e){return typeof e.constructor=="function"?e.constructor.name:null}function Gb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Xb(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Kn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Yb(e)),t}function pl(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?gt(2):`Expected the root reducer to be a function. Instead, received: '${Kn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?gt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?gt(1):`Expected the enhancer to be a function. Instead, received: '${Kn(n)}'`);return n(pl)(e,t)}let r=e,i=t,s=new Map,a=s,l=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((m,b)=>{a.set(b,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?gt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?gt(4):`Expected the listener to be a function. Instead, received: '${Kn(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?gt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;p();const w=l++;return a.set(w,m),function(){if(b){if(d)throw new Error(process.env.NODE_ENV==="production"?gt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,p(),a.delete(w),s=null}}}function x(m){if(!Eo(m))throw new Error(process.env.NODE_ENV==="production"?gt(7):`Actions must be plain objects. Instead, the actual type was: '${Kn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?gt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?gt(17):`Action "type" property must be a string. Instead, the actual type was: '${Kn(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?gt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=a).forEach(w=>{w()}),m}function y(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?gt(10):`Expected the nextReducer to be a function. Instead, received: '${Kn(m)}`);r=m,x({type:sr.REPLACE})}function g(){const m=h;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?gt(11):`Expected the observer to be an object. Instead, received: '${Kn(b)}'`);function w(){const v=b;v.next&&v.next(u())}return w(),{unsubscribe:m(w)}},[xu](){return this}}}return x({type:sr.INIT}),{dispatch:x,subscribe:h,getState:u,replaceReducer:y,[xu]:g}}function Su(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Jb(e,t,n,r){const i=Object.keys(t),s=n&&n.type===sr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Eo(e))return`The ${s} has unexpected type of "${Kn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===sr.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Qb(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:sr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:sr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${sr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function wu(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Su(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{Qb(n)}catch(a){s=a}return function(l={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=Jb(l,n,d,i);h&&Su(h)}let p=!1;const u={};for(let h=0;h<r.length;h++){const x=r[h],y=n[x],g=l[x],f=y(g,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?gt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${x}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[x]=f,p=p||f!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function Yi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Zb(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?gt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(d,...p)=>s(d,...p)},l=e.map(d=>d(a));return s=Yi(...l)(i.dispatch),{...i,dispatch:s}}}function Cu(e){return Eo(e)&&"type"in e&&typeof e.type=="string"}var Eu=Symbol.for("immer-nothing"),Tu=Symbol.for("immer-draftable"),Ct=Symbol.for("immer-state"),e0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function zt(e,...t){if(process.env.NODE_ENV!=="production"){const n=e0[e],r=ar(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lt=Object,Ar=Lt.getPrototypeOf,Ki="constructor",Gi="prototype",fl="configurable",Xi="enumerable",Ji="writable",To="value",In=e=>!!e&&!!e[Ct];function Zt(e){return e?Ou(e)||Zi(e)||!!e[Tu]||!!e[Ki]?.[Tu]||es(e)||ts(e):!1}var t0=Lt[Gi][Ki].toString(),Pu=new WeakMap;function Ou(e){if(!e||!gl(e))return!1;const t=Ar(e);if(t===null||t===Lt[Gi])return!0;const n=Lt.hasOwnProperty.call(t,Ki)&&t[Ki];if(n===Object)return!0;if(!ar(n))return!1;let r=Pu.get(n);return r===void 0&&(r=Function.toString.call(n),Pu.set(n,r)),r===t0}function Po(e,t,n=!0){Oo(e)===0?(n?Reflect.ownKeys(e):Lt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Oo(e){const t=e[Ct];return t?t.type_:Zi(e)?1:es(e)?2:ts(e)?3:0}var ku=(e,t,n=Oo(e))=>n===2?e.has(t):Lt[Gi].hasOwnProperty.call(e,t),hl=(e,t,n=Oo(e))=>n===2?e.get(t):e[t],Qi=(e,t,n,r=Oo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function n0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Zi=Array.isArray,es=e=>e instanceof Map,ts=e=>e instanceof Set,gl=e=>typeof e=="object",ar=e=>typeof e=="function",ml=e=>typeof e=="boolean",An=e=>e.copy_||e.base_,yl=e=>e.modified_?e.copy_:e.base_;function bl(e,t){if(es(e))return new Map(e);if(ts(e))return new Set(e);if(Zi(e))return Array[Gi].slice.call(e);const n=Ou(e);if(t===!0||t==="class_only"&&!n){const r=Lt.getOwnPropertyDescriptors(e);delete r[Ct];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],l=r[a];l[Ji]===!1&&(l[Ji]=!0,l[fl]=!0),(l.get||l.set)&&(r[a]={[fl]:!0,[Ji]:!0,[Xi]:l[Xi],[To]:e[a]})}return Lt.create(Ar(e),r)}else{const r=Ar(e);if(r!==null&&n)return{...e};const i=Lt.create(r);return Lt.assign(i,e)}}function vl(e,t=!1){return rs(e)||In(e)||!Zt(e)||(Oo(e)>1&&Lt.defineProperties(e,{set:ns,add:ns,clear:ns,delete:ns}),Lt.freeze(e),t&&Po(e,(n,r)=>{vl(r,!0)},!1)),e}function r0(){zt(2)}var ns={[To]:r0};function rs(e){return e===null||!gl(e)?!0:Lt.isFrozen(e)}var os="MapSet",xl="Patches",Nu={};function Mr(e){const t=Nu[e];return t||zt(0,e),t}var o0=e=>!!Nu[e],ko,Iu=()=>ko,i0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:o0(os)?Mr(os):void 0});function Au(e,t){t&&(e.patchPlugin_=Mr(xl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Sl(e){wl(e),e.drafts_.forEach(s0),e.drafts_=null}function wl(e){e===ko&&(ko=e.parent_)}var Mu=e=>ko=i0(ko,e);function s0(e){const t=e[Ct];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Fu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Ct].modified_&&(Sl(t),zt(4)),Zt(e)&&(e=_u(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Ct].base_,e,t)}else e=_u(t,n);return a0(t,e,!0),Sl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Eu?e:void 0}function _u(e,t){if(rs(t))return t;const n=t[Ct];if(!n)return Cl(t,e.handledSet_,e);if(!is(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);zu(n,e)}return n.copy_}function a0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vl(t,n)}function Du(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var is=(e,t)=>e.scope_===t,l0=[];function $u(e,t,n,r){const i=An(e),s=e.type_;if(r!==void 0&&hl(i,r,s)===t){Qi(i,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Po(i,(d,p)=>{if(In(p)){const u=l.get(p)||[];u.push(d),l.set(p,u)}})}const a=e.draftLocations_.get(t)??l0;for(const l of a)Qi(i,l,n,s)}function c0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!is(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=yl(s);$u(e,s.draft_??s,a,n),zu(s,i)})}function zu(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}Du(e)}}function d0(e,t,n){const{scope_:r}=e;if(In(n)){const i=n[Ct];is(i,r)&&i.callbacks_.push(function(){ss(e);const a=yl(i);$u(e,n,a,t)})}else Zt(n)&&e.callbacks_.push(function(){const s=An(e);hl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Cl(hl(e.copy_,t,e.type_),r.handledSet_,r)})}function Cl(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||In(e)||t.has(e)||!Zt(e)||rs(e)||(t.add(e),Po(e,(r,i)=>{if(In(i)){const s=i[Ct];if(is(s,n)){const a=yl(s);Qi(e,r,a,e.type_),Du(s)}}else Zt(i)&&Cl(i,t,n)})),e}function u0(e,t){const n=Zi(e),r={type_:n?1:0,scope_:t?t.scope_:Iu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=El;n&&(i=[r],s=No);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,[l,r]}var El={get(e,t){if(t===Ct)return e;const n=An(e);if(!ku(n,t,e.type_))return p0(e,n,t);const r=n[t];if(e.finalized_||!Zt(r))return r;if(r===Tl(e.base_,t)){ss(e);const i=e.type_===1?+t:t,s=Ol(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in An(e)},ownKeys(e){return Reflect.ownKeys(An(e))},set(e,t,n){const r=Lu(An(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Tl(An(e),t),s=i?.[Ct];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(n0(n,i)&&(n!==void 0||ku(e.base_,t,e.type_)))return!0;ss(e),Pl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),d0(e,t,n)),!0},deleteProperty(e,t){return ss(e),Tl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Pl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=An(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ji]:!0,[fl]:e.type_!==1||t!=="length",[Xi]:r[Xi],[To]:n[t]}},defineProperty(){zt(11)},getPrototypeOf(e){return Ar(e.base_)},setPrototypeOf(){zt(12)}},No={};Po(El,(e,t)=>{No[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),No.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&zt(13),No.set.call(this,e,t,void 0)},No.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&zt(14),El.set.call(this,e[0],t,n,e[0])};function Tl(e,t){const n=e[Ct];return(n?An(n):e)[t]}function p0(e,t,n){const r=Lu(t,n);return r?To in r?r[To]:r.get?.call(e.draft_):void 0}function Lu(e,t){if(!(t in e))return;let n=Ar(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ar(n)}}function Pl(e){e.modified_||(e.modified_=!0,e.parent_&&Pl(e.parent_))}function ss(e){e.copy_||(e.assigned_=new Map,e.copy_=bl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var f0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(ar(t)&&!ar(n)){const s=n;n=t;const a=this;return function(d=s,...p){return a.produce(d,u=>n.call(this,u,...p))}}ar(n)||zt(6),r!==void 0&&!ar(r)&&zt(7);let i;if(Zt(t)){const s=Mu(this),a=Ol(s,t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?Sl(s):wl(s)}return Au(s,r),Fu(i,s)}else if(!t||!gl(t)){if(i=n(t),i===void 0&&(i=t),i===Eu&&(i=void 0),this.autoFreeze_&&vl(i,!0),r){const s=[],a=[];Mr(xl).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else zt(1,t)},this.produceWithPatches=(t,n)=>{if(ar(t))return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},ml(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ml(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ml(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Zt(e)||zt(8),In(e)&&(e=h0(e));const t=Mu(this),n=Ol(t,e,void 0);return n[Ct].isManual_=!0,wl(t),n}finishDraft(e,t){const n=e&&e[Ct];(!n||!n.isManual_)&&zt(9);const{scope_:r}=n;return Au(r,t),Fu(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Mr(xl).applyPatches_;return In(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Ol(e,t,n,r){const[i,s]=es(t)?Mr(os).proxyMap_(t,n):ts(t)?Mr(os).proxySet_(t,n):u0(t,n);return(n?.scope_??Iu()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?c0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),i}function h0(e){return In(e)||zt(10,e),ju(e)}function ju(e){if(!Zt(e)||rs(e))return e;const t=e[Ct];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=bl(e,!0);return Po(n,(i,s)=>{Qi(n,i,ju(s))},r),t&&(t.finalized_=!1),n}var g0=new f0,Bu=g0.produce,m0=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
6
6
  \`createSelector([state => state.todos], todos => todos)\`
7
7
  This could lead to inefficient memoization and unnecessary re-renders.
8
8
  Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},y0=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,l=r(()=>({}),...i);if(!(l.apply(null,s)===l.apply(null,a))){let p;try{throw new Error}catch(u){({stack:p}=u)}console.warn(`An input selector returned a different result when passed same arguments.
9
9
  This means your output selector will likely run more frequently than intended.
10
10
  Avoid returning a new reference inside your input selector, e.g.
11
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:p})}},b0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function v0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function x0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function S0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Wu=e=>Array.isArray(e)?e:[e];function w0(e){const t=Array.isArray(e[0])?e[0]:e;return S0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ru(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var C0=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...b0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:m0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:y0}}},E0=class{constructor(e){this.value=e}deref(){return this.value}},T0=typeof WeakRef<"u"?WeakRef:E0,P0=0,Vu=1;function as(){return{s:P0,v:void 0,o:null,p:null}}function Uu(e,t={}){let n=as();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let l=n;const{length:d}=arguments;for(let h=0,x=d;h<x;h++){const y=arguments[h];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(y);f===void 0?(l=as(),g.set(y,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(y);f===void 0?(l=as(),g.set(y,l)):l=f}}const p=l;let u;if(l.s===Vu)u=l.v;else if(u=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,u)&&(u=h,s!==0&&s--),i=typeof u=="object"&&u!==null||typeof u=="function"?new T0(u):u}return p.s=Vu,p.v=u,u}return a.clearCache=()=>{n=as(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function O0(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,l,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),v0(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...d},{memoize:h,memoizeOptions:x=[],argsMemoize:y=Uu,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,m=Wu(x),b=Wu(g),w=w0(i),S=h(function(){return s++,p.apply(null,arguments)},...m);let v=!0;const C=y(function(){a++;const O=Ru(w,arguments);if(l=S.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:k}=C0(v,f);if(A.shouldRun&&A.run(p,O,l),k.shouldRun){const L=Ru(w,arguments);k.run({inputSelectorResults:O,inputSelectorResultsCopy:L},{memoize:h,memoizeOptions:m},arguments)}v&&(v=!1)}return l},...b);return Object.assign(C,{resultFunc:p,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var k0=O0(Uu),I0=Object.assign((e,t=k0)=>{x0(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,l,d)=>(a[n[d]]=l,a),{}))},{withTypes:()=>I0});function Hu(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var N0=Hu(),A0=Hu,M0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Yi:Yi.apply(null,arguments)},qu=e=>e&&typeof e.match=="function";function No(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cu(r)&&r.type===e,n}function F0(e){return typeof e=="function"&&"type"in e&&qu(e)}function _0(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
11
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:p})}},b0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function v0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function x0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function S0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Wu=e=>Array.isArray(e)?e:[e];function w0(e){const t=Array.isArray(e[0])?e[0]:e;return S0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ru(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var C0=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...b0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:m0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:y0}}},E0=class{constructor(e){this.value=e}deref(){return this.value}},T0=typeof WeakRef<"u"?WeakRef:E0,P0=0,Vu=1;function as(){return{s:P0,v:void 0,o:null,p:null}}function Uu(e,t={}){let n=as();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let l=n;const{length:d}=arguments;for(let h=0,x=d;h<x;h++){const y=arguments[h];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(y);f===void 0?(l=as(),g.set(y,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(y);f===void 0?(l=as(),g.set(y,l)):l=f}}const p=l;let u;if(l.s===Vu)u=l.v;else if(u=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,u)&&(u=h,s!==0&&s--),i=typeof u=="object"&&u!==null||typeof u=="function"?new T0(u):u}return p.s=Vu,p.v=u,u}return a.clearCache=()=>{n=as(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function O0(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,l,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),v0(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...d},{memoize:h,memoizeOptions:x=[],argsMemoize:y=Uu,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,m=Wu(x),b=Wu(g),w=w0(i),S=h(function(){return s++,p.apply(null,arguments)},...m);let v=!0;const C=y(function(){a++;const O=Ru(w,arguments);if(l=S.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:k}=C0(v,f);if(A.shouldRun&&A.run(p,O,l),k.shouldRun){const L=Ru(w,arguments);k.run({inputSelectorResults:O,inputSelectorResultsCopy:L},{memoize:h,memoizeOptions:m},arguments)}v&&(v=!1)}return l},...b);return Object.assign(C,{resultFunc:p,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var k0=O0(Uu),N0=Object.assign((e,t=k0)=>{x0(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,l,d)=>(a[n[d]]=l,a),{}))},{withTypes:()=>N0});function Hu(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var I0=Hu(),A0=Hu,M0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Yi:Yi.apply(null,arguments)},qu=e=>e&&typeof e.match=="function";function Io(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cu(r)&&r.type===e,n}function F0(e){return typeof e=="function"&&"type"in e&&qu(e)}function _0(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
12
12
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function D0(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=F0}=e;return()=>n=>r=>(t(r)&&console.warn(_0(r.type)),n(r))}function Yu(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const s=Date.now();n+=s-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
13
13
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
14
14
  It is disabled in production builds, so you don't need to worry about that.`)}}}var Ku=class Bi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Bi.prototype)}static get[Symbol.species](){return Bi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Bi(...t[0].concat(this)):new Bi(...t.concat(this))}};function Gu(e){return Zt(e)?Bu(e,()=>{}):e}function ls(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function $0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function z0(e,t,n){const r=Xu(e,t,n);return{detectMutations(){return Ju(e,t,r,n)}}}function Xu(e,t=[],n,r="",i=new Set){const s={value:n};if(!e(n)&&!i.has(n)){i.add(n),s.children={};const a=t.length>0;for(const l in n){const d=r?r+"."+l:l;a&&t.some(u=>u instanceof RegExp?u.test(d):d===u)||(s.children[l]=Xu(e,t,n[l],d))}}return s}function Ju(e,t=[],n,r,i=!1,s=""){const a=n?n.value:void 0,l=a===r;if(i&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(a)||e(r))return{wasMutated:!1};const d={};for(let u in n.children)d[u]=!0;for(let u in r)d[u]=!0;const p=t.length>0;for(let u in d){const h=s?s+"."+u:u;if(p&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const x=Ju(e,t,n.children[u],r[u],l,h);if(x.wasMutated)return x}return{wasMutated:!1}}function L0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,d,p,u){return JSON.stringify(l,n(d,u),p)},n=function(l,d){let p=[],u=[];return d||(d=function(h,x){return p[0]===x?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(x)).join(".")+"]"}),function(h,x){if(p.length>0){var y=p.indexOf(this);~y?p.splice(y+1):p.push(this),~y?u.splice(y,1/0,h):u.push(h),~p.indexOf(x)&&(x=d.call(this,h,x))}else p.push(x);return l==null?x:l.call(this,h,x)}},{isImmutable:r=$0,ignoredPaths:i,warnAfter:s=32}=e;const a=z0.bind(null,r,i);return({getState:l})=>{let d=l(),p=a(d),u;return h=>x=>{const y=Yu(s,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(d=l(),u=p.detectMutations(),p=a(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ge(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(x);return y.measureTime(()=>{if(d=l(),u=p.detectMutations(),p=a(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ge(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(x)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),g}}}}function Qu(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Eo(e)}function kl(e,t="",n=Qu,r,i=[],s){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const l=r!=null?r(e):Object.entries(e),d=i.length>0;for(const[p,u]of l){const h=t?t+"."+p:p;if(!(d&&i.some(y=>y instanceof RegExp?y.test(h):h===y))){if(!n(u))return{keyPath:h,value:u};if(typeof u=="object"&&(a=kl(u,h,n,r,i,s),a))return a}}return s&&Zu(e)&&s.add(e),!1}function Zu(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Zu(t))return!1;return!0}function j0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=Qu,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:d=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>x=>y=>{if(!Cu(y))return x(y);const g=x(y),f=Yu(a,"SerializableStateInvariantMiddleware");return!d&&!(r.length&&r.indexOf(y.type)!==-1)&&f.measureTime(()=>{const m=kl(y,"",t,n,i,u);if(m){const{keyPath:b,value:w}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,w,`
@@ -16,18 +16,18 @@ Take a look at the logic that dispatched this action: `,y,`
16
16
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
17
17
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(f.measureTime(()=>{const m=h.getState(),b=kl(m,"",t,n,s,u);if(b){const{keyPath:w,value:S}=b;console.error(`A non-serializable value was detected in the state, in the path: \`${w}\`. Value:`,S,`
18
18
  Take a look at the reducer(s) handling this action type: ${y.type}.
19
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function cs(e){return typeof e=="boolean"}var B0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Ku;if(n&&(cs(n)?a.push(N0):a.push(A0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};cs(r)||(l=r),a.unshift(L0(l))}if(i){let l={};cs(i)||(l=i),a.push(j0(l))}if(s){let l={};cs(s)||(l=s),a.unshift(D0(l))}}return a},W0="RTK_autoBatch",ep=e=>t=>{setTimeout(t,e)},R0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ep(10):e.type==="callback"?e.queueNotification:ep(e.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>i&&u(),x=r.subscribe(h);return l.add(u),()=>{x(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[W0],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},V0=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Ku(e);return r&&i.push(R0(typeof r=="object"?r:void 0)),i};function U0(e){const t=B0(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Eo(n))d=wu(n);else throw new Error(process.env.NODE_ENV==="production"?Ge(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Ge(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Ge(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=Yi;i&&(u=M0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=Zb(...p),x=V0(h);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(5):"`enhancers` field must be a callback");let y=typeof l=="function"?l(x):x();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?Ge(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...y);return pl(d,a,g)}function tp(e){const t={},n=[];let r;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Ge(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Ge(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof s=="string"?s:s.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ge(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ge(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function H0(e){return typeof e=="function"}function q0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=tp(t),s;if(H0(e))s=()=>Gu(e());else{const l=Gu(e);s=()=>l}function a(l=s(),d){let p=[n[d.type],...r.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[i]),p.reduce((u,h)=>{if(h)if(Nn(u)){const y=h(u,d);return y===void 0?u:y}else{if(Zt(u))return Bu(u,x=>h(x,d));{const x=h(u,d);if(x===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return u},l)}return a.getInitialState=s,a}var Y0=(e,t)=>qu(e)?e.match(t):e(t);function K0(...e){return t=>e.some(n=>Y0(n,t))}var G0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X0=(e=21)=>{let t="",n=e;for(;n--;)t+=G0[Math.random()*64|0];return t},J0=["name","message","stack","code"],Il=class{constructor(e,t){this.payload=e,this.meta=t}_type},np=class{constructor(e,t){this.payload=e,this.meta=t}_type},Q0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of J0)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},rp="External signal was aborted",ht=(()=>{function e(t,n,r){const i=No(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=No(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=No(t+"/rejected",(d,p,u,h,x)=>({payload:h,error:(r&&r.serializeError||Q0)(d||"Rejected"),meta:{...x||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(u,h,x)=>{const y=r?.idGenerator?r.idGenerator(d):X0(),g=new AbortController;let f,m;function b(S){m=S,g.abort()}p&&(p.aborted?b(rp):p.addEventListener("abort",()=>b(rp),{once:!0}));const w=(async function(){let S;try{let C=r?.condition?.(d,{getState:h,extra:x});if(ev(C)&&(C=await C),C===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((O,A)=>{f=()=>{A({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(s(y,d,r?.getPendingMeta?.({requestId:y,arg:d},{getState:h,extra:x}))),S=await Promise.race([P,Promise.resolve(n(d,{dispatch:u,getState:h,extra:x,requestId:y,signal:g.signal,abort:b,rejectWithValue:(O,A)=>new Il(O,A),fulfillWithValue:(O,A)=>new np(O,A)})).then(O=>{if(O instanceof Il)throw O;return O instanceof np?i(O.payload,y,d,O.meta):i(O,y,d)})])}catch(C){S=C instanceof Il?a(null,y,d,C.payload,C.meta):a(C,y,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S})();return Object.assign(w,{abort:b,requestId:y,arg:d,unwrap(){return w.then(Z0)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:K0(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Z0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ev(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tv=Symbol.for("rtk-slice-createasyncthunk");function nv(e,t){return`${e}/${t}`}function rv({creators:e}={}){const t=e?.asyncThunk?.[tv];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(iv()):r.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,v){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Ge(12):"`context.addCase` cannot be called with an empty action type");if(C in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ge(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return d.sliceCaseReducersByType[C]=v,p},addMatcher(S,v){return d.sliceMatchers.push({matcher:S,reducer:v}),p},exposeAction(S,v){return d.actionCreators[S]=v,p},exposeCaseReducer(S,v){return d.sliceCaseReducersByName[S]=v,p}};l.forEach(S=>{const v=a[S],C={reducerName:S,type:nv(i,S),createNotation:typeof r.reducers=="function"};av(v)?cv(C,v,p,t):sv(C,v,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},v=[],C=void 0]=typeof r.extraReducers=="function"?tp(r.extraReducers):[r.extraReducers],P={...S,...d.sliceCaseReducersByType};return q0(r.initialState,O=>{for(let A in P)O.addCase(A,P[A]);for(let A of d.sliceMatchers)O.addMatcher(A.matcher,A.reducer);for(let A of v)O.addMatcher(A.matcher,A.reducer);C&&O.addDefaultCase(C)})}const h=S=>S,x=new Map,y=new WeakMap;let g;function f(S,v){return g||(g=u()),g(S,v)}function m(){return g||(g=u()),g.getInitialState()}function b(S,v=!1){function C(O){let A=O[S];if(typeof A>"u"){if(v)A=ls(y,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function P(O=h){const A=ls(x,v,()=>new WeakMap);return ls(A,O,()=>{const k={};for(const[L,D]of Object.entries(r.selectors??{}))k[L]=ov(D,O,()=>ls(y,O,m),v);return k})}return{reducerPath:S,getSelectors:P,get selectors(){return P(C)},selectSlice:C}}const w={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...b(s),injectInto(S,{reducerPath:v,...C}={}){const P=v??s;return S.inject({reducerPath:P,reducer:f},C),{...w,...b(P,!0)}}};return w}}function ov(e,t,n,r){function i(s,...a){let l=t(s);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return i.unwrapped=e,i}var op=rv();function iv(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function sv({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!lv(r))throw new Error(process.env.NODE_ENV==="production"?Ge(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?No(e,a):No(e))}function av(e){return e._reducerDefinitionType==="asyncThunk"}function lv(e){return e._reducerDefinitionType==="reducerWithPrepare"}function cv({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:p,options:u}=n,h=i(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),l&&r.addCase(h.pending,l),d&&r.addCase(h.rejected,d),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||ds,pending:l||ds,rejected:d||ds,settled:p||ds})}function ds(){}function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Nl="persist:",ip="persist/FLUSH",Al="persist/REHYDRATE",sp="persist/PAUSE",ap="persist/PERSIST",lp="persist/PURGE",cp="persist/REGISTER",dv=-1;function Ao(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ao=function(n){return typeof n}:Ao=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ao(e)}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dp(n,!0).forEach(function(r){pv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fv(e,t,n,r){var i=r.debug,s=uv({},n);return e&&Ao(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&i&&e&&Ao(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function hv(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:Nl).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(C){return C}:typeof e.serialize=="function"?l=e.serialize:l=gv;var d=e.writeFailHandler||null,p={},u={},h=[],x=null,y=null,g=function(C){Object.keys(C).forEach(function(P){b(P)&&p[P]!==C[P]&&h.indexOf(P)===-1&&h.push(P)}),Object.keys(p).forEach(function(P){C[P]===void 0&&b(P)&&h.indexOf(P)===-1&&p[P]!==void 0&&h.push(P)}),x===null&&(x=setInterval(f,i)),p=C};function f(){if(h.length===0){x&&clearInterval(x),x=null;return}var v=h.shift(),C=r.reduce(function(P,O){return O.in(P,v,p)},p[v]);if(C!==void 0)try{u[v]=l(C)}catch(P){console.error("redux-persist/createPersistoid: error serializing state",P)}else delete u[v];h.length===0&&m()}function m(){Object.keys(u).forEach(function(v){p[v]===void 0&&delete u[v]}),y=a.setItem(s,l(u)).catch(w)}function b(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function w(v){d&&d(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var S=function(){for(;h.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:S}}function gv(e){return JSON.stringify(e)}function mv(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Nl).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(l){return l}:typeof e.deserialize=="function"?s=e.deserialize:s=yv,r.getItem(n).then(function(a){if(a)try{var l={},d=s(a);return Object.keys(d).forEach(function(p){l[p]=t.reduceRight(function(u,h){return h.out(u,p,d)},s(d[p]))}),l}catch(p){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function yv(e){return JSON.parse(e)}function bv(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Nl).concat(e.key);return t.removeItem(n,vv)}function vv(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?up(n,!0).forEach(function(r){xv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sv(e,t){if(e==null)return{};var n=wv(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cv=5e3;function Ev(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:dv;e.debug;var r=e.stateReconciler===void 0?fv:e.stateReconciler,i=e.getStoredState||mv,s=e.timeout!==void 0?e.timeout:Cv,a=null,l=!1,d=!0,p=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(u,h){var x=u||{},y=x._persist,g=Sv(x,["_persist"]),f=g;if(h.type===ap){var m=!1,b=function(A,k){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),A,k),m||(h.rehydrate(e.key,A,k),m=!0)};if(s&&setTimeout(function(){!m&&b(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=hv(e)),y)return Mn({},t(f,h),{_persist:y});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(O){var A=e.migrate||function(k,L){return Promise.resolve(k)};A(O,n).then(function(k){b(k)},function(k){process.env.NODE_ENV!=="production"&&k&&console.error("redux-persist: migration error",k),b(void 0,k)})},function(O){b(void 0,O)}),Mn({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===lp)return l=!0,h.result(bv(e)),Mn({},t(f,h),{_persist:y});if(h.type===ip)return h.result(a&&a.flush()),Mn({},t(f,h),{_persist:y});if(h.type===sp)d=!0;else if(h.type===Al){if(l)return Mn({},f,{_persist:Mn({},y,{rehydrated:!0})});if(h.key===e.key){var w=t(f,h),S=h.payload,v=r!==!1&&S!==void 0?r(S,u,w,e):w,C=Mn({},v,{_persist:Mn({},y,{rehydrated:!0})});return p(C)}}}if(!y)return t(u,h);var P=t(f,h);return P===f?u:p(Mn({},P,{_persist:y}))}}function pp(e){return Ov(e)||Pv(e)||Tv()}function Tv(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Pv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ov(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fp(n,!0).forEach(function(r){kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hp={registry:[],bootstrapped:!1},Iv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case cp:return Ml({},t,{registry:[].concat(pp(t.registry),[n.key])});case Al:var r=t.registry.indexOf(n.key),i=pp(t.registry);return i.splice(r,1),Ml({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Nv(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=pl(Iv,hp,void 0),a=function(u){s.dispatch({type:cp,key:u})},l=function(u,h,x){var y={type:Al,payload:h,err:x,key:u};e.dispatch(y),s.dispatch(y)},d=Ml({},s,{purge:function(){var u=[];return e.dispatch({type:lp,result:function(x){u.push(x)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:ip,result:function(x){u.push(x)}}),Promise.all(u)},pause:function(){e.dispatch({type:sp})},persist:function(){e.dispatch({type:ap,register:a,rehydrate:l})}});return d.persist(),d}function gp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Av}=Object.prototype,{getPrototypeOf:Fl}=Object,{iterator:us,toStringTag:mp}=Symbol,ps=(e=>t=>{const n=Av.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),en=e=>(e=e.toLowerCase(),t=>ps(t)===e),fs=e=>t=>typeof t===e,{isArray:Fr}=Array,_r=fs("undefined");function Mo(e){return e!==null&&!_r(e)&&e.constructor!==null&&!_r(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yp=en("ArrayBuffer");function Mv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yp(e.buffer),t}const Fv=fs("string"),It=fs("function"),bp=fs("number"),Fo=e=>e!==null&&typeof e=="object",_v=e=>e===!0||e===!1,hs=e=>{if(ps(e)!=="object")return!1;const t=Fl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(mp in e)&&!(us in e)},Dv=e=>{if(!Fo(e)||Mo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$v=en("Date"),zv=en("File"),Lv=en("Blob"),jv=en("FileList"),Bv=e=>Fo(e)&&It(e.pipe),Wv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=ps(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},Rv=en("URLSearchParams"),[Vv,Uv,Hv,qv]=["ReadableStream","Request","Response","Headers"].map(en),Yv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _o(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Mo(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function vp(e,t){if(Mo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xp=e=>!_r(e)&&e!==lr;function _l(){const{caseless:e,skipUndefined:t}=xp(this)&&this||{},n={},r=(i,s)=>{const a=e&&vp(n,s)||s;hs(n[a])&&hs(i)?n[a]=_l(n[a],i):hs(i)?n[a]=_l({},i):Fr(i)?n[a]=i.slice():(!t||!_r(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&_o(arguments[i],r);return n}const Kv=(e,t,n,{allOwnKeys:r}={})=>(_o(t,(i,s)=>{n&&It(i)?e[s]=gp(i,n):e[s]=i},{allOwnKeys:r}),e),Gv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jv=(e,t,n,r)=>{let i,s,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Fl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zv=e=>{if(!e)return null;if(Fr(e))return e;let t=e.length;if(!bp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ex=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fl(Uint8Array)),tx=(e,t)=>{const r=(e&&e[us]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},nx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},rx=en("HTMLFormElement"),ox=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Sp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ix=en("RegExp"),wp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_o(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},sx=e=>{wp(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(It(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ax=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Fr(e)?r(e):r(String(e).split(t)),n},lx=()=>{},cx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dx(e){return!!(e&&It(e.append)&&e[mp]==="FormData"&&e[us])}const ux=e=>{const t=new Array(10),n=(r,i)=>{if(Fo(r)){if(t.indexOf(r)>=0)return;if(Mo(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Fr(r)?[]:{};return _o(r,(a,l)=>{const d=n(a,i+1);!_r(d)&&(s[l]=d)}),t[i]=void 0,s}}return r};return n(e,0)},px=en("AsyncFunction"),fx=e=>e&&(Fo(e)||It(e))&&It(e.then)&&It(e.catch),Cp=((e,t)=>e?setImmediate:t?((n,r)=>(lr.addEventListener("message",({source:i,data:s})=>{i===lr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),lr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",It(lr.postMessage)),hx=typeof queueMicrotask<"u"?queueMicrotask.bind(lr):typeof process<"u"&&process.nextTick||Cp,H={isArray:Fr,isArrayBuffer:yp,isBuffer:Mo,isFormData:Wv,isArrayBufferView:Mv,isString:Fv,isNumber:bp,isBoolean:_v,isObject:Fo,isPlainObject:hs,isEmptyObject:Dv,isReadableStream:Vv,isRequest:Uv,isResponse:Hv,isHeaders:qv,isUndefined:_r,isDate:$v,isFile:zv,isBlob:Lv,isRegExp:ix,isFunction:It,isStream:Bv,isURLSearchParams:Rv,isTypedArray:ex,isFileList:jv,forEach:_o,merge:_l,extend:Kv,trim:Yv,stripBOM:Gv,inherits:Xv,toFlatObject:Jv,kindOf:ps,kindOfTest:en,endsWith:Qv,toArray:Zv,forEachEntry:tx,matchAll:nx,isHTMLForm:rx,hasOwnProperty:Sp,hasOwnProp:Sp,reduceDescriptors:wp,freezeMethods:sx,toObjectSet:ax,toCamelCase:ox,noop:lx,toFiniteNumber:cx,findKey:vp,global:lr,isContextDefined:xp,isSpecCompliantForm:dx,toJSONObject:ux,isAsyncFn:px,isThenable:fx,setImmediate:Cp,asap:hx,isIterable:e=>e!=null&&It(e[us])};function Oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Ep=Oe.prototype,Tp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tp[e]={value:e}}),Object.defineProperties(Oe,Tp),Object.defineProperty(Ep,"isAxiosError",{value:!0}),Oe.from=(e,t,n,r,i,s)=>{const a=Object.create(Ep);H.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const l=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Oe.call(a,l,d,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const gx=null;function Dl(e){return H.isPlainObject(e)||H.isArray(e)}function Pp(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Op(e,t,n){return e?e.concat(t).map(function(i,s){return i=Pp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function mx(e){return H.isArray(e)&&!e.some(Dl)}const yx=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function gs(e,t,n){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!H.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(H.isDate(g))return g.toISOString();if(H.isBoolean(g))return g.toString();if(!d&&H.isBlob(g))throw new Oe("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(g)||H.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,m){let b=g;if(g&&!m&&typeof g=="object"){if(H.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(H.isArray(g)&&mx(g)||(H.isFileList(g)||H.endsWith(f,"[]"))&&(b=H.toArray(g)))return f=Pp(f),b.forEach(function(S,v){!(H.isUndefined(S)||S===null)&&t.append(a===!0?Op([f],v,s):a===null?f:f+"[]",p(S))}),!1}return Dl(g)?!0:(t.append(Op(m,f,s),p(g)),!1)}const h=[],x=Object.assign(yx,{defaultVisitor:u,convertValue:p,isVisitable:Dl});function y(g,f){if(!H.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),H.forEach(g,function(b,w){(!(H.isUndefined(b)||b===null)&&i.call(t,b,H.isString(w)?w.trim():w,f,x))===!0&&y(b,f?f.concat(w):[w])}),h.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return y(e),t}function kp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $l(e,t){this._pairs=[],e&&gs(e,this,t)}const Ip=$l.prototype;Ip.append=function(t,n){this._pairs.push([t,n])},Ip.toString=function(t){const n=t?function(r){return t.call(this,r,kp)}:kp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function bx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Np(e,t,n){if(!t)return e;const r=n&&n.encode||bx;H.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=H.isURLSearchParams(t)?t.toString():new $l(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ap{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Mp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vx={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:$l,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},zl=typeof window<"u"&&typeof document<"u",Ll=typeof navigator=="object"&&navigator||void 0,xx=zl&&(!Ll||["ReactNative","NativeScript","NS"].indexOf(Ll.product)<0),Sx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wx=zl&&window.location.href||"http://localhost",vt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zl,hasStandardBrowserEnv:xx,hasStandardBrowserWebWorkerEnv:Sx,navigator:Ll,origin:wx},Symbol.toStringTag,{value:"Module"})),...vx};function Cx(e,t){return gs(e,new vt.classes.URLSearchParams,{visitor:function(n,r,i,s){return vt.isNode&&H.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Ex(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tx(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Fp(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),d=s>=n.length;return a=!a&&H.isArray(i)?i.length:a,d?(H.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!H.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&H.isArray(i[a])&&(i[a]=Tx(i[a])),!l)}if(H.isFormData(e)&&H.isFunction(e.entries)){const n={};return H.forEachEntry(e,(r,i)=>{t(Ex(r),i,n,0)}),n}return null}function Px(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Do={transitional:Mp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=H.isObject(t);if(s&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return i?JSON.stringify(Fp(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cx(t,this.formSerializer).toString();if((l=H.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return gs(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Px(t)):t}],transformResponse:[function(t){const n=this.transitional||Do.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Oe.from(l,Oe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{Do.headers[e]={}});const Ox=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kx=e=>{const t={};let n,r,i;return e&&e.split(`
20
- `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Ox[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_p=Symbol("internals");function $o(e){return e&&String(e).trim().toLowerCase()}function ms(e){return e===!1||e==null?e:H.isArray(e)?e.map(ms):String(e)}function Ix(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Nx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jl(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function Ax(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Mx(e,t){const n=H.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,a){return this[r].call(this,t,i,s,a)},configurable:!0})})}let Nt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,d,p){const u=$o(d);if(!u)throw new Error("header name must be a non-empty string");const h=H.findKey(i,u);(!h||i[h]===void 0||p===!0||p===void 0&&i[h]!==!1)&&(i[h||d]=ms(l))}const a=(l,d)=>H.forEach(l,(p,u)=>s(p,u,d));if(H.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(H.isString(t)&&(t=t.trim())&&!Nx(t))a(kx(t),n);else if(H.isObject(t)&&H.isIterable(t)){let l={},d,p;for(const u of t){if(!H.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[p=u[0]]=(d=l[p])?H.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=$o(t),t){const r=H.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Ix(i);if(H.isFunction(n))return n.call(this,i,r);if(H.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$o(t),t){const r=H.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=$o(a),a){const l=H.findKey(r,a);l&&(!n||jl(r,r[l],l,n))&&(delete r[l],i=!0)}}return H.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||jl(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return H.forEach(this,(i,s)=>{const a=H.findKey(r,s);if(a){n[a]=ms(i),delete n[s];return}const l=t?Ax(s):String(s).trim();l!==s&&delete n[s],n[l]=ms(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&H.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
21
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[_p]=this[_p]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=$o(a);r[l]||(Mx(i,a),r[l]=!0)}return H.isArray(t)?t.forEach(s):s(t),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Nt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),H.freezeMethods(Nt);function Bl(e,t){const n=this||Do,r=t||n,i=Nt.from(r.headers);let s=r.data;return H.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Dp(e){return!!(e&&e.__CANCEL__)}function Dr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}H.inherits(Dr,Oe,{__CANCEL__:!0});function $p(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _x(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=r[s];a||(a=p),n[i]=d,r[i]=p;let h=s,x=0;for(;h!==i;)x+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const y=u&&p-u;return y?Math.round(x*1e3/y):void 0}}function Dx(e,t){let n=0,r=1e3/t,i,s;const a=(p,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const ys=(e,t,n=3)=>{let r=0;const i=_x(50,250);return Dx(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,d=a-r,p=i(d),u=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:p||void 0,estimated:p&&l&&u?(l-a)/p:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},zp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Lp=e=>(...t)=>H.asap(()=>e(...t)),$x=vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,zx=vt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];H.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),H.isString(r)&&l.push(`path=${r}`),H.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),H.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Lx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jp(e,t,n){let r=!Lx(t);return e&&(r||n==!1)?jx(e,t):t}const Bp=e=>e instanceof Nt?{...e}:e;function cr(e,t){t=t||{};const n={};function r(p,u,h,x){return H.isPlainObject(p)&&H.isPlainObject(u)?H.merge.call({caseless:x},p,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function i(p,u,h,x){if(H.isUndefined(u)){if(!H.isUndefined(p))return r(void 0,p,h,x)}else return r(p,u,h,x)}function s(p,u){if(!H.isUndefined(u))return r(void 0,u)}function a(p,u){if(H.isUndefined(u)){if(!H.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function l(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(p,u,h)=>i(Bp(p),Bp(u),h,!0)};return H.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||i,x=h(e[u],t[u],u);H.isUndefined(x)&&h!==l||(n[u]=x)}),n}const Wp=e=>{const t=cr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=Nt.from(a),t.url=Np(jp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),H.isFormData(n)){if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(H.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(vt.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(t)),r||r!==!1&&$x(t.url))){const d=i&&s&&zx.read(s);d&&a.set(i,d)}return t},Bx=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Wp(e);let s=i.data;const a=Nt.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:p}=i,u,h,x,y,g;function f(){y&&y(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function b(){if(!m)return;const S=Nt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};$p(function(O){n(O),f()},function(O){r(O),f()},C),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const C=v&&v.message?v.message:"Network Error",P=new Oe(C,Oe.ERR_NETWORK,e,m);P.event=v||null,r(P),m=null},m.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||Mp;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Oe(v,C.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&H.forEach(a.toJSON(),function(v,C){m.setRequestHeader(C,v)}),H.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&l!=="json"&&(m.responseType=i.responseType),p&&([x,g]=ys(p,!0),m.addEventListener("progress",x)),d&&m.upload&&([h,y]=ys(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=S=>{m&&(r(!S||S.type?new Dr(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=Fx(i.url);if(w&&vt.protocols.indexOf(w)===-1){r(new Oe("Unsupported protocol "+w+":",Oe.ERR_BAD_REQUEST,e));return}m.send(s||null)})},Wx=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(p){if(!i){i=!0,l();const u=p instanceof Error?p:this.reason;r.abort(u instanceof Oe?u:new Dr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>H.asap(l),d}},Rx=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Vx=async function*(e,t){for await(const n of Ux(e))yield*Rx(n,t)},Ux=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Rp=(e,t,n,r)=>{const i=Vx(e,t);let s=0,a,l=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await i.next();if(p){l(),d.close();return}let h=u.byteLength;if(n){let x=s+=h;n(x)}d.enqueue(new Uint8Array(u))}catch(p){throw l(p),p}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},Vp=64*1024,{isFunction:bs}=H,Hx=(({Request:e,Response:t})=>({Request:e,Response:t}))(H.global),{ReadableStream:Up,TextEncoder:Hp}=H.global,qp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qx=e=>{e=H.merge.call({skipUndefined:!0},Hx,e);const{fetch:t,Request:n,Response:r}=e,i=t?bs(t):typeof fetch=="function",s=bs(n),a=bs(r);if(!i)return!1;const l=i&&bs(Up),d=i&&(typeof Hp=="function"?(g=>f=>g.encode(f))(new Hp):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&l&&qp(()=>{let g=!1;const f=new n(vt.origin,{body:new Up,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&l&&qp(()=>H.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let b=f&&f[g];if(b)return b.call(f);throw new Oe(`Response type '${g}' is not supported`,Oe.ERR_NOT_SUPPORT,m)})});const x=async g=>{if(g==null)return 0;if(H.isBlob(g))return g.size;if(H.isSpecCompliantForm(g))return(await new n(vt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(H.isArrayBufferView(g)||H.isArrayBuffer(g))return g.byteLength;if(H.isURLSearchParams(g)&&(g=g+""),H.isString(g))return(await d(g)).byteLength},y=async(g,f)=>{const m=H.toFiniteNumber(g.getContentLength());return m??x(f)};return async g=>{let{url:f,method:m,data:b,signal:w,cancelToken:S,timeout:v,onDownloadProgress:C,onUploadProgress:P,responseType:O,headers:A,withCredentials:k="same-origin",fetchOptions:L}=Wp(g),D=t||fetch;O=O?(O+"").toLowerCase():"text";let T=Wx([w,S&&S.toAbortSignal()],v),N=null;const F=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let W;try{if(P&&p&&m!=="get"&&m!=="head"&&(W=await y(A,b))!==0){let V=new n(f,{method:"POST",body:b,duplex:"half"}),G;if(H.isFormData(b)&&(G=V.headers.get("content-type"))&&A.setContentType(G),V.body){const[K,Z]=zp(W,ys(Lp(P)));b=Rp(V.body,Vp,K,Z)}}H.isString(k)||(k=k?"include":"omit");const _=s&&"credentials"in n.prototype,j={...L,signal:T,method:m.toUpperCase(),headers:A.normalize().toJSON(),body:b,duplex:"half",credentials:_?k:void 0};N=s&&new n(f,j);let M=await(s?D(N,L):D(f,j));const B=u&&(O==="stream"||O==="response");if(u&&(C||B&&F)){const V={};["status","statusText","headers"].forEach(Q=>{V[Q]=M[Q]});const G=H.toFiniteNumber(M.headers.get("content-length")),[K,Z]=C&&zp(G,ys(Lp(C),!0))||[];M=new r(Rp(M.body,Vp,K,()=>{Z&&Z(),F&&F()}),V)}O=O||"text";let $=await h[H.findKey(h,O)||"text"](M,g);return!B&&F&&F(),await new Promise((V,G)=>{$p(V,G,{data:$,headers:Nt.from(M.headers),status:M.status,statusText:M.statusText,config:g,request:N})})}catch(_){throw F&&F(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,g,N),{cause:_.cause||_}):Oe.from(_,_&&_.code,g,N)}}},Yx=new Map,Yp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,l=a,d,p,u=Yx;for(;l--;)d=s[l],p=u.get(d),p===void 0&&u.set(d,p=l?new Map:qx(t)),u=p;return p};Yp();const Wl={http:gx,xhr:Bx,fetch:{get:Yp}};H.forEach(Wl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kp=e=>`- ${e}`,Kx=e=>H.isFunction(e)||e===null||e===!1;function Gx(e,t){e=H.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!Kx(r)&&(i=Wl[(l=String(r)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${l}'`);if(i&&(H.isFunction(i)||(i=i.get(t))))break;s[l||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
19
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function cs(e){return typeof e=="boolean"}var B0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Ku;if(n&&(cs(n)?a.push(I0):a.push(A0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};cs(r)||(l=r),a.unshift(L0(l))}if(i){let l={};cs(i)||(l=i),a.push(j0(l))}if(s){let l={};cs(s)||(l=s),a.unshift(D0(l))}}return a},W0="RTK_autoBatch",ep=e=>t=>{setTimeout(t,e)},R0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ep(10):e.type==="callback"?e.queueNotification:ep(e.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>i&&u(),x=r.subscribe(h);return l.add(u),()=>{x(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[W0],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},V0=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Ku(e);return r&&i.push(R0(typeof r=="object"?r:void 0)),i};function U0(e){const t=B0(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Eo(n))d=wu(n);else throw new Error(process.env.NODE_ENV==="production"?Ge(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Ge(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Ge(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=Yi;i&&(u=M0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=Zb(...p),x=V0(h);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(5):"`enhancers` field must be a callback");let y=typeof l=="function"?l(x):x();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?Ge(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...y);return pl(d,a,g)}function tp(e){const t={},n=[];let r;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Ge(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Ge(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof s=="string"?s:s.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ge(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ge(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function H0(e){return typeof e=="function"}function q0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=tp(t),s;if(H0(e))s=()=>Gu(e());else{const l=Gu(e);s=()=>l}function a(l=s(),d){let p=[n[d.type],...r.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[i]),p.reduce((u,h)=>{if(h)if(In(u)){const y=h(u,d);return y===void 0?u:y}else{if(Zt(u))return Bu(u,x=>h(x,d));{const x=h(u,d);if(x===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return u},l)}return a.getInitialState=s,a}var Y0=(e,t)=>qu(e)?e.match(t):e(t);function K0(...e){return t=>e.some(n=>Y0(n,t))}var G0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",X0=(e=21)=>{let t="",n=e;for(;n--;)t+=G0[Math.random()*64|0];return t},J0=["name","message","stack","code"],Nl=class{constructor(e,t){this.payload=e,this.meta=t}_type},np=class{constructor(e,t){this.payload=e,this.meta=t}_type},Q0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of J0)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},rp="External signal was aborted",ht=(()=>{function e(t,n,r){const i=Io(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=Io(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=Io(t+"/rejected",(d,p,u,h,x)=>({payload:h,error:(r&&r.serializeError||Q0)(d||"Rejected"),meta:{...x||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(u,h,x)=>{const y=r?.idGenerator?r.idGenerator(d):X0(),g=new AbortController;let f,m;function b(S){m=S,g.abort()}p&&(p.aborted?b(rp):p.addEventListener("abort",()=>b(rp),{once:!0}));const w=(async function(){let S;try{let C=r?.condition?.(d,{getState:h,extra:x});if(ev(C)&&(C=await C),C===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((O,A)=>{f=()=>{A({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(s(y,d,r?.getPendingMeta?.({requestId:y,arg:d},{getState:h,extra:x}))),S=await Promise.race([P,Promise.resolve(n(d,{dispatch:u,getState:h,extra:x,requestId:y,signal:g.signal,abort:b,rejectWithValue:(O,A)=>new Nl(O,A),fulfillWithValue:(O,A)=>new np(O,A)})).then(O=>{if(O instanceof Nl)throw O;return O instanceof np?i(O.payload,y,d,O.meta):i(O,y,d)})])}catch(C){S=C instanceof Nl?a(null,y,d,C.payload,C.meta):a(C,y,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S})();return Object.assign(w,{abort:b,requestId:y,arg:d,unwrap(){return w.then(Z0)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:K0(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Z0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ev(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tv=Symbol.for("rtk-slice-createasyncthunk");function nv(e,t){return`${e}/${t}`}function rv({creators:e}={}){const t=e?.asyncThunk?.[tv];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(iv()):r.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,v){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Ge(12):"`context.addCase` cannot be called with an empty action type");if(C in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ge(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return d.sliceCaseReducersByType[C]=v,p},addMatcher(S,v){return d.sliceMatchers.push({matcher:S,reducer:v}),p},exposeAction(S,v){return d.actionCreators[S]=v,p},exposeCaseReducer(S,v){return d.sliceCaseReducersByName[S]=v,p}};l.forEach(S=>{const v=a[S],C={reducerName:S,type:nv(i,S),createNotation:typeof r.reducers=="function"};av(v)?cv(C,v,p,t):sv(C,v,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},v=[],C=void 0]=typeof r.extraReducers=="function"?tp(r.extraReducers):[r.extraReducers],P={...S,...d.sliceCaseReducersByType};return q0(r.initialState,O=>{for(let A in P)O.addCase(A,P[A]);for(let A of d.sliceMatchers)O.addMatcher(A.matcher,A.reducer);for(let A of v)O.addMatcher(A.matcher,A.reducer);C&&O.addDefaultCase(C)})}const h=S=>S,x=new Map,y=new WeakMap;let g;function f(S,v){return g||(g=u()),g(S,v)}function m(){return g||(g=u()),g.getInitialState()}function b(S,v=!1){function C(O){let A=O[S];if(typeof A>"u"){if(v)A=ls(y,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function P(O=h){const A=ls(x,v,()=>new WeakMap);return ls(A,O,()=>{const k={};for(const[L,D]of Object.entries(r.selectors??{}))k[L]=ov(D,O,()=>ls(y,O,m),v);return k})}return{reducerPath:S,getSelectors:P,get selectors(){return P(C)},selectSlice:C}}const w={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...b(s),injectInto(S,{reducerPath:v,...C}={}){const P=v??s;return S.inject({reducerPath:P,reducer:f},C),{...w,...b(P,!0)}}};return w}}function ov(e,t,n,r){function i(s,...a){let l=t(s);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return i.unwrapped=e,i}var op=rv();function iv(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function sv({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!lv(r))throw new Error(process.env.NODE_ENV==="production"?Ge(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?Io(e,a):Io(e))}function av(e){return e._reducerDefinitionType==="asyncThunk"}function lv(e){return e._reducerDefinitionType==="reducerWithPrepare"}function cv({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:p,options:u}=n,h=i(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),l&&r.addCase(h.pending,l),d&&r.addCase(h.rejected,d),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||ds,pending:l||ds,rejected:d||ds,settled:p||ds})}function ds(){}function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Il="persist:",ip="persist/FLUSH",Al="persist/REHYDRATE",sp="persist/PAUSE",ap="persist/PERSIST",lp="persist/PURGE",cp="persist/REGISTER",dv=-1;function Ao(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ao=function(n){return typeof n}:Ao=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ao(e)}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dp(n,!0).forEach(function(r){pv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fv(e,t,n,r){var i=r.debug,s=uv({},n);return e&&Ao(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&i&&e&&Ao(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function hv(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:Il).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(C){return C}:typeof e.serialize=="function"?l=e.serialize:l=gv;var d=e.writeFailHandler||null,p={},u={},h=[],x=null,y=null,g=function(C){Object.keys(C).forEach(function(P){b(P)&&p[P]!==C[P]&&h.indexOf(P)===-1&&h.push(P)}),Object.keys(p).forEach(function(P){C[P]===void 0&&b(P)&&h.indexOf(P)===-1&&p[P]!==void 0&&h.push(P)}),x===null&&(x=setInterval(f,i)),p=C};function f(){if(h.length===0){x&&clearInterval(x),x=null;return}var v=h.shift(),C=r.reduce(function(P,O){return O.in(P,v,p)},p[v]);if(C!==void 0)try{u[v]=l(C)}catch(P){console.error("redux-persist/createPersistoid: error serializing state",P)}else delete u[v];h.length===0&&m()}function m(){Object.keys(u).forEach(function(v){p[v]===void 0&&delete u[v]}),y=a.setItem(s,l(u)).catch(w)}function b(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function w(v){d&&d(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var S=function(){for(;h.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:S}}function gv(e){return JSON.stringify(e)}function mv(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Il).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(l){return l}:typeof e.deserialize=="function"?s=e.deserialize:s=yv,r.getItem(n).then(function(a){if(a)try{var l={},d=s(a);return Object.keys(d).forEach(function(p){l[p]=t.reduceRight(function(u,h){return h.out(u,p,d)},s(d[p]))}),l}catch(p){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function yv(e){return JSON.parse(e)}function bv(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Il).concat(e.key);return t.removeItem(n,vv)}function vv(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?up(n,!0).forEach(function(r){xv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sv(e,t){if(e==null)return{};var n=wv(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cv=5e3;function Ev(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:dv;e.debug;var r=e.stateReconciler===void 0?fv:e.stateReconciler,i=e.getStoredState||mv,s=e.timeout!==void 0?e.timeout:Cv,a=null,l=!1,d=!0,p=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(u,h){var x=u||{},y=x._persist,g=Sv(x,["_persist"]),f=g;if(h.type===ap){var m=!1,b=function(A,k){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),A,k),m||(h.rehydrate(e.key,A,k),m=!0)};if(s&&setTimeout(function(){!m&&b(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=hv(e)),y)return Mn({},t(f,h),{_persist:y});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(O){var A=e.migrate||function(k,L){return Promise.resolve(k)};A(O,n).then(function(k){b(k)},function(k){process.env.NODE_ENV!=="production"&&k&&console.error("redux-persist: migration error",k),b(void 0,k)})},function(O){b(void 0,O)}),Mn({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===lp)return l=!0,h.result(bv(e)),Mn({},t(f,h),{_persist:y});if(h.type===ip)return h.result(a&&a.flush()),Mn({},t(f,h),{_persist:y});if(h.type===sp)d=!0;else if(h.type===Al){if(l)return Mn({},f,{_persist:Mn({},y,{rehydrated:!0})});if(h.key===e.key){var w=t(f,h),S=h.payload,v=r!==!1&&S!==void 0?r(S,u,w,e):w,C=Mn({},v,{_persist:Mn({},y,{rehydrated:!0})});return p(C)}}}if(!y)return t(u,h);var P=t(f,h);return P===f?u:p(Mn({},P,{_persist:y}))}}function pp(e){return Ov(e)||Pv(e)||Tv()}function Tv(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Pv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ov(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fp(n,!0).forEach(function(r){kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hp={registry:[],bootstrapped:!1},Nv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case cp:return Ml({},t,{registry:[].concat(pp(t.registry),[n.key])});case Al:var r=t.registry.indexOf(n.key),i=pp(t.registry);return i.splice(r,1),Ml({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Iv(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=pl(Nv,hp,void 0),a=function(u){s.dispatch({type:cp,key:u})},l=function(u,h,x){var y={type:Al,payload:h,err:x,key:u};e.dispatch(y),s.dispatch(y)},d=Ml({},s,{purge:function(){var u=[];return e.dispatch({type:lp,result:function(x){u.push(x)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:ip,result:function(x){u.push(x)}}),Promise.all(u)},pause:function(){e.dispatch({type:sp})},persist:function(){e.dispatch({type:ap,register:a,rehydrate:l})}});return d.persist(),d}function gp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Av}=Object.prototype,{getPrototypeOf:Fl}=Object,{iterator:us,toStringTag:mp}=Symbol,ps=(e=>t=>{const n=Av.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),en=e=>(e=e.toLowerCase(),t=>ps(t)===e),fs=e=>t=>typeof t===e,{isArray:Fr}=Array,_r=fs("undefined");function Mo(e){return e!==null&&!_r(e)&&e.constructor!==null&&!_r(e.constructor)&&Nt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yp=en("ArrayBuffer");function Mv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yp(e.buffer),t}const Fv=fs("string"),Nt=fs("function"),bp=fs("number"),Fo=e=>e!==null&&typeof e=="object",_v=e=>e===!0||e===!1,hs=e=>{if(ps(e)!=="object")return!1;const t=Fl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(mp in e)&&!(us in e)},Dv=e=>{if(!Fo(e)||Mo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$v=en("Date"),zv=en("File"),Lv=en("Blob"),jv=en("FileList"),Bv=e=>Fo(e)&&Nt(e.pipe),Wv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nt(e.append)&&((t=ps(e))==="formdata"||t==="object"&&Nt(e.toString)&&e.toString()==="[object FormData]"))},Rv=en("URLSearchParams"),[Vv,Uv,Hv,qv]=["ReadableStream","Request","Response","Headers"].map(en),Yv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _o(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Mo(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function vp(e,t){if(Mo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xp=e=>!_r(e)&&e!==lr;function _l(){const{caseless:e,skipUndefined:t}=xp(this)&&this||{},n={},r=(i,s)=>{const a=e&&vp(n,s)||s;hs(n[a])&&hs(i)?n[a]=_l(n[a],i):hs(i)?n[a]=_l({},i):Fr(i)?n[a]=i.slice():(!t||!_r(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&_o(arguments[i],r);return n}const Kv=(e,t,n,{allOwnKeys:r}={})=>(_o(t,(i,s)=>{n&&Nt(i)?e[s]=gp(i,n):e[s]=i},{allOwnKeys:r}),e),Gv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jv=(e,t,n,r)=>{let i,s,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Fl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zv=e=>{if(!e)return null;if(Fr(e))return e;let t=e.length;if(!bp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ex=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fl(Uint8Array)),tx=(e,t)=>{const r=(e&&e[us]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},nx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},rx=en("HTMLFormElement"),ox=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Sp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ix=en("RegExp"),wp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_o(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},sx=e=>{wp(e,(t,n)=>{if(Nt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ax=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Fr(e)?r(e):r(String(e).split(t)),n},lx=()=>{},cx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dx(e){return!!(e&&Nt(e.append)&&e[mp]==="FormData"&&e[us])}const ux=e=>{const t=new Array(10),n=(r,i)=>{if(Fo(r)){if(t.indexOf(r)>=0)return;if(Mo(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Fr(r)?[]:{};return _o(r,(a,l)=>{const d=n(a,i+1);!_r(d)&&(s[l]=d)}),t[i]=void 0,s}}return r};return n(e,0)},px=en("AsyncFunction"),fx=e=>e&&(Fo(e)||Nt(e))&&Nt(e.then)&&Nt(e.catch),Cp=((e,t)=>e?setImmediate:t?((n,r)=>(lr.addEventListener("message",({source:i,data:s})=>{i===lr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),lr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nt(lr.postMessage)),hx=typeof queueMicrotask<"u"?queueMicrotask.bind(lr):typeof process<"u"&&process.nextTick||Cp,H={isArray:Fr,isArrayBuffer:yp,isBuffer:Mo,isFormData:Wv,isArrayBufferView:Mv,isString:Fv,isNumber:bp,isBoolean:_v,isObject:Fo,isPlainObject:hs,isEmptyObject:Dv,isReadableStream:Vv,isRequest:Uv,isResponse:Hv,isHeaders:qv,isUndefined:_r,isDate:$v,isFile:zv,isBlob:Lv,isRegExp:ix,isFunction:Nt,isStream:Bv,isURLSearchParams:Rv,isTypedArray:ex,isFileList:jv,forEach:_o,merge:_l,extend:Kv,trim:Yv,stripBOM:Gv,inherits:Xv,toFlatObject:Jv,kindOf:ps,kindOfTest:en,endsWith:Qv,toArray:Zv,forEachEntry:tx,matchAll:nx,isHTMLForm:rx,hasOwnProperty:Sp,hasOwnProp:Sp,reduceDescriptors:wp,freezeMethods:sx,toObjectSet:ax,toCamelCase:ox,noop:lx,toFiniteNumber:cx,findKey:vp,global:lr,isContextDefined:xp,isSpecCompliantForm:dx,toJSONObject:ux,isAsyncFn:px,isThenable:fx,setImmediate:Cp,asap:hx,isIterable:e=>e!=null&&Nt(e[us])};function Oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Ep=Oe.prototype,Tp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tp[e]={value:e}}),Object.defineProperties(Oe,Tp),Object.defineProperty(Ep,"isAxiosError",{value:!0}),Oe.from=(e,t,n,r,i,s)=>{const a=Object.create(Ep);H.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const l=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Oe.call(a,l,d,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const gx=null;function Dl(e){return H.isPlainObject(e)||H.isArray(e)}function Pp(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Op(e,t,n){return e?e.concat(t).map(function(i,s){return i=Pp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function mx(e){return H.isArray(e)&&!e.some(Dl)}const yx=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function gs(e,t,n){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!H.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(H.isDate(g))return g.toISOString();if(H.isBoolean(g))return g.toString();if(!d&&H.isBlob(g))throw new Oe("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(g)||H.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,m){let b=g;if(g&&!m&&typeof g=="object"){if(H.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(H.isArray(g)&&mx(g)||(H.isFileList(g)||H.endsWith(f,"[]"))&&(b=H.toArray(g)))return f=Pp(f),b.forEach(function(S,v){!(H.isUndefined(S)||S===null)&&t.append(a===!0?Op([f],v,s):a===null?f:f+"[]",p(S))}),!1}return Dl(g)?!0:(t.append(Op(m,f,s),p(g)),!1)}const h=[],x=Object.assign(yx,{defaultVisitor:u,convertValue:p,isVisitable:Dl});function y(g,f){if(!H.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),H.forEach(g,function(b,w){(!(H.isUndefined(b)||b===null)&&i.call(t,b,H.isString(w)?w.trim():w,f,x))===!0&&y(b,f?f.concat(w):[w])}),h.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return y(e),t}function kp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $l(e,t){this._pairs=[],e&&gs(e,this,t)}const Np=$l.prototype;Np.append=function(t,n){this._pairs.push([t,n])},Np.toString=function(t){const n=t?function(r){return t.call(this,r,kp)}:kp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function bx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ip(e,t,n){if(!t)return e;const r=n&&n.encode||bx;H.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=H.isURLSearchParams(t)?t.toString():new $l(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ap{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Mp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vx={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:$l,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},zl=typeof window<"u"&&typeof document<"u",Ll=typeof navigator=="object"&&navigator||void 0,xx=zl&&(!Ll||["ReactNative","NativeScript","NS"].indexOf(Ll.product)<0),Sx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wx=zl&&window.location.href||"http://localhost",vt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zl,hasStandardBrowserEnv:xx,hasStandardBrowserWebWorkerEnv:Sx,navigator:Ll,origin:wx},Symbol.toStringTag,{value:"Module"})),...vx};function Cx(e,t){return gs(e,new vt.classes.URLSearchParams,{visitor:function(n,r,i,s){return vt.isNode&&H.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Ex(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tx(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Fp(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),d=s>=n.length;return a=!a&&H.isArray(i)?i.length:a,d?(H.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!H.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&H.isArray(i[a])&&(i[a]=Tx(i[a])),!l)}if(H.isFormData(e)&&H.isFunction(e.entries)){const n={};return H.forEachEntry(e,(r,i)=>{t(Ex(r),i,n,0)}),n}return null}function Px(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Do={transitional:Mp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=H.isObject(t);if(s&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return i?JSON.stringify(Fp(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cx(t,this.formSerializer).toString();if((l=H.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return gs(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Px(t)):t}],transformResponse:[function(t){const n=this.transitional||Do.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Oe.from(l,Oe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{Do.headers[e]={}});const Ox=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kx=e=>{const t={};let n,r,i;return e&&e.split(`
20
+ `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Ox[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_p=Symbol("internals");function $o(e){return e&&String(e).trim().toLowerCase()}function ms(e){return e===!1||e==null?e:H.isArray(e)?e.map(ms):String(e)}function Nx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ix=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jl(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function Ax(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Mx(e,t){const n=H.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,a){return this[r].call(this,t,i,s,a)},configurable:!0})})}let It=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,d,p){const u=$o(d);if(!u)throw new Error("header name must be a non-empty string");const h=H.findKey(i,u);(!h||i[h]===void 0||p===!0||p===void 0&&i[h]!==!1)&&(i[h||d]=ms(l))}const a=(l,d)=>H.forEach(l,(p,u)=>s(p,u,d));if(H.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(H.isString(t)&&(t=t.trim())&&!Ix(t))a(kx(t),n);else if(H.isObject(t)&&H.isIterable(t)){let l={},d,p;for(const u of t){if(!H.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[p=u[0]]=(d=l[p])?H.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=$o(t),t){const r=H.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Nx(i);if(H.isFunction(n))return n.call(this,i,r);if(H.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$o(t),t){const r=H.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=$o(a),a){const l=H.findKey(r,a);l&&(!n||jl(r,r[l],l,n))&&(delete r[l],i=!0)}}return H.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||jl(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return H.forEach(this,(i,s)=>{const a=H.findKey(r,s);if(a){n[a]=ms(i),delete n[s];return}const l=t?Ax(s):String(s).trim();l!==s&&delete n[s],n[l]=ms(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&H.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
21
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[_p]=this[_p]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=$o(a);r[l]||(Mx(i,a),r[l]=!0)}return H.isArray(t)?t.forEach(s):s(t),this}};It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(It.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),H.freezeMethods(It);function Bl(e,t){const n=this||Do,r=t||n,i=It.from(r.headers);let s=r.data;return H.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Dp(e){return!!(e&&e.__CANCEL__)}function Dr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}H.inherits(Dr,Oe,{__CANCEL__:!0});function $p(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _x(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=r[s];a||(a=p),n[i]=d,r[i]=p;let h=s,x=0;for(;h!==i;)x+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const y=u&&p-u;return y?Math.round(x*1e3/y):void 0}}function Dx(e,t){let n=0,r=1e3/t,i,s;const a=(p,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const ys=(e,t,n=3)=>{let r=0;const i=_x(50,250);return Dx(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,d=a-r,p=i(d),u=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:p||void 0,estimated:p&&l&&u?(l-a)/p:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},zp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Lp=e=>(...t)=>H.asap(()=>e(...t)),$x=vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,zx=vt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];H.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),H.isString(r)&&l.push(`path=${r}`),H.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),H.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Lx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jp(e,t,n){let r=!Lx(t);return e&&(r||n==!1)?jx(e,t):t}const Bp=e=>e instanceof It?{...e}:e;function cr(e,t){t=t||{};const n={};function r(p,u,h,x){return H.isPlainObject(p)&&H.isPlainObject(u)?H.merge.call({caseless:x},p,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function i(p,u,h,x){if(H.isUndefined(u)){if(!H.isUndefined(p))return r(void 0,p,h,x)}else return r(p,u,h,x)}function s(p,u){if(!H.isUndefined(u))return r(void 0,u)}function a(p,u){if(H.isUndefined(u)){if(!H.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function l(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(p,u,h)=>i(Bp(p),Bp(u),h,!0)};return H.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||i,x=h(e[u],t[u],u);H.isUndefined(x)&&h!==l||(n[u]=x)}),n}const Wp=e=>{const t=cr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=It.from(a),t.url=Ip(jp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),H.isFormData(n)){if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(H.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(vt.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(t)),r||r!==!1&&$x(t.url))){const d=i&&s&&zx.read(s);d&&a.set(i,d)}return t},Bx=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Wp(e);let s=i.data;const a=It.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:p}=i,u,h,x,y,g;function f(){y&&y(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function b(){if(!m)return;const S=It.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};$p(function(O){n(O),f()},function(O){r(O),f()},C),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const C=v&&v.message?v.message:"Network Error",P=new Oe(C,Oe.ERR_NETWORK,e,m);P.event=v||null,r(P),m=null},m.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||Mp;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Oe(v,C.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&H.forEach(a.toJSON(),function(v,C){m.setRequestHeader(C,v)}),H.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&l!=="json"&&(m.responseType=i.responseType),p&&([x,g]=ys(p,!0),m.addEventListener("progress",x)),d&&m.upload&&([h,y]=ys(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=S=>{m&&(r(!S||S.type?new Dr(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=Fx(i.url);if(w&&vt.protocols.indexOf(w)===-1){r(new Oe("Unsupported protocol "+w+":",Oe.ERR_BAD_REQUEST,e));return}m.send(s||null)})},Wx=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(p){if(!i){i=!0,l();const u=p instanceof Error?p:this.reason;r.abort(u instanceof Oe?u:new Dr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>H.asap(l),d}},Rx=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Vx=async function*(e,t){for await(const n of Ux(e))yield*Rx(n,t)},Ux=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Rp=(e,t,n,r)=>{const i=Vx(e,t);let s=0,a,l=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await i.next();if(p){l(),d.close();return}let h=u.byteLength;if(n){let x=s+=h;n(x)}d.enqueue(new Uint8Array(u))}catch(p){throw l(p),p}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},Vp=64*1024,{isFunction:bs}=H,Hx=(({Request:e,Response:t})=>({Request:e,Response:t}))(H.global),{ReadableStream:Up,TextEncoder:Hp}=H.global,qp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qx=e=>{e=H.merge.call({skipUndefined:!0},Hx,e);const{fetch:t,Request:n,Response:r}=e,i=t?bs(t):typeof fetch=="function",s=bs(n),a=bs(r);if(!i)return!1;const l=i&&bs(Up),d=i&&(typeof Hp=="function"?(g=>f=>g.encode(f))(new Hp):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&l&&qp(()=>{let g=!1;const f=new n(vt.origin,{body:new Up,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&l&&qp(()=>H.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let b=f&&f[g];if(b)return b.call(f);throw new Oe(`Response type '${g}' is not supported`,Oe.ERR_NOT_SUPPORT,m)})});const x=async g=>{if(g==null)return 0;if(H.isBlob(g))return g.size;if(H.isSpecCompliantForm(g))return(await new n(vt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(H.isArrayBufferView(g)||H.isArrayBuffer(g))return g.byteLength;if(H.isURLSearchParams(g)&&(g=g+""),H.isString(g))return(await d(g)).byteLength},y=async(g,f)=>{const m=H.toFiniteNumber(g.getContentLength());return m??x(f)};return async g=>{let{url:f,method:m,data:b,signal:w,cancelToken:S,timeout:v,onDownloadProgress:C,onUploadProgress:P,responseType:O,headers:A,withCredentials:k="same-origin",fetchOptions:L}=Wp(g),D=t||fetch;O=O?(O+"").toLowerCase():"text";let T=Wx([w,S&&S.toAbortSignal()],v),I=null;const F=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let W;try{if(P&&p&&m!=="get"&&m!=="head"&&(W=await y(A,b))!==0){let V=new n(f,{method:"POST",body:b,duplex:"half"}),G;if(H.isFormData(b)&&(G=V.headers.get("content-type"))&&A.setContentType(G),V.body){const[K,Z]=zp(W,ys(Lp(P)));b=Rp(V.body,Vp,K,Z)}}H.isString(k)||(k=k?"include":"omit");const _=s&&"credentials"in n.prototype,j={...L,signal:T,method:m.toUpperCase(),headers:A.normalize().toJSON(),body:b,duplex:"half",credentials:_?k:void 0};I=s&&new n(f,j);let M=await(s?D(I,L):D(f,j));const B=u&&(O==="stream"||O==="response");if(u&&(C||B&&F)){const V={};["status","statusText","headers"].forEach(Q=>{V[Q]=M[Q]});const G=H.toFiniteNumber(M.headers.get("content-length")),[K,Z]=C&&zp(G,ys(Lp(C),!0))||[];M=new r(Rp(M.body,Vp,K,()=>{Z&&Z(),F&&F()}),V)}O=O||"text";let $=await h[H.findKey(h,O)||"text"](M,g);return!B&&F&&F(),await new Promise((V,G)=>{$p(V,G,{data:$,headers:It.from(M.headers),status:M.status,statusText:M.statusText,config:g,request:I})})}catch(_){throw F&&F(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,g,I),{cause:_.cause||_}):Oe.from(_,_&&_.code,g,I)}}},Yx=new Map,Yp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,l=a,d,p,u=Yx;for(;l--;)d=s[l],p=u.get(d),p===void 0&&u.set(d,p=l?new Map:qx(t)),u=p;return p};Yp();const Wl={http:gx,xhr:Bx,fetch:{get:Yp}};H.forEach(Wl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kp=e=>`- ${e}`,Kx=e=>H.isFunction(e)||e===null||e===!1;function Gx(e,t){e=H.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!Kx(r)&&(i=Wl[(l=String(r)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${l}'`);if(i&&(H.isFunction(i)||(i=i.get(t))))break;s[l||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
22
22
  `+a.map(Kp).join(`
23
- `):" "+Kp(a[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Gp={getAdapter:Gx,adapters:Wl};function Rl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dr(null,e)}function Xp(e){return Rl(e),e.headers=Nt.from(e.headers),e.data=Bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gp.getAdapter(e.adapter||Do.adapter,e)(e).then(function(r){return Rl(e),r.data=Bl.call(e,e.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return Dp(r)||(Rl(e),r&&r.response&&(r.response.data=Bl.call(e,e.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const Jp="1.13.2",vs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qp={};vs.transitional=function(t,n,r){function i(s,a){return"[Axios v"+Jp+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Oe(i(a," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!Qp[a]&&(Qp[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},vs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Xx(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],a=t[s];if(a){const l=e[s],d=l===void 0||a(l,s,e);if(d!==!0)throw new Oe("option "+s+" must be "+d,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const xs={assertOptions:Xx,validators:vs},ln=xs.validators;let dr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ap,response:new Ap}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
24
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&xs.assertOptions(r,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),i!=null&&(H.isFunction(i)?n.paramsSerializer={serialize:i}:xs.assertOptions(i,{encode:ln.function,serialize:ln.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xs.assertOptions(n,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&H.merge(s.common,s[n.method]);s&&H.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Nt.concat(a,s);const l=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,x;if(!d){const g=[Xp.bind(this),void 0];for(g.unshift(...l),g.push(...p),x=g.length,u=Promise.resolve(n);h<x;)u=u.then(g[h++],g[h++]);return u}x=l.length;let y=n;for(;h<x;){const g=l[h++],f=l[h++];try{y=g(y)}catch(m){f.call(this,m);break}}try{u=Xp.call(this,y)}catch(g){return Promise.reject(g)}for(h=0,x=p.length;h<x;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=cr(this.defaults,t);const n=jp(t.baseURL,t.url,t.allowAbsoluteUrls);return Np(n,t.params,t.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(t){dr.prototype[t]=function(n,r){return this.request(cr(r||{},{method:t,url:n,data:(r||{}).data}))}}),H.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(cr(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}dr.prototype[t]=n(),dr.prototype[t+"Form"]=n(!0)});let Jx=class Zm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Dr(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zm(function(i){t=i}),cancel:t}}};function Qx(e){return function(n){return e.apply(null,n)}}function Zx(e){return H.isObject(e)&&e.isAxiosError===!0}const Vl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vl).forEach(([e,t])=>{Vl[t]=e});function Zp(e){const t=new dr(e),n=gp(dr.prototype.request,t);return H.extend(n,dr.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Zp(cr(e,i))},n}const tt=Zp(Do);tt.Axios=dr,tt.CanceledError=Dr,tt.CancelToken=Jx,tt.isCancel=Dp,tt.VERSION=Jp,tt.toFormData=gs,tt.AxiosError=Oe,tt.Cancel=tt.CanceledError,tt.all=function(t){return Promise.all(t)},tt.spread=Qx,tt.isAxiosError=Zx,tt.mergeConfig=cr,tt.AxiosHeaders=Nt,tt.formToJSON=e=>Fp(H.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=Gp.getAdapter,tt.HttpStatusCode=Vl,tt.default=tt;const{Axios:FA,AxiosError:_A,CanceledError:DA,isCancel:$A,CancelToken:zA,VERSION:LA,all:jA,Cancel:BA,isAxiosError:WA,spread:RA,toFormData:VA,AxiosHeaders:UA,HttpStatusCode:HA,formToJSON:qA,getAdapter:YA,mergeConfig:KA}=tt;function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var e1={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ul(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Ss({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var d in a)a[d]&&(l+="; "+d,a[d]!==!0&&(l+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var d=s[l].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(a[u]=e.read(p,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ss({},s,{expires:-1}))},withAttributes:function(i){return Ul(this.converter,Ss({},this.attributes,i))},withConverter:function(i){return Ul(Ss({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Kn=Ul(e1,{path:"/"});const t1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let $r="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Xa&&Xa.tagName.toUpperCase()==="SCRIPT"&&Xa.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&t1?.VITE_API_URL)$r=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&($r=process.env.VITE_API_URL)}}catch{}const n1=e=>{$r=e,at.defaults.baseURL=$r},r1=e=>{e?Kn.set("token",e,{secure:!0,sameSite:"Strict"}):Kn.remove("token")},o1=()=>"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDE3NSwibmFtZSI6IlN1YmhhbSAiLCJjb21wYW55SWQiOiIxYzQzYzhjMi1jNzg0LTQ0MmUtOTU3NC03YTM4ZTgyODJkMWEiLCJyZWdpb25zIjpbXSwiY2x1c3RlcnMiOltdLCJmb3JtYXRzIjpbXSwic3RvcmVzIjpbeyJpZCI6IjA5NDYwODY4LTgzODgtNGNkNi04Y2QwLTc0OWFhZmEzY2NiMSIsIm5hbWUiOiJIUjA0In1dLCJyb2xlcyI6W3siaWQiOjc2NywibmFtZSI6IlNUT1JFTUFOQUdFUiJ9XSwic2Vzc2lvbklkIjo3NDM0LCJpYXQiOjE3NzI2ODI4MjEsImV4cCI6MTc3Mjc2OTIyMX0.WiYXGLELc_Pqp7zjtBgj-TwYt_EvWx7sqnjEr-__XZ0",at=tt.create({baseURL:$r,transformRequest:[function(e,t){const n=o1();return t.Authorization=`Bearer ${n}`,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Hl=!1,ql=null;at.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=Kn.get("refreshToken");if(r)try{Hl||(Hl=!0,ql=tt.post(`${$r}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await ql,{token:s,refreshToken:a}=i.data;return Kn.set("token",s,{secure:!0,sameSite:"Strict"}),Kn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,at(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Kn.remove("token"),Kn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Hl=!1,ql=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Kn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const zo=ht("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),ws=ht("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),zr=ht("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const n=await at.get("/auth/verify");console.log("/auth/verify response:",n.data);const r=n.data?.data!=null?n.data.data:n.data,i=r?.companyId||n.data?.companyId;if(i){const s=r?.id!=null?r.id:n.data?.id!=null?n.data.id:null,a=(r?.firstName!=null?r.firstName:n.data?.firstName!=null?n.data.firstName:"").toString().trim(),l=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,l].filter(Boolean).join(" ")||(r?.name!=null?r.name:n.data?.name!=null?n.data.name:"");return{companyId:i,createdById:s??null,createdByName:d||""}}else throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),At=ht("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await at.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Lr=ht("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),ur=ht("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),Fn=ht("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store-inventory",{params:e})).data||{}}catch(n){return console.log("Error fetching products:",n),t(n.response?.data||n.message)}}),Cs=ht("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,createdById:i,createdByName:s,products:a},{rejectWithValue:l})=>{try{return(await at.post("/catalogues",{name:e,slug:t,description:n,storeCode:Array.isArray(r)?r:[r],createdById:i,createdByName:s,products:Array.isArray(a)?a:[]})).data}catch(d){const p=d.response?.data?.message||d.message||"Failed to create catalog";return l(p)}}),Lo=ht("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,a={name:t,slug:n,status:r===!0||r==="Active"};return(await at.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),Es=ht("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await at.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),Ts=ht("dashboard/createOsaRequest",async({storeCodes:e,createdBy:t,createdByName:n,products:r},{rejectWithValue:i})=>{try{return(await at.post("/osa/request",{storeCodes:Array.isArray(e)?e:[e],createdBy:t??null,createdByName:n??"",products:Array.isArray(r)?r:[]})).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to create OSA request";return i(a)}}),ef=op({name:"dashboard",initialState:{loading:!1,companyId:"",createdById:null,createdByName:"",error:null,metrics:{},productDashboardMetrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],categoryList:[],categoryPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:"",lastSyncHoursAgo:null},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1},createCatalogLoading:!1,createCatalogError:null,updateCatalogLoading:!1,updateCatalogError:null,deleteCatalogLoading:!1,deleteCatalogError:null,createOsaRequestLoading:!1,createOsaRequestError:null},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},clearCreateCatalogError:e=>{e.createCatalogError=null},clearUpdateCatalogError:e=>{e.updateCatalogError=null},clearDeleteCatalogError:e=>{e.deleteCatalogError=null},clearCreateOsaRequestError:e=>{e.createOsaRequestError=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(zo.pending,t=>{t.loading=!0,t.error=null}).addCase(zo.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(zo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(ws.pending,t=>{t.loading=!0}).addCase(ws.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(ws.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(At.pending,t=>{t.loading=!0}).addCase(At.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(At.rejected,t=>{t.loading=!1}),e.addCase(zr.pending,t=>{t.loading=!0,t.error=null}),e.addCase(zr.fulfilled,(t,n)=>{t.loading=!1;const r=n.payload;r&&typeof r=="object"&&"companyId"in r?(t.companyId=r.companyId,t.createdById=r.createdById!=null?r.createdById:null,t.createdByName=r.createdByName!=null?r.createdByName:""):t.companyId=r,t.error=null}),e.addCase(zr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(ur.pending,t=>{t.loading=!0,t.error=null}).addCase(ur.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},i=Array.isArray(r.data)?r.data:[];t.categoryList=i;const s=r.pagination||{};t.categoryPagination={currentPage:typeof s.currentPage=="number"?s.currentPage:1,limit:typeof s.limit=="number"?s.limit:10,totalCount:typeof s.totalCount=="number"?s.totalCount:0,totalPages:typeof s.totalPages=="number"?s.totalPages:1,hasNextPage:typeof s.hasNextPage=="boolean"?s.hasNextPage:!1}}).addCase(ur.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(Lr.pending,t=>{t.loading=!0,t.error=null}).addCase(Lr.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},s=(Array.isArray(r.stores)?r.stores:Array.isArray(r.data)?r.data:Array.isArray(r)?r:[]).map(a=>{const l=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",p=a.storeCode??a.id??l;return{id:l,name:d,storeCode:p}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(Lr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(Fn.pending,t=>{t.loading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(Fn.fulfilled,(t,n)=>{t.loading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[];t.products=i;const s=(g,f=0)=>{if(g==null||g==="")return f;const m=Number(g);return Number.isFinite(m)?m:f},a={};i.forEach(g=>{if(!g)return;const f=g.categoryName||"Uncategorized";a[f]||(a[f]=[]),a[f].push({...g,stock:s(g.stock),inventory:s(g.inventory),inShelf:s(g.inShelf)})});const l=Object.values(a).flat(),d=Object.keys(a).length,p=l.length;let u="",h=null;if(l.length>0){const g=l.reduce((f,m)=>f?m?new Date(f.updated)>new Date(m.updated)?f:m:f:m);if(u=g?.updated?new Date(g.updated).toLocaleString():"",g?.updated){const f=Date.now()-new Date(g.updated).getTime();h=Math.max(0,Math.floor(f/(1e3*60*60)))}}t.homePageCardSummary={totalCategories:d,totalProducts:p,lastSync:u,lastSyncHoursAgo:h},t.productsByCategory=a;const x=r.pagination||{},y=typeof x.totalCount=="number"?x.totalCount:Object.values(a).reduce((g,f)=>g+f.length,0);t.pagination={currentPage:typeof x.currentPage=="number"?x.currentPage:1,limit:typeof x.limit=="number"?x.limit:20,totalCount:y,totalPages:typeof x.totalPages=="number"?x.totalPages:1,hasNextPage:typeof x.hasNextPage=="boolean"?x.hasNextPage:!1}}).addCase(Fn.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}),e.addCase(Cs.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Cs.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Cs.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(Lo.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(Lo.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(Lo.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(Es.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(Es.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(Es.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(Ts.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(Ts.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(Ts.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{clearMetrics:XA,clearError:JA,updateMetric:QA,clearCreateCatalogError:i1,clearUpdateCatalogError:ZA,clearDeleteCatalogError:e5,clearCreateOsaRequestError:s1}=ef.actions,a1=ef.reducer,jo=ht("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const a=r||i;if(!a)throw new Error("Company ID is required");const l=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!l)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,p,u,h]=l;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const x={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""},y=await at.post("/ftp/sync/test-connection",x);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",y.data),console.log("existing_mapping:",y.data?.existing_mapping),console.log("================================================"),y.data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),Bo=ht("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(n,null,2)),(await at.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),jr=ht("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API..."),console.log("[FTP SYNC] API payload (mapped):",JSON.stringify(n,null,2));try{const r=await at.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return console.log("[FTP SYNC] API call successful:",r.data),r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),Wo=ht("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await at.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),Ro=ht("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await at.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),Vo=ht("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");console.log(`[Integration] Calling PATCH /integrations/${e} API...`),console.log("[Integration] PATCH payload:",JSON.stringify(t,null,2));const r=`/integrations/${e}`,i=await at.patch(r,t);if(i.status>=200&&i.status<300)return console.log(`[Integration] PATCH API call successful for channelId ${e}:`,i.data),i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),tn=ht("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await at.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),Yl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null,lastStableActiveCatalogsCount:null},tf=op({name:"productSettings",initialState:Yl,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null,e.lastStableActiveCatalogsCount=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=Yl.syncData}},extraReducers:e=>{e.addCase(jo.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(jo.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(jo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Ro.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Ro.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Ro.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(tn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(tn.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;if(r&&typeof r=="object"&&Array.isArray(r.data)){t.sharedCatalogues=r.data;const i=typeof r.total=="number"?r.total:0;t.sharedCataloguesTotal=i,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10,i>0&&r.data.length>=i&&(t.lastStableActiveCatalogsCount=r.data.filter(s=>s.status===!0).length)}else t.sharedCatalogues=[];t.sharedCataloguesError=null}).addCase(tn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(Bo.pending,t=>{t.loading=!0,t.error=null}).addCase(Bo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=Yl.syncData}).addCase(Bo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(jr.pending,t=>{t.loading=!0,t.error=null}).addCase(jr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(jr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(Wo.pending,t=>{t.loading=!0,t.error=null}).addCase(Wo.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(Wo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(Vo.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(Vo.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(Vo.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:t5,clearTestConnectionResult:n5,clearSaveResult:l1,clearAll:r5,clearTestConnectionData:o5,clearUpdateDetailsResult:i5,clearSyncNowResult:s5,setFtpSyncData:Ps,clearFtpSyncData:a5,clearMappingColumnsError:l5,clearMappingColumns:c5,clearSharedCataloguesError:d5,clearSharedCatalogues:u5,clearUpdateIntegrationByChannelIdResult:p5}=tf.actions,c1=tf.reducer;var Os={},ks={},nf;function d1(){if(nf)return ks;nf=1,ks.__esModule=!0,ks.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(l){return typeof l}:e=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],l="redux-persist ".concat(s," test");a.setItem(l,"test"),a.getItem(l),a.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return ks}var rf;function u1(){if(rf)return Os;rf=1,Os.__esModule=!0,Os.default=n;var e=t(d1());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(a){return new Promise(function(l,d){l(i.getItem(a))})},setItem:function(a,l){return new Promise(function(d,p){d(i.setItem(a,l))})},removeItem:function(a){return new Promise(function(l,d){l(i.removeItem(a))})}}}return Os}var p1=u1();const f1={key:"auth",storage:typeof window<"u"?pu(p1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},h1=wu({dashboard:a1,productSettings:c1}),g1=Ev(f1,h1),of=U0({reducer:g1,middleware:e=>e({serializableCheck:!1})}),m1=Nv(of),y1=z.createContext(null),b1=({children:e,apiUrl:t,authToken:n})=>(z.useEffect(()=>{t&&n1(t)},[t]),z.useEffect(()=>{r1(n||null)},[n]),c.jsx(y1.Provider,{value:{apiUrl:t},children:e})),Uo={black:"#000",white:"#fff"},Br={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Wr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Vr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ur={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ho={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},v1={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"};function cn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qo="$$material";function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Is.apply(null,arguments)}function x1(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 S1(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 w1=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.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(S1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=x1(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),xt="-ms-",Ns="-moz-",$e="-webkit-",sf="comm",Kl="rule",Gl="decl",C1="@import",af="@keyframes",E1="@layer",T1=Math.abs,As=String.fromCharCode,P1=Object.assign;function O1(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function lf(e){return e.trim()}function k1(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,n){return e.replace(t,n)}function Xl(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Yo(e,t,n){return e.slice(t,n)}function dn(e){return e.length}function Jl(e){return e.length}function Ms(e,t){return t.push(e),e}function I1(e,t){return e.map(t).join("")}var Fs=1,Hr=1,cf=0,Mt=0,dt=0,qr="";function _s(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Fs,column:Hr,length:a,return:""}}function Ko(e,t){return P1(_s("",null,null,"",null,null,0),e,{length:-e.length},t)}function N1(){return dt}function A1(){return dt=Mt>0?mt(qr,--Mt):0,Hr--,dt===10&&(Hr=1,Fs--),dt}function jt(){return dt=Mt<cf?mt(qr,Mt++):0,Hr++,dt===10&&(Hr=1,Fs++),dt}function un(){return mt(qr,Mt)}function Ds(){return Mt}function Go(e,t){return Yo(qr,e,t)}function Xo(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 df(e){return Fs=Hr=1,cf=dn(qr=e),Mt=0,[]}function uf(e){return qr="",e}function $s(e){return lf(Go(Mt-1,Ql(e===91?e+2:e===40?e+1:e)))}function M1(e){for(;(dt=un())&&dt<33;)jt();return Xo(e)>2||Xo(dt)>3?"":" "}function F1(e,t){for(;--t&&jt()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return Go(e,Ds()+(t<6&&un()==32&&jt()==32))}function Ql(e){for(;jt();)switch(dt){case e:return Mt;case 34:case 39:e!==34&&e!==39&&Ql(dt);break;case 40:e===41&&Ql(e);break;case 92:jt();break}return Mt}function _1(e,t){for(;jt()&&e+dt!==57;)if(e+dt===84&&un()===47)break;return"/*"+Go(t,Mt-1)+"*"+As(e===47?e:jt())}function D1(e){for(;!Xo(un());)jt();return Go(e,Mt)}function $1(e){return uf(zs("",null,null,null,[""],e=df(e),0,[0],e))}function zs(e,t,n,r,i,s,a,l,d){for(var p=0,u=0,h=a,x=0,y=0,g=0,f=1,m=1,b=1,w=0,S="",v=i,C=s,P=r,O=S;m;)switch(g=w,w=jt()){case 40:if(g!=108&&mt(O,h-1)==58){Xl(O+=ze($s(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=$s(w);break;case 9:case 10:case 13:case 32:O+=M1(g);break;case 92:O+=F1(Ds()-1,7);continue;case 47:switch(un()){case 42:case 47:Ms(z1(_1(jt(),Ds()),t,n),d);break;default:O+="/"}break;case 123*f:l[p++]=dn(O)*b;case 125*f:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+u:b==-1&&(O=ze(O,/\f/g,"")),y>0&&dn(O)-h&&Ms(y>32?ff(O+";",r,n,h-1):ff(ze(O," ","")+";",r,n,h-2),d);break;case 59:O+=";";default:if(Ms(P=pf(O,t,n,p,u,i,l,S,v=[],C=[],h),s),w===123)if(u===0)zs(O,t,P,P,v,s,h,l,C);else switch(x===99&&mt(O,3)===110?100:x){case 100:case 108:case 109:case 115:zs(e,P,P,r&&Ms(pf(e,P,P,0,0,i,l,S,i,v=[],h),C),i,C,h,l,r?v:C);break;default:zs(O,P,P,P,[""],C,0,l,C)}}p=u=y=0,f=b=1,S=O="",h=a;break;case 58:h=1+dn(O),y=g;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&A1()==125)continue}switch(O+=As(w),w*f){case 38:b=u>0?1:(O+="\f",-1);break;case 44:l[p++]=(dn(O)-1)*b,b=1;break;case 64:un()===45&&(O+=$s(jt())),x=un(),u=h=dn(S=O+=D1(Ds())),w++;break;case 45:g===45&&dn(O)==2&&(f=0)}}return s}function pf(e,t,n,r,i,s,a,l,d,p,u){for(var h=i-1,x=i===0?s:[""],y=Jl(x),g=0,f=0,m=0;g<r;++g)for(var b=0,w=Yo(e,h+1,h=T1(f=a[g])),S=e;b<y;++b)(S=lf(f>0?x[b]+" "+w:ze(w,/&\f/g,x[b])))&&(d[m++]=S);return _s(e,t,n,i===0?Kl:l,d,p,u)}function z1(e,t,n){return _s(e,t,n,sf,As(N1()),Yo(e,2,-2),0)}function ff(e,t,n,r){return _s(e,t,n,Gl,Yo(e,0,r),Yo(e,r+1,-1),r)}function Yr(e,t){for(var n="",r=Jl(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function L1(e,t,n,r){switch(e.type){case E1:if(e.children.length)break;case C1:case Gl:return e.return=e.return||e.value;case sf:return"";case af:return e.return=e.value+"{"+Yr(e.children,r)+"}";case Kl:e.value=e.props.join(",")}return dn(n=Yr(e.children,r))?e.return=e.value+"{"+n+"}":""}function j1(e){var t=Jl(e);return function(n,r,i,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,s)||"";return a}}function B1(e){return function(t){t.root||(t=t.return)&&e(t)}}function hf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var W1=function(t,n,r){for(var i=0,s=0;i=s,s=un(),i===38&&s===12&&(n[r]=1),!Xo(s);)jt();return Go(t,Mt)},R1=function(t,n){var r=-1,i=44;do switch(Xo(i)){case 0:i===38&&un()===12&&(n[r]=1),t[r]+=W1(Mt-1,n,r);break;case 2:t[r]+=$s(i);break;case 4:if(i===44){t[++r]=un()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=As(i)}while(i=jt());return t},V1=function(t,n){return uf(R1(df(t),n))},gf=new WeakMap,U1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!gf.get(r))&&!i){gf.set(t,!0);for(var s=[],a=V1(n,s),l=r.props,d=0,p=0;d<a.length;d++)for(var u=0;u<l.length;u++,p++)t.props[p]=s[d]?a[d].replace(/&\f/g,l[u]):l[u]+" "+a[d]}}},H1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function mf(e,t){switch(O1(e,t)){case 5103:return $e+"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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Ns+e+xt+e+e;case 6828:case 4268:return $e+e+xt+e+e;case 6165:return $e+e+xt+"flex-"+e+e;case 5187:return $e+e+ze(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+xt+"flex-$1$2")+e;case 5443:return $e+e+xt+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return $e+e+xt+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+xt+ze(e,"shrink","negative")+e;case 5292:return $e+e+xt+ze(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+ze(e,"-grow","")+$e+e+xt+ze(e,"grow","positive")+e;case 4554:return $e+ze(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,$e+"$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(dn(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+Ns+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xl(e,"stretch")?mf(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,dn(e)-3-(~Xl(e,"!important")&&10))){case 107:return ze(e,":",":"+$e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(mt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+xt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return $e+e+xt+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+xt+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+xt+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+xt+e+e}return e}var q1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Gl:t.return=mf(t.value,t.length);break;case af:return Yr([Ko(t,{value:ze(t.value,"@","@"+$e)})],i);case Kl:if(t.length)return I1(t.props,function(s){switch(k1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yr([Ko(t,{props:[ze(s,/:(read-\w+)/,":"+Ns+"$1")]})],i);case"::placeholder":return Yr([Ko(t,{props:[ze(s,/:(plac\w+)/,":"+$e+"input-$1")]}),Ko(t,{props:[ze(s,/:(plac\w+)/,":"+Ns+"$1")]}),Ko(t,{props:[ze(s,/:(plac\w+)/,xt+"input-$1")]})],i)}return""})}},Y1=[q1],K1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Y1,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),b=1;b<m.length;b++)s[m[b]]=!0;l.push(f)});var d,p=[U1,H1];{var u,h=[L1,B1(function(f){u.insert(f)})],x=j1(p.concat(i,h)),y=function(m){return Yr($1(m),x)};d=function(m,b,w,S){u=w,y(m?m+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new w1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return g.sheet.hydrate(l),g},Ls={exports:{}},je={};var yf;function G1(){if(yf)return je;yf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var P=C.$$typeof;switch(P){case t:switch(C=C.type,C){case d:case p:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case g:case y:case a:return C;default:return P}}case n:return P}}}function v(C){return S(C)===p}return je.AsyncMode=d,je.ConcurrentMode=p,je.ContextConsumer=l,je.ContextProvider=a,je.Element=t,je.ForwardRef=u,je.Fragment=r,je.Lazy=g,je.Memo=y,je.Portal=n,je.Profiler=s,je.StrictMode=i,je.Suspense=h,je.isAsyncMode=function(C){return v(C)||S(C)===d},je.isConcurrentMode=v,je.isContextConsumer=function(C){return S(C)===l},je.isContextProvider=function(C){return S(C)===a},je.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},je.isForwardRef=function(C){return S(C)===u},je.isFragment=function(C){return S(C)===r},je.isLazy=function(C){return S(C)===g},je.isMemo=function(C){return S(C)===y},je.isPortal=function(C){return S(C)===n},je.isProfiler=function(C){return S(C)===s},je.isStrictMode=function(C){return S(C)===i},je.isSuspense=function(C){return S(C)===h},je.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===p||C===s||C===i||C===h||C===x||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===y||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===m||C.$$typeof===b||C.$$typeof===w||C.$$typeof===f)},je.typeOf=S,je}var Be={};var bf;function X1(){return bf||(bf=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(U){return typeof U=="string"||typeof U=="function"||U===r||U===p||U===s||U===i||U===h||U===x||typeof U=="object"&&U!==null&&(U.$$typeof===g||U.$$typeof===y||U.$$typeof===a||U.$$typeof===l||U.$$typeof===u||U.$$typeof===m||U.$$typeof===b||U.$$typeof===w||U.$$typeof===f)}function v(U){if(typeof U=="object"&&U!==null){var de=U.$$typeof;switch(de){case t:var re=U.type;switch(re){case d:case p:case r:case s:case i:case h:return re;default:var oe=re&&re.$$typeof;switch(oe){case l:case u:case g:case y:case a:return oe;default:return de}}case n:return de}}}var C=d,P=p,O=l,A=a,k=t,L=u,D=r,T=g,N=y,F=n,W=s,_=i,j=h,M=!1;function B(U){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(U)||v(U)===d}function $(U){return v(U)===p}function V(U){return v(U)===l}function G(U){return v(U)===a}function K(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function Z(U){return v(U)===u}function Q(U){return v(U)===r}function J(U){return v(U)===g}function ae(U){return v(U)===y}function se(U){return v(U)===n}function le(U){return v(U)===s}function q(U){return v(U)===i}function ne(U){return v(U)===h}Be.AsyncMode=C,Be.ConcurrentMode=P,Be.ContextConsumer=O,Be.ContextProvider=A,Be.Element=k,Be.ForwardRef=L,Be.Fragment=D,Be.Lazy=T,Be.Memo=N,Be.Portal=F,Be.Profiler=W,Be.StrictMode=_,Be.Suspense=j,Be.isAsyncMode=B,Be.isConcurrentMode=$,Be.isContextConsumer=V,Be.isContextProvider=G,Be.isElement=K,Be.isForwardRef=Z,Be.isFragment=Q,Be.isLazy=J,Be.isMemo=ae,Be.isPortal=se,Be.isProfiler=le,Be.isStrictMode=q,Be.isSuspense=ne,Be.isValidElementType=S,Be.typeOf=v})()),Be}var vf;function Zl(){return vf||(vf=1,process.env.NODE_ENV==="production"?Ls.exports=G1():Ls.exports=X1()),Ls.exports}var ec,xf;function J1(){if(xf)return ec;xf=1;var e=Zl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,x=Object.prototype;function y(g,f,m){if(typeof f!="string"){if(x){var b=h(f);b&&b!==x&&y(g,b,m)}var w=d(f);p&&(w=w.concat(p(f)));for(var S=a(g),v=a(f),C=0;C<w.length;++C){var P=w[C];if(!n[P]&&!(m&&m[P])&&!(v&&v[P])&&!(S&&S[P])){var O=u(f,P);try{l(g,P,O)}catch{}}}}return g}return ec=y,ec}J1();var Q1=!0;function Sf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var tc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Q1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},nc=function(t,n,r){tc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Z1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tS=/[A-Z]|^ms/g,nS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wf=function(t){return t.charCodeAt(1)===45},Cf=function(t){return t!=null&&typeof t!="boolean"},rc=hf(function(e){return wf(e)?e:e.replace(tS,"-$&").toLowerCase()}),Ef=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nS,function(r,i,s){return pn={name:i,styles:s,next:pn},i})}return eS[t]!==1&&!wf(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pn={name:i.name,styles:i.styles,next:pn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)pn={name:a.name,styles:a.styles,next:pn},a=a.next;var l=s.styles+";";return l}return rS(e,t,n)}case"function":{if(e!==void 0){var d=pn,p=n(e);return pn=d,Jo(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function rS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jo(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Cf(l)&&(r+=rc(s)+":"+Ef(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Cf(a[d])&&(r+=rc(s)+":"+Ef(s,a[d])+";");else{var p=Jo(e,t,a);switch(s){case"animation":case"animationName":{r+=rc(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var Tf=/label:\s*([^\s;{]+)\s*(;|$)/g,pn;function Qo(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";pn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Jo(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Jo(n,t,e[l]),r){var d=s;i+=d[l]}Tf.lastIndex=0;for(var p="",u;(u=Tf.exec(i))!==null;)p+="-"+u[1];var h=Z1(i)+p;return{name:h,styles:i,next:pn}}var oS=function(t){return t()},Pf=E.useInsertionEffect?E.useInsertionEffect:!1,Of=Pf||oS,kf=Pf||E.useLayoutEffect,If=E.createContext(typeof HTMLElement<"u"?K1({key:"css"}):null);If.Provider;var oc=function(t){return z.forwardRef(function(n,r){var i=z.useContext(If);return t(n,i,r)})},js=E.createContext({}),ic={}.hasOwnProperty,sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iS=function(t,n){var r={};for(var i in n)ic.call(n,i)&&(r[i]=n[i]);return r[sc]=t,r},sS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tc(n,r,i),Of(function(){return nc(n,r,i)}),null},aS=oc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[sc],s=[r],a="";typeof e.className=="string"?a=Sf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Qo(s,void 0,E.useContext(js));a+=t.key+"-"+l.name;var d={};for(var p in e)ic.call(e,p)&&p!=="css"&&p!==sc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),E.createElement(E.Fragment,null,E.createElement(sS,{cache:t,serialized:l,isStringTag:typeof i=="string"}),E.createElement(i,d))}),lS=aS,Nf=function(t,n){var r=arguments;if(n==null||!ic.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=lS,s[1]=iS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Nf||(Nf={}));var cS=oc(function(e,t){var n=e.styles,r=Qo([n],void 0,E.useContext(js)),i=E.useRef();return kf(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,l],function(){a.flush()}},[t]),kf(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&nc(t,r.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Kr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qo(t)}function Gn(){var e=Kr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var dS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uS=hf(function(e){return dS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pS=uS,fS=function(t){return t!=="theme"},Af=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pS:fS},Mf=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},hS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tc(n,r,i),Of(function(){return nc(n,r,i)}),null},gS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=Mf(t,n,r),d=l||Af(i),p=!d("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var x=u[0];h.push(x[0]);for(var y=u.length,g=1;g<y;g++)h.push(u[g],x[g])}var f=oc(function(m,b,w){var S=p&&m.as||i,v="",C=[],P=m;if(m.theme==null){P={};for(var O in m)P[O]=m[O];P.theme=E.useContext(js)}typeof m.className=="string"?v=Sf(b.registered,C,m.className):m.className!=null&&(v=m.className+" ");var A=Qo(h.concat(C),b.registered,P);v+=b.key+"-"+A.name,a!==void 0&&(v+=" "+a);var k=p&&l===void 0?Af(S):d,L={};for(var D in m)p&&D==="as"||k(D)&&(L[D]=m[D]);return L.className=v,w&&(L.ref=w),E.createElement(E.Fragment,null,E.createElement(hS,{cache:b,serialized:A,isStringTag:typeof S=="string"}),E.createElement(S,L))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,b){var w=e(m,Is({},n,b,{shouldForwardProp:Mf(f,b,!0)}));return w.apply(void 0,h)},f}},mS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ac=gS.bind(null);mS.forEach(function(e){ac[e]=ac(e)});var Bs={exports:{}};var lc,Ff;function yS(){if(Ff)return lc;Ff=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lc=i()?Object.assign:function(s,a){for(var l,d=r(s),p,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(d[h]=l[h]);if(e){p=e(l);for(var x=0;x<p.length;x++)n.call(l,p[x])&&(d[p[x]]=l[p[x]])}}return d},lc}var cc,_f;function dc(){if(_f)return cc;_f=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cc=e,cc}var uc,Df;function $f(){return Df||(Df=1,uc=Function.call.bind(Object.prototype.hasOwnProperty)),uc}var pc,zf;function bS(){if(zf)return pc;zf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=dc(),n={},r=$f();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var x=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}h=s[u](a,u,d,l,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+u+"` 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 n)){n[h.message]=!0;var y=p?p():"";e("Failed "+l+" type: "+h.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},pc=i,pc}var fc,Lf;function vS(){if(Lf)return fc;Lf=1;var e=Zl(),t=yS(),n=dc(),r=$f(),i=bS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return fc=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h($){var V=$&&(p&&$[p]||$[u]);if(typeof V=="function")return V}var x="<<anonymous>>",y={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:S,element:v(),elementType:C(),instanceOf:P,node:L(),objectOf:A,oneOf:O,oneOfType:k,shape:T,exact:N};function g($,V){return $===V?$!==0||1/$===1/V:$!==$&&V!==V}function f($,V){this.message=$,this.data=V&&typeof V=="object"?V:{},this.stack=""}f.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var V={},G=0;function K(Q,J,ae,se,le,q,ne){if(se=se||x,q=q||ae,ne!==n){if(d){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=se+":"+ae;!V[de]&&G<3&&(s("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[de]=!0,G++)}}return J[ae]==null?Q?J[ae]===null?new f("The "+le+" `"+q+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new f("The "+le+" `"+q+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:$(J,ae,se,le,q)}var Z=K.bind(null,!1);return Z.isRequired=K.bind(null,!0),Z}function b($){function V(G,K,Z,Q,J,ae){var se=G[K],le=_(se);if(le!==$){var q=j(se);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+q+"` supplied to `"+Z+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(V)}function w(){return m(a)}function S($){function V(G,K,Z,Q,J){if(typeof $!="function")return new f("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ae=G[K];if(!Array.isArray(ae)){var se=_(ae);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an array."))}for(var le=0;le<ae.length;le++){var q=$(ae,le,Z,Q,J+"["+le+"]",n);if(q instanceof Error)return q}return null}return m(V)}function v(){function $(V,G,K,Z,Q){var J=V[G];if(!l(J)){var ae=_(J);return new f("Invalid "+Z+" `"+Q+"` of type "+("`"+ae+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return m($)}function C(){function $(V,G,K,Z,Q){var J=V[G];if(!e.isValidElementType(J)){var ae=_(J);return new f("Invalid "+Z+" `"+Q+"` of type "+("`"+ae+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return m($)}function P($){function V(G,K,Z,Q,J){if(!(G[K]instanceof $)){var ae=$.name||x,se=B(G[K]);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected ")+("instance of `"+ae+"`."))}return null}return m(V)}function O($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function V(G,K,Z,Q,J){for(var ae=G[K],se=0;se<$.length;se++)if(g(ae,$[se]))return null;var le=JSON.stringify($,function(ne,U){var de=j(U);return de==="symbol"?String(U):U});return new f("Invalid "+Q+" `"+J+"` of value `"+String(ae)+"` "+("supplied to `"+Z+"`, expected one of "+le+"."))}return m(V)}function A($){function V(G,K,Z,Q,J){if(typeof $!="function")return new f("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ae=G[K],se=_(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an object."));for(var le in ae)if(r(ae,le)){var q=$(ae,le,Z,Q,J+"."+le,n);if(q instanceof Error)return q}return null}return m(V)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<$.length;V++){var G=$[V];if(typeof G!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(G)+" at index "+V+"."),a}function K(Z,Q,J,ae,se){for(var le=[],q=0;q<$.length;q++){var ne=$[q],U=ne(Z,Q,J,ae,se,n);if(U==null)return null;U.data&&r(U.data,"expectedType")&&le.push(U.data.expectedType)}var de=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new f("Invalid "+ae+" `"+se+"` supplied to "+("`"+J+"`"+de+"."))}return m(K)}function L(){function $(V,G,K,Z,Q){return F(V[G])?null:new f("Invalid "+Z+" `"+Q+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return m($)}function D($,V,G,K,Z){return new f(($||"React class")+": "+V+" type `"+G+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function T($){function V(G,K,Z,Q,J){var ae=G[K],se=_(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));for(var le in $){var q=$[le];if(typeof q!="function")return D(Z,Q,J,le,j(q));var ne=q(ae,le,Z,Q,J+"."+le,n);if(ne)return ne}return null}return m(V)}function N($){function V(G,K,Z,Q,J){var ae=G[K],se=_(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));var le=t({},G[K],$);for(var q in le){var ne=$[q];if(r($,q)&&typeof ne!="function")return D(Z,Q,J,q,j(ne));if(!ne)return new f("Invalid "+Q+" `"+J+"` key `"+q+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(G[K],null," ")+`
23
+ `):" "+Kp(a[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const Gp={getAdapter:Gx,adapters:Wl};function Rl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dr(null,e)}function Xp(e){return Rl(e),e.headers=It.from(e.headers),e.data=Bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gp.getAdapter(e.adapter||Do.adapter,e)(e).then(function(r){return Rl(e),r.data=Bl.call(e,e.transformResponse,r),r.headers=It.from(r.headers),r},function(r){return Dp(r)||(Rl(e),r&&r.response&&(r.response.data=Bl.call(e,e.transformResponse,r.response),r.response.headers=It.from(r.response.headers))),Promise.reject(r)})}const Jp="1.13.2",vs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qp={};vs.transitional=function(t,n,r){function i(s,a){return"[Axios v"+Jp+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Oe(i(a," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!Qp[a]&&(Qp[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},vs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Xx(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],a=t[s];if(a){const l=e[s],d=l===void 0||a(l,s,e);if(d!==!0)throw new Oe("option "+s+" must be "+d,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const xs={assertOptions:Xx,validators:vs},ln=xs.validators;let dr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ap,response:new Ap}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
24
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&xs.assertOptions(r,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),i!=null&&(H.isFunction(i)?n.paramsSerializer={serialize:i}:xs.assertOptions(i,{encode:ln.function,serialize:ln.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xs.assertOptions(n,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&H.merge(s.common,s[n.method]);s&&H.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=It.concat(a,s);const l=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,x;if(!d){const g=[Xp.bind(this),void 0];for(g.unshift(...l),g.push(...p),x=g.length,u=Promise.resolve(n);h<x;)u=u.then(g[h++],g[h++]);return u}x=l.length;let y=n;for(;h<x;){const g=l[h++],f=l[h++];try{y=g(y)}catch(m){f.call(this,m);break}}try{u=Xp.call(this,y)}catch(g){return Promise.reject(g)}for(h=0,x=p.length;h<x;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=cr(this.defaults,t);const n=jp(t.baseURL,t.url,t.allowAbsoluteUrls);return Ip(n,t.params,t.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(t){dr.prototype[t]=function(n,r){return this.request(cr(r||{},{method:t,url:n,data:(r||{}).data}))}}),H.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(cr(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}dr.prototype[t]=n(),dr.prototype[t+"Form"]=n(!0)});let Jx=class Zm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Dr(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zm(function(i){t=i}),cancel:t}}};function Qx(e){return function(n){return e.apply(null,n)}}function Zx(e){return H.isObject(e)&&e.isAxiosError===!0}const Vl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vl).forEach(([e,t])=>{Vl[t]=e});function Zp(e){const t=new dr(e),n=gp(dr.prototype.request,t);return H.extend(n,dr.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Zp(cr(e,i))},n}const tt=Zp(Do);tt.Axios=dr,tt.CanceledError=Dr,tt.CancelToken=Jx,tt.isCancel=Dp,tt.VERSION=Jp,tt.toFormData=gs,tt.AxiosError=Oe,tt.Cancel=tt.CanceledError,tt.all=function(t){return Promise.all(t)},tt.spread=Qx,tt.isAxiosError=Zx,tt.mergeConfig=cr,tt.AxiosHeaders=It,tt.formToJSON=e=>Fp(H.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=Gp.getAdapter,tt.HttpStatusCode=Vl,tt.default=tt;const{Axios:FA,AxiosError:_A,CanceledError:DA,isCancel:$A,CancelToken:zA,VERSION:LA,all:jA,Cancel:BA,isAxiosError:WA,spread:RA,toFormData:VA,AxiosHeaders:UA,HttpStatusCode:HA,formToJSON:qA,getAdapter:YA,mergeConfig:KA}=tt;function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var e1={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ul(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Ss({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var d in a)a[d]&&(l+="; "+d,a[d]!==!0&&(l+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var d=s[l].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(a[u]=e.read(p,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ss({},s,{expires:-1}))},withAttributes:function(i){return Ul(this.converter,Ss({},this.attributes,i))},withConverter:function(i){return Ul(Ss({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fn=Ul(e1,{path:"/"});const t1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let $r="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Xa&&Xa.tagName.toUpperCase()==="SCRIPT"&&Xa.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&t1?.VITE_API_URL)$r=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&($r=process.env.VITE_API_URL)}}catch{}const n1=e=>{$r=e,at.defaults.baseURL=$r},r1=e=>{e?Fn.set("token",e,{secure:!0,sameSite:"Strict"}):Fn.remove("token")},o1=()=>Fn.get("token")||null,at=tt.create({baseURL:$r,transformRequest:[function(e,t){const n=o1();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Hl=!1,ql=null;at.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=Fn.get("refreshToken");if(r)try{Hl||(Hl=!0,ql=tt.post(`${$r}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await ql,{token:s,refreshToken:a}=i.data;return Fn.set("token",s,{secure:!0,sameSite:"Strict"}),Fn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,at(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Fn.remove("token"),Fn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Hl=!1,ql=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Fn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const zo=ht("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),ws=ht("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),zr=ht("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const n=await at.get("/auth/verify");console.log("/auth/verify response:",n.data);const r=n.data?.data!=null?n.data.data:n.data,i=r?.companyId||n.data?.companyId;if(i){const s=r?.id!=null?r.id:n.data?.id!=null?n.data.id:null,a=(r?.firstName!=null?r.firstName:n.data?.firstName!=null?n.data.firstName:"").toString().trim(),l=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,l].filter(Boolean).join(" ")||(r?.name!=null?r.name:n.data?.name!=null?n.data.name:"");return{companyId:i,createdById:s??null,createdByName:d||""}}else throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),At=ht("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await at.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Lr=ht("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),ur=ht("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),_n=ht("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store-inventory",{params:e})).data||{}}catch(n){return console.log("Error fetching products:",n),t(n.response?.data||n.message)}}),Cs=ht("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,createdById:i,createdByName:s,products:a},{rejectWithValue:l})=>{try{return(await at.post("/catalogues",{name:e,slug:t,description:n,storeCode:Array.isArray(r)?r:[r],createdById:i,createdByName:s,products:Array.isArray(a)?a:[]})).data}catch(d){const p=d.response?.data?.message||d.message||"Failed to create catalog";return l(p)}}),Lo=ht("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,a={name:t,slug:n,status:r===!0||r==="Active"};return(await at.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),Es=ht("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await at.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),Ts=ht("dashboard/createOsaRequest",async({storeCodes:e,createdBy:t,createdByName:n,products:r},{rejectWithValue:i})=>{try{return(await at.post("/osa/request",{storeCodes:Array.isArray(e)?e:[e],createdBy:t??null,createdByName:n??"",products:Array.isArray(r)?r:[]})).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to create OSA request";return i(a)}}),ef=op({name:"dashboard",initialState:{loading:!1,companyId:"",createdById:null,createdByName:"",error:null,metrics:{},productDashboardMetrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],categoryList:[],categoryPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:"",lastSyncHoursAgo:null},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1},createCatalogLoading:!1,createCatalogError:null,updateCatalogLoading:!1,updateCatalogError:null,deleteCatalogLoading:!1,deleteCatalogError:null,createOsaRequestLoading:!1,createOsaRequestError:null},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},clearCreateCatalogError:e=>{e.createCatalogError=null},clearUpdateCatalogError:e=>{e.updateCatalogError=null},clearDeleteCatalogError:e=>{e.deleteCatalogError=null},clearCreateOsaRequestError:e=>{e.createOsaRequestError=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(zo.pending,t=>{t.loading=!0,t.error=null}).addCase(zo.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(zo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(ws.pending,t=>{t.loading=!0}).addCase(ws.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(ws.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(At.pending,t=>{t.loading=!0}).addCase(At.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(At.rejected,t=>{t.loading=!1}),e.addCase(zr.pending,t=>{t.loading=!0,t.error=null}),e.addCase(zr.fulfilled,(t,n)=>{t.loading=!1;const r=n.payload;r&&typeof r=="object"&&"companyId"in r?(t.companyId=r.companyId,t.createdById=r.createdById!=null?r.createdById:null,t.createdByName=r.createdByName!=null?r.createdByName:""):t.companyId=r,t.error=null}),e.addCase(zr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(ur.pending,t=>{t.loading=!0,t.error=null}).addCase(ur.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},i=Array.isArray(r.data)?r.data:[];t.categoryList=i;const s=r.pagination||{};t.categoryPagination={currentPage:typeof s.currentPage=="number"?s.currentPage:1,limit:typeof s.limit=="number"?s.limit:10,totalCount:typeof s.totalCount=="number"?s.totalCount:0,totalPages:typeof s.totalPages=="number"?s.totalPages:1,hasNextPage:typeof s.hasNextPage=="boolean"?s.hasNextPage:!1}}).addCase(ur.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(Lr.pending,t=>{t.loading=!0,t.error=null}).addCase(Lr.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},s=(Array.isArray(r.stores)?r.stores:Array.isArray(r.data)?r.data:Array.isArray(r)?r:[]).map(a=>{const l=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",p=a.storeCode??a.id??l;return{id:l,name:d,storeCode:p}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(Lr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(_n.pending,t=>{t.loading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(_n.fulfilled,(t,n)=>{t.loading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[];t.products=i;const s=(g,f=0)=>{if(g==null||g==="")return f;const m=Number(g);return Number.isFinite(m)?m:f},a={};i.forEach(g=>{if(!g)return;const f=g.categoryName||"Uncategorized";a[f]||(a[f]=[]),a[f].push({...g,stock:s(g.stock),inventory:s(g.inventory),inShelf:s(g.inShelf)})});const l=Object.values(a).flat(),d=Object.keys(a).length,p=l.length;let u="",h=null;if(l.length>0){const g=l.reduce((f,m)=>f?m?new Date(f.updated)>new Date(m.updated)?f:m:f:m);if(u=g?.updated?new Date(g.updated).toLocaleString():"",g?.updated){const f=Date.now()-new Date(g.updated).getTime();h=Math.max(0,Math.floor(f/(1e3*60*60)))}}t.homePageCardSummary={totalCategories:d,totalProducts:p,lastSync:u,lastSyncHoursAgo:h},t.productsByCategory=a;const x=r.pagination||{},y=typeof x.totalCount=="number"?x.totalCount:Object.values(a).reduce((g,f)=>g+f.length,0);t.pagination={currentPage:typeof x.currentPage=="number"?x.currentPage:1,limit:typeof x.limit=="number"?x.limit:20,totalCount:y,totalPages:typeof x.totalPages=="number"?x.totalPages:1,hasNextPage:typeof x.hasNextPage=="boolean"?x.hasNextPage:!1}}).addCase(_n.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}),e.addCase(Cs.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Cs.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Cs.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(Lo.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(Lo.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(Lo.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(Es.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(Es.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(Es.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(Ts.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(Ts.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(Ts.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{clearMetrics:XA,clearError:JA,updateMetric:QA,clearCreateCatalogError:i1,clearUpdateCatalogError:ZA,clearDeleteCatalogError:e5,clearCreateOsaRequestError:s1}=ef.actions,a1=ef.reducer,jo=ht("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const a=r||i;if(!a)throw new Error("Company ID is required");const l=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!l)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,p,u,h]=l;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const x={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""},y=await at.post("/ftp/sync/test-connection",x);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",y.data),console.log("existing_mapping:",y.data?.existing_mapping),console.log("================================================"),y.data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),Bo=ht("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(n,null,2)),(await at.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),jr=ht("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API..."),console.log("[FTP SYNC] API payload (mapped):",JSON.stringify(n,null,2));try{const r=await at.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return console.log("[FTP SYNC] API call successful:",r.data),r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),Wo=ht("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await at.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),Ro=ht("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await at.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),Vo=ht("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");console.log(`[Integration] Calling PATCH /integrations/${e} API...`),console.log("[Integration] PATCH payload:",JSON.stringify(t,null,2));const r=`/integrations/${e}`,i=await at.patch(r,t);if(i.status>=200&&i.status<300)return console.log(`[Integration] PATCH API call successful for channelId ${e}:`,i.data),i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),tn=ht("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await at.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),Yl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null,lastStableActiveCatalogsCount:null},tf=op({name:"productSettings",initialState:Yl,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null,e.lastStableActiveCatalogsCount=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=Yl.syncData}},extraReducers:e=>{e.addCase(jo.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(jo.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(jo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Ro.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Ro.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Ro.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(tn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(tn.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;if(r&&typeof r=="object"&&Array.isArray(r.data)){t.sharedCatalogues=r.data;const i=typeof r.total=="number"?r.total:0;t.sharedCataloguesTotal=i,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10,i>0&&r.data.length>=i&&(t.lastStableActiveCatalogsCount=r.data.filter(s=>s.status===!0).length)}else t.sharedCatalogues=[];t.sharedCataloguesError=null}).addCase(tn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(Bo.pending,t=>{t.loading=!0,t.error=null}).addCase(Bo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=Yl.syncData}).addCase(Bo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(jr.pending,t=>{t.loading=!0,t.error=null}).addCase(jr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(jr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(Wo.pending,t=>{t.loading=!0,t.error=null}).addCase(Wo.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(Wo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(Vo.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(Vo.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(Vo.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:t5,clearTestConnectionResult:n5,clearSaveResult:l1,clearAll:r5,clearTestConnectionData:o5,clearUpdateDetailsResult:i5,clearSyncNowResult:s5,setFtpSyncData:Ps,clearFtpSyncData:a5,clearMappingColumnsError:l5,clearMappingColumns:c5,clearSharedCataloguesError:d5,clearSharedCatalogues:u5,clearUpdateIntegrationByChannelIdResult:p5}=tf.actions,c1=tf.reducer;var Os={},ks={},nf;function d1(){if(nf)return ks;nf=1,ks.__esModule=!0,ks.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(l){return typeof l}:e=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],l="redux-persist ".concat(s," test");a.setItem(l,"test"),a.getItem(l),a.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return ks}var rf;function u1(){if(rf)return Os;rf=1,Os.__esModule=!0,Os.default=n;var e=t(d1());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(a){return new Promise(function(l,d){l(i.getItem(a))})},setItem:function(a,l){return new Promise(function(d,p){d(i.setItem(a,l))})},removeItem:function(a){return new Promise(function(l,d){l(i.removeItem(a))})}}}return Os}var p1=u1();const f1={key:"auth",storage:typeof window<"u"?pu(p1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},h1=wu({dashboard:a1,productSettings:c1}),g1=Ev(f1,h1),of=U0({reducer:g1,middleware:e=>e({serializableCheck:!1})}),m1=Iv(of),y1=z.createContext(null),b1=({children:e,apiUrl:t,authToken:n})=>(z.useEffect(()=>{t&&n1(t)},[t]),z.useEffect(()=>{r1(n||null)},[n]),c.jsx(y1.Provider,{value:{apiUrl:t},children:e})),Uo={black:"#000",white:"#fff"},Br={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Wr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Vr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ur={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ho={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},v1={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"};function cn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qo="$$material";function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ns.apply(null,arguments)}function x1(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 S1(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 w1=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.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(S1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=x1(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),xt="-ms-",Is="-moz-",$e="-webkit-",sf="comm",Kl="rule",Gl="decl",C1="@import",af="@keyframes",E1="@layer",T1=Math.abs,As=String.fromCharCode,P1=Object.assign;function O1(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function lf(e){return e.trim()}function k1(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,n){return e.replace(t,n)}function Xl(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Yo(e,t,n){return e.slice(t,n)}function dn(e){return e.length}function Jl(e){return e.length}function Ms(e,t){return t.push(e),e}function N1(e,t){return e.map(t).join("")}var Fs=1,Hr=1,cf=0,Mt=0,dt=0,qr="";function _s(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Fs,column:Hr,length:a,return:""}}function Ko(e,t){return P1(_s("",null,null,"",null,null,0),e,{length:-e.length},t)}function I1(){return dt}function A1(){return dt=Mt>0?mt(qr,--Mt):0,Hr--,dt===10&&(Hr=1,Fs--),dt}function jt(){return dt=Mt<cf?mt(qr,Mt++):0,Hr++,dt===10&&(Hr=1,Fs++),dt}function un(){return mt(qr,Mt)}function Ds(){return Mt}function Go(e,t){return Yo(qr,e,t)}function Xo(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 df(e){return Fs=Hr=1,cf=dn(qr=e),Mt=0,[]}function uf(e){return qr="",e}function $s(e){return lf(Go(Mt-1,Ql(e===91?e+2:e===40?e+1:e)))}function M1(e){for(;(dt=un())&&dt<33;)jt();return Xo(e)>2||Xo(dt)>3?"":" "}function F1(e,t){for(;--t&&jt()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return Go(e,Ds()+(t<6&&un()==32&&jt()==32))}function Ql(e){for(;jt();)switch(dt){case e:return Mt;case 34:case 39:e!==34&&e!==39&&Ql(dt);break;case 40:e===41&&Ql(e);break;case 92:jt();break}return Mt}function _1(e,t){for(;jt()&&e+dt!==57;)if(e+dt===84&&un()===47)break;return"/*"+Go(t,Mt-1)+"*"+As(e===47?e:jt())}function D1(e){for(;!Xo(un());)jt();return Go(e,Mt)}function $1(e){return uf(zs("",null,null,null,[""],e=df(e),0,[0],e))}function zs(e,t,n,r,i,s,a,l,d){for(var p=0,u=0,h=a,x=0,y=0,g=0,f=1,m=1,b=1,w=0,S="",v=i,C=s,P=r,O=S;m;)switch(g=w,w=jt()){case 40:if(g!=108&&mt(O,h-1)==58){Xl(O+=ze($s(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=$s(w);break;case 9:case 10:case 13:case 32:O+=M1(g);break;case 92:O+=F1(Ds()-1,7);continue;case 47:switch(un()){case 42:case 47:Ms(z1(_1(jt(),Ds()),t,n),d);break;default:O+="/"}break;case 123*f:l[p++]=dn(O)*b;case 125*f:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+u:b==-1&&(O=ze(O,/\f/g,"")),y>0&&dn(O)-h&&Ms(y>32?ff(O+";",r,n,h-1):ff(ze(O," ","")+";",r,n,h-2),d);break;case 59:O+=";";default:if(Ms(P=pf(O,t,n,p,u,i,l,S,v=[],C=[],h),s),w===123)if(u===0)zs(O,t,P,P,v,s,h,l,C);else switch(x===99&&mt(O,3)===110?100:x){case 100:case 108:case 109:case 115:zs(e,P,P,r&&Ms(pf(e,P,P,0,0,i,l,S,i,v=[],h),C),i,C,h,l,r?v:C);break;default:zs(O,P,P,P,[""],C,0,l,C)}}p=u=y=0,f=b=1,S=O="",h=a;break;case 58:h=1+dn(O),y=g;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&A1()==125)continue}switch(O+=As(w),w*f){case 38:b=u>0?1:(O+="\f",-1);break;case 44:l[p++]=(dn(O)-1)*b,b=1;break;case 64:un()===45&&(O+=$s(jt())),x=un(),u=h=dn(S=O+=D1(Ds())),w++;break;case 45:g===45&&dn(O)==2&&(f=0)}}return s}function pf(e,t,n,r,i,s,a,l,d,p,u){for(var h=i-1,x=i===0?s:[""],y=Jl(x),g=0,f=0,m=0;g<r;++g)for(var b=0,w=Yo(e,h+1,h=T1(f=a[g])),S=e;b<y;++b)(S=lf(f>0?x[b]+" "+w:ze(w,/&\f/g,x[b])))&&(d[m++]=S);return _s(e,t,n,i===0?Kl:l,d,p,u)}function z1(e,t,n){return _s(e,t,n,sf,As(I1()),Yo(e,2,-2),0)}function ff(e,t,n,r){return _s(e,t,n,Gl,Yo(e,0,r),Yo(e,r+1,-1),r)}function Yr(e,t){for(var n="",r=Jl(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function L1(e,t,n,r){switch(e.type){case E1:if(e.children.length)break;case C1:case Gl:return e.return=e.return||e.value;case sf:return"";case af:return e.return=e.value+"{"+Yr(e.children,r)+"}";case Kl:e.value=e.props.join(",")}return dn(n=Yr(e.children,r))?e.return=e.value+"{"+n+"}":""}function j1(e){var t=Jl(e);return function(n,r,i,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,s)||"";return a}}function B1(e){return function(t){t.root||(t=t.return)&&e(t)}}function hf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var W1=function(t,n,r){for(var i=0,s=0;i=s,s=un(),i===38&&s===12&&(n[r]=1),!Xo(s);)jt();return Go(t,Mt)},R1=function(t,n){var r=-1,i=44;do switch(Xo(i)){case 0:i===38&&un()===12&&(n[r]=1),t[r]+=W1(Mt-1,n,r);break;case 2:t[r]+=$s(i);break;case 4:if(i===44){t[++r]=un()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=As(i)}while(i=jt());return t},V1=function(t,n){return uf(R1(df(t),n))},gf=new WeakMap,U1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!gf.get(r))&&!i){gf.set(t,!0);for(var s=[],a=V1(n,s),l=r.props,d=0,p=0;d<a.length;d++)for(var u=0;u<l.length;u++,p++)t.props[p]=s[d]?a[d].replace(/&\f/g,l[u]):l[u]+" "+a[d]}}},H1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function mf(e,t){switch(O1(e,t)){case 5103:return $e+"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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Is+e+xt+e+e;case 6828:case 4268:return $e+e+xt+e+e;case 6165:return $e+e+xt+"flex-"+e+e;case 5187:return $e+e+ze(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+xt+"flex-$1$2")+e;case 5443:return $e+e+xt+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return $e+e+xt+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+xt+ze(e,"shrink","negative")+e;case 5292:return $e+e+xt+ze(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+ze(e,"-grow","")+$e+e+xt+ze(e,"grow","positive")+e;case 4554:return $e+ze(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,$e+"$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(dn(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+Is+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xl(e,"stretch")?mf(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,dn(e)-3-(~Xl(e,"!important")&&10))){case 107:return ze(e,":",":"+$e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(mt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+xt+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return $e+e+xt+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+xt+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+xt+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+xt+e+e}return e}var q1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Gl:t.return=mf(t.value,t.length);break;case af:return Yr([Ko(t,{value:ze(t.value,"@","@"+$e)})],i);case Kl:if(t.length)return N1(t.props,function(s){switch(k1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yr([Ko(t,{props:[ze(s,/:(read-\w+)/,":"+Is+"$1")]})],i);case"::placeholder":return Yr([Ko(t,{props:[ze(s,/:(plac\w+)/,":"+$e+"input-$1")]}),Ko(t,{props:[ze(s,/:(plac\w+)/,":"+Is+"$1")]}),Ko(t,{props:[ze(s,/:(plac\w+)/,xt+"input-$1")]})],i)}return""})}},Y1=[q1],K1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Y1,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),b=1;b<m.length;b++)s[m[b]]=!0;l.push(f)});var d,p=[U1,H1];{var u,h=[L1,B1(function(f){u.insert(f)})],x=j1(p.concat(i,h)),y=function(m){return Yr($1(m),x)};d=function(m,b,w,S){u=w,y(m?m+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new w1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return g.sheet.hydrate(l),g},Ls={exports:{}},je={};var yf;function G1(){if(yf)return je;yf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var P=C.$$typeof;switch(P){case t:switch(C=C.type,C){case d:case p:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case g:case y:case a:return C;default:return P}}case n:return P}}}function v(C){return S(C)===p}return je.AsyncMode=d,je.ConcurrentMode=p,je.ContextConsumer=l,je.ContextProvider=a,je.Element=t,je.ForwardRef=u,je.Fragment=r,je.Lazy=g,je.Memo=y,je.Portal=n,je.Profiler=s,je.StrictMode=i,je.Suspense=h,je.isAsyncMode=function(C){return v(C)||S(C)===d},je.isConcurrentMode=v,je.isContextConsumer=function(C){return S(C)===l},je.isContextProvider=function(C){return S(C)===a},je.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},je.isForwardRef=function(C){return S(C)===u},je.isFragment=function(C){return S(C)===r},je.isLazy=function(C){return S(C)===g},je.isMemo=function(C){return S(C)===y},je.isPortal=function(C){return S(C)===n},je.isProfiler=function(C){return S(C)===s},je.isStrictMode=function(C){return S(C)===i},je.isSuspense=function(C){return S(C)===h},je.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===p||C===s||C===i||C===h||C===x||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===y||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===m||C.$$typeof===b||C.$$typeof===w||C.$$typeof===f)},je.typeOf=S,je}var Be={};var bf;function X1(){return bf||(bf=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(U){return typeof U=="string"||typeof U=="function"||U===r||U===p||U===s||U===i||U===h||U===x||typeof U=="object"&&U!==null&&(U.$$typeof===g||U.$$typeof===y||U.$$typeof===a||U.$$typeof===l||U.$$typeof===u||U.$$typeof===m||U.$$typeof===b||U.$$typeof===w||U.$$typeof===f)}function v(U){if(typeof U=="object"&&U!==null){var de=U.$$typeof;switch(de){case t:var re=U.type;switch(re){case d:case p:case r:case s:case i:case h:return re;default:var oe=re&&re.$$typeof;switch(oe){case l:case u:case g:case y:case a:return oe;default:return de}}case n:return de}}}var C=d,P=p,O=l,A=a,k=t,L=u,D=r,T=g,I=y,F=n,W=s,_=i,j=h,M=!1;function B(U){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(U)||v(U)===d}function $(U){return v(U)===p}function V(U){return v(U)===l}function G(U){return v(U)===a}function K(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function Z(U){return v(U)===u}function Q(U){return v(U)===r}function J(U){return v(U)===g}function ae(U){return v(U)===y}function se(U){return v(U)===n}function le(U){return v(U)===s}function q(U){return v(U)===i}function ne(U){return v(U)===h}Be.AsyncMode=C,Be.ConcurrentMode=P,Be.ContextConsumer=O,Be.ContextProvider=A,Be.Element=k,Be.ForwardRef=L,Be.Fragment=D,Be.Lazy=T,Be.Memo=I,Be.Portal=F,Be.Profiler=W,Be.StrictMode=_,Be.Suspense=j,Be.isAsyncMode=B,Be.isConcurrentMode=$,Be.isContextConsumer=V,Be.isContextProvider=G,Be.isElement=K,Be.isForwardRef=Z,Be.isFragment=Q,Be.isLazy=J,Be.isMemo=ae,Be.isPortal=se,Be.isProfiler=le,Be.isStrictMode=q,Be.isSuspense=ne,Be.isValidElementType=S,Be.typeOf=v})()),Be}var vf;function Zl(){return vf||(vf=1,process.env.NODE_ENV==="production"?Ls.exports=G1():Ls.exports=X1()),Ls.exports}var ec,xf;function J1(){if(xf)return ec;xf=1;var e=Zl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,x=Object.prototype;function y(g,f,m){if(typeof f!="string"){if(x){var b=h(f);b&&b!==x&&y(g,b,m)}var w=d(f);p&&(w=w.concat(p(f)));for(var S=a(g),v=a(f),C=0;C<w.length;++C){var P=w[C];if(!n[P]&&!(m&&m[P])&&!(v&&v[P])&&!(S&&S[P])){var O=u(f,P);try{l(g,P,O)}catch{}}}}return g}return ec=y,ec}J1();var Q1=!0;function Sf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var tc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Q1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},nc=function(t,n,r){tc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Z1(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tS=/[A-Z]|^ms/g,nS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wf=function(t){return t.charCodeAt(1)===45},Cf=function(t){return t!=null&&typeof t!="boolean"},rc=hf(function(e){return wf(e)?e:e.replace(tS,"-$&").toLowerCase()}),Ef=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nS,function(r,i,s){return pn={name:i,styles:s,next:pn},i})}return eS[t]!==1&&!wf(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pn={name:i.name,styles:i.styles,next:pn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)pn={name:a.name,styles:a.styles,next:pn},a=a.next;var l=s.styles+";";return l}return rS(e,t,n)}case"function":{if(e!==void 0){var d=pn,p=n(e);return pn=d,Jo(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function rS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jo(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Cf(l)&&(r+=rc(s)+":"+Ef(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Cf(a[d])&&(r+=rc(s)+":"+Ef(s,a[d])+";");else{var p=Jo(e,t,a);switch(s){case"animation":case"animationName":{r+=rc(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var Tf=/label:\s*([^\s;{]+)\s*(;|$)/g,pn;function Qo(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";pn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Jo(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Jo(n,t,e[l]),r){var d=s;i+=d[l]}Tf.lastIndex=0;for(var p="",u;(u=Tf.exec(i))!==null;)p+="-"+u[1];var h=Z1(i)+p;return{name:h,styles:i,next:pn}}var oS=function(t){return t()},Pf=E.useInsertionEffect?E.useInsertionEffect:!1,Of=Pf||oS,kf=Pf||E.useLayoutEffect,Nf=E.createContext(typeof HTMLElement<"u"?K1({key:"css"}):null);Nf.Provider;var oc=function(t){return z.forwardRef(function(n,r){var i=z.useContext(Nf);return t(n,i,r)})},js=E.createContext({}),ic={}.hasOwnProperty,sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iS=function(t,n){var r={};for(var i in n)ic.call(n,i)&&(r[i]=n[i]);return r[sc]=t,r},sS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tc(n,r,i),Of(function(){return nc(n,r,i)}),null},aS=oc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[sc],s=[r],a="";typeof e.className=="string"?a=Sf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Qo(s,void 0,E.useContext(js));a+=t.key+"-"+l.name;var d={};for(var p in e)ic.call(e,p)&&p!=="css"&&p!==sc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),E.createElement(E.Fragment,null,E.createElement(sS,{cache:t,serialized:l,isStringTag:typeof i=="string"}),E.createElement(i,d))}),lS=aS,If=function(t,n){var r=arguments;if(n==null||!ic.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=lS,s[1]=iS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(If||(If={}));var cS=oc(function(e,t){var n=e.styles,r=Qo([n],void 0,E.useContext(js)),i=E.useRef();return kf(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,l],function(){a.flush()}},[t]),kf(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&nc(t,r.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Kr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qo(t)}function Gn(){var e=Kr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var dS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uS=hf(function(e){return dS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pS=uS,fS=function(t){return t!=="theme"},Af=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pS:fS},Mf=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},hS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return tc(n,r,i),Of(function(){return nc(n,r,i)}),null},gS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=Mf(t,n,r),d=l||Af(i),p=!d("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var x=u[0];h.push(x[0]);for(var y=u.length,g=1;g<y;g++)h.push(u[g],x[g])}var f=oc(function(m,b,w){var S=p&&m.as||i,v="",C=[],P=m;if(m.theme==null){P={};for(var O in m)P[O]=m[O];P.theme=E.useContext(js)}typeof m.className=="string"?v=Sf(b.registered,C,m.className):m.className!=null&&(v=m.className+" ");var A=Qo(h.concat(C),b.registered,P);v+=b.key+"-"+A.name,a!==void 0&&(v+=" "+a);var k=p&&l===void 0?Af(S):d,L={};for(var D in m)p&&D==="as"||k(D)&&(L[D]=m[D]);return L.className=v,w&&(L.ref=w),E.createElement(E.Fragment,null,E.createElement(hS,{cache:b,serialized:A,isStringTag:typeof S=="string"}),E.createElement(S,L))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,b){var w=e(m,Ns({},n,b,{shouldForwardProp:Mf(f,b,!0)}));return w.apply(void 0,h)},f}},mS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ac=gS.bind(null);mS.forEach(function(e){ac[e]=ac(e)});var Bs={exports:{}};var lc,Ff;function yS(){if(Ff)return lc;Ff=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lc=i()?Object.assign:function(s,a){for(var l,d=r(s),p,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(d[h]=l[h]);if(e){p=e(l);for(var x=0;x<p.length;x++)n.call(l,p[x])&&(d[p[x]]=l[p[x]])}}return d},lc}var cc,_f;function dc(){if(_f)return cc;_f=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cc=e,cc}var uc,Df;function $f(){return Df||(Df=1,uc=Function.call.bind(Object.prototype.hasOwnProperty)),uc}var pc,zf;function bS(){if(zf)return pc;zf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=dc(),n={},r=$f();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var x=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}h=s[u](a,u,d,l,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+u+"` 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 n)){n[h.message]=!0;var y=p?p():"";e("Failed "+l+" type: "+h.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},pc=i,pc}var fc,Lf;function vS(){if(Lf)return fc;Lf=1;var e=Zl(),t=yS(),n=dc(),r=$f(),i=bS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return fc=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h($){var V=$&&(p&&$[p]||$[u]);if(typeof V=="function")return V}var x="<<anonymous>>",y={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:w(),arrayOf:S,element:v(),elementType:C(),instanceOf:P,node:L(),objectOf:A,oneOf:O,oneOfType:k,shape:T,exact:I};function g($,V){return $===V?$!==0||1/$===1/V:$!==$&&V!==V}function f($,V){this.message=$,this.data=V&&typeof V=="object"?V:{},this.stack=""}f.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var V={},G=0;function K(Q,J,ae,se,le,q,ne){if(se=se||x,q=q||ae,ne!==n){if(d){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=se+":"+ae;!V[de]&&G<3&&(s("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[de]=!0,G++)}}return J[ae]==null?Q?J[ae]===null?new f("The "+le+" `"+q+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new f("The "+le+" `"+q+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:$(J,ae,se,le,q)}var Z=K.bind(null,!1);return Z.isRequired=K.bind(null,!0),Z}function b($){function V(G,K,Z,Q,J,ae){var se=G[K],le=_(se);if(le!==$){var q=j(se);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+q+"` supplied to `"+Z+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(V)}function w(){return m(a)}function S($){function V(G,K,Z,Q,J){if(typeof $!="function")return new f("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ae=G[K];if(!Array.isArray(ae)){var se=_(ae);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an array."))}for(var le=0;le<ae.length;le++){var q=$(ae,le,Z,Q,J+"["+le+"]",n);if(q instanceof Error)return q}return null}return m(V)}function v(){function $(V,G,K,Z,Q){var J=V[G];if(!l(J)){var ae=_(J);return new f("Invalid "+Z+" `"+Q+"` of type "+("`"+ae+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return m($)}function C(){function $(V,G,K,Z,Q){var J=V[G];if(!e.isValidElementType(J)){var ae=_(J);return new f("Invalid "+Z+" `"+Q+"` of type "+("`"+ae+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return m($)}function P($){function V(G,K,Z,Q,J){if(!(G[K]instanceof $)){var ae=$.name||x,se=B(G[K]);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected ")+("instance of `"+ae+"`."))}return null}return m(V)}function O($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function V(G,K,Z,Q,J){for(var ae=G[K],se=0;se<$.length;se++)if(g(ae,$[se]))return null;var le=JSON.stringify($,function(ne,U){var de=j(U);return de==="symbol"?String(U):U});return new f("Invalid "+Q+" `"+J+"` of value `"+String(ae)+"` "+("supplied to `"+Z+"`, expected one of "+le+"."))}return m(V)}function A($){function V(G,K,Z,Q,J){if(typeof $!="function")return new f("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ae=G[K],se=_(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an object."));for(var le in ae)if(r(ae,le)){var q=$(ae,le,Z,Q,J+"."+le,n);if(q instanceof Error)return q}return null}return m(V)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<$.length;V++){var G=$[V];if(typeof G!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(G)+" at index "+V+"."),a}function K(Z,Q,J,ae,se){for(var le=[],q=0;q<$.length;q++){var ne=$[q],U=ne(Z,Q,J,ae,se,n);if(U==null)return null;U.data&&r(U.data,"expectedType")&&le.push(U.data.expectedType)}var de=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new f("Invalid "+ae+" `"+se+"` supplied to "+("`"+J+"`"+de+"."))}return m(K)}function L(){function $(V,G,K,Z,Q){return F(V[G])?null:new f("Invalid "+Z+" `"+Q+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return m($)}function D($,V,G,K,Z){return new f(($||"React class")+": "+V+" type `"+G+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function T($){function V(G,K,Z,Q,J){var ae=G[K],se=_(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));for(var le in $){var q=$[le];if(typeof q!="function")return D(Z,Q,J,le,j(q));var ne=q(ae,le,Z,Q,J+"."+le,n);if(ne)return ne}return null}return m(V)}function I($){function V(G,K,Z,Q,J){var ae=G[K],se=_(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));var le=t({},G[K],$);for(var q in le){var ne=$[q];if(r($,q)&&typeof ne!="function")return D(Z,Q,J,q,j(ne));if(!ne)return new f("Invalid "+Q+" `"+J+"` key `"+q+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(G[K],null," ")+`
25
25
  Valid keys: `+JSON.stringify(Object.keys($),null," "));var U=ne(ae,q,Z,Q,J+"."+q,n);if(U)return U}return null}return m(V)}function F($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(F);if($===null||l($))return!0;var V=h($);if(V){var G=V.call($),K;if(V!==$.entries){for(;!(K=G.next()).done;)if(!F(K.value))return!1}else for(;!(K=G.next()).done;){var Z=K.value;if(Z&&!F(Z[1]))return!1}}else return!1;return!0;default:return!1}}function W($,V){return $==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function _($){var V=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":W(V,$)?"symbol":V}function j($){if(typeof $>"u"||$===null)return""+$;var V=_($);if(V==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return V}function M($){var V=j($);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function B($){return!$.constructor||!$.constructor.name?x:$.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},fc}var hc,jf;function xS(){if(jf)return hc;jf=1;var e=dc();function t(){}function n(){}return n.resetWarningCache=t,hc=function(){function r(a,l,d,p,u,h){if(h!==e){var x=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 x.name="Invariant Violation",x}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},hc}var Bf;function SS(){if(Bf)return Bs.exports;if(Bf=1,process.env.NODE_ENV!=="production"){var e=Zl(),t=!0;Bs.exports=vS()(e.isElement,t)}else Bs.exports=xS()();return Bs.exports}var wS=SS();const o=pu(wS);function CS(e){return e==null||Object.keys(e).length===0}function Wf(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(CS(i)?n:i):t;return c.jsx(cS,{styles:r})}process.env.NODE_ENV!=="production"&&(Wf.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function Rf(e,t){const n=ac(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
26
- `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function ES(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Vf=[];function Xn(e){return Vf[0]=e,Qo(Vf)}var Ws={exports:{}},Ue={};var Uf;function TS(){if(Uf)return Ue;Uf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return Ue.ContextConsumer=s,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=l,Ue.Fragment=n,Ue.Lazy=h,Ue.Memo=u,Ue.Portal=t,Ue.Profiler=i,Ue.StrictMode=r,Ue.Suspense=d,Ue.SuspenseList=p,Ue.isContextConsumer=function(f){return g(f)===s},Ue.isContextProvider=function(f){return g(f)===a},Ue.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ue.isForwardRef=function(f){return g(f)===l},Ue.isFragment=function(f){return g(f)===n},Ue.isLazy=function(f){return g(f)===h},Ue.isMemo=function(f){return g(f)===u},Ue.isPortal=function(f){return g(f)===t},Ue.isProfiler=function(f){return g(f)===i},Ue.isStrictMode=function(f){return g(f)===r},Ue.isSuspense=function(f){return g(f)===d},Ue.isSuspenseList=function(f){return g(f)===p},Ue.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},Ue.typeOf=g,Ue}var He={};var Hf;function PS(){return Hf||(Hf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case d:case x:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");He.ContextConsumer=a,He.ContextProvider=l,He.Element=t,He.ForwardRef=d,He.Fragment=r,He.Lazy=x,He.Memo=h,He.Portal=n,He.Profiler=s,He.StrictMode=i,He.Suspense=p,He.SuspenseList=u,He.isContextConsumer=function(f){return e(f)===a},He.isContextProvider=function(f){return e(f)===l},He.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},He.isForwardRef=function(f){return e(f)===d},He.isFragment=function(f){return e(f)===r},He.isLazy=function(f){return e(f)===x},He.isMemo=function(f){return e(f)===h},He.isPortal=function(f){return e(f)===n},He.isProfiler=function(f){return e(f)===s},He.isStrictMode=function(f){return e(f)===i},He.isSuspense=function(f){return e(f)===p},He.isSuspenseList=function(f){return e(f)===u},He.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===x||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},He.typeOf=e})()),He}var qf;function OS(){return qf||(qf=1,process.env.NODE_ENV==="production"?Ws.exports=TS():Ws.exports=PS()),Ws.exports}var Rs=OS();function fn(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 Yf(e){if(E.isValidElement(e)||Rs.isValidElementType(e)||!fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Yf(e[n])}),t}function St(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return fn(e)&&fn(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])||Rs.isValidElementType(t[i])?r[i]=t[i]:fn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fn(e[i])?r[i]=St(e[i],t[i],n):n.clone?r[i]=fn(t[i])?Yf(t[i]):t[i]:r[i]=t[i]}),r}const kS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function IS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=kS(t),a=Object.keys(s);function l(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n})`}function d(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-r/100}${n})`}function p(x,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(x){return a.indexOf(x)+1<a.length?p(x,a[a.indexOf(x)+1]):l(x)}function h(x){const y=a.indexOf(x);return y===0?l(a[1]):y===a.length-1?d(a[y]):p(x,a[a.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:d,between:p,only:u,not:h,unit:n,...i}}function Kf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function NS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function AS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
27
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:cn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function MS(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const FS={borderRadius:4},Jn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Zo(e,t){return t?St(e,t,{clone:!1}):e}const Vs={xs:0,sm:600,md:900,lg:1200,xl:1536},Gf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vs[e]}px)`},_S={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function _n(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Gf;return t.reduce((a,l,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||Gf;return Object.keys(t).reduce((a,l)=>{if(NS(s.keys,l)){const d=AS(r.containerQueries?r:_S,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(s.values||Vs).includes(l)){const d=s.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function DS(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Xf(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ee(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Us(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Hs(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Us(e,n)||r,t&&(i=t(i,r,e)),i}function lt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,p=Us(d,r)||{};return _n(a,l,h=>{let x=Hs(p,i,h);return h===x&&typeof h=="string"&&(x=Hs(p,i,`${t}${h==="default"?"":ee(h)}`,h)),n===!1?x:{[n]:x}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Jn}:{},s.filterProps=[t],s}function $S(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zS={m:"margin",p:"padding"},LS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jS=$S(e=>{if(e.length>2)if(Jf[e])e=Jf[e];else return[e];const[t,n]=e.split(""),r=zS[t],i=LS[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),qs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],BS=[...qs,...Ys];function ei(e,t,n,r){const i=Us(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
26
+ `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function ES(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Vf=[];function Xn(e){return Vf[0]=e,Qo(Vf)}var Ws={exports:{}},Ue={};var Uf;function TS(){if(Uf)return Ue;Uf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return Ue.ContextConsumer=s,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=l,Ue.Fragment=n,Ue.Lazy=h,Ue.Memo=u,Ue.Portal=t,Ue.Profiler=i,Ue.StrictMode=r,Ue.Suspense=d,Ue.SuspenseList=p,Ue.isContextConsumer=function(f){return g(f)===s},Ue.isContextProvider=function(f){return g(f)===a},Ue.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ue.isForwardRef=function(f){return g(f)===l},Ue.isFragment=function(f){return g(f)===n},Ue.isLazy=function(f){return g(f)===h},Ue.isMemo=function(f){return g(f)===u},Ue.isPortal=function(f){return g(f)===t},Ue.isProfiler=function(f){return g(f)===i},Ue.isStrictMode=function(f){return g(f)===r},Ue.isSuspense=function(f){return g(f)===d},Ue.isSuspenseList=function(f){return g(f)===p},Ue.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},Ue.typeOf=g,Ue}var He={};var Hf;function PS(){return Hf||(Hf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case d:case x:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");He.ContextConsumer=a,He.ContextProvider=l,He.Element=t,He.ForwardRef=d,He.Fragment=r,He.Lazy=x,He.Memo=h,He.Portal=n,He.Profiler=s,He.StrictMode=i,He.Suspense=p,He.SuspenseList=u,He.isContextConsumer=function(f){return e(f)===a},He.isContextProvider=function(f){return e(f)===l},He.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},He.isForwardRef=function(f){return e(f)===d},He.isFragment=function(f){return e(f)===r},He.isLazy=function(f){return e(f)===x},He.isMemo=function(f){return e(f)===h},He.isPortal=function(f){return e(f)===n},He.isProfiler=function(f){return e(f)===s},He.isStrictMode=function(f){return e(f)===i},He.isSuspense=function(f){return e(f)===p},He.isSuspenseList=function(f){return e(f)===u},He.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===x||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},He.typeOf=e})()),He}var qf;function OS(){return qf||(qf=1,process.env.NODE_ENV==="production"?Ws.exports=TS():Ws.exports=PS()),Ws.exports}var Rs=OS();function fn(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 Yf(e){if(E.isValidElement(e)||Rs.isValidElementType(e)||!fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Yf(e[n])}),t}function St(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return fn(e)&&fn(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])||Rs.isValidElementType(t[i])?r[i]=t[i]:fn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fn(e[i])?r[i]=St(e[i],t[i],n):n.clone?r[i]=fn(t[i])?Yf(t[i]):t[i]:r[i]=t[i]}),r}const kS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function NS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=kS(t),a=Object.keys(s);function l(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n})`}function d(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-r/100}${n})`}function p(x,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(x){return a.indexOf(x)+1<a.length?p(x,a[a.indexOf(x)+1]):l(x)}function h(x){const y=a.indexOf(x);return y===0?l(a[1]):y===a.length-1?d(a[y]):p(x,a[a.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:d,between:p,only:u,not:h,unit:n,...i}}function Kf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function IS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function AS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
27
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:cn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function MS(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const FS={borderRadius:4},Jn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Zo(e,t){return t?St(e,t,{clone:!1}):e}const Vs={xs:0,sm:600,md:900,lg:1200,xl:1536},Gf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vs[e]}px)`},_S={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Gf;return t.reduce((a,l,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||Gf;return Object.keys(t).reduce((a,l)=>{if(IS(s.keys,l)){const d=AS(r.containerQueries?r:_S,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(s.values||Vs).includes(l)){const d=s.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function DS(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Xf(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ee(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Us(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Hs(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Us(e,n)||r,t&&(i=t(i,r,e)),i}function lt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,p=Us(d,r)||{};return Dn(a,l,h=>{let x=Hs(p,i,h);return h===x&&typeof h=="string"&&(x=Hs(p,i,`${t}${h==="default"?"":ee(h)}`,h)),n===!1?x:{[n]:x}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Jn}:{},s.filterProps=[t],s}function $S(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zS={m:"margin",p:"padding"},LS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jS=$S(e=>{if(e.length>2)if(Jf[e])e=Jf[e];else return[e];const[t,n]=e.split(""),r=zS[t],i=LS[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),qs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],BS=[...qs,...Ys];function ei(e,t,n,r){const i=Us(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
28
28
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
29
29
  `)));const l=i[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
30
- `)),()=>{})}function gc(e){return ei(e,"spacing",8,"spacing")}function ti(e,t){return typeof t=="string"||t==null?t:e(t)}function WS(e,t){return n=>e.reduce((r,i)=>(r[i]=ti(t,n),r),{})}function RS(e,t,n,r){if(!t.includes(n))return null;const i=jS(n),s=WS(i,r),a=e[n];return _n(e,a,s)}function Qf(e,t){const n=gc(e.theme);return Object.keys(e).map(r=>RS(e,t,r,n)).reduce(Zo,{})}function nt(e){return Qf(e,qs)}nt.propTypes=process.env.NODE_ENV!=="production"?qs.reduce((e,t)=>(e[t]=Jn,e),{}):{},nt.filterProps=qs;function rt(e){return Qf(e,Ys)}rt.propTypes=process.env.NODE_ENV!=="production"?Ys.reduce((e,t)=>(e[t]=Jn,e),{}):{},rt.filterProps=Ys,process.env.NODE_ENV!=="production"&&BS.reduce((e,t)=>(e[t]=Jn,e),{});function Zf(e=8,t=gc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ks(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?Zo(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Vt(e){return typeof e!="number"?e:`${e}px solid`}function Ut(e,t){return lt({prop:e,themeKey:"borders",transform:t})}const VS=Ut("border",Vt),US=Ut("borderTop",Vt),HS=Ut("borderRight",Vt),qS=Ut("borderBottom",Vt),YS=Ut("borderLeft",Vt),KS=Ut("borderColor"),GS=Ut("borderTopColor"),XS=Ut("borderRightColor"),JS=Ut("borderBottomColor"),QS=Ut("borderLeftColor"),ZS=Ut("outline",Vt),ew=Ut("outlineColor"),Gs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ei(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ti(t,r)});return _n(e,e.borderRadius,n)}return null};Gs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jn}:{},Gs.filterProps=["borderRadius"],Ks(VS,US,HS,qS,YS,KS,GS,XS,JS,QS,Gs,ZS,ew);const Xs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ei(e.theme,"spacing",8,"gap"),n=r=>({gap:ti(t,r)});return _n(e,e.gap,n)}return null};Xs.propTypes=process.env.NODE_ENV!=="production"?{gap:Jn}:{},Xs.filterProps=["gap"];const Js=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ei(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ti(t,r)});return _n(e,e.columnGap,n)}return null};Js.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jn}:{},Js.filterProps=["columnGap"];const Qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ei(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ti(t,r)});return _n(e,e.rowGap,n)}return null};Qs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jn}:{},Qs.filterProps=["rowGap"];const tw=lt({prop:"gridColumn"}),nw=lt({prop:"gridRow"}),rw=lt({prop:"gridAutoFlow"}),ow=lt({prop:"gridAutoColumns"}),iw=lt({prop:"gridAutoRows"}),sw=lt({prop:"gridTemplateColumns"}),aw=lt({prop:"gridTemplateRows"}),lw=lt({prop:"gridTemplateAreas"}),cw=lt({prop:"gridArea"});Ks(Xs,Js,Qs,tw,nw,rw,ow,iw,sw,aw,lw,cw);function Gr(e,t){return t==="grey"?t:e}const dw=lt({prop:"color",themeKey:"palette",transform:Gr}),uw=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gr}),pw=lt({prop:"backgroundColor",themeKey:"palette",transform:Gr});Ks(dw,uw,pw);function Bt(e){return e<=1&&e!==0?`${e*100}%`:e}const fw=lt({prop:"width",transform:Bt}),mc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Vs[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Bt(n)}};return _n(e,e.maxWidth,t)}return null};mc.filterProps=["maxWidth"];const hw=lt({prop:"minWidth",transform:Bt}),gw=lt({prop:"height",transform:Bt}),mw=lt({prop:"maxHeight",transform:Bt}),yw=lt({prop:"minHeight",transform:Bt});lt({prop:"size",cssProperty:"width",transform:Bt}),lt({prop:"size",cssProperty:"height",transform:Bt});const bw=lt({prop:"boxSizing"});Ks(fw,mc,hw,gw,mw,yw,bw);const ni={border:{themeKey:"borders",transform:Vt},borderTop:{themeKey:"borders",transform:Vt},borderRight:{themeKey:"borders",transform:Vt},borderBottom:{themeKey:"borders",transform:Vt},borderLeft:{themeKey:"borders",transform:Vt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gs},color:{themeKey:"palette",transform:Gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gr},backgroundColor:{themeKey:"palette",transform:Gr},p:{style:rt},pt:{style:rt},pr:{style:rt},pb:{style:rt},pl:{style:rt},px:{style:rt},py:{style:rt},padding:{style:rt},paddingTop:{style:rt},paddingRight:{style:rt},paddingBottom:{style:rt},paddingLeft:{style:rt},paddingX:{style:rt},paddingY:{style:rt},paddingInline:{style:rt},paddingInlineStart:{style:rt},paddingInlineEnd:{style:rt},paddingBlock:{style:rt},paddingBlockStart:{style:rt},paddingBlockEnd:{style:rt},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},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:Xs},rowGap:{style:Qs},columnGap:{style:Js},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bt},maxWidth:{style:mc},minWidth:{transform:Bt},height:{transform:Bt},maxHeight:{transform:Bt},minHeight:{transform:Bt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vw(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function xw(e,t){return typeof e=="function"?e(t):e}function Sw(){function e(n,r,i,s){const a={[n]:r,theme:i},l=s[n];if(!l)return{[n]:r};const{cssProperty:d=n,themeKey:p,transform:u,style:h}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const x=Us(i,p)||{};return h?h(a):_n(a,r,g=>{let f=Hs(x,u,g);return g===f&&typeof g=="string"&&(f=Hs(x,u,`${n}${g==="default"?"":ee(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??ni;function l(d){let p=d;if(typeof d=="function")p=d(i);else if(typeof d!="object")return d;if(!p)return null;const u=DS(i.breakpoints),h=Object.keys(u);let x=u;return Object.keys(p).forEach(y=>{const g=xw(p[y],i);if(g!=null)if(typeof g=="object")if(a[y])x=Zo(x,e(y,g,i,a));else{const f=_n({theme:i},g,m=>({[y]:m}));vw(f,g)?x[y]=t({sx:g,theme:i,nested:!0}):x=Zo(x,f)}else x=Zo(x,e(y,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Kf(i,Xf(h,x))}:Kf(i,Xf(h,x))}return Array.isArray(r)?r.map(l):l(r)}return t}const pr=Sw();pr.filterProps=["sx"];function ww(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function yc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=IS(n),d=Zf(i);let p=St({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...FS,...s}},a);return p=MS(p),p.applyStyles=ww,p=t.reduce((u,h)=>St(u,h),p),p.unstable_sxConfig={...ni,...a?.unstable_sxConfig},p.unstable_sx=function(h){return pr({sx:h,theme:this})},p}function Cw(e){return Object.keys(e).length===0}function eh(e=null){const t=E.useContext(js);return!t||Cw(t)?e:t}const Ew=yc();function bc(e=Ew){return eh(e)}function vc(e){const t=Xn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function th({styles:e,themeId:t,defaultTheme:n={}}){const r=bc(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>vc(typeof a=="function"?a(i):a)):s=vc(s)),c.jsx(Wf,{styles:s})}process.env.NODE_ENV!=="production"&&(th.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const Tw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ni;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function nh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=Tw(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return fn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const rh=e=>e,oh=(()=>{let e=rh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rh}}})();function ih(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ih(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ih(e))&&(r&&(r+=" "),r+=t);return r}function Pw(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=Rf("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(pr);return E.forwardRef(function(d,p){const u=bc(n),{className:h,component:x="div",...y}=nh(d);return c.jsx(s,{as:x,ref:p,className:ue(h,i?i(r):r),theme:t&&u[t]||u,...y})})}const Ow={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 be(e,t,n="Mui"){const r=Ow[t];return r?`${n}-${r}`:`${oh.generate(e)}-${t}`}function ye(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=be(e,i,n)}),r}function sh(e,t=""){return e.displayName||e.name||t}function ah(e,t,n){const r=sh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function kw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return sh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rs.ForwardRef:return ah(e,e.render,"ForwardRef");case Rs.Memo:return ah(e,e.type,"memo");default:return}}}function lh(e){const{variants:t,...n}=e,r={variants:t,style:Xn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Xn(i.style))}),r}const Iw=yc();function xc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Nw(e){return e?(t,n)=>n[e]:null}function Aw(e,t,n){e.theme=Dw(e.theme)?n:e.theme[t]||e.theme}function Zs(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Zs(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?fr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?fr(Xn(a),n):a}return ch(e,r.variants,[i],n)}return r?.isProcessed?n?fr(Xn(r.style),n):r.style:n?fr(Xn(r),n):r}function ch(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?fr(Xn(a.style(i)),r):a.style(i))):n.push(r?fr(Xn(a.style),r):a.style)}return n}function Mw(e={}){const{themeId:t,defaultTheme:n=Iw,rootShouldForwardProp:r=xc,slotShouldForwardProp:i=xc}=e;function s(l){Aw(l,t,n)}return(l,d={})=>{ES(l,P=>P.filter(O=>O!==pr));const{name:p,slot:u,skipVariantsResolver:h,skipSx:x,overridesResolver:y=Nw(dh(u)),...g}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,b=x||!1;let w=xc;u==="Root"||u==="root"?w=r:u?w=i:$w(l)&&(w=void 0);const S=Rf(l,{shouldForwardProp:w,label:_w(p,u),...g}),v=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(A){return Zs(A,P,A.theme.modularCssLayers?f:void 0)};if(fn(P)){const O=lh(P);return function(k){return O.variants?Zs(k,O,k.theme.modularCssLayers?f:void 0):k.theme.modularCssLayers?fr(O.style,f):O.style}}return P},C=(...P)=>{const O=[],A=P.map(v),k=[];if(O.push(s),p&&y&&k.push(function(N){const W=N.theme.components?.[p]?.styleOverrides;if(!W)return null;const _={};for(const j in W)_[j]=Zs(N,W[j],N.theme.modularCssLayers?"theme":void 0);return y(N,_)}),p&&!m&&k.push(function(N){const W=N.theme?.components?.[p]?.variants;return W?ch(N,W,[],N.theme.modularCssLayers?"theme":void 0):null}),b||k.push(pr),Array.isArray(A[0])){const T=A.shift(),N=new Array(O.length).fill(""),F=new Array(k.length).fill("");let W;W=[...N,...T,...F],W.raw=[...N,...T.raw,...F],O.unshift(W)}const L=[...O,...A,...k],D=S(...L);return l.muiName&&(D.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(D.displayName=Fw(p,u,l)),D};return S.withConfig&&(C.withConfig=S.withConfig),C}}function Fw(e,t,n){return e?`${e}${ee(t||"")}`:`Styled(${kw(n)})`}function _w(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${dh(t||"Root")}`),n}function Dw(e){for(const t in e)return!1;return!0}function $w(e){return typeof e=="string"&&e.charCodeAt(0)>96}function dh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ri(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const p=d;r[s][p]=ri(a[p],l[p],n)}}}else s==="className"&&n&&t.className?r.className=ue(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function zw(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ri(t.components[n].defaultProps,r)}const Ht=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Lw(e,t,n,r,i){const[s,a]=E.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ht(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),s}const uh={...E}.useSyncExternalStore;function jw(e,t,n,r,i){const s=E.useCallback(()=>t,[t]),a=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,i,n]),[l,d]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return uh(d,l,a)}function ph(e={}){const{themeId:t}=e;return function(r,i={}){let s=eh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=zw({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
30
+ `)),()=>{})}function gc(e){return ei(e,"spacing",8,"spacing")}function ti(e,t){return typeof t=="string"||t==null?t:e(t)}function WS(e,t){return n=>e.reduce((r,i)=>(r[i]=ti(t,n),r),{})}function RS(e,t,n,r){if(!t.includes(n))return null;const i=jS(n),s=WS(i,r),a=e[n];return Dn(e,a,s)}function Qf(e,t){const n=gc(e.theme);return Object.keys(e).map(r=>RS(e,t,r,n)).reduce(Zo,{})}function nt(e){return Qf(e,qs)}nt.propTypes=process.env.NODE_ENV!=="production"?qs.reduce((e,t)=>(e[t]=Jn,e),{}):{},nt.filterProps=qs;function rt(e){return Qf(e,Ys)}rt.propTypes=process.env.NODE_ENV!=="production"?Ys.reduce((e,t)=>(e[t]=Jn,e),{}):{},rt.filterProps=Ys,process.env.NODE_ENV!=="production"&&BS.reduce((e,t)=>(e[t]=Jn,e),{});function Zf(e=8,t=gc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ks(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?Zo(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Vt(e){return typeof e!="number"?e:`${e}px solid`}function Ut(e,t){return lt({prop:e,themeKey:"borders",transform:t})}const VS=Ut("border",Vt),US=Ut("borderTop",Vt),HS=Ut("borderRight",Vt),qS=Ut("borderBottom",Vt),YS=Ut("borderLeft",Vt),KS=Ut("borderColor"),GS=Ut("borderTopColor"),XS=Ut("borderRightColor"),JS=Ut("borderBottomColor"),QS=Ut("borderLeftColor"),ZS=Ut("outline",Vt),ew=Ut("outlineColor"),Gs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ei(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ti(t,r)});return Dn(e,e.borderRadius,n)}return null};Gs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jn}:{},Gs.filterProps=["borderRadius"],Ks(VS,US,HS,qS,YS,KS,GS,XS,JS,QS,Gs,ZS,ew);const Xs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ei(e.theme,"spacing",8,"gap"),n=r=>({gap:ti(t,r)});return Dn(e,e.gap,n)}return null};Xs.propTypes=process.env.NODE_ENV!=="production"?{gap:Jn}:{},Xs.filterProps=["gap"];const Js=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ei(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ti(t,r)});return Dn(e,e.columnGap,n)}return null};Js.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jn}:{},Js.filterProps=["columnGap"];const Qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ei(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ti(t,r)});return Dn(e,e.rowGap,n)}return null};Qs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jn}:{},Qs.filterProps=["rowGap"];const tw=lt({prop:"gridColumn"}),nw=lt({prop:"gridRow"}),rw=lt({prop:"gridAutoFlow"}),ow=lt({prop:"gridAutoColumns"}),iw=lt({prop:"gridAutoRows"}),sw=lt({prop:"gridTemplateColumns"}),aw=lt({prop:"gridTemplateRows"}),lw=lt({prop:"gridTemplateAreas"}),cw=lt({prop:"gridArea"});Ks(Xs,Js,Qs,tw,nw,rw,ow,iw,sw,aw,lw,cw);function Gr(e,t){return t==="grey"?t:e}const dw=lt({prop:"color",themeKey:"palette",transform:Gr}),uw=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gr}),pw=lt({prop:"backgroundColor",themeKey:"palette",transform:Gr});Ks(dw,uw,pw);function Bt(e){return e<=1&&e!==0?`${e*100}%`:e}const fw=lt({prop:"width",transform:Bt}),mc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Vs[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Bt(n)}};return Dn(e,e.maxWidth,t)}return null};mc.filterProps=["maxWidth"];const hw=lt({prop:"minWidth",transform:Bt}),gw=lt({prop:"height",transform:Bt}),mw=lt({prop:"maxHeight",transform:Bt}),yw=lt({prop:"minHeight",transform:Bt});lt({prop:"size",cssProperty:"width",transform:Bt}),lt({prop:"size",cssProperty:"height",transform:Bt});const bw=lt({prop:"boxSizing"});Ks(fw,mc,hw,gw,mw,yw,bw);const ni={border:{themeKey:"borders",transform:Vt},borderTop:{themeKey:"borders",transform:Vt},borderRight:{themeKey:"borders",transform:Vt},borderBottom:{themeKey:"borders",transform:Vt},borderLeft:{themeKey:"borders",transform:Vt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gs},color:{themeKey:"palette",transform:Gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gr},backgroundColor:{themeKey:"palette",transform:Gr},p:{style:rt},pt:{style:rt},pr:{style:rt},pb:{style:rt},pl:{style:rt},px:{style:rt},py:{style:rt},padding:{style:rt},paddingTop:{style:rt},paddingRight:{style:rt},paddingBottom:{style:rt},paddingLeft:{style:rt},paddingX:{style:rt},paddingY:{style:rt},paddingInline:{style:rt},paddingInlineStart:{style:rt},paddingInlineEnd:{style:rt},paddingBlock:{style:rt},paddingBlockStart:{style:rt},paddingBlockEnd:{style:rt},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},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:Xs},rowGap:{style:Qs},columnGap:{style:Js},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bt},maxWidth:{style:mc},minWidth:{transform:Bt},height:{transform:Bt},maxHeight:{transform:Bt},minHeight:{transform:Bt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vw(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function xw(e,t){return typeof e=="function"?e(t):e}function Sw(){function e(n,r,i,s){const a={[n]:r,theme:i},l=s[n];if(!l)return{[n]:r};const{cssProperty:d=n,themeKey:p,transform:u,style:h}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const x=Us(i,p)||{};return h?h(a):Dn(a,r,g=>{let f=Hs(x,u,g);return g===f&&typeof g=="string"&&(f=Hs(x,u,`${n}${g==="default"?"":ee(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??ni;function l(d){let p=d;if(typeof d=="function")p=d(i);else if(typeof d!="object")return d;if(!p)return null;const u=DS(i.breakpoints),h=Object.keys(u);let x=u;return Object.keys(p).forEach(y=>{const g=xw(p[y],i);if(g!=null)if(typeof g=="object")if(a[y])x=Zo(x,e(y,g,i,a));else{const f=Dn({theme:i},g,m=>({[y]:m}));vw(f,g)?x[y]=t({sx:g,theme:i,nested:!0}):x=Zo(x,f)}else x=Zo(x,e(y,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Kf(i,Xf(h,x))}:Kf(i,Xf(h,x))}return Array.isArray(r)?r.map(l):l(r)}return t}const pr=Sw();pr.filterProps=["sx"];function ww(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function yc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=NS(n),d=Zf(i);let p=St({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...FS,...s}},a);return p=MS(p),p.applyStyles=ww,p=t.reduce((u,h)=>St(u,h),p),p.unstable_sxConfig={...ni,...a?.unstable_sxConfig},p.unstable_sx=function(h){return pr({sx:h,theme:this})},p}function Cw(e){return Object.keys(e).length===0}function eh(e=null){const t=E.useContext(js);return!t||Cw(t)?e:t}const Ew=yc();function bc(e=Ew){return eh(e)}function vc(e){const t=Xn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function th({styles:e,themeId:t,defaultTheme:n={}}){const r=bc(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>vc(typeof a=="function"?a(i):a)):s=vc(s)),c.jsx(Wf,{styles:s})}process.env.NODE_ENV!=="production"&&(th.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const Tw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ni;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function nh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=Tw(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return fn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const rh=e=>e,oh=(()=>{let e=rh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rh}}})();function ih(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ih(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ih(e))&&(r&&(r+=" "),r+=t);return r}function Pw(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=Rf("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(pr);return E.forwardRef(function(d,p){const u=bc(n),{className:h,component:x="div",...y}=nh(d);return c.jsx(s,{as:x,ref:p,className:ue(h,i?i(r):r),theme:t&&u[t]||u,...y})})}const Ow={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 be(e,t,n="Mui"){const r=Ow[t];return r?`${n}-${r}`:`${oh.generate(e)}-${t}`}function ye(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=be(e,i,n)}),r}function sh(e,t=""){return e.displayName||e.name||t}function ah(e,t,n){const r=sh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function kw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return sh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rs.ForwardRef:return ah(e,e.render,"ForwardRef");case Rs.Memo:return ah(e,e.type,"memo");default:return}}}function lh(e){const{variants:t,...n}=e,r={variants:t,style:Xn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Xn(i.style))}),r}const Nw=yc();function xc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Iw(e){return e?(t,n)=>n[e]:null}function Aw(e,t,n){e.theme=Dw(e.theme)?n:e.theme[t]||e.theme}function Zs(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Zs(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?fr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?fr(Xn(a),n):a}return ch(e,r.variants,[i],n)}return r?.isProcessed?n?fr(Xn(r.style),n):r.style:n?fr(Xn(r),n):r}function ch(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?fr(Xn(a.style(i)),r):a.style(i))):n.push(r?fr(Xn(a.style),r):a.style)}return n}function Mw(e={}){const{themeId:t,defaultTheme:n=Nw,rootShouldForwardProp:r=xc,slotShouldForwardProp:i=xc}=e;function s(l){Aw(l,t,n)}return(l,d={})=>{ES(l,P=>P.filter(O=>O!==pr));const{name:p,slot:u,skipVariantsResolver:h,skipSx:x,overridesResolver:y=Iw(dh(u)),...g}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,b=x||!1;let w=xc;u==="Root"||u==="root"?w=r:u?w=i:$w(l)&&(w=void 0);const S=Rf(l,{shouldForwardProp:w,label:_w(p,u),...g}),v=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(A){return Zs(A,P,A.theme.modularCssLayers?f:void 0)};if(fn(P)){const O=lh(P);return function(k){return O.variants?Zs(k,O,k.theme.modularCssLayers?f:void 0):k.theme.modularCssLayers?fr(O.style,f):O.style}}return P},C=(...P)=>{const O=[],A=P.map(v),k=[];if(O.push(s),p&&y&&k.push(function(I){const W=I.theme.components?.[p]?.styleOverrides;if(!W)return null;const _={};for(const j in W)_[j]=Zs(I,W[j],I.theme.modularCssLayers?"theme":void 0);return y(I,_)}),p&&!m&&k.push(function(I){const W=I.theme?.components?.[p]?.variants;return W?ch(I,W,[],I.theme.modularCssLayers?"theme":void 0):null}),b||k.push(pr),Array.isArray(A[0])){const T=A.shift(),I=new Array(O.length).fill(""),F=new Array(k.length).fill("");let W;W=[...I,...T,...F],W.raw=[...I,...T.raw,...F],O.unshift(W)}const L=[...O,...A,...k],D=S(...L);return l.muiName&&(D.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(D.displayName=Fw(p,u,l)),D};return S.withConfig&&(C.withConfig=S.withConfig),C}}function Fw(e,t,n){return e?`${e}${ee(t||"")}`:`Styled(${kw(n)})`}function _w(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${dh(t||"Root")}`),n}function Dw(e){for(const t in e)return!1;return!0}function $w(e){return typeof e=="string"&&e.charCodeAt(0)>96}function dh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ri(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const p=d;r[s][p]=ri(a[p],l[p],n)}}}else s==="className"&&n&&t.className?r.className=ue(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function zw(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ri(t.components[n].defaultProps,r)}const Ht=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Lw(e,t,n,r,i){const[s,a]=E.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ht(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),s}const uh={...E}.useSyncExternalStore;function jw(e,t,n,r,i){const s=E.useCallback(()=>t,[t]),a=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,i,n]),[l,d]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return uh(d,l,a)}function ph(e={}){const{themeId:t}=e;return function(r,i={}){let s=eh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=zw({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
31
31
  `));let h=typeof r=="function"?r(s):r;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
32
32
  `));const y=(uh!==void 0?jw:Lw)(h,l,d,p,u);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:h,match:y}),y}}ph();function Xr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Sc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Xr(e,t,n)}function Bw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Qn(e){if(e.type)return e;if(e.charAt(0)==="#")return Qn(Bw(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
33
33
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:cn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
@@ -54,12 +54,12 @@ const theme = ${JSON.stringify(t,null,2)};
54
54
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
55
55
  theme.transitions = createTransitions(theme.transitions || {});
56
56
 
57
- export default theme;`}function kh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const SC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function wC(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:ta(t,SC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${kh(n)})`:ra(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${kh(n)})`:na(t,n)}})}function Ic(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:l={},shape:d,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":cn(20));const h=kc({...s,colorSpace:p}),x=yc(e);let y=St(x,{mixins:lC(x.breakpoints,r),palette:h,shadows:hC.slice(),typography:dC(h,l),transitions:bC(a),zIndex:{...vC}});if(y=St(y,u),y=t.reduce((g,f)=>St(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,b)=>{let w;for(w in m){const S=m[w];if(g.includes(w)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const v=be("",w);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
- `))}m[w]={}}}};Object.keys(y.components).forEach(m=>{const b=y.components[m].styleOverrides;b&&m.startsWith("Mui")&&f(b,m)})}return y.unstable_sxConfig={...ni,...u?.unstable_sxConfig},y.unstable_sx=function(f){return pr({sx:f,theme:this})},y.toRuntimeSource=Oh,wC(y),y}function Nc(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const CC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Nc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ih(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Nh(e){return e==="dark"?CC:[]}function EC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=kc({...t,colorSpace:i});return{palette:a,opacity:{...Ih(a.mode),...n},overlays:r||Nh(a.mode),...s}}function TC(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const PC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],OC=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return PC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function kC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function si(e){return typeof e!="string"||!e.startsWith("hsl")?e:fh(e)}function Dn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oi(si(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
59
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function IC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const hn=e=>{try{return e()}catch{}},NC=(e="mui")=>Gw(e);function Ac(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=EC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=Ic({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...Ih(s),...n?.opacity},overlays:n?.overlays||Nh(s)},l}function AC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=TC,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],x=r||(n.light&&h!=="light"?"light":h),y=NC(s),{[x]:g,light:f,dark:m,...b}=n,w={...b};let S=g;if((x==="dark"&&!("dark"in n)||x==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${x}\` option is either missing or invalid.`:cn(21,x));let v;a&&(v="oklch");const C=Ac(v,w,S,u,x);f&&!w.light&&Ac(v,w,f,void 0,"light"),m&&!w.dark&&Ac(v,w,m,void 0,"dark");let P={defaultColorScheme:x,...C,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:y,colorSchemes:w,font:{...aC(C.typography),...C.font},spacing:IC(u.spacing)};Object.keys(P.colorSchemes).forEach(D=>{const T=P.colorSchemes[D].palette,N=W=>{const _=W.split("-"),j=_[1],M=_[2];return y(W,T[j][M])};T.mode==="light"&&(Y(T.common,"background","#fff"),Y(T.common,"onBackground","#000")),T.mode==="dark"&&(Y(T.common,"background","#000"),Y(T.common,"onBackground","#fff"));function F(W,_,j){if(v){let M;return W===hr&&(M=`transparent ${((1-j)*100).toFixed(0)}%`),W===Re&&(M=`#000 ${(j*100).toFixed(0)}%`),W===Ve&&(M=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${v}, ${_}, ${M})`}return W(_,j)}if(kC(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Y(T.Alert,"errorColor",F(Re,T.error.light,.6)),Y(T.Alert,"infoColor",F(Re,T.info.light,.6)),Y(T.Alert,"successColor",F(Re,T.success.light,.6)),Y(T.Alert,"warningColor",F(Re,T.warning.light,.6)),Y(T.Alert,"errorFilledBg",N("palette-error-main")),Y(T.Alert,"infoFilledBg",N("palette-info-main")),Y(T.Alert,"successFilledBg",N("palette-success-main")),Y(T.Alert,"warningFilledBg",N("palette-warning-main")),Y(T.Alert,"errorFilledColor",hn(()=>T.getContrastText(T.error.main))),Y(T.Alert,"infoFilledColor",hn(()=>T.getContrastText(T.info.main))),Y(T.Alert,"successFilledColor",hn(()=>T.getContrastText(T.success.main))),Y(T.Alert,"warningFilledColor",hn(()=>T.getContrastText(T.warning.main))),Y(T.Alert,"errorStandardBg",F(Ve,T.error.light,.9)),Y(T.Alert,"infoStandardBg",F(Ve,T.info.light,.9)),Y(T.Alert,"successStandardBg",F(Ve,T.success.light,.9)),Y(T.Alert,"warningStandardBg",F(Ve,T.warning.light,.9)),Y(T.Alert,"errorIconColor",N("palette-error-main")),Y(T.Alert,"infoIconColor",N("palette-info-main")),Y(T.Alert,"successIconColor",N("palette-success-main")),Y(T.Alert,"warningIconColor",N("palette-warning-main")),Y(T.AppBar,"defaultBg",N("palette-grey-100")),Y(T.Avatar,"defaultBg",N("palette-grey-400")),Y(T.Button,"inheritContainedBg",N("palette-grey-300")),Y(T.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Y(T.Chip,"defaultBorder",N("palette-grey-400")),Y(T.Chip,"defaultAvatarColor",N("palette-grey-700")),Y(T.Chip,"defaultIconColor",N("palette-grey-700")),Y(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(T.LinearProgress,"primaryBg",F(Ve,T.primary.main,.62)),Y(T.LinearProgress,"secondaryBg",F(Ve,T.secondary.main,.62)),Y(T.LinearProgress,"errorBg",F(Ve,T.error.main,.62)),Y(T.LinearProgress,"infoBg",F(Ve,T.info.main,.62)),Y(T.LinearProgress,"successBg",F(Ve,T.success.main,.62)),Y(T.LinearProgress,"warningBg",F(Ve,T.warning.main,.62)),Y(T.Skeleton,"bg",v?F(hr,T.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Y(T.Slider,"primaryTrack",F(Ve,T.primary.main,.62)),Y(T.Slider,"secondaryTrack",F(Ve,T.secondary.main,.62)),Y(T.Slider,"errorTrack",F(Ve,T.error.main,.62)),Y(T.Slider,"infoTrack",F(Ve,T.info.main,.62)),Y(T.Slider,"successTrack",F(Ve,T.success.main,.62)),Y(T.Slider,"warningTrack",F(Ve,T.warning.main,.62));const W=v?F(Re,T.background.default,.6825):oa(T.background.default,.8);Y(T.SnackbarContent,"bg",W),Y(T.SnackbarContent,"color",hn(()=>v?Oc.text.primary:T.getContrastText(W))),Y(T.SpeedDialAction,"fabHoverBg",oa(T.background.paper,.15)),Y(T.StepConnector,"border",N("palette-grey-400")),Y(T.StepContent,"border",N("palette-grey-400")),Y(T.Switch,"defaultColor",N("palette-common-white")),Y(T.Switch,"defaultDisabledColor",N("palette-grey-100")),Y(T.Switch,"primaryDisabledColor",F(Ve,T.primary.main,.62)),Y(T.Switch,"secondaryDisabledColor",F(Ve,T.secondary.main,.62)),Y(T.Switch,"errorDisabledColor",F(Ve,T.error.main,.62)),Y(T.Switch,"infoDisabledColor",F(Ve,T.info.main,.62)),Y(T.Switch,"successDisabledColor",F(Ve,T.success.main,.62)),Y(T.Switch,"warningDisabledColor",F(Ve,T.warning.main,.62)),Y(T.TableCell,"border",F(Ve,F(hr,T.divider,1),.88)),Y(T.Tooltip,"bg",F(hr,T.grey[700],.92))}if(T.mode==="dark"){Y(T.Alert,"errorColor",F(Ve,T.error.light,.6)),Y(T.Alert,"infoColor",F(Ve,T.info.light,.6)),Y(T.Alert,"successColor",F(Ve,T.success.light,.6)),Y(T.Alert,"warningColor",F(Ve,T.warning.light,.6)),Y(T.Alert,"errorFilledBg",N("palette-error-dark")),Y(T.Alert,"infoFilledBg",N("palette-info-dark")),Y(T.Alert,"successFilledBg",N("palette-success-dark")),Y(T.Alert,"warningFilledBg",N("palette-warning-dark")),Y(T.Alert,"errorFilledColor",hn(()=>T.getContrastText(T.error.dark))),Y(T.Alert,"infoFilledColor",hn(()=>T.getContrastText(T.info.dark))),Y(T.Alert,"successFilledColor",hn(()=>T.getContrastText(T.success.dark))),Y(T.Alert,"warningFilledColor",hn(()=>T.getContrastText(T.warning.dark))),Y(T.Alert,"errorStandardBg",F(Re,T.error.light,.9)),Y(T.Alert,"infoStandardBg",F(Re,T.info.light,.9)),Y(T.Alert,"successStandardBg",F(Re,T.success.light,.9)),Y(T.Alert,"warningStandardBg",F(Re,T.warning.light,.9)),Y(T.Alert,"errorIconColor",N("palette-error-main")),Y(T.Alert,"infoIconColor",N("palette-info-main")),Y(T.Alert,"successIconColor",N("palette-success-main")),Y(T.Alert,"warningIconColor",N("palette-warning-main")),Y(T.AppBar,"defaultBg",N("palette-grey-900")),Y(T.AppBar,"darkBg",N("palette-background-paper")),Y(T.AppBar,"darkColor",N("palette-text-primary")),Y(T.Avatar,"defaultBg",N("palette-grey-600")),Y(T.Button,"inheritContainedBg",N("palette-grey-800")),Y(T.Button,"inheritContainedHoverBg",N("palette-grey-700")),Y(T.Chip,"defaultBorder",N("palette-grey-700")),Y(T.Chip,"defaultAvatarColor",N("palette-grey-300")),Y(T.Chip,"defaultIconColor",N("palette-grey-300")),Y(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(T.LinearProgress,"primaryBg",F(Re,T.primary.main,.5)),Y(T.LinearProgress,"secondaryBg",F(Re,T.secondary.main,.5)),Y(T.LinearProgress,"errorBg",F(Re,T.error.main,.5)),Y(T.LinearProgress,"infoBg",F(Re,T.info.main,.5)),Y(T.LinearProgress,"successBg",F(Re,T.success.main,.5)),Y(T.LinearProgress,"warningBg",F(Re,T.warning.main,.5)),Y(T.Skeleton,"bg",v?F(hr,T.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Y(T.Slider,"primaryTrack",F(Re,T.primary.main,.5)),Y(T.Slider,"secondaryTrack",F(Re,T.secondary.main,.5)),Y(T.Slider,"errorTrack",F(Re,T.error.main,.5)),Y(T.Slider,"infoTrack",F(Re,T.info.main,.5)),Y(T.Slider,"successTrack",F(Re,T.success.main,.5)),Y(T.Slider,"warningTrack",F(Re,T.warning.main,.5));const W=v?F(Ve,T.background.default,.985):oa(T.background.default,.98);Y(T.SnackbarContent,"bg",W),Y(T.SnackbarContent,"color",hn(()=>v?xh.text.primary:T.getContrastText(W))),Y(T.SpeedDialAction,"fabHoverBg",oa(T.background.paper,.15)),Y(T.StepConnector,"border",N("palette-grey-600")),Y(T.StepContent,"border",N("palette-grey-600")),Y(T.Switch,"defaultColor",N("palette-grey-300")),Y(T.Switch,"defaultDisabledColor",N("palette-grey-600")),Y(T.Switch,"primaryDisabledColor",F(Re,T.primary.main,.55)),Y(T.Switch,"secondaryDisabledColor",F(Re,T.secondary.main,.55)),Y(T.Switch,"errorDisabledColor",F(Re,T.error.main,.55)),Y(T.Switch,"infoDisabledColor",F(Re,T.info.main,.55)),Y(T.Switch,"successDisabledColor",F(Re,T.success.main,.55)),Y(T.Switch,"warningDisabledColor",F(Re,T.warning.main,.55)),Y(T.TableCell,"border",F(Re,F(hr,T.divider,1),.68)),Y(T.Tooltip,"bg",F(hr,T.grey[700],.92))}Dn(T.background,"default"),Dn(T.background,"paper"),Dn(T.common,"background"),Dn(T.common,"onBackground"),Dn(T,"divider"),Object.keys(T).forEach(W=>{const _=T[W];W!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&Y(T[W],"mainChannel",oi(si(_.main))),_.light&&Y(T[W],"lightChannel",oi(si(_.light))),_.dark&&Y(T[W],"darkChannel",oi(si(_.dark))),_.contrastText&&Y(T[W],"contrastTextChannel",oi(si(_.contrastText))),W==="text"&&(Dn(T[W],"primary"),Dn(T[W],"secondary")),W==="action"&&(_.active&&Dn(T[W],"active"),_.selected&&Dn(T[W],"selected")))})}),P=t.reduce((D,T)=>St(D,T),P);const O={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:OC(P),enableContrastVars:a},{vars:A,generateThemeVars:k,generateStyleSheets:L}=Qw(P,O);return P.vars=A,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([D,T])=>{P[D]=T}),P.generateThemeVars=k,P.generateStyleSheets=L,P.generateSpacing=function(){return Zf(u.spacing,gc(this))},P.getColorSchemeSelector=Zw(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...ni,...u?.unstable_sxConfig},P.unstable_sx=function(T){return pr({sx:T,theme:this})},P.toRuntimeSource=Oh,P}function Ah(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:kc({...n===!0?{}:n.palette,mode:t})})}function Mc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",d=i?.[l],p={...i,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ic(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const h=Ic({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},Ah(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},Ah(h,"light",p.light)),h}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),AC({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Fc=Mc();function gn(){const e=bc(Fc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[qo]||e}function ai(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wt=e=>ai(e)&&e!=="classes",X=Mw({themeId:qo,defaultTheme:Fc,rootShouldForwardProp:wt});function _c(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Mh(e){return c.jsx(th,{...e,defaultTheme:Fc,themeId:qo})}process.env.NODE_ENV!=="production"&&(Mh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function MC(e){return function(n){return c.jsx(Mh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function FC(){return nh}const me=Kw;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Se(e){return qw(e)}function _C(e){return be("MuiSvgIcon",e)}ye("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ee(t)}`,`fontSize${ee(n)}`]};return ve(i,_C,r)},$C=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ee(n.color)}`],t[`fontSize${ee(n.fontSize)}`]]}})(me(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),$n=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:x="0 0 24 24",...y}=r,g=E.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:x,hasSvgAsChild:g},m={};u||(m.viewBox=x);const b=DC(f);return c.jsxs($C,{as:l,className:ue(b.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?c.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&($n.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),$n.muiName="SvgIcon";function We(e,t){function n(r,i){return c.jsx($n,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=$n.muiName,E.memo(E.forwardRef(n))}function Fh(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ut(e){return e&&e.ownerDocument||document}function zn(e){return ut(e).defaultView||window}function _h(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Jr(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=E.useRef(t!==void 0),[a,l]=E.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
57
+ export default theme;`}function kh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const SC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function wC(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:ta(t,SC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${kh(n)})`:ra(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${kh(n)})`:na(t,n)}})}function Nc(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:l={},shape:d,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":cn(20));const h=kc({...s,colorSpace:p}),x=yc(e);let y=St(x,{mixins:lC(x.breakpoints,r),palette:h,shadows:hC.slice(),typography:dC(h,l),transitions:bC(a),zIndex:{...vC}});if(y=St(y,u),y=t.reduce((g,f)=>St(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,b)=>{let w;for(w in m){const S=m[w];if(g.includes(w)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const v=be("",w);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
+ `))}m[w]={}}}};Object.keys(y.components).forEach(m=>{const b=y.components[m].styleOverrides;b&&m.startsWith("Mui")&&f(b,m)})}return y.unstable_sxConfig={...ni,...u?.unstable_sxConfig},y.unstable_sx=function(f){return pr({sx:f,theme:this})},y.toRuntimeSource=Oh,wC(y),y}function Ic(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const CC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ic(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Nh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ih(e){return e==="dark"?CC:[]}function EC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=kc({...t,colorSpace:i});return{palette:a,opacity:{...Nh(a.mode),...n},overlays:r||Ih(a.mode),...s}}function TC(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const PC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],OC=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return PC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function kC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function si(e){return typeof e!="string"||!e.startsWith("hsl")?e:fh(e)}function $n(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oi(si(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
59
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function NC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const hn=e=>{try{return e()}catch{}},IC=(e="mui")=>Gw(e);function Ac(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=EC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=Nc({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...Nh(s),...n?.opacity},overlays:n?.overlays||Ih(s)},l}function AC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=TC,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],x=r||(n.light&&h!=="light"?"light":h),y=IC(s),{[x]:g,light:f,dark:m,...b}=n,w={...b};let S=g;if((x==="dark"&&!("dark"in n)||x==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${x}\` option is either missing or invalid.`:cn(21,x));let v;a&&(v="oklch");const C=Ac(v,w,S,u,x);f&&!w.light&&Ac(v,w,f,void 0,"light"),m&&!w.dark&&Ac(v,w,m,void 0,"dark");let P={defaultColorScheme:x,...C,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:y,colorSchemes:w,font:{...aC(C.typography),...C.font},spacing:NC(u.spacing)};Object.keys(P.colorSchemes).forEach(D=>{const T=P.colorSchemes[D].palette,I=W=>{const _=W.split("-"),j=_[1],M=_[2];return y(W,T[j][M])};T.mode==="light"&&(Y(T.common,"background","#fff"),Y(T.common,"onBackground","#000")),T.mode==="dark"&&(Y(T.common,"background","#000"),Y(T.common,"onBackground","#fff"));function F(W,_,j){if(v){let M;return W===hr&&(M=`transparent ${((1-j)*100).toFixed(0)}%`),W===Re&&(M=`#000 ${(j*100).toFixed(0)}%`),W===Ve&&(M=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${v}, ${_}, ${M})`}return W(_,j)}if(kC(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Y(T.Alert,"errorColor",F(Re,T.error.light,.6)),Y(T.Alert,"infoColor",F(Re,T.info.light,.6)),Y(T.Alert,"successColor",F(Re,T.success.light,.6)),Y(T.Alert,"warningColor",F(Re,T.warning.light,.6)),Y(T.Alert,"errorFilledBg",I("palette-error-main")),Y(T.Alert,"infoFilledBg",I("palette-info-main")),Y(T.Alert,"successFilledBg",I("palette-success-main")),Y(T.Alert,"warningFilledBg",I("palette-warning-main")),Y(T.Alert,"errorFilledColor",hn(()=>T.getContrastText(T.error.main))),Y(T.Alert,"infoFilledColor",hn(()=>T.getContrastText(T.info.main))),Y(T.Alert,"successFilledColor",hn(()=>T.getContrastText(T.success.main))),Y(T.Alert,"warningFilledColor",hn(()=>T.getContrastText(T.warning.main))),Y(T.Alert,"errorStandardBg",F(Ve,T.error.light,.9)),Y(T.Alert,"infoStandardBg",F(Ve,T.info.light,.9)),Y(T.Alert,"successStandardBg",F(Ve,T.success.light,.9)),Y(T.Alert,"warningStandardBg",F(Ve,T.warning.light,.9)),Y(T.Alert,"errorIconColor",I("palette-error-main")),Y(T.Alert,"infoIconColor",I("palette-info-main")),Y(T.Alert,"successIconColor",I("palette-success-main")),Y(T.Alert,"warningIconColor",I("palette-warning-main")),Y(T.AppBar,"defaultBg",I("palette-grey-100")),Y(T.Avatar,"defaultBg",I("palette-grey-400")),Y(T.Button,"inheritContainedBg",I("palette-grey-300")),Y(T.Button,"inheritContainedHoverBg",I("palette-grey-A100")),Y(T.Chip,"defaultBorder",I("palette-grey-400")),Y(T.Chip,"defaultAvatarColor",I("palette-grey-700")),Y(T.Chip,"defaultIconColor",I("palette-grey-700")),Y(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(T.LinearProgress,"primaryBg",F(Ve,T.primary.main,.62)),Y(T.LinearProgress,"secondaryBg",F(Ve,T.secondary.main,.62)),Y(T.LinearProgress,"errorBg",F(Ve,T.error.main,.62)),Y(T.LinearProgress,"infoBg",F(Ve,T.info.main,.62)),Y(T.LinearProgress,"successBg",F(Ve,T.success.main,.62)),Y(T.LinearProgress,"warningBg",F(Ve,T.warning.main,.62)),Y(T.Skeleton,"bg",v?F(hr,T.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),Y(T.Slider,"primaryTrack",F(Ve,T.primary.main,.62)),Y(T.Slider,"secondaryTrack",F(Ve,T.secondary.main,.62)),Y(T.Slider,"errorTrack",F(Ve,T.error.main,.62)),Y(T.Slider,"infoTrack",F(Ve,T.info.main,.62)),Y(T.Slider,"successTrack",F(Ve,T.success.main,.62)),Y(T.Slider,"warningTrack",F(Ve,T.warning.main,.62));const W=v?F(Re,T.background.default,.6825):oa(T.background.default,.8);Y(T.SnackbarContent,"bg",W),Y(T.SnackbarContent,"color",hn(()=>v?Oc.text.primary:T.getContrastText(W))),Y(T.SpeedDialAction,"fabHoverBg",oa(T.background.paper,.15)),Y(T.StepConnector,"border",I("palette-grey-400")),Y(T.StepContent,"border",I("palette-grey-400")),Y(T.Switch,"defaultColor",I("palette-common-white")),Y(T.Switch,"defaultDisabledColor",I("palette-grey-100")),Y(T.Switch,"primaryDisabledColor",F(Ve,T.primary.main,.62)),Y(T.Switch,"secondaryDisabledColor",F(Ve,T.secondary.main,.62)),Y(T.Switch,"errorDisabledColor",F(Ve,T.error.main,.62)),Y(T.Switch,"infoDisabledColor",F(Ve,T.info.main,.62)),Y(T.Switch,"successDisabledColor",F(Ve,T.success.main,.62)),Y(T.Switch,"warningDisabledColor",F(Ve,T.warning.main,.62)),Y(T.TableCell,"border",F(Ve,F(hr,T.divider,1),.88)),Y(T.Tooltip,"bg",F(hr,T.grey[700],.92))}if(T.mode==="dark"){Y(T.Alert,"errorColor",F(Ve,T.error.light,.6)),Y(T.Alert,"infoColor",F(Ve,T.info.light,.6)),Y(T.Alert,"successColor",F(Ve,T.success.light,.6)),Y(T.Alert,"warningColor",F(Ve,T.warning.light,.6)),Y(T.Alert,"errorFilledBg",I("palette-error-dark")),Y(T.Alert,"infoFilledBg",I("palette-info-dark")),Y(T.Alert,"successFilledBg",I("palette-success-dark")),Y(T.Alert,"warningFilledBg",I("palette-warning-dark")),Y(T.Alert,"errorFilledColor",hn(()=>T.getContrastText(T.error.dark))),Y(T.Alert,"infoFilledColor",hn(()=>T.getContrastText(T.info.dark))),Y(T.Alert,"successFilledColor",hn(()=>T.getContrastText(T.success.dark))),Y(T.Alert,"warningFilledColor",hn(()=>T.getContrastText(T.warning.dark))),Y(T.Alert,"errorStandardBg",F(Re,T.error.light,.9)),Y(T.Alert,"infoStandardBg",F(Re,T.info.light,.9)),Y(T.Alert,"successStandardBg",F(Re,T.success.light,.9)),Y(T.Alert,"warningStandardBg",F(Re,T.warning.light,.9)),Y(T.Alert,"errorIconColor",I("palette-error-main")),Y(T.Alert,"infoIconColor",I("palette-info-main")),Y(T.Alert,"successIconColor",I("palette-success-main")),Y(T.Alert,"warningIconColor",I("palette-warning-main")),Y(T.AppBar,"defaultBg",I("palette-grey-900")),Y(T.AppBar,"darkBg",I("palette-background-paper")),Y(T.AppBar,"darkColor",I("palette-text-primary")),Y(T.Avatar,"defaultBg",I("palette-grey-600")),Y(T.Button,"inheritContainedBg",I("palette-grey-800")),Y(T.Button,"inheritContainedHoverBg",I("palette-grey-700")),Y(T.Chip,"defaultBorder",I("palette-grey-700")),Y(T.Chip,"defaultAvatarColor",I("palette-grey-300")),Y(T.Chip,"defaultIconColor",I("palette-grey-300")),Y(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(T.LinearProgress,"primaryBg",F(Re,T.primary.main,.5)),Y(T.LinearProgress,"secondaryBg",F(Re,T.secondary.main,.5)),Y(T.LinearProgress,"errorBg",F(Re,T.error.main,.5)),Y(T.LinearProgress,"infoBg",F(Re,T.info.main,.5)),Y(T.LinearProgress,"successBg",F(Re,T.success.main,.5)),Y(T.LinearProgress,"warningBg",F(Re,T.warning.main,.5)),Y(T.Skeleton,"bg",v?F(hr,T.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),Y(T.Slider,"primaryTrack",F(Re,T.primary.main,.5)),Y(T.Slider,"secondaryTrack",F(Re,T.secondary.main,.5)),Y(T.Slider,"errorTrack",F(Re,T.error.main,.5)),Y(T.Slider,"infoTrack",F(Re,T.info.main,.5)),Y(T.Slider,"successTrack",F(Re,T.success.main,.5)),Y(T.Slider,"warningTrack",F(Re,T.warning.main,.5));const W=v?F(Ve,T.background.default,.985):oa(T.background.default,.98);Y(T.SnackbarContent,"bg",W),Y(T.SnackbarContent,"color",hn(()=>v?xh.text.primary:T.getContrastText(W))),Y(T.SpeedDialAction,"fabHoverBg",oa(T.background.paper,.15)),Y(T.StepConnector,"border",I("palette-grey-600")),Y(T.StepContent,"border",I("palette-grey-600")),Y(T.Switch,"defaultColor",I("palette-grey-300")),Y(T.Switch,"defaultDisabledColor",I("palette-grey-600")),Y(T.Switch,"primaryDisabledColor",F(Re,T.primary.main,.55)),Y(T.Switch,"secondaryDisabledColor",F(Re,T.secondary.main,.55)),Y(T.Switch,"errorDisabledColor",F(Re,T.error.main,.55)),Y(T.Switch,"infoDisabledColor",F(Re,T.info.main,.55)),Y(T.Switch,"successDisabledColor",F(Re,T.success.main,.55)),Y(T.Switch,"warningDisabledColor",F(Re,T.warning.main,.55)),Y(T.TableCell,"border",F(Re,F(hr,T.divider,1),.68)),Y(T.Tooltip,"bg",F(hr,T.grey[700],.92))}$n(T.background,"default"),$n(T.background,"paper"),$n(T.common,"background"),$n(T.common,"onBackground"),$n(T,"divider"),Object.keys(T).forEach(W=>{const _=T[W];W!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&Y(T[W],"mainChannel",oi(si(_.main))),_.light&&Y(T[W],"lightChannel",oi(si(_.light))),_.dark&&Y(T[W],"darkChannel",oi(si(_.dark))),_.contrastText&&Y(T[W],"contrastTextChannel",oi(si(_.contrastText))),W==="text"&&($n(T[W],"primary"),$n(T[W],"secondary")),W==="action"&&(_.active&&$n(T[W],"active"),_.selected&&$n(T[W],"selected")))})}),P=t.reduce((D,T)=>St(D,T),P);const O={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:OC(P),enableContrastVars:a},{vars:A,generateThemeVars:k,generateStyleSheets:L}=Qw(P,O);return P.vars=A,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([D,T])=>{P[D]=T}),P.generateThemeVars=k,P.generateStyleSheets=L,P.generateSpacing=function(){return Zf(u.spacing,gc(this))},P.getColorSchemeSelector=Zw(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...ni,...u?.unstable_sxConfig},P.unstable_sx=function(T){return pr({sx:T,theme:this})},P.toRuntimeSource=Oh,P}function Ah(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:kc({...n===!0?{}:n.palette,mode:t})})}function Mc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",d=i?.[l],p={...i,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Nc(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const h=Nc({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},Ah(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},Ah(h,"light",p.light)),h}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),AC({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Fc=Mc();function gn(){const e=bc(Fc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[qo]||e}function ai(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wt=e=>ai(e)&&e!=="classes",X=Mw({themeId:qo,defaultTheme:Fc,rootShouldForwardProp:wt});function _c(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Mh(e){return c.jsx(th,{...e,defaultTheme:Fc,themeId:qo})}process.env.NODE_ENV!=="production"&&(Mh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function MC(e){return function(n){return c.jsx(Mh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function FC(){return nh}const me=Kw;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Se(e){return qw(e)}function _C(e){return be("MuiSvgIcon",e)}ye("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ee(t)}`,`fontSize${ee(n)}`]};return ve(i,_C,r)},$C=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ee(n.color)}`],t[`fontSize${ee(n.fontSize)}`]]}})(me(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),zn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:x="0 0 24 24",...y}=r,g=E.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:x,hasSvgAsChild:g},m={};u||(m.viewBox=x);const b=DC(f);return c.jsxs($C,{as:l,className:ue(b.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...y,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?c.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),zn.muiName="SvgIcon";function We(e,t){function n(r,i){return c.jsx(zn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=zn.muiName,E.memo(E.forwardRef(n))}function Fh(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ut(e){return e&&e.ownerDocument||document}function Ln(e){return ut(e).defaultView||window}function _h(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Jr(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=E.useRef(t!==void 0),[a,l]=E.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
60
  `))},[i,r,t]);const{current:u}=E.useRef(n);E.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
- `))},[JSON.stringify(n)])}const p=E.useCallback(u=>{s||l(u)},[]);return[d,p]}function Et(e){const t=E.useRef(e);return Ht(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function ct(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function zC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Dh(e,t){if(!e)return t;function n(a,l){const d={};return Object.keys(l).forEach(p=>{zC(p,l[p])&&typeof a[p]=="function"&&(d[p]=(...u)=>{a[p](...u),l[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...l}):e,p=ue(a?.className,l?.className,d?.className),u=n(d,l);return{...l,...d,...u,...!!p&&{className:p},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=ue(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var ia={exports:{}},qe={};var $h;function LC(){if($h)return qe;$h=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return qe.ContextConsumer=s,qe.ContextProvider=a,qe.Element=e,qe.ForwardRef=l,qe.Fragment=n,qe.Lazy=h,qe.Memo=u,qe.Portal=t,qe.Profiler=i,qe.StrictMode=r,qe.Suspense=d,qe.SuspenseList=p,qe.isContextConsumer=function(f){return g(f)===s},qe.isContextProvider=function(f){return g(f)===a},qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},qe.isForwardRef=function(f){return g(f)===l},qe.isFragment=function(f){return g(f)===n},qe.isLazy=function(f){return g(f)===h},qe.isMemo=function(f){return g(f)===u},qe.isPortal=function(f){return g(f)===t},qe.isProfiler=function(f){return g(f)===i},qe.isStrictMode=function(f){return g(f)===r},qe.isSuspense=function(f){return g(f)===d},qe.isSuspenseList=function(f){return g(f)===p},qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},qe.typeOf=g,qe}var Ye={};var zh;function jC(){return zh||(zh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case d:case x:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ye.ContextConsumer=a,Ye.ContextProvider=l,Ye.Element=t,Ye.ForwardRef=d,Ye.Fragment=r,Ye.Lazy=x,Ye.Memo=h,Ye.Portal=n,Ye.Profiler=s,Ye.StrictMode=i,Ye.Suspense=p,Ye.SuspenseList=u,Ye.isContextConsumer=function(f){return e(f)===a},Ye.isContextProvider=function(f){return e(f)===l},Ye.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ye.isForwardRef=function(f){return e(f)===d},Ye.isFragment=function(f){return e(f)===r},Ye.isLazy=function(f){return e(f)===x},Ye.isMemo=function(f){return e(f)===h},Ye.isPortal=function(f){return e(f)===n},Ye.isProfiler=function(f){return e(f)===s},Ye.isStrictMode=function(f){return e(f)===i},Ye.isSuspense=function(f){return e(f)===p},Ye.isSuspenseList=function(f){return e(f)===u},Ye.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===x||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},Ye.typeOf=e})()),Ye}var Lh;function BC(){return Lh||(Lh=1,process.env.NODE_ENV==="production"?ia.exports=LC():ia.exports=jC()),ia.exports}var Dc=BC();function nn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function jh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$c(e,t)}function Bh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$c(e,t)}const Wh={disabled:!1};var WC=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const sa=z.createContext(null);var RC=function(t){return t.scrollTop},li="unmounted",mr="exited",yr="entering",Qr="entered",zc="exiting",mn=(function(e){Bh(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?l?(d=mr,s.appearStatus=yr):d=Qr:r.unmountOnExit||r.mountOnEnter?d=li:d=mr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===li?{status:mr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==yr&&a!==Qr&&(s=yr):(a===yr||a===Qr)&&(s=zc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===yr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ho.findDOMNode(this);a&&RC(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mr&&this.setState({status:li})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,d=this.props.nodeRef?[l]:[ho.findDOMNode(this),l],p=d[0],u=d[1],h=this.getTimeouts(),x=l?h.appear:h.enter;if(!i&&!a||Wh.disabled){this.safeSetState({status:Qr},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:yr},function(){s.props.onEntering(p,u),s.onTransitionEnd(x,function(){s.safeSetState({status:Qr},function(){s.props.onEntered(p,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:ho.findDOMNode(this);if(!s||Wh.disabled){this.safeSetState({status:mr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:zc},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:mr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:ho.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===li)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=jh(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(sa.Provider,{value:null},typeof a=="function"?a(i,l):z.cloneElement(z.Children.only(a),l))},t})(z.Component);mn.contextType=sa,mn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=WC;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Zr(){}mn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zr,onEntering:Zr,onEntered:Zr,onExit:Zr,onExiting:Zr,onExited:Zr},mn.UNMOUNTED=li,mn.EXITED=mr,mn.ENTERING=yr,mn.ENTERED=Qr,mn.EXITING=zc;function VC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lc(e,t){var n=function(s){return t&&z.isValidElement(s)?t(s):s},r=Object.create(null);return e&&z.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function UC(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,l={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var p=r[d][a];l[r[d][a]]=n(p)}l[d]=n(d)}for(a=0;a<i.length;a++)l[i[a]]=n(i[a]);return l}function br(e,t,n){return n[t]!=null?n[t]:e.props[t]}function HC(e,t){return Lc(e.children,function(n){return z.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:br(n,"appear",e),enter:br(n,"enter",e),exit:br(n,"exit",e)})})}function qC(e,t,n){var r=Lc(e.children),i=UC(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(z.isValidElement(a)){var l=s in t,d=s in r,p=t[s],u=z.isValidElement(p)&&!p.props.in;d&&(!l||u)?i[s]=z.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:br(a,"exit",e),enter:br(a,"enter",e)}):!d&&l&&!u?i[s]=z.cloneElement(a,{in:!1}):d&&l&&z.isValidElement(p)&&(i[s]=z.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:br(a,"exit",e),enter:br(a,"enter",e)}))}}),i}var YC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},KC={component:"div",childFactory:function(t){return t}},jc=(function(e){Bh(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(VC(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,l=s.handleExited,d=s.firstRender;return{children:d?HC(i,l):qC(i,a,l),firstRender:!1}},n.handleExited=function(i,s){var a=Lc(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var d=Is({},l.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=jh(i,["component","childFactory"]),d=this.state.contextValue,p=YC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?z.createElement(sa.Provider,{value:d},p):z.createElement(sa.Provider,{value:d},z.createElement(s,l,p))},t})(z.Component);jc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},jc.defaultProps=KC;const Rh={};function Vh(e,t){const n=E.useRef(Rh);return n.current===Rh&&(n.current=e(t)),n}const GC=[];function XC(e){E.useEffect(e,GC)}class aa{static create(){return new aa}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vr(){const e=Vh(aa.create).current;return XC(e.disposeEffect),e}function JC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function QC(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!JC(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Bc=nn(o.elementType,QC),Uh=e=>e.scrollTop;function la(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function Zn(e){return typeof e=="string"}function Hh(e,t,n){return e===void 0||Zn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qh(e,t,n){return typeof e=="function"?e(t,n):e}function xr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Kh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const y=ue(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=xr({...i,...r}),l=Yh(r),d=Yh(i),p=t(a),u=ue(p?.className,n?.className,s,i?.className,r?.className),h={...p?.style,...n?.style,...i?.style,...r?.style},x={...p,...n,...d,...l};return u.length>0&&(x.className=u),Object.keys(h).length>0&&(x.style=h),{props:x,internalRef:p.ref}}function Ee(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...x}=s,y=u[e]||r,g=qh(h[e],i),{props:{component:f,...m},internalRef:b}=Kh({className:n,...d,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:g}),w=ct(b,g?.ref,t.ref),S=e==="root"?f||p:f,v=Hh(y,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...m,...S&&!l&&{as:S},...S&&l&&{component:S},ref:w},i);return[y,v]}function ZC(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Gh(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=ZC(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Xh(e,t,n,r){return e[t]===void 0?null:Gh(e,t,n,r)}function Wc(){return null}Xh.isRequired=Gh,Wc.isRequired=Wc;const ca=process.env.NODE_ENV==="production"?Wc:Xh;function eE(e){return be("MuiPaper",e)}ye("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const tE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(s,eE,i)},nE=X("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),rn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPaper"}),i=gn(),{className:s,component:a="div",elevation:l=1,square:d=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:l,square:d,variant:p},x=tE(h);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
62
- `)),c.jsx(nE,{as:a,ownerState:h,className:ue(x.root,s),ref:n,...u,style:{...p==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ta("#fff",Nc(l))}, ${ta("#fff",Nc(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(rn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:nn(ca,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const Tt=o.oneOfType([o.func,o.object]);function eo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
61
+ `))},[JSON.stringify(n)])}const p=E.useCallback(u=>{s||l(u)},[]);return[d,p]}function Et(e){const t=E.useRef(e);return Ht(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function ct(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function zC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Dh(e,t){if(!e)return t;function n(a,l){const d={};return Object.keys(l).forEach(p=>{zC(p,l[p])&&typeof a[p]=="function"&&(d[p]=(...u)=>{a[p](...u),l[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...l}):e,p=ue(a?.className,l?.className,d?.className),u=n(d,l);return{...l,...d,...u,...!!p&&{className:p},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=ue(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var ia={exports:{}},qe={};var $h;function LC(){if($h)return qe;$h=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return qe.ContextConsumer=s,qe.ContextProvider=a,qe.Element=e,qe.ForwardRef=l,qe.Fragment=n,qe.Lazy=h,qe.Memo=u,qe.Portal=t,qe.Profiler=i,qe.StrictMode=r,qe.Suspense=d,qe.SuspenseList=p,qe.isContextConsumer=function(f){return g(f)===s},qe.isContextProvider=function(f){return g(f)===a},qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},qe.isForwardRef=function(f){return g(f)===l},qe.isFragment=function(f){return g(f)===n},qe.isLazy=function(f){return g(f)===h},qe.isMemo=function(f){return g(f)===u},qe.isPortal=function(f){return g(f)===t},qe.isProfiler=function(f){return g(f)===i},qe.isStrictMode=function(f){return g(f)===r},qe.isSuspense=function(f){return g(f)===d},qe.isSuspenseList=function(f){return g(f)===p},qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},qe.typeOf=g,qe}var Ye={};var zh;function jC(){return zh||(zh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case d:case x:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ye.ContextConsumer=a,Ye.ContextProvider=l,Ye.Element=t,Ye.ForwardRef=d,Ye.Fragment=r,Ye.Lazy=x,Ye.Memo=h,Ye.Portal=n,Ye.Profiler=s,Ye.StrictMode=i,Ye.Suspense=p,Ye.SuspenseList=u,Ye.isContextConsumer=function(f){return e(f)===a},Ye.isContextProvider=function(f){return e(f)===l},Ye.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ye.isForwardRef=function(f){return e(f)===d},Ye.isFragment=function(f){return e(f)===r},Ye.isLazy=function(f){return e(f)===x},Ye.isMemo=function(f){return e(f)===h},Ye.isPortal=function(f){return e(f)===n},Ye.isProfiler=function(f){return e(f)===s},Ye.isStrictMode=function(f){return e(f)===i},Ye.isSuspense=function(f){return e(f)===p},Ye.isSuspenseList=function(f){return e(f)===u},Ye.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===x||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},Ye.typeOf=e})()),Ye}var Lh;function BC(){return Lh||(Lh=1,process.env.NODE_ENV==="production"?ia.exports=LC():ia.exports=jC()),ia.exports}var Dc=BC();function nn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function jh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $c(e,t){return $c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$c(e,t)}function Bh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$c(e,t)}const Wh={disabled:!1};var WC=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const sa=z.createContext(null);var RC=function(t){return t.scrollTop},li="unmounted",mr="exited",yr="entering",Qr="entered",zc="exiting",mn=(function(e){Bh(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?l?(d=mr,s.appearStatus=yr):d=Qr:r.unmountOnExit||r.mountOnEnter?d=li:d=mr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===li?{status:mr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==yr&&a!==Qr&&(s=yr):(a===yr||a===Qr)&&(s=zc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===yr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ho.findDOMNode(this);a&&RC(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mr&&this.setState({status:li})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,d=this.props.nodeRef?[l]:[ho.findDOMNode(this),l],p=d[0],u=d[1],h=this.getTimeouts(),x=l?h.appear:h.enter;if(!i&&!a||Wh.disabled){this.safeSetState({status:Qr},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:yr},function(){s.props.onEntering(p,u),s.onTransitionEnd(x,function(){s.safeSetState({status:Qr},function(){s.props.onEntered(p,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:ho.findDOMNode(this);if(!s||Wh.disabled){this.safeSetState({status:mr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:zc},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:mr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:ho.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===li)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=jh(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(sa.Provider,{value:null},typeof a=="function"?a(i,l):z.cloneElement(z.Children.only(a),l))},t})(z.Component);mn.contextType=sa,mn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=WC;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Zr(){}mn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zr,onEntering:Zr,onEntered:Zr,onExit:Zr,onExiting:Zr,onExited:Zr},mn.UNMOUNTED=li,mn.EXITED=mr,mn.ENTERING=yr,mn.ENTERED=Qr,mn.EXITING=zc;function VC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lc(e,t){var n=function(s){return t&&z.isValidElement(s)?t(s):s},r=Object.create(null);return e&&z.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function UC(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,l={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var p=r[d][a];l[r[d][a]]=n(p)}l[d]=n(d)}for(a=0;a<i.length;a++)l[i[a]]=n(i[a]);return l}function br(e,t,n){return n[t]!=null?n[t]:e.props[t]}function HC(e,t){return Lc(e.children,function(n){return z.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:br(n,"appear",e),enter:br(n,"enter",e),exit:br(n,"exit",e)})})}function qC(e,t,n){var r=Lc(e.children),i=UC(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(z.isValidElement(a)){var l=s in t,d=s in r,p=t[s],u=z.isValidElement(p)&&!p.props.in;d&&(!l||u)?i[s]=z.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:br(a,"exit",e),enter:br(a,"enter",e)}):!d&&l&&!u?i[s]=z.cloneElement(a,{in:!1}):d&&l&&z.isValidElement(p)&&(i[s]=z.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:br(a,"exit",e),enter:br(a,"enter",e)}))}}),i}var YC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},KC={component:"div",childFactory:function(t){return t}},jc=(function(e){Bh(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(VC(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,l=s.handleExited,d=s.firstRender;return{children:d?HC(i,l):qC(i,a,l),firstRender:!1}},n.handleExited=function(i,s){var a=Lc(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var d=Ns({},l.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=jh(i,["component","childFactory"]),d=this.state.contextValue,p=YC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?z.createElement(sa.Provider,{value:d},p):z.createElement(sa.Provider,{value:d},z.createElement(s,l,p))},t})(z.Component);jc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},jc.defaultProps=KC;const Rh={};function Vh(e,t){const n=E.useRef(Rh);return n.current===Rh&&(n.current=e(t)),n}const GC=[];function XC(e){E.useEffect(e,GC)}class aa{static create(){return new aa}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vr(){const e=Vh(aa.create).current;return XC(e.disposeEffect),e}function JC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function QC(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!JC(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Bc=nn(o.elementType,QC),Uh=e=>e.scrollTop;function la(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function Zn(e){return typeof e=="string"}function Hh(e,t,n){return e===void 0||Zn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qh(e,t,n){return typeof e=="function"?e(t,n):e}function xr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Kh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const y=ue(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=xr({...i,...r}),l=Yh(r),d=Yh(i),p=t(a),u=ue(p?.className,n?.className,s,i?.className,r?.className),h={...p?.style,...n?.style,...i?.style,...r?.style},x={...p,...n,...d,...l};return u.length>0&&(x.className=u),Object.keys(h).length>0&&(x.style=h),{props:x,internalRef:p.ref}}function Ee(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...x}=s,y=u[e]||r,g=qh(h[e],i),{props:{component:f,...m},internalRef:b}=Kh({className:n,...d,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:g}),w=ct(b,g?.ref,t.ref),S=e==="root"?f||p:f,v=Hh(y,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...m,...S&&!l&&{as:S},...S&&l&&{component:S},ref:w},i);return[y,v]}function ZC(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Gh(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=ZC(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Xh(e,t,n,r){return e[t]===void 0?null:Gh(e,t,n,r)}function Wc(){return null}Xh.isRequired=Gh,Wc.isRequired=Wc;const ca=process.env.NODE_ENV==="production"?Wc:Xh;function eE(e){return be("MuiPaper",e)}ye("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const tE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(s,eE,i)},nE=X("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),rn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPaper"}),i=gn(),{className:s,component:a="div",elevation:l=1,square:d=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:l,square:d,variant:p},x=tE(h);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
62
+ `)),c.jsx(nE,{as:a,ownerState:h,className:ue(x.root,s),ref:n,...u,style:{...p==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ta("#fff",Ic(l))}, ${ta("#fff",Ic(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(rn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:nn(ca,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const Tt=o.oneOfType([o.func,o.object]);function eo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
63
63
  `))}return!1}class da{static create(){return new da}static use(){const t=Vh(da.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=oE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function rE(){return da.use()}function oE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Jh(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:d,timeout:p}=e,[u,h]=E.useState(!1),x=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=ue(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),E.useEffect(()=>{if(!l&&d!=null){const f=setTimeout(d,p);return()=>{clearTimeout(f)}}},[d,l,p]),c.jsx("span",{className:x,style:y,children:c.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Jh.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const qt=ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rc=550,iE=80,sE=Gn`
64
64
  0% {
65
65
  transform: scale(0);
@@ -133,7 +133,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
133
133
  animation-iteration-count: infinite;
134
134
  animation-delay: 200ms;
135
135
  }
136
- `,Qh=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[d,p]=E.useState([]),u=E.useRef(0),h=E.useRef(null);E.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const x=E.useRef(!1),y=vr(),g=E.useRef(null),f=E.useRef(null),m=E.useCallback(v=>{const{pulsate:C,rippleX:P,rippleY:O,rippleSize:A,cb:k}=v;p(L=>[...L,c.jsx(dE,{classes:{ripple:ue(s.ripple,qt.ripple),rippleVisible:ue(s.rippleVisible,qt.rippleVisible),ripplePulsate:ue(s.ripplePulsate,qt.ripplePulsate),child:ue(s.child,qt.child),childLeaving:ue(s.childLeaving,qt.childLeaving),childPulsate:ue(s.childPulsate,qt.childPulsate)},timeout:Rc,pulsate:C,rippleX:P,rippleY:O,rippleSize:A},u.current)]),u.current+=1,h.current=k},[s]),b=E.useCallback((v={},C={},P=()=>{})=>{const{pulsate:O=!1,center:A=i||C.pulsate,fakeElement:k=!1}=C;if(v?.type==="mousedown"&&x.current){x.current=!1;return}v?.type==="touchstart"&&(x.current=!0);const L=k?null:f.current,D=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,N,F;if(A||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)T=Math.round(D.width/2),N=Math.round(D.height/2);else{const{clientX:W,clientY:_}=v.touches&&v.touches.length>0?v.touches[0]:v;T=Math.round(W-D.left),N=Math.round(_-D.top)}if(A)F=Math.sqrt((2*D.width**2+D.height**2)/3),F%2===0&&(F+=1);else{const W=Math.max(Math.abs((L?L.clientWidth:0)-T),T)*2+2,_=Math.max(Math.abs((L?L.clientHeight:0)-N),N)*2+2;F=Math.sqrt(W**2+_**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:O,rippleX:T,rippleY:N,rippleSize:F,cb:P})},y.start(iE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:O,rippleX:T,rippleY:N,rippleSize:F,cb:P})},[i,m,y]),w=E.useCallback(()=>{b({},{pulsate:!0})},[b]),S=E.useCallback((v,C)=>{if(y.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{S(v,C)});return}g.current=null,p(P=>P.length>0?P.slice(1):P),h.current=C},[y]);return E.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),c.jsx(cE,{className:ue(qt.root,s.root,a),ref:f,...l,children:c.jsx(jc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Qh.propTypes={center:o.bool,classes:o.object,className:o.string});function uE(e){return be("MuiButtonBase",e)}const pE=ye("MuiButtonBase",["root","disabled","focusVisible"]),fE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ve({root:["root",t&&"disabled",n&&"focusVisible"]},uE,i);return n&&r&&(a.root+=` ${r}`),a},hE=X("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ci=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:x=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:b,onDragLeave:w,onFocus:S,onFocusVisible:v,onKeyDown:C,onKeyUp:P,onMouseDown:O,onMouseLeave:A,onMouseUp:k,onTouchEnd:L,onTouchMove:D,onTouchStart:T,tabIndex:N=0,TouchRippleProps:F,touchRippleRef:W,type:_,...j}=r,M=E.useRef(null),B=rE(),$=ct(B.ref,W),[V,G]=E.useState(!1);p&&V&&G(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{G(!0),M.current.focus()}}),[]);const K=B.shouldMount&&!u&&!p;E.useEffect(()=>{V&&x&&!u&&B.pulsate()},[u,x,V,B]);const Z=Ln(B,"start",O,h),Q=Ln(B,"stop",b,h),J=Ln(B,"stop",w,h),ae=Ln(B,"stop",k,h),se=Ln(B,"stop",ce=>{V&&ce.preventDefault(),A&&A(ce)},h),le=Ln(B,"start",T,h),q=Ln(B,"stop",L,h),ne=Ln(B,"stop",D,h),U=Ln(B,"stop",ce=>{eo(ce.target)||G(!1),f&&f(ce)},!1),de=Et(ce=>{M.current||(M.current=ce.currentTarget),eo(ce.target)&&(G(!0),v&&v(ce)),S&&S(ce)}),re=()=>{const ce=M.current;return d&&d!=="button"&&!(ce.tagName==="A"&&ce.href)},oe=Et(ce=>{x&&!ce.repeat&&V&&ce.key===" "&&B.stop(ce,()=>{B.start(ce)}),ce.target===ce.currentTarget&&re()&&ce.key===" "&&ce.preventDefault(),C&&C(ce),ce.target===ce.currentTarget&&re()&&ce.key==="Enter"&&!p&&(ce.preventDefault(),m&&m(ce))}),pe=Et(ce=>{x&&ce.key===" "&&V&&!ce.defaultPrevented&&B.stop(ce,()=>{B.pulsate(ce)}),P&&P(ce),m&&ce.target===ce.currentTarget&&re()&&ce.key===" "&&!ce.defaultPrevented&&m(ce)});let he=d;he==="button"&&(j.href||j.to)&&(he=g);const we={};if(he==="button"){const ce=!!j.formAction;we.type=_===void 0&&!ce?"button":_,we.disabled=p}else!j.href&&!j.to&&(we.role="button"),p&&(we["aria-disabled"]=p);const Ae=ct(n,M),De={...r,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:x,tabIndex:N,focusVisible:V},Me=fE(De);return c.jsxs(hE,{as:he,className:ue(Me.root,l),ownerState:De,onBlur:U,onClick:m,onContextMenu:Q,onFocus:de,onKeyDown:oe,onKeyUp:pe,onMouseDown:Z,onMouseLeave:se,onMouseUp:ae,onDragLeave:J,onTouchEnd:q,onTouchMove:ne,onTouchStart:le,ref:Ae,tabIndex:p?-1:N,type:_,...we,...j,children:[a,K?c.jsx(Qh,{ref:$,center:s,...F}):null]})});function Ln(e,t,n,r=!1){return Et(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(ci.propTypes={action:Tt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Bc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function gE(e){return typeof e.main=="string"}function mE(e,t=[]){if(!gE(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ot(e=[]){return([,t])=>t&&mE(t,e)}function yE(e){return be("MuiCircularProgress",e)}ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const on=44,Vc=Gn`
136
+ `,Qh=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[d,p]=E.useState([]),u=E.useRef(0),h=E.useRef(null);E.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const x=E.useRef(!1),y=vr(),g=E.useRef(null),f=E.useRef(null),m=E.useCallback(v=>{const{pulsate:C,rippleX:P,rippleY:O,rippleSize:A,cb:k}=v;p(L=>[...L,c.jsx(dE,{classes:{ripple:ue(s.ripple,qt.ripple),rippleVisible:ue(s.rippleVisible,qt.rippleVisible),ripplePulsate:ue(s.ripplePulsate,qt.ripplePulsate),child:ue(s.child,qt.child),childLeaving:ue(s.childLeaving,qt.childLeaving),childPulsate:ue(s.childPulsate,qt.childPulsate)},timeout:Rc,pulsate:C,rippleX:P,rippleY:O,rippleSize:A},u.current)]),u.current+=1,h.current=k},[s]),b=E.useCallback((v={},C={},P=()=>{})=>{const{pulsate:O=!1,center:A=i||C.pulsate,fakeElement:k=!1}=C;if(v?.type==="mousedown"&&x.current){x.current=!1;return}v?.type==="touchstart"&&(x.current=!0);const L=k?null:f.current,D=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,I,F;if(A||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)T=Math.round(D.width/2),I=Math.round(D.height/2);else{const{clientX:W,clientY:_}=v.touches&&v.touches.length>0?v.touches[0]:v;T=Math.round(W-D.left),I=Math.round(_-D.top)}if(A)F=Math.sqrt((2*D.width**2+D.height**2)/3),F%2===0&&(F+=1);else{const W=Math.max(Math.abs((L?L.clientWidth:0)-T),T)*2+2,_=Math.max(Math.abs((L?L.clientHeight:0)-I),I)*2+2;F=Math.sqrt(W**2+_**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:O,rippleX:T,rippleY:I,rippleSize:F,cb:P})},y.start(iE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:O,rippleX:T,rippleY:I,rippleSize:F,cb:P})},[i,m,y]),w=E.useCallback(()=>{b({},{pulsate:!0})},[b]),S=E.useCallback((v,C)=>{if(y.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{S(v,C)});return}g.current=null,p(P=>P.length>0?P.slice(1):P),h.current=C},[y]);return E.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),c.jsx(cE,{className:ue(qt.root,s.root,a),ref:f,...l,children:c.jsx(jc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Qh.propTypes={center:o.bool,classes:o.object,className:o.string});function uE(e){return be("MuiButtonBase",e)}const pE=ye("MuiButtonBase",["root","disabled","focusVisible"]),fE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ve({root:["root",t&&"disabled",n&&"focusVisible"]},uE,i);return n&&r&&(a.root+=` ${r}`),a},hE=X("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${pE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ci=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:x=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:b,onDragLeave:w,onFocus:S,onFocusVisible:v,onKeyDown:C,onKeyUp:P,onMouseDown:O,onMouseLeave:A,onMouseUp:k,onTouchEnd:L,onTouchMove:D,onTouchStart:T,tabIndex:I=0,TouchRippleProps:F,touchRippleRef:W,type:_,...j}=r,M=E.useRef(null),B=rE(),$=ct(B.ref,W),[V,G]=E.useState(!1);p&&V&&G(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{G(!0),M.current.focus()}}),[]);const K=B.shouldMount&&!u&&!p;E.useEffect(()=>{V&&x&&!u&&B.pulsate()},[u,x,V,B]);const Z=jn(B,"start",O,h),Q=jn(B,"stop",b,h),J=jn(B,"stop",w,h),ae=jn(B,"stop",k,h),se=jn(B,"stop",ce=>{V&&ce.preventDefault(),A&&A(ce)},h),le=jn(B,"start",T,h),q=jn(B,"stop",L,h),ne=jn(B,"stop",D,h),U=jn(B,"stop",ce=>{eo(ce.target)||G(!1),f&&f(ce)},!1),de=Et(ce=>{M.current||(M.current=ce.currentTarget),eo(ce.target)&&(G(!0),v&&v(ce)),S&&S(ce)}),re=()=>{const ce=M.current;return d&&d!=="button"&&!(ce.tagName==="A"&&ce.href)},oe=Et(ce=>{x&&!ce.repeat&&V&&ce.key===" "&&B.stop(ce,()=>{B.start(ce)}),ce.target===ce.currentTarget&&re()&&ce.key===" "&&ce.preventDefault(),C&&C(ce),ce.target===ce.currentTarget&&re()&&ce.key==="Enter"&&!p&&(ce.preventDefault(),m&&m(ce))}),pe=Et(ce=>{x&&ce.key===" "&&V&&!ce.defaultPrevented&&B.stop(ce,()=>{B.pulsate(ce)}),P&&P(ce),m&&ce.target===ce.currentTarget&&re()&&ce.key===" "&&!ce.defaultPrevented&&m(ce)});let he=d;he==="button"&&(j.href||j.to)&&(he=g);const we={};if(he==="button"){const ce=!!j.formAction;we.type=_===void 0&&!ce?"button":_,we.disabled=p}else!j.href&&!j.to&&(we.role="button"),p&&(we["aria-disabled"]=p);const Ae=ct(n,M),De={...r,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:x,tabIndex:I,focusVisible:V},Me=fE(De);return c.jsxs(hE,{as:he,className:ue(Me.root,l),ownerState:De,onBlur:U,onClick:m,onContextMenu:Q,onFocus:de,onKeyDown:oe,onKeyUp:pe,onMouseDown:Z,onMouseLeave:se,onMouseUp:ae,onDragLeave:J,onTouchEnd:q,onTouchMove:ne,onTouchStart:le,ref:Ae,tabIndex:p?-1:I,type:_,...we,...j,children:[a,K?c.jsx(Qh,{ref:$,center:s,...F}):null]})});function jn(e,t,n,r=!1){return Et(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(ci.propTypes={action:Tt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Bc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function gE(e){return typeof e.main=="string"}function mE(e,t=[]){if(!gE(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ot(e=[]){return([,t])=>t&&mE(t,e)}function yE(e){return be("MuiCircularProgress",e)}ye("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const on=44,Vc=Gn`
137
137
  0% {
138
138
  transform: rotate(0deg);
139
139
  }
@@ -161,15 +161,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
161
161
  `:null,vE=typeof Uc!="string"?Kr`
162
162
  animation: ${Uc} 1.4s ease-in-out infinite;
163
163
  `:null,xE=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${ee(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ee(n)}`,i&&"circleDisableShrink"]};return ve(s,yE,t)},SE=X("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:bE||{animation:`${Vc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),wE=X("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),CE=X("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ee(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(me(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:vE||{animation:`${Uc} 1.4s ease-in-out infinite`}}]}))),EE=X("circle",{name:"MuiCircularProgress",slot:"Track"})(me(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ua=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:d=40,style:p,thickness:u=3.6,value:h=0,variant:x="indeterminate",...y}=r,g={...r,color:s,disableShrink:a,size:d,thickness:u,value:h,variant:x,enableTrackSlot:l},f=xE(g),m={},b={},w={};if(x==="determinate"){const S=2*Math.PI*((on-u)/2);m.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*S).toFixed(3)}px`,b.transform="rotate(-90deg)"}return c.jsx(SE,{className:ue(f.root,i),style:{width:d,height:d,...b,...p},ownerState:g,ref:n,role:"progressbar",...w,...y,children:c.jsxs(wE,{className:f.svg,ownerState:g,viewBox:`${on/2} ${on/2} ${on} ${on}`,children:[l?c.jsx(EE,{className:f.track,ownerState:g,cx:on,cy:on,r:(on-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,c.jsx(CE,{className:f.circle,style:m,ownerState:g,cx:on,cy:on,r:(on-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(ua.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:nn(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function TE(e){return be("MuiIconButton",e)}const Zh=ye("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),PE=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${ee(r)}`,i&&`edge${ee(i)}`,`size${ee(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ve(l,TE,t)},OE=X(ci,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ee(n.color)}`],n.edge&&t[`edge${ee(n.edge)}`],t[`size${ee(n.size)}`]]}})(me(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),me(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Zh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Zh.loading}`]:{color:"transparent"}}))),kE=X("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),it=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:l="default",disabled:d=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:x=null,loadingIndicator:y,...g}=r,f=gr(h),m=y??c.jsx(ua,{"aria-labelledby":f,color:"inherit",size:16}),b={...r,edge:i,color:l,disabled:d,disableFocusRipple:p,loading:x,loadingIndicator:m,size:u},w=PE(b);return c.jsxs(OE,{id:x?f:h,className:ue(w.root,a),centerRipple:!0,focusRipple:!p,disabled:d||x,ref:n,...g,ownerState:b,children:[typeof x=="boolean"&&c.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:c.jsx(kE,{className:w.loadingIndicator,ownerState:b,children:x&&m})}),s]})});process.env.NODE_ENV!=="production"&&(it.propTypes={children:nn(o.node,e=>E.Children.toArray(e.children).some(n=>E.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
164
- `)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function IE(e){return be("MuiTypography",e)}const eg=ye("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),NE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},AE=FC(),ME=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${ee(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ve(l,IE,a)},FE=X("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ee(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(me(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ee(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),tg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R=E.forwardRef(function(t,n){const{color:r,...i}=Se({props:t,name:"MuiTypography"}),s=!NE[r],a=AE({...i,...s&&{color:r}}),{align:l="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:x=!1,variant:y="body1",variantMapping:g=tg,...f}=a,m={...a,align:l,color:r,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:x,variant:y,variantMapping:g},b=p||(x?"p":g[y]||tg[y])||"span",w=ME(m);return c.jsx(FE,{as:b,ref:n,className:ue(w.root,d),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(R.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function jn(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Ft="top",Yt="bottom",Kt="right",_t="left",Hc="auto",di=[Ft,Yt,Kt,_t],to="start",ui="end",_E="clippingParents",ng="viewport",pi="popper",DE="reference",rg=di.reduce(function(e,t){return e.concat([t+"-"+to,t+"-"+ui])},[]),og=[].concat(di,[Hc]).reduce(function(e,t){return e.concat([t,t+"-"+to,t+"-"+ui])},[]),$E="beforeRead",zE="read",LE="afterRead",jE="beforeMain",BE="main",WE="afterMain",RE="beforeWrite",VE="write",UE="afterWrite",HE=[$E,zE,LE,jE,BE,WE,RE,VE,UE];function yn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sr(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Gt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qE(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Gt(s)||!yn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function YE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(d,p){return d[p]="",d},{});!Gt(i)||!yn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const KE={name:"applyStyles",enabled:!0,phase:"write",fn:qE,effect:YE,requires:["computeStyles"]};function bn(e){return e.split("-")[0]}var wr=Math.max,pa=Math.min,no=Math.round;function Yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(Yc())}function ro(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Gt(e)&&(i=e.offsetWidth>0&&no(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&no(r.height)/e.offsetHeight||1);var a=Sr(e)?Wt(e):window,l=a.visualViewport,d=!ig()&&n,p=(r.left+(d&&l?l.offsetLeft:0))/i,u=(r.top+(d&&l?l.offsetTop:0))/s,h=r.width/i,x=r.height/s;return{width:h,height:x,top:u,right:p+h,bottom:u+x,left:p,x:p,y:u}}function Kc(e){var t=ro(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bn(e){return Wt(e).getComputedStyle(e)}function GE(e){return["table","td","th"].indexOf(yn(e))>=0}function er(e){return((Sr(e)?e.ownerDocument:e.document)||window.document).documentElement}function fa(e){return yn(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||er(e)}function ag(e){return!Gt(e)||Bn(e).position==="fixed"?null:e.offsetParent}function XE(e){var t=/firefox/i.test(Yc()),n=/Trident/i.test(Yc());if(n&&Gt(e)){var r=Bn(e);if(r.position==="fixed")return null}var i=fa(e);for(qc(i)&&(i=i.host);Gt(i)&&["html","body"].indexOf(yn(i))<0;){var s=Bn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function fi(e){for(var t=Wt(e),n=ag(e);n&&GE(n)&&Bn(n).position==="static";)n=ag(n);return n&&(yn(n)==="html"||yn(n)==="body"&&Bn(n).position==="static")?t:n||XE(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hi(e,t,n){return wr(e,pa(t,n))}function JE(e,t,n){var r=hi(e,t,n);return r>n?n:r}function lg(){return{top:0,right:0,bottom:0,left:0}}function cg(e){return Object.assign({},lg(),e)}function dg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cg(typeof t!="number"?t:dg(t,di))};function ZE(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=bn(n.placement),d=Gc(l),p=[_t,Kt].indexOf(l)>=0,u=p?"height":"width";if(!(!s||!a)){var h=QE(i.padding,n),x=Kc(s),y=d==="y"?Ft:_t,g=d==="y"?Yt:Kt,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],b=fi(s),w=b?d==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-m/2,v=h[y],C=w-x[u]-h[g],P=w/2-x[u]/2+S,O=hi(v,P,C),A=d;n.modifiersData[r]=(t={},t[A]=O,t.centerOffset=O-P,t)}}function eT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sg(t.elements.popper,i)&&(t.elements.arrow=i))}const tT={name:"arrow",enabled:!0,phase:"main",fn:ZE,effect:eT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oo(e){return e.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:no(n*i)/i||0,y:no(r*i)/i||0}}function ug(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,x=a.x,y=x===void 0?0:x,g=a.y,f=g===void 0?0:g,m=typeof u=="function"?u({x:y,y:f}):{x:y,y:f};y=m.x,f=m.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=_t,v=Ft,C=window;if(p){var P=fi(n),O="clientHeight",A="clientWidth";if(P===Wt(n)&&(P=er(n),Bn(P).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),P=P,i===Ft||(i===_t||i===Kt)&&s===ui){v=Yt;var k=h&&P===C&&C.visualViewport?C.visualViewport.height:P[O];f-=k-r.height,f*=d?1:-1}if(i===_t||(i===Ft||i===Yt)&&s===ui){S=Kt;var L=h&&P===C&&C.visualViewport?C.visualViewport.width:P[A];y-=L-r.width,y*=d?1:-1}}var D=Object.assign({position:l},p&&nT),T=u===!0?rT({x:y,y:f},Wt(n)):{x:y,y:f};if(y=T.x,f=T.y,d){var N;return Object.assign({},D,(N={},N[v]=w?"0":"",N[S]=b?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",N))}return Object.assign({},D,(t={},t[v]=w?f+"px":"",t[S]=b?y+"px":"",t.transform="",t))}function oT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,d=l===void 0?!0:l,p={placement:bn(t.placement),variation:oo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ug(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ug(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var ha={passive:!0};function sT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,d=Wt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,ha)}),l&&d.addEventListener("resize",n.update,ha),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,ha)}),l&&d.removeEventListener("resize",n.update,ha)}}const aT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sT,data:{}};var lT={left:"right",right:"left",bottom:"top",top:"bottom"};function ga(e){return e.replace(/left|right|bottom|top/g,function(t){return lT[t]})}var cT={start:"end",end:"start"};function pg(e){return e.replace(/start|end/g,function(t){return cT[t]})}function Xc(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jc(e){return ro(er(e)).left+Xc(e).scrollLeft}function dT(e,t){var n=Wt(e),r=er(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,d=0;if(i){s=i.width,a=i.height;var p=ig();(p||!p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:l+Jc(e),y:d}}function uT(e){var t,n=er(e),r=Xc(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Jc(e),d=-r.scrollTop;return Bn(i||n).direction==="rtl"&&(l+=wr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:d}}function Qc(e){var t=Bn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function fg(e){return["html","body","#document"].indexOf(yn(e))>=0?e.ownerDocument.body:Gt(e)&&Qc(e)?e:fg(fa(e))}function gi(e,t){var n;t===void 0&&(t=[]);var r=fg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Wt(r),a=i?[s].concat(s.visualViewport||[],Qc(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(gi(fa(a)))}function Zc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pT(e,t){var n=ro(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hg(e,t,n){return t===ng?Zc(dT(e,n)):Sr(t)?pT(t,n):Zc(uT(er(e)))}function fT(e){var t=gi(fa(e)),n=["absolute","fixed"].indexOf(Bn(e).position)>=0,r=n&&Gt(e)?fi(e):e;return Sr(r)?t.filter(function(i){return Sr(i)&&sg(i,r)&&yn(i)!=="body"}):[]}function hT(e,t,n,r){var i=t==="clippingParents"?fT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(d,p){var u=hg(e,p,r);return d.top=wr(u.top,d.top),d.right=pa(u.right,d.right),d.bottom=pa(u.bottom,d.bottom),d.left=wr(u.left,d.left),d},hg(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function gg(e){var t=e.reference,n=e.element,r=e.placement,i=r?bn(r):null,s=r?oo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(i){case Ft:d={x:a,y:t.y-n.height};break;case Yt:d={x:a,y:t.y+t.height};break;case Kt:d={x:t.x+t.width,y:l};break;case _t:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var p=i?Gc(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case to:d[p]=d[p]-(t[u]/2-n[u]/2);break;case ui:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function mi(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,d=l===void 0?_E:l,p=n.rootBoundary,u=p===void 0?ng:p,h=n.elementContext,x=h===void 0?pi:h,y=n.altBoundary,g=y===void 0?!1:y,f=n.padding,m=f===void 0?0:f,b=cg(typeof m!="number"?m:dg(m,di)),w=x===pi?DE:pi,S=e.rects.popper,v=e.elements[g?w:x],C=hT(Sr(v)?v:v.contextElement||er(e.elements.popper),d,u,a),P=ro(e.elements.reference),O=gg({reference:P,element:S,placement:i}),A=Zc(Object.assign({},S,O)),k=x===pi?A:P,L={top:C.top-k.top+b.top,bottom:k.bottom-C.bottom+b.bottom,left:C.left-k.left+b.left,right:k.right-C.right+b.right},D=e.modifiersData.offset;if(x===pi&&D){var T=D[i];Object.keys(L).forEach(function(N){var F=[Kt,Yt].indexOf(N)>=0?1:-1,W=[Ft,Yt].indexOf(N)>=0?"y":"x";L[N]+=T[W]*F})}return L}function gT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?og:d,u=oo(r),h=u?l?rg:rg.filter(function(g){return oo(g)===u}):di,x=h.filter(function(g){return p.indexOf(g)>=0});x.length===0&&(x=h);var y=x.reduce(function(g,f){return g[f]=mi(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[bn(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function mT(e){if(bn(e)===Hc)return[];var t=ga(e);return[pg(e),t,pg(t)]}function yT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,d=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,x=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,f=n.allowedAutoPlacements,m=t.options.placement,b=bn(m),w=b===m,S=d||(w||!g?[ga(m)]:mT(m)),v=[m].concat(S).reduce(function(Z,Q){return Z.concat(bn(Q)===Hc?gT(t,{placement:Q,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):Q)},[]),C=t.rects.reference,P=t.rects.popper,O=new Map,A=!0,k=v[0],L=0;L<v.length;L++){var D=v[L],T=bn(D),N=oo(D)===to,F=[Ft,Yt].indexOf(T)>=0,W=F?"width":"height",_=mi(t,{placement:D,boundary:u,rootBoundary:h,altBoundary:x,padding:p}),j=F?N?Kt:_t:N?Yt:Ft;C[W]>P[W]&&(j=ga(j));var M=ga(j),B=[];if(s&&B.push(_[T]<=0),l&&B.push(_[j]<=0,_[M]<=0),B.every(function(Z){return Z})){k=D,A=!1;break}O.set(D,B)}if(A)for(var $=g?3:1,V=function(Q){var J=v.find(function(ae){var se=O.get(ae);if(se)return se.slice(0,Q).every(function(le){return le})});if(J)return k=J,"break"},G=$;G>0;G--){var K=V(G);if(K==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const bT={name:"flip",enabled:!0,phase:"main",fn:yT,requiresIfExists:["offset"],data:{_skip:!1}};function mg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yg(e){return[Ft,Kt,Yt,_t].some(function(t){return e[t]>=0})}function vT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=mi(t,{elementContext:"reference"}),l=mi(t,{altBoundary:!0}),d=mg(a,r),p=mg(l,i,s),u=yg(d),h=yg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const xT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vT};function ST(e,t,n){var r=bn(e),i=[_t,Ft].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[_t,Kt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function wT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=og.reduce(function(u,h){return u[h]=ST(h,t.rects,s),u},{}),l=a[t.placement],d=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const CT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wT};function ET(e){var t=e.state,n=e.name;t.modifiersData[n]=gg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const TT={name:"popperOffsets",enabled:!0,phase:"read",fn:ET,data:{}};function PT(e){return e==="x"?"y":"x"}function OT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,x=n.tether,y=x===void 0?!0:x,g=n.tetherOffset,f=g===void 0?0:g,m=mi(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),b=bn(t.placement),w=oo(t.placement),S=!w,v=Gc(b),C=PT(v),P=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(P){if(s){var N,F=v==="y"?Ft:_t,W=v==="y"?Yt:Kt,_=v==="y"?"height":"width",j=P[v],M=j+m[F],B=j-m[W],$=y?-A[_]/2:0,V=w===to?O[_]:A[_],G=w===to?-A[_]:-O[_],K=t.elements.arrow,Z=y&&K?Kc(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lg(),J=Q[F],ae=Q[W],se=hi(0,O[_],Z[_]),le=S?O[_]/2-$-se-J-L.mainAxis:V-se-J-L.mainAxis,q=S?-O[_]/2+$+se+ae+L.mainAxis:G+se+ae+L.mainAxis,ne=t.elements.arrow&&fi(t.elements.arrow),U=ne?v==="y"?ne.clientTop||0:ne.clientLeft||0:0,de=(N=D?.[v])!=null?N:0,re=j+le-de-U,oe=j+q-de,pe=hi(y?pa(M,re):M,j,y?wr(B,oe):B);P[v]=pe,T[v]=pe-j}if(l){var he,we=v==="x"?Ft:_t,Ae=v==="x"?Yt:Kt,De=P[C],Me=C==="y"?"height":"width",ce=De+m[we],Xe=De-m[Ae],Ie=[Ft,_t].indexOf(b)!==-1,ie=(he=D?.[C])!=null?he:0,te=Ie?ce:De-O[Me]-A[Me]-ie+L.altAxis,fe=Ie?De+O[Me]+A[Me]-ie-L.altAxis:Xe,Ce=y&&Ie?JE(te,De,fe):hi(y?te:ce,De,y?fe:Xe);P[C]=Ce,T[C]=Ce-De}t.modifiersData[r]=T}}const kT={name:"preventOverflow",enabled:!0,phase:"main",fn:OT,requiresIfExists:["offset"]};function IT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function NT(e){return e===Wt(e)||!Gt(e)?Xc(e):IT(e)}function AT(e){var t=e.getBoundingClientRect(),n=no(t.width)/e.offsetWidth||1,r=no(t.height)/e.offsetHeight||1;return n!==1||r!==1}function MT(e,t,n){n===void 0&&(n=!1);var r=Gt(t),i=Gt(t)&&AT(t),s=er(t),a=ro(e,i,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((yn(t)!=="body"||Qc(s))&&(l=NT(t)),Gt(t)?(d=ro(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Jc(s))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function FT(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function _T(e){var t=FT(e);return HE.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function DT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $T(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var bg={placement:"bottom",modifiers:[],strategy:"absolute"};function vg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function zT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?bg:i;return function(l,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},bg,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},h=[],x=!1,y={state:u,setOptions:function(b){var w=typeof b=="function"?b(u.options):b;f(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:Sr(l)?gi(l):l.contextElement?gi(l.contextElement):[],popper:gi(d)};var S=_T($T([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(v){return v.enabled}),g(),y.update()},forceUpdate:function(){if(!x){var b=u.elements,w=b.reference,S=b.popper;if(vg(w,S)){u.rects={reference:MT(w,fi(S),u.options.strategy==="fixed"),popper:Kc(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var C=u.orderedModifiers[v],P=C.fn,O=C.options,A=O===void 0?{}:O,k=C.name;typeof P=="function"&&(u=P({state:u,options:A,name:k,instance:y})||u)}}}},update:DT(function(){return new Promise(function(m){y.forceUpdate(),m(u)})}),destroy:function(){f(),x=!0}};if(!vg(l,d))return y;y.setOptions(p).then(function(m){!x&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var b=m.name,w=m.options,S=w===void 0?{}:w,v=m.effect;if(typeof v=="function"){var C=v({state:u,name:b,instance:y,options:S}),P=function(){};h.push(C||P)}})}function f(){h.forEach(function(m){return m()}),h=[]}return y}}var LT=[aT,TT,iT,KE,CT,bT,kT,tT,xT],jT=zT({defaultModifiers:LT});function vn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:qh(n,r),{props:l,internalRef:d}=Kh({...s,externalSlotProps:a}),p=ct(d,a?.ref,e.additionalProps?.ref);return Hh(t,{...l,ref:p},r)}function Cr(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function BT(e){return typeof e=="function"?e():e}const yi=E.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=E.useState(null),d=ct(E.isValidElement(r)?Cr(r):null,n);if(Ht(()=>{s||l(BT(i)||document.body)},[i,s]),Ht(()=>{if(a&&!s)return _h(n,a),()=>{_h(n,null)}},[n,a,s]),s){if(E.isValidElement(r)){const p={ref:d};return E.cloneElement(r,p)}return r}return a&&ey.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(yi.propTypes={children:o.node,container:o.oneOfType([jn,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(yi.propTypes=Ec(yi.propTypes));function WT(e){return be("MuiPopper",e)}ye("MuiPopper",["root"]);function RT(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function ma(e){return typeof e=="function"?e():e}function ya(e){return e.nodeType!==void 0}function VT(e){return!ya(e)}const UT=e=>{const{classes:t}=e;return ve({root:["root"]},WT,t)},HT={},qT=E.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:x={},slots:y={},TransitionProps:g,ownerState:f,...m}=t,b=E.useRef(null),w=ct(b,n),S=E.useRef(null),v=ct(S,h),C=E.useRef(v);Ht(()=>{C.current=v},[v]),E.useImperativeHandle(h,()=>S.current,[]);const P=RT(p,s),[O,A]=E.useState(P),[k,L]=E.useState(ma(r));E.useEffect(()=>{S.current&&S.current.forceUpdate()}),E.useEffect(()=>{r&&L(ma(r))},[r]),Ht(()=>{if(!k||!d)return;const W=M=>{A(M.placement)};if(process.env.NODE_ENV!=="production"&&k&&ya(k)&&k.nodeType===1){const M=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&M.top===0&&M.left===0&&M.right===0&&M.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
165
- `))}let _=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{W(M)}}];l!=null&&(_=_.concat(l)),u&&u.modifiers!=null&&(_=_.concat(u.modifiers));const j=jT(k,b.current,{placement:P,...u,modifiers:_});return C.current(j),()=>{j.destroy(),C.current(null)}},[k,a,l,d,u,P]);const D={placement:O};g!==null&&(D.TransitionProps=g);const T=UT(t),N=y.root??"div",F=vn({elementType:N,externalSlotProps:x.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:T.root});return c.jsx(N,{...F,children:typeof i=="function"?i(D):i})}),xg=E.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:x=HT,popperRef:y,style:g,transition:f=!1,slotProps:m={},slots:b={},...w}=t,[S,v]=E.useState(!0),C=()=>{v(!1)},P=()=>{v(!0)};if(!d&&!u&&(!f||S))return null;let O;if(s)O=s;else if(r){const L=ma(r);O=L&&ya(L)?ut(L).body:ut(null).body}const A=!u&&d&&(!f||S)?"none":void 0,k=f?{in:u,onEnter:C,onExited:P}:void 0;return c.jsx(yi,{disablePortal:l,container:O,children:c.jsx(qT,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:f?!S:u,placement:h,popperOptions:x,popperRef:y,slotProps:m,slots:b,...w,style:{position:"fixed",top:0,left:0,display:A,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={anchorEl:nn(o.oneOfType([jn,o.object,o.func]),e=>{if(e.open){const t=ma(e.anchorEl);if(t&&ya(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
164
+ `)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function NE(e){return be("MuiTypography",e)}const eg=ye("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),IE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},AE=FC(),ME=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${ee(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ve(l,NE,a)},FE=X("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ee(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(me(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ee(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),tg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R=E.forwardRef(function(t,n){const{color:r,...i}=Se({props:t,name:"MuiTypography"}),s=!IE[r],a=AE({...i,...s&&{color:r}}),{align:l="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:x=!1,variant:y="body1",variantMapping:g=tg,...f}=a,m={...a,align:l,color:r,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:x,variant:y,variantMapping:g},b=p||(x?"p":g[y]||tg[y])||"span",w=ME(m);return c.jsx(FE,{as:b,ref:n,className:ue(w.root,d),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(R.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function Bn(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Ft="top",Yt="bottom",Kt="right",_t="left",Hc="auto",di=[Ft,Yt,Kt,_t],to="start",ui="end",_E="clippingParents",ng="viewport",pi="popper",DE="reference",rg=di.reduce(function(e,t){return e.concat([t+"-"+to,t+"-"+ui])},[]),og=[].concat(di,[Hc]).reduce(function(e,t){return e.concat([t,t+"-"+to,t+"-"+ui])},[]),$E="beforeRead",zE="read",LE="afterRead",jE="beforeMain",BE="main",WE="afterMain",RE="beforeWrite",VE="write",UE="afterWrite",HE=[$E,zE,LE,jE,BE,WE,RE,VE,UE];function yn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sr(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Gt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qE(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Gt(s)||!yn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function YE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(d,p){return d[p]="",d},{});!Gt(i)||!yn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const KE={name:"applyStyles",enabled:!0,phase:"write",fn:qE,effect:YE,requires:["computeStyles"]};function bn(e){return e.split("-")[0]}var wr=Math.max,pa=Math.min,no=Math.round;function Yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(Yc())}function ro(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Gt(e)&&(i=e.offsetWidth>0&&no(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&no(r.height)/e.offsetHeight||1);var a=Sr(e)?Wt(e):window,l=a.visualViewport,d=!ig()&&n,p=(r.left+(d&&l?l.offsetLeft:0))/i,u=(r.top+(d&&l?l.offsetTop:0))/s,h=r.width/i,x=r.height/s;return{width:h,height:x,top:u,right:p+h,bottom:u+x,left:p,x:p,y:u}}function Kc(e){var t=ro(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wn(e){return Wt(e).getComputedStyle(e)}function GE(e){return["table","td","th"].indexOf(yn(e))>=0}function er(e){return((Sr(e)?e.ownerDocument:e.document)||window.document).documentElement}function fa(e){return yn(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||er(e)}function ag(e){return!Gt(e)||Wn(e).position==="fixed"?null:e.offsetParent}function XE(e){var t=/firefox/i.test(Yc()),n=/Trident/i.test(Yc());if(n&&Gt(e)){var r=Wn(e);if(r.position==="fixed")return null}var i=fa(e);for(qc(i)&&(i=i.host);Gt(i)&&["html","body"].indexOf(yn(i))<0;){var s=Wn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function fi(e){for(var t=Wt(e),n=ag(e);n&&GE(n)&&Wn(n).position==="static";)n=ag(n);return n&&(yn(n)==="html"||yn(n)==="body"&&Wn(n).position==="static")?t:n||XE(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hi(e,t,n){return wr(e,pa(t,n))}function JE(e,t,n){var r=hi(e,t,n);return r>n?n:r}function lg(){return{top:0,right:0,bottom:0,left:0}}function cg(e){return Object.assign({},lg(),e)}function dg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cg(typeof t!="number"?t:dg(t,di))};function ZE(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=bn(n.placement),d=Gc(l),p=[_t,Kt].indexOf(l)>=0,u=p?"height":"width";if(!(!s||!a)){var h=QE(i.padding,n),x=Kc(s),y=d==="y"?Ft:_t,g=d==="y"?Yt:Kt,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],b=fi(s),w=b?d==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-m/2,v=h[y],C=w-x[u]-h[g],P=w/2-x[u]/2+S,O=hi(v,P,C),A=d;n.modifiersData[r]=(t={},t[A]=O,t.centerOffset=O-P,t)}}function eT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sg(t.elements.popper,i)&&(t.elements.arrow=i))}const tT={name:"arrow",enabled:!0,phase:"main",fn:ZE,effect:eT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oo(e){return e.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:no(n*i)/i||0,y:no(r*i)/i||0}}function ug(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,x=a.x,y=x===void 0?0:x,g=a.y,f=g===void 0?0:g,m=typeof u=="function"?u({x:y,y:f}):{x:y,y:f};y=m.x,f=m.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=_t,v=Ft,C=window;if(p){var P=fi(n),O="clientHeight",A="clientWidth";if(P===Wt(n)&&(P=er(n),Wn(P).position!=="static"&&l==="absolute"&&(O="scrollHeight",A="scrollWidth")),P=P,i===Ft||(i===_t||i===Kt)&&s===ui){v=Yt;var k=h&&P===C&&C.visualViewport?C.visualViewport.height:P[O];f-=k-r.height,f*=d?1:-1}if(i===_t||(i===Ft||i===Yt)&&s===ui){S=Kt;var L=h&&P===C&&C.visualViewport?C.visualViewport.width:P[A];y-=L-r.width,y*=d?1:-1}}var D=Object.assign({position:l},p&&nT),T=u===!0?rT({x:y,y:f},Wt(n)):{x:y,y:f};if(y=T.x,f=T.y,d){var I;return Object.assign({},D,(I={},I[v]=w?"0":"",I[S]=b?"0":"",I.transform=(C.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",I))}return Object.assign({},D,(t={},t[v]=w?f+"px":"",t[S]=b?y+"px":"",t.transform="",t))}function oT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,d=l===void 0?!0:l,p={placement:bn(t.placement),variation:oo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ug(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ug(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var ha={passive:!0};function sT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,d=Wt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,ha)}),l&&d.addEventListener("resize",n.update,ha),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,ha)}),l&&d.removeEventListener("resize",n.update,ha)}}const aT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sT,data:{}};var lT={left:"right",right:"left",bottom:"top",top:"bottom"};function ga(e){return e.replace(/left|right|bottom|top/g,function(t){return lT[t]})}var cT={start:"end",end:"start"};function pg(e){return e.replace(/start|end/g,function(t){return cT[t]})}function Xc(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jc(e){return ro(er(e)).left+Xc(e).scrollLeft}function dT(e,t){var n=Wt(e),r=er(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,d=0;if(i){s=i.width,a=i.height;var p=ig();(p||!p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:l+Jc(e),y:d}}function uT(e){var t,n=er(e),r=Xc(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Jc(e),d=-r.scrollTop;return Wn(i||n).direction==="rtl"&&(l+=wr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:d}}function Qc(e){var t=Wn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function fg(e){return["html","body","#document"].indexOf(yn(e))>=0?e.ownerDocument.body:Gt(e)&&Qc(e)?e:fg(fa(e))}function gi(e,t){var n;t===void 0&&(t=[]);var r=fg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Wt(r),a=i?[s].concat(s.visualViewport||[],Qc(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(gi(fa(a)))}function Zc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pT(e,t){var n=ro(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hg(e,t,n){return t===ng?Zc(dT(e,n)):Sr(t)?pT(t,n):Zc(uT(er(e)))}function fT(e){var t=gi(fa(e)),n=["absolute","fixed"].indexOf(Wn(e).position)>=0,r=n&&Gt(e)?fi(e):e;return Sr(r)?t.filter(function(i){return Sr(i)&&sg(i,r)&&yn(i)!=="body"}):[]}function hT(e,t,n,r){var i=t==="clippingParents"?fT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(d,p){var u=hg(e,p,r);return d.top=wr(u.top,d.top),d.right=pa(u.right,d.right),d.bottom=pa(u.bottom,d.bottom),d.left=wr(u.left,d.left),d},hg(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function gg(e){var t=e.reference,n=e.element,r=e.placement,i=r?bn(r):null,s=r?oo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(i){case Ft:d={x:a,y:t.y-n.height};break;case Yt:d={x:a,y:t.y+t.height};break;case Kt:d={x:t.x+t.width,y:l};break;case _t:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var p=i?Gc(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case to:d[p]=d[p]-(t[u]/2-n[u]/2);break;case ui:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function mi(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,d=l===void 0?_E:l,p=n.rootBoundary,u=p===void 0?ng:p,h=n.elementContext,x=h===void 0?pi:h,y=n.altBoundary,g=y===void 0?!1:y,f=n.padding,m=f===void 0?0:f,b=cg(typeof m!="number"?m:dg(m,di)),w=x===pi?DE:pi,S=e.rects.popper,v=e.elements[g?w:x],C=hT(Sr(v)?v:v.contextElement||er(e.elements.popper),d,u,a),P=ro(e.elements.reference),O=gg({reference:P,element:S,placement:i}),A=Zc(Object.assign({},S,O)),k=x===pi?A:P,L={top:C.top-k.top+b.top,bottom:k.bottom-C.bottom+b.bottom,left:C.left-k.left+b.left,right:k.right-C.right+b.right},D=e.modifiersData.offset;if(x===pi&&D){var T=D[i];Object.keys(L).forEach(function(I){var F=[Kt,Yt].indexOf(I)>=0?1:-1,W=[Ft,Yt].indexOf(I)>=0?"y":"x";L[I]+=T[W]*F})}return L}function gT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?og:d,u=oo(r),h=u?l?rg:rg.filter(function(g){return oo(g)===u}):di,x=h.filter(function(g){return p.indexOf(g)>=0});x.length===0&&(x=h);var y=x.reduce(function(g,f){return g[f]=mi(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[bn(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function mT(e){if(bn(e)===Hc)return[];var t=ga(e);return[pg(e),t,pg(t)]}function yT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,d=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,x=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,f=n.allowedAutoPlacements,m=t.options.placement,b=bn(m),w=b===m,S=d||(w||!g?[ga(m)]:mT(m)),v=[m].concat(S).reduce(function(Z,Q){return Z.concat(bn(Q)===Hc?gT(t,{placement:Q,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):Q)},[]),C=t.rects.reference,P=t.rects.popper,O=new Map,A=!0,k=v[0],L=0;L<v.length;L++){var D=v[L],T=bn(D),I=oo(D)===to,F=[Ft,Yt].indexOf(T)>=0,W=F?"width":"height",_=mi(t,{placement:D,boundary:u,rootBoundary:h,altBoundary:x,padding:p}),j=F?I?Kt:_t:I?Yt:Ft;C[W]>P[W]&&(j=ga(j));var M=ga(j),B=[];if(s&&B.push(_[T]<=0),l&&B.push(_[j]<=0,_[M]<=0),B.every(function(Z){return Z})){k=D,A=!1;break}O.set(D,B)}if(A)for(var $=g?3:1,V=function(Q){var J=v.find(function(ae){var se=O.get(ae);if(se)return se.slice(0,Q).every(function(le){return le})});if(J)return k=J,"break"},G=$;G>0;G--){var K=V(G);if(K==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const bT={name:"flip",enabled:!0,phase:"main",fn:yT,requiresIfExists:["offset"],data:{_skip:!1}};function mg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yg(e){return[Ft,Kt,Yt,_t].some(function(t){return e[t]>=0})}function vT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=mi(t,{elementContext:"reference"}),l=mi(t,{altBoundary:!0}),d=mg(a,r),p=mg(l,i,s),u=yg(d),h=yg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const xT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vT};function ST(e,t,n){var r=bn(e),i=[_t,Ft].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[_t,Kt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function wT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=og.reduce(function(u,h){return u[h]=ST(h,t.rects,s),u},{}),l=a[t.placement],d=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const CT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wT};function ET(e){var t=e.state,n=e.name;t.modifiersData[n]=gg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const TT={name:"popperOffsets",enabled:!0,phase:"read",fn:ET,data:{}};function PT(e){return e==="x"?"y":"x"}function OT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,x=n.tether,y=x===void 0?!0:x,g=n.tetherOffset,f=g===void 0?0:g,m=mi(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),b=bn(t.placement),w=oo(t.placement),S=!w,v=Gc(b),C=PT(v),P=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(P){if(s){var I,F=v==="y"?Ft:_t,W=v==="y"?Yt:Kt,_=v==="y"?"height":"width",j=P[v],M=j+m[F],B=j-m[W],$=y?-A[_]/2:0,V=w===to?O[_]:A[_],G=w===to?-A[_]:-O[_],K=t.elements.arrow,Z=y&&K?Kc(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lg(),J=Q[F],ae=Q[W],se=hi(0,O[_],Z[_]),le=S?O[_]/2-$-se-J-L.mainAxis:V-se-J-L.mainAxis,q=S?-O[_]/2+$+se+ae+L.mainAxis:G+se+ae+L.mainAxis,ne=t.elements.arrow&&fi(t.elements.arrow),U=ne?v==="y"?ne.clientTop||0:ne.clientLeft||0:0,de=(I=D?.[v])!=null?I:0,re=j+le-de-U,oe=j+q-de,pe=hi(y?pa(M,re):M,j,y?wr(B,oe):B);P[v]=pe,T[v]=pe-j}if(l){var he,we=v==="x"?Ft:_t,Ae=v==="x"?Yt:Kt,De=P[C],Me=C==="y"?"height":"width",ce=De+m[we],Xe=De-m[Ae],Ne=[Ft,_t].indexOf(b)!==-1,ie=(he=D?.[C])!=null?he:0,te=Ne?ce:De-O[Me]-A[Me]-ie+L.altAxis,fe=Ne?De+O[Me]+A[Me]-ie-L.altAxis:Xe,Ce=y&&Ne?JE(te,De,fe):hi(y?te:ce,De,y?fe:Xe);P[C]=Ce,T[C]=Ce-De}t.modifiersData[r]=T}}const kT={name:"preventOverflow",enabled:!0,phase:"main",fn:OT,requiresIfExists:["offset"]};function NT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IT(e){return e===Wt(e)||!Gt(e)?Xc(e):NT(e)}function AT(e){var t=e.getBoundingClientRect(),n=no(t.width)/e.offsetWidth||1,r=no(t.height)/e.offsetHeight||1;return n!==1||r!==1}function MT(e,t,n){n===void 0&&(n=!1);var r=Gt(t),i=Gt(t)&&AT(t),s=er(t),a=ro(e,i,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((yn(t)!=="body"||Qc(s))&&(l=IT(t)),Gt(t)?(d=ro(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Jc(s))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function FT(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function _T(e){var t=FT(e);return HE.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function DT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $T(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var bg={placement:"bottom",modifiers:[],strategy:"absolute"};function vg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function zT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?bg:i;return function(l,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},bg,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},h=[],x=!1,y={state:u,setOptions:function(b){var w=typeof b=="function"?b(u.options):b;f(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:Sr(l)?gi(l):l.contextElement?gi(l.contextElement):[],popper:gi(d)};var S=_T($T([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(v){return v.enabled}),g(),y.update()},forceUpdate:function(){if(!x){var b=u.elements,w=b.reference,S=b.popper;if(vg(w,S)){u.rects={reference:MT(w,fi(S),u.options.strategy==="fixed"),popper:Kc(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var C=u.orderedModifiers[v],P=C.fn,O=C.options,A=O===void 0?{}:O,k=C.name;typeof P=="function"&&(u=P({state:u,options:A,name:k,instance:y})||u)}}}},update:DT(function(){return new Promise(function(m){y.forceUpdate(),m(u)})}),destroy:function(){f(),x=!0}};if(!vg(l,d))return y;y.setOptions(p).then(function(m){!x&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var b=m.name,w=m.options,S=w===void 0?{}:w,v=m.effect;if(typeof v=="function"){var C=v({state:u,name:b,instance:y,options:S}),P=function(){};h.push(C||P)}})}function f(){h.forEach(function(m){return m()}),h=[]}return y}}var LT=[aT,TT,iT,KE,CT,bT,kT,tT,xT],jT=zT({defaultModifiers:LT});function vn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:qh(n,r),{props:l,internalRef:d}=Kh({...s,externalSlotProps:a}),p=ct(d,a?.ref,e.additionalProps?.ref);return Hh(t,{...l,ref:p},r)}function Cr(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function BT(e){return typeof e=="function"?e():e}const yi=E.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=E.useState(null),d=ct(E.isValidElement(r)?Cr(r):null,n);if(Ht(()=>{s||l(BT(i)||document.body)},[i,s]),Ht(()=>{if(a&&!s)return _h(n,a),()=>{_h(n,null)}},[n,a,s]),s){if(E.isValidElement(r)){const p={ref:d};return E.cloneElement(r,p)}return r}return a&&ey.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(yi.propTypes={children:o.node,container:o.oneOfType([Bn,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(yi.propTypes=Ec(yi.propTypes));function WT(e){return be("MuiPopper",e)}ye("MuiPopper",["root"]);function RT(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function ma(e){return typeof e=="function"?e():e}function ya(e){return e.nodeType!==void 0}function VT(e){return!ya(e)}const UT=e=>{const{classes:t}=e;return ve({root:["root"]},WT,t)},HT={},qT=E.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:x={},slots:y={},TransitionProps:g,ownerState:f,...m}=t,b=E.useRef(null),w=ct(b,n),S=E.useRef(null),v=ct(S,h),C=E.useRef(v);Ht(()=>{C.current=v},[v]),E.useImperativeHandle(h,()=>S.current,[]);const P=RT(p,s),[O,A]=E.useState(P),[k,L]=E.useState(ma(r));E.useEffect(()=>{S.current&&S.current.forceUpdate()}),E.useEffect(()=>{r&&L(ma(r))},[r]),Ht(()=>{if(!k||!d)return;const W=M=>{A(M.placement)};if(process.env.NODE_ENV!=="production"&&k&&ya(k)&&k.nodeType===1){const M=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&M.top===0&&M.left===0&&M.right===0&&M.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
165
+ `))}let _=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{W(M)}}];l!=null&&(_=_.concat(l)),u&&u.modifiers!=null&&(_=_.concat(u.modifiers));const j=jT(k,b.current,{placement:P,...u,modifiers:_});return C.current(j),()=>{j.destroy(),C.current(null)}},[k,a,l,d,u,P]);const D={placement:O};g!==null&&(D.TransitionProps=g);const T=UT(t),I=y.root??"div",F=vn({elementType:I,externalSlotProps:x.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:T.root});return c.jsx(I,{...F,children:typeof i=="function"?i(D):i})}),xg=E.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:x=HT,popperRef:y,style:g,transition:f=!1,slotProps:m={},slots:b={},...w}=t,[S,v]=E.useState(!0),C=()=>{v(!1)},P=()=>{v(!0)};if(!d&&!u&&(!f||S))return null;let O;if(s)O=s;else if(r){const L=ma(r);O=L&&ya(L)?ut(L).body:ut(null).body}const A=!u&&d&&(!f||S)?"none":void 0,k=f?{in:u,onEnter:C,onExited:P}:void 0;return c.jsx(yi,{disablePortal:l,container:O,children:c.jsx(qT,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:f?!S:u,placement:h,popperOptions:x,popperRef:y,slotProps:m,slots:b,...w,style:{position:"fixed",top:0,left:0,display:A,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={anchorEl:nn(o.oneOfType([Bn,o.object,o.func]),e=>{if(e.open){const t=ma(e.anchorEl);if(t&&ya(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
166
166
  `))}else if(!t||typeof t.getBoundingClientRect!="function"||VT(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
167
- `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([jn,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Tt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const YT=X(xg,{name:"MuiPopper",slot:"Root"})({}),ed=E.forwardRef(function(t,n){const r=ii(),i=Se({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:d,container:p,disablePortal:u,keepMounted:h,modifiers:x,open:y,placement:g,popperOptions:f,popperRef:m,transition:b,slots:w,slotProps:S,...v}=i,C=w?.root??l?.Root,P={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:x,open:y,placement:g,popperOptions:f,popperRef:m,transition:b,...v};return c.jsx(YT,{as:a,direction:r?"rtl":"ltr",slots:{root:C},slotProps:S??d,...P,ref:n})});process.env.NODE_ENV!=="production"&&(ed.propTypes={anchorEl:o.oneOfType([jn,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([jn,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Tt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function ba(e){return parseInt(e,10)||0}const KT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function GT(e){for(const t in e)return!1;return!0}function Sg(e){return GT(e)||e.outerHeightStyle===0&&!e.overflowing}const wg=E.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...d}=t,{current:p}=E.useRef(l!=null),u=E.useRef(null),h=ct(n,u),x=E.useRef(null),y=E.useRef(null),g=E.useCallback(()=>{const S=u.current,v=y.current;if(!S||!v)return;const P=zn(S).getComputedStyle(S);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=P.width,v.value=S.value||t.placeholder||"x",v.value.slice(-1)===`
168
- `&&(v.value+=" ");const O=P.boxSizing,A=ba(P.paddingBottom)+ba(P.paddingTop),k=ba(P.borderBottomWidth)+ba(P.borderTopWidth),L=v.scrollHeight;v.value="x";const D=v.scrollHeight;let T=L;s&&(T=Math.max(Number(s)*D,T)),i&&(T=Math.min(Number(i)*D,T)),T=Math.max(T,D);const N=T+(O==="border-box"?A+k:0),F=Math.abs(T-L)<=1;return{outerHeightStyle:N,overflowing:F}},[i,s,t.placeholder]),f=Et(()=>{const S=u.current,v=g();if(!S||!v||Sg(v))return!1;const C=v.outerHeightStyle;return x.current!=null&&x.current!==C}),m=E.useCallback(()=>{const S=u.current,v=g();if(!S||!v||Sg(v))return;const C=v.outerHeightStyle;x.current!==C&&(x.current=C,S.style.height=`${C}px`),S.style.overflow=v.overflowing?"hidden":""},[g]),b=E.useRef(-1);Ht(()=>{const S=Fh(m),v=u?.current;if(!v)return;const C=zn(v);C.addEventListener("resize",S);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{f()&&(P.unobserve(v),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{P.observe(v)}))}),P.observe(v)),()=>{S.clear(),cancelAnimationFrame(b.current),C.removeEventListener("resize",S),P&&P.disconnect()}},[g,m,f]),Ht(()=>{m()});const w=S=>{p||m();const v=S.target,C=v.value.length,P=v.value.endsWith(`
169
- `),O=v.selectionStart===C;P&&O&&v.setSelectionRange(C,C),r&&r(S)};return c.jsxs(E.Fragment,{children:[c.jsx("textarea",{value:l,onChange:w,ref:h,rows:s,style:a,...d}),c.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...KT.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(wg.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function tr({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const va=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(va.displayName="FormControlContext");function xn(){return E.useContext(va)}function Cg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function xa(e,t=!1){return e&&(Cg(e.value)&&e.value!==""||t&&Cg(e.defaultValue)&&e.defaultValue!=="")}function XT(e){return e.startAdornment}function JT(e){return be("MuiInputBase",e)}const io=ye("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Eg;const Sa=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ee(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wa=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},QT=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:h,size:x,startAdornment:y,type:g}=e,f={root:["root",`color${ee(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",x&&x!=="medium"&&`size${ee(x)}`,u&&"multiline",y&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",x==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return ve(f,JT,t)},Ca=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sa})(me(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${io.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ea=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wa})(me(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${io.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${io.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Tg=MC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),bi=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:d,components:p={},componentsProps:u={},defaultValue:h,disabled:x,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:m=!1,id:b,inputComponent:w="input",inputProps:S={},inputRef:v,margin:C,maxRows:P,minRows:O,multiline:A=!1,name:k,onBlur:L,onChange:D,onClick:T,onFocus:N,onKeyDown:F,onKeyUp:W,placeholder:_,readOnly:j,renderSuffix:M,rows:B,size:$,slotProps:V={},slots:G={},startAdornment:K,type:Z="text",value:Q,...J}=r,ae=S.value!=null?S.value:Q,{current:se}=E.useRef(ae!=null),le=E.useRef(),q=E.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
170
- `))},[]),ne=ct(le,v,S.ref,q),[U,de]=E.useState(!1),re=xn();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(re)return re.registerEffect()},[re]);const oe=tr({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=re?re.focused:U,E.useEffect(()=>{!re&&x&&U&&(de(!1),L&&L())},[re,x,U,L]);const pe=re&&re.onFilled,he=re&&re.onEmpty,we=E.useCallback(xe=>{xa(xe)?pe&&pe():he&&he()},[pe,he]);Ht(()=>{se&&we({value:ae})},[ae,we,se]);const Ae=xe=>{N&&N(xe),S.onFocus&&S.onFocus(xe),re&&re.onFocus?re.onFocus(xe):de(!0)},De=xe=>{L&&L(xe),S.onBlur&&S.onBlur(xe),re&&re.onBlur?re.onBlur(xe):de(!1)},Me=(xe,...Ze)=>{if(!se){const _e=xe.target||le.current;if(_e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":cn(1));we({value:_e.value})}S.onChange&&S.onChange(xe,...Ze),D&&D(xe,...Ze)};E.useEffect(()=>{we(le.current)},[]);const ce=xe=>{le.current&&xe.currentTarget===xe.target&&le.current.focus(),T&&T(xe)};let Xe=w,Ie=S;A&&Xe==="input"&&(B?(process.env.NODE_ENV!=="production"&&(O||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:B,maxRows:B,...Ie}):Ie={type:void 0,maxRows:P,minRows:O,...Ie},Xe=wg);const ie=xe=>{we(xe.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};E.useEffect(()=>{re&&re.setAdornedStart(!!K)},[re,K]);const te={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:re,fullWidth:m,hiddenLabel:oe.hiddenLabel,multiline:A,size:oe.size,startAdornment:K,type:Z},fe=QT(te),Ce=G.root||p.Root||Ca,Pe=V.root||u.root||{},Te=G.input||p.Input||Ea;return Ie={...Ie,...V.input??u.input},c.jsxs(E.Fragment,{children:[!y&&typeof Tg=="function"&&(Eg||(Eg=c.jsx(Tg,{}))),c.jsxs(Ce,{...Pe,ref:n,onClick:ce,...J,...!Zn(Ce)&&{ownerState:{...te,...Pe.ownerState}},className:ue(fe.root,Pe.className,l,j&&"MuiInputBase-readOnly"),children:[K,c.jsx(va.Provider,{value:null,children:c.jsx(Te,{"aria-invalid":oe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:oe.disabled,id:b,onAnimationStart:ie,name:k,placeholder:_,readOnly:j,required:oe.required,rows:B,value:ae,onKeyDown:F,onKeyUp:W,type:Z,...Ie,...!Zn(Te)&&{as:Xe,ownerState:{...te,...Ie.ownerState}},ref:ne,className:ue(fe.input,Ie.className,j&&"MuiInputBase-readOnly"),onBlur:De,onChange:Me,onFocus:Ae})}),g,M?M({...oe,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(bi.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:Bc,inputProps:o.object,inputRef:Tt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function ZT(e){return be("MuiInput",e)}const vi={...io,...ye("MuiInput",["root","underline","input"])};function eP(e){return be("MuiOutlinedInput",e)}const Sn={...io,...ye("MuiOutlinedInput",["root","notchedOutline","input"])};function tP(e){return be("MuiFilledInput",e)}const Er={...io,...ye("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},nP=We(c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rP=We(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function oP(e){return be("MuiAvatar",e)}ye("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const iP=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ve({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},oP,t)},sP=X("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(me(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),aP=X("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),lP=X(rP,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function cP({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Ta=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:x,srcSet:y,variant:g="circular",...f}=r;let m=null;const b={...r,component:l,variant:g},w=cP({...u,...typeof p.img=="function"?p.img(b):p.img,src:x,srcSet:y}),S=x||y,v=S&&w!=="error";b.colorDefault=!v,delete b.ownerState;const C=iP(b),[P,O]=Ee("root",{ref:n,className:ue(C.root,a),elementType:sP,externalForwardedProps:{slots:d,slotProps:p,component:l,...f},ownerState:b}),[A,k]=Ee("img",{className:C.img,elementType:aP,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:x,srcSet:y,sizes:h},ownerState:b}),[L,D]=Ee("fallback",{className:C.fallback,elementType:lP,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:b});return v?m=c.jsx(A,{...k}):s||s===0?m=s:S&&i?m=i[0]:m=c.jsx(L,{...D}),c.jsx(P,{...O,children:m})});process.env.NODE_ENV!=="production"&&(Ta.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function dP(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Pg(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;const d=s.type;return typeof d=="function"&&!dP(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Tr=nn(o.element,Pg);Tr.isRequired=nn(o.element.isRequired,Pg);const uP={entering:{opacity:1},entered:{opacity:1}},Pa=E.forwardRef(function(t,n){const r=gn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:d,in:p,onEnter:u,onEntered:h,onEntering:x,onExit:y,onExited:g,onExiting:f,style:m,timeout:b=i,TransitionComponent:w=mn,...S}=t,v=E.useRef(null),C=ct(v,Cr(l),n),P=F=>W=>{if(F){const _=v.current;W===void 0?F(_):F(_,W)}},O=P(x),A=P((F,W)=>{Uh(F);const _=la({style:m,timeout:b,easing:d},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",_),F.style.transition=r.transitions.create("opacity",_),u&&u(F,W)}),k=P(h),L=P(f),D=P(F=>{const W=la({style:m,timeout:b,easing:d},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",W),F.style.transition=r.transitions.create("opacity",W),y&&y(F)}),T=P(g),N=F=>{s&&s(v.current,F)};return c.jsx(w,{appear:a,in:p,nodeRef:v,onEnter:A,onEntered:k,onEntering:O,onExit:D,onExited:T,onExiting:L,addEndListener:N,timeout:b,...S,children:(F,{ownerState:W,..._})=>E.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!p?"hidden":void 0,...uP[F],...m,...l.props.style},ref:C,..._})})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={addEndListener:o.func,appear:o.bool,children:Tr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function pP(e){return be("MuiBackdrop",e)}ye("MuiBackdrop",["root","invisible"]);const fP=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},pP,t)},hP=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),td=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:x={},TransitionComponent:y,transitionDuration:g,...f}=r,m={...r,component:a,invisible:l},b=fP(m),w={transition:y,root:p.Root,...x},S={...u,...h},v={component:a,slots:w,slotProps:S},[C,P]=Ee("root",{elementType:hP,externalForwardedProps:v,className:ue(b.root,s),ownerState:m}),[O,A]=Ee("transition",{elementType:Pa,externalForwardedProps:v,ownerState:m});return c.jsx(O,{in:d,timeout:g,...f,...A,children:c.jsx(C,{"aria-hidden":!0,...P,classes:b,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(td.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const gP=ye("MuiBox",["root"]),mP=Mc(),I=Pw({themeId:qo,defaultTheme:mP,defaultClassName:gP.root,generateClassName:oh.generate});process.env.NODE_ENV!=="production"&&(I.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function yP(e){return be("MuiButton",e)}const Pr=ye("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Og=E.createContext({});process.env.NODE_ENV!=="production"&&(Og.displayName="ButtonGroupContext");const kg=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(kg.displayName="ButtonGroupButtonContext");const bP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:l,classes:d}=e,p={root:["root",a&&"loading",s,`${s}${ee(t)}`,`size${ee(i)}`,`${s}Size${ee(i)}`,`color${ee(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ee(l)}`],startIcon:["icon","startIcon",`iconSize${ee(i)}`],endIcon:["icon","endIcon",`iconSize${ee(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ve(p,yP,d);return{...d,...u}},Ig=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],vP=X(ci,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ee(n.color)}`],t[`size${ee(n.size)}`],t[`${n.variant}Size${ee(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(me(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Pr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Pr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Pr.loading}`]:{color:"transparent"}}}]}})),xP=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ee(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ig]})),SP=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ee(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ig]})),wP=X("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ng=X("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ke=E.forwardRef(function(t,n){const r=E.useContext(Og),i=E.useContext(kg),s=ri(r,t),a=Se({props:s,name:"MuiButton"}),{children:l,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:x=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:b,loading:w=null,loadingIndicator:S,loadingPosition:v="center",size:C="medium",startIcon:P,type:O,variant:A="text",...k}=a,L=gr(b),D=S??c.jsx(ua,{"aria-labelledby":L,color:"inherit",size:16}),T={...a,color:d,component:p,disabled:h,disableElevation:x,disableFocusRipple:y,fullWidth:m,loading:w,loadingIndicator:D,loadingPosition:v,size:C,type:O,variant:A},N=bP(T),F=(P||w&&v==="start")&&c.jsx(xP,{className:N.startIcon,ownerState:T,children:P||c.jsx(Ng,{className:N.loadingIconPlaceholder,ownerState:T})}),W=(g||w&&v==="end")&&c.jsx(SP,{className:N.endIcon,ownerState:T,children:g||c.jsx(Ng,{className:N.loadingIconPlaceholder,ownerState:T})}),_=i||"",j=typeof w=="boolean"?c.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:w&&c.jsx(wP,{className:N.loadingIndicator,ownerState:T,children:D})}):null;return c.jsxs(vP,{ownerState:T,className:ue(r.className,N.root,u,_),component:p,disabled:h||w,focusRipple:!y,focusVisibleClassName:ue(N.focusVisible,f),ref:n,type:O,id:w?L:b,...k,classes:N,children:[F,v!=="end"&&j,l,v==="end"&&j,W]})});process.env.NODE_ENV!=="production"&&(Ke.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function CP(e){return be("MuiCard",e)}ye("MuiCard",["root"]);const EP=e=>{const{classes:t}=e;return ve({root:["root"]},CP,t)},TP=X(rn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Wn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},d=EP(l);return c.jsx(TP,{className:ue(d.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Wn.propTypes={children:o.node,classes:o.object,className:o.string,raised:nn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function PP(e){return be("MuiCardContent",e)}ye("MuiCardContent",["root"]);const OP=e=>{const{classes:t}=e;return ve({root:["root"]},PP,t)},kP=X("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Ag=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardContent"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=OP(l);return c.jsx(kP,{as:s,className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function IP(e){return be("PrivateSwitchBase",e)}ye("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const NP=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${ee(i)}`],input:["input"]};return ve(s,IP,t)},AP=X(ci,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),MP=X("input",{name:"MuiSwitchBase",shouldForwardProp:wt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Oa=E.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:x,inputRef:y,name:g,onBlur:f,onChange:m,onFocus:b,readOnly:w,required:S=!1,tabIndex:v,type:C,value:P,slots:O={},slotProps:A={},...k}=t,[L,D]=Jr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),T=xn(),N=Q=>{b&&b(Q),T&&T.onFocus&&T.onFocus(Q)},F=Q=>{f&&f(Q),T&&T.onBlur&&T.onBlur(Q)},W=Q=>{if(Q.nativeEvent.defaultPrevented)return;const J=Q.target.checked;D(J),m&&m(Q,J)};let _=l;T&&typeof _>"u"&&(_=T.disabled);const j=C==="checkbox"||C==="radio",M={...t,checked:L,disabled:_,disableFocusRipple:d,edge:p},B=NP(M),$={slots:O,slotProps:{input:x,...A}},[V,G]=Ee("root",{ref:n,elementType:AP,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...$,component:"span",...k},getSlotProps:Q=>({...Q,onFocus:J=>{Q.onFocus?.(J),N(J)},onBlur:J=>{Q.onBlur?.(J),F(J)}}),ownerState:M,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:_,role:void 0,tabIndex:null}}),[K,Z]=Ee("input",{ref:y,elementType:MP,className:B.input,externalForwardedProps:$,getSlotProps:Q=>({...Q,onChange:J=>{Q.onChange?.(J),W(J)}}),ownerState:M,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:_,id:j?h:void 0,name:g,readOnly:w,required:S,tabIndex:v,type:C,...C==="checkbox"&&P===void 0?{}:{value:P}}});return c.jsxs(V,{...G,children:[c.jsx(K,{...Z}),L?s:u]})});process.env.NODE_ENV!=="production"&&(Oa.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Tt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const FP=We(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_P=We(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),DP=We(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $P(e){return be("MuiCheckbox",e)}const nd=ye("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${ee(r)}`,`size${ee(i)}`]},a=ve(s,$P,t);return{...t,...a}},LP=X(Oa,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ee(n.size)}`],n.color!=="default"&&t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${nd.checked}, &.${nd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${nd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),jP=c.jsx(_P,{}),BP=c.jsx(FP,{}),WP=c.jsx(DP,{}),Pt=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCheckbox"}),{checkedIcon:i=jP,color:s="primary",icon:a=BP,indeterminate:l=!1,indeterminateIcon:d=WP,inputProps:p,size:u="medium",disableRipple:h=!1,className:x,slots:y={},slotProps:g={},...f}=r,m=l?d:a,b=l?d:i,w={...r,disableRipple:h,color:s,indeterminate:l,size:u},S=zP(w),v=g.input??p,[C,P]=Ee("root",{ref:n,elementType:LP,className:ue(S.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:E.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:E.cloneElement(b,{fontSize:b.props.fontSize??u}),disableRipple:h,slots:y,slotProps:{input:Dh(typeof v=="function"?v(w):v,{"data-indeterminate":l})}}});return c.jsx(C,{...P,classes:S})});process.env.NODE_ENV!=="production"&&(Pt.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Mg(e){return e.substring(2).toLowerCase()}function RP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ka(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=E.useRef(!1),l=E.useRef(null),d=E.useRef(!1),p=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=ct(Cr(t),l),h=Et(g=>{const f=p.current;p.current=!1;const m=ut(l.current);if(!d.current||!l.current||"clientX"in g&&RP(g,m))return;if(a.current){a.current=!1;return}let b;g.composedPath?b=g.composedPath().includes(l.current):b=!m.documentElement.contains(g.target)||l.current.contains(g.target),!b&&(n||!f)&&i(g)}),x=g=>f=>{p.current=!0;const m=t.props[g];m&&m(f)},y={ref:u};return s!==!1&&(y[s]=x(s)),E.useEffect(()=>{if(s!==!1){const g=Mg(s),f=ut(l.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(y[r]=x(r)),E.useEffect(()=>{if(r!==!1){const g=Mg(r),f=ut(l.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),E.cloneElement(t,y)}process.env.NODE_ENV!=="production"&&(ka.propTypes={children:Tr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(ka.propTypes=Ec(ka.propTypes));function Fg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function VP(e){const t=ut(e);return t.body===e?zn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _g(e){return parseInt(zn(e).getComputedStyle(e).paddingRight,10)||0}function UP(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Dg(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),d=!UP(a);l&&d&&xi(a,i)})}function rd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function HP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(VP(r)){const a=Fg(zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_g(r)+a}px`;const l=ut(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${_g(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=ut(r).body;else{const a=r.parentElement,l=zn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function qP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class YP{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&xi(t.modalRef,!1);const i=qP(n);Dg(n,t.mount,t.modalRef,i,!0);const s=rd(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=rd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=HP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=rd(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&xi(t.modalRef,n),Dg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&xi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Si(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const KP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function GP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function XP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function JP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||XP(e))}function QP(e){const t=[],n=[];return Array.from(e.querySelectorAll(KP)).forEach((r,i)=>{const s=GP(r);s===-1||!JP(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function ZP(){return!0}function Ia(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=QP,isEnabled:a=ZP,open:l}=e,d=E.useRef(!1),p=E.useRef(null),u=E.useRef(null),h=E.useRef(null),x=E.useRef(null),y=E.useRef(!1),g=E.useRef(null),f=ct(Cr(t),g),m=E.useRef(null);E.useEffect(()=>{!l||!g.current||(y.current=!n)},[n,l]),E.useEffect(()=>{if(!l||!g.current)return;const S=ut(g.current),v=Si(S);return g.current.contains(v)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
171
- `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),E.useEffect(()=>{if(!l||!g.current)return;const S=ut(g.current),v=Si(S),C=A=>{m.current=A,!(r||!a()||A.key!=="Tab")&&v===g.current&&A.shiftKey&&(d.current=!0,u.current&&u.current.focus())},P=()=>{const A=g.current;if(A===null)return;const k=Si(S);if(!S.hasFocus()||!a()||d.current){d.current=!1;return}if(A.contains(k)||r&&k!==p.current&&k!==u.current)return;if(k!==x.current)x.current=null;else if(x.current!==null)return;if(!y.current)return;let L=[];if((k===p.current||k===u.current)&&(L=s(g.current)),L.length>0){const D=!!(m.current?.shiftKey&&m.current?.key==="Tab"),T=L[0],N=L[L.length-1];typeof T!="string"&&typeof N!="string"&&(D?N.focus():T.focus())}else A.focus()};S.addEventListener("focusin",P),S.addEventListener("keydown",C,!0);const O=setInterval(()=>{const A=Si(S);A&&A.tagName==="BODY"&&P()},50);return()=>{clearInterval(O),S.removeEventListener("focusin",P),S.removeEventListener("keydown",C,!0)}},[n,r,i,a,l,s]);const b=S=>{h.current===null&&(h.current=S.relatedTarget),y.current=!0,x.current=S.target;const v=t.props.onFocus;v&&v(S)},w=S=>{h.current===null&&(h.current=S.relatedTarget),y.current=!0};return c.jsxs(E.Fragment,{children:[c.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:f,onFocus:b}),c.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ia.propTypes={children:Tr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Ia.propTypes=Ec(Ia.propTypes));function eO(e){return typeof e=="function"?e():e}function tO(e){return e?e.props.hasOwnProperty("in"):!1}const $g=()=>{},Na=new YP;function nO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:p,rootRef:u}=e,h=E.useRef({}),x=E.useRef(null),y=E.useRef(null),g=ct(y,u),[f,m]=E.useState(!p),b=tO(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>ut(x.current),v=()=>(h.current.modalRef=y.current,h.current.mount=x.current,h.current),C=()=>{Na.mount(v(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Et(()=>{const W=eO(t)||S().body;Na.add(v(),W),y.current&&C()}),O=()=>Na.isTopModal(v()),A=Et(W=>{x.current=W,W&&(p&&O()?C():y.current&&xi(y.current,w))}),k=E.useCallback(()=>{Na.remove(v(),w)},[w]);E.useEffect(()=>()=>{k()},[k]),E.useEffect(()=>{p?P():(!b||!i)&&k()},[p,k,b,i,P]);const L=W=>_=>{W.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!O())&&(n||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},D=W=>_=>{W.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(W={})=>{const _=xr(e);delete _.onTransitionEnter,delete _.onTransitionExited;const j={..._,...W};return{role:"presentation",...j,onKeyDown:L(j),ref:g}},getBackdropProps:(W={})=>{const _=W;return{"aria-hidden":!0,..._,onClick:D(_),open:p}},getTransitionProps:()=>{const W=()=>{m(!1),s&&s()},_=()=>{m(!0),a&&a(),i&&k()};return{onEnter:_c(W,l?.props.onEnter??$g),onExited:_c(_,l?.props.onExited??$g)}},rootRef:g,portalRef:A,isTopModal:O,exited:f,hasTransition:b}}function rO(e){return be("MuiModal",e)}ye("MuiModal",["root","hidden","backdrop"]);const oO=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rO,r)},iO=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(me(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),sO=X(td,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),so=E.forwardRef(function(t,n){const r=Se({name:"MuiModal",props:t}),{BackdropComponent:i=sO,BackdropProps:s,classes:a,className:l,closeAfterTransition:d=!1,children:p,container:u,component:h,components:x={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:v=!1,keepMounted:C=!1,onClose:P,onTransitionEnter:O,onTransitionExited:A,open:k,slotProps:L={},slots:D={},theme:T,...N}=r,F={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:b,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:v,keepMounted:C},{getRootProps:W,getBackdropProps:_,getTransitionProps:j,portalRef:M,isTopModal:B,exited:$,hasTransition:V}=nO({...F,rootRef:n}),G={...F,exited:$},K=oO(G),Z={};if(p.props.tabIndex===void 0&&(Z.tabIndex="-1"),V){const{onEnter:q,onExited:ne}=j();Z.onEnter=q,Z.onExited=ne}const Q={slots:{root:x.Root,backdrop:x.Backdrop,...D},slotProps:{...y,...L}},[J,ae]=Ee("root",{ref:n,elementType:iO,externalForwardedProps:{...Q,...N,component:h},getSlotProps:W,ownerState:G,className:ue(l,K?.root,!G.open&&G.exited&&K?.hidden)}),[se,le]=Ee("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:q=>_({...q,onClick:ne=>{q?.onClick&&q.onClick(ne)}}),className:ue(s?.className,K?.backdrop),ownerState:G});return!C&&!k&&(!V||$)?null:c.jsx(yi,{ref:M,container:u,disablePortal:b,children:c.jsxs(J,{...ae,children:[!v&&i?c.jsx(se,{...le}):null,c.jsx(Ia,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:B,open:k,children:E.cloneElement(p,Z)})]})})});process.env.NODE_ENV!=="production"&&(so.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Tr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([jn,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function aO(e){return be("MuiDialog",e)}const od=ye("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),id=E.createContext({});process.env.NODE_ENV!=="production"&&(id.displayName="DialogContext");const lO=X(td,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),cO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ee(n)}`],paper:["paper",`paperScroll${ee(n)}`,`paperWidth${ee(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return ve(a,aO,t)},dO=X(so,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),uO=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ee(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),pO=X(rn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ee(n.scroll)}`],t[`paperWidth${ee(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(me(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${od.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${od.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${od.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wi=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialog"}),i=gn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:x,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:b,onClose:w,open:S,PaperComponent:v=rn,PaperProps:C={},scroll:P="paper",slots:O={},slotProps:A={},TransitionComponent:k=Pa,transitionDuration:L=s,TransitionProps:D,...T}=r,N={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:m,scroll:P},F=cO(N),W=E.useRef(),_=de=>{W.current=de.target===de.currentTarget},j=de=>{b&&b(de),W.current&&(W.current=null,w&&w(de,"backdropClick"))},M=gr(l),B=E.useMemo(()=>({titleId:M}),[M]),$={transition:k,...O},V={transition:D,paper:C,backdrop:u,...A},G={slots:$,slotProps:V},[K,Z]=Ee("root",{elementType:dO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:N,className:ue(F.root,x),ref:n}),[Q,J]=Ee("backdrop",{elementType:lO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:N}),[ae,se]=Ee("paper",{elementType:pO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:N,className:ue(F.paper,C.className)}),[le,q]=Ee("container",{elementType:uO,externalForwardedProps:G,ownerState:N,className:F.container}),[ne,U]=Ee("transition",{elementType:Pa,externalForwardedProps:G,ownerState:N,additionalProps:{appear:!0,in:S,timeout:L,role:"presentation"}});return c.jsx(K,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:L,as:p,...J}},disableEscapeKeyDown:y,onClose:w,open:S,onClick:j,...Z,...T,children:c.jsx(ne,{...U,children:c.jsx(le,{onMouseDown:_,...q,children:c.jsx(ae,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":M,"aria-modal":d,...se,children:c.jsx(id.Provider,{value:B,children:h})})})})})});process.env.NODE_ENV!=="production"&&(wi.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function fO(e){return be("MuiDialogActions",e)}ye("MuiDialogActions",["root","spacing"]);const hO=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},fO,t)},gO=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),sd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},d=hO(l);return c.jsx(gO,{className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(sd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function mO(e){return be("MuiDialogContent",e)}ye("MuiDialogContent",["root","dividers"]);function yO(e){return be("MuiDialogTitle",e)}const bO=ye("MuiDialogTitle",["root"]),vO=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},mO,t)},xO=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(me(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${bO.root} + &`]:{paddingTop:0}}}]}))),Aa=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},d=vO(l);return c.jsx(xO,{className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Aa.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const SO=e=>{const{classes:t}=e;return ve({root:["root"]},yO,t)},wO=X(R,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Ci=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,d=SO(l),{titleId:p=s}=E.useContext(id);return c.jsx(wO,{component:"h2",className:ue(d.root,i),ownerState:l,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function CO(e){return be("MuiDivider",e)}const zg=ye("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EO=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:d}=e;return ve({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},CO,r)},TO=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(me(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),PO=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(me(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Xt=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:l="horizontal",component:d=s||l==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:x="center",variant:y="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:p,light:u,orientation:l,role:h,textAlign:x,variant:y},m=EO(f);return c.jsx(TO,{as:d,className:ue(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...g,children:s?c.jsx(PO,{className:m.wrapper,ownerState:f,children:s}):null})});Xt&&(Xt.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Xt.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const OO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${ee(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},p=ve(d,tP,t);return{...t,...p}},kO=X(Ca,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sa(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),IO=X(Ea,{name:"MuiFilledInput",slot:"Input",overridesResolver:wa})(me(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ma=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:x={},type:y="text",...g}=r,f={...r,disableUnderline:i,fullWidth:l,inputComponent:p,multiline:u,type:y},m=OO(r),b={root:{ownerState:f},input:{ownerState:f}},w=h??a?St(b,h??a):b,S=x.root??s.Root??kO,v=x.input??s.Input??IO;return c.jsx(bi,{slots:{root:S,input:v},slotProps:w,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:y,...g,classes:m})});process.env.NODE_ENV!=="production"&&(Ma.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Tt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Ma.muiName="Input";function NO(e){return be("MuiFormControl",e)}ye("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const AO=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ee(n)}`,r&&"fullWidth"]};return ve(i,NO,t)},MO=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ee(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Fa=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:x=!1,margin:y="none",required:g=!1,size:f="medium",variant:m="outlined",...b}=r,w={...r,color:a,component:l,disabled:d,error:p,fullWidth:h,hiddenLabel:x,margin:y,required:g,size:f,variant:m},S=AO(w),[v,C]=E.useState(()=>{let _=!1;return i&&E.Children.forEach(i,j=>{if(!Pc(j,["Input","Select"]))return;const M=Pc(j,["Select"])?j.props.input:j;M&&XT(M.props)&&(_=!0)}),_}),[P,O]=E.useState(()=>{let _=!1;return i&&E.Children.forEach(i,j=>{Pc(j,["Input","Select"])&&(xa(j.props,!0)||xa(j.props.inputProps,!0))&&(_=!0)}),_}),[A,k]=E.useState(!1);d&&A&&k(!1);const L=u!==void 0&&!d?u:A;let D;const T=E.useRef(!1);process.env.NODE_ENV!=="production"&&(D=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
- `)),T.current=!0,()=>{T.current=!1}));const N=E.useCallback(()=>{O(!0)},[]),F=E.useCallback(()=>{O(!1)},[]),W=E.useMemo(()=>({adornedStart:v,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:L,fullWidth:h,hiddenLabel:x,size:f,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:F,onFilled:N,registerEffect:D,required:g,variant:m}),[v,a,d,p,P,L,h,x,D,F,N,g,f,m]);return c.jsx(va.Provider,{value:W,children:c.jsx(MO,{as:l,ownerState:w,className:ue(S.root,s),ref:n,...b,children:i})})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function FO(e){return be("MuiFormControlLabel",e)}const Ei=ye("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_O=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${ee(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return ve(a,FO,t)},DO=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ei.label}`]:t.label},t.root,t[`labelPlacement${ee(n.labelPlacement)}`]]}})(me(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ei.disabled}`]:{cursor:"default"},[`& .${Ei.label}`]:{[`&.${Ei.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),$O=X("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Ei.error}`]:{color:(e.vars||e).palette.error.main}}))),wn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:x="end",name:y,onChange:g,required:f,slots:m={},slotProps:b={},value:w,...S}=r,v=xn(),C=d??l.props.disabled??v?.disabled,P=f??l.props.required,O={disabled:C,required:P};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof l.props[W]>"u"&&typeof r[W]<"u"&&(O[W]=r[W])});const A=tr({props:r,muiFormControl:v,states:["error"]}),k={...r,disabled:C,labelPlacement:x,required:P,error:A.error},L=_O(k),D={slots:m,slotProps:{...a,...b}},[T,N]=Ee("typography",{elementType:R,externalForwardedProps:D,ownerState:k});let F=h;return F!=null&&F.type!==R&&!p&&(F=c.jsx(T,{component:"span",...N,className:ue(L.label,N?.className),children:F})),c.jsxs(DO,{className:ue(L.root,s),ownerState:k,ref:n,...S,children:[E.cloneElement(l,O),P?c.jsxs("div",{children:[F,c.jsxs($O,{ownerState:k,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):F]})});process.env.NODE_ENV!=="production"&&(wn.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Tt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function zO(e){return be("MuiFormGroup",e)}ye("MuiFormGroup",["root","row","error"]);const LO=e=>{const{classes:t,row:n,error:r}=e;return ve({root:["root",n&&"row",r&&"error"]},zO,t)},jO=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Lg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=xn(),d=tr({props:r,muiFormControl:l,states:["error"]}),p={...r,row:s,error:d.error},u=LO(p);return c.jsx(jO,{className:ue(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function BO(e){return be("MuiFormHelperText",e)}const jg=ye("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Bg;const WO=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:l,required:d}=e,p={root:["root",i&&"disabled",s&&"error",r&&`size${ee(r)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return ve(p,BO,t)},RO=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ee(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Wg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:d,filled:p,focused:u,margin:h,required:x,variant:y,...g}=r,f=xn(),m=tr({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),b={...r,component:a,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete b.ownerState;const w=WO(b);return c.jsx(RO,{as:a,className:ue(w.root,s),ref:n,...g,ownerState:b,children:i===" "?Bg||(Bg=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function VO(e){return be("MuiFormLabel",e)}const Ti=ye("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),UO=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:l}=e,d={root:["root",`color${ee(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return ve(d,VO,t)},HO=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${Ti.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ti.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ti.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),qO=X("span",{name:"MuiFormLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Ti.error}`]:{color:(e.vars||e).palette.error.main}}))),Pi=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:d,error:p,filled:u,focused:h,required:x,...y}=r,g=xn(),f=tr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},b=UO(m);return c.jsxs(HO,{as:l,ownerState:m,className:ue(b.root,s),ref:n,...y,children:[i,f.required&&c.jsxs(qO,{ownerState:m,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Pi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ad(e){return`scale(${e}, ${e**2})`}const YO={entering:{opacity:1,transform:ad(1)},entered:{opacity:1,transform:"none"}},ld=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ao=E.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:x,onExiting:y,style:g,timeout:f="auto",TransitionComponent:m=mn,...b}=t,w=vr(),S=E.useRef(),v=gn(),C=E.useRef(null),P=ct(C,Cr(s),n),O=W=>_=>{if(W){const j=C.current;_===void 0?W(j):W(j,_)}},A=O(u),k=O((W,_)=>{Uh(W);const{duration:j,delay:M,easing:B}=la({style:g,timeout:f,easing:a},{mode:"enter"});let $;f==="auto"?($=v.transitions.getAutoHeightDuration(W.clientHeight),S.current=$):$=j,W.style.transition=[v.transitions.create("opacity",{duration:$,delay:M}),v.transitions.create("transform",{duration:ld?$:$*.666,delay:M,easing:B})].join(","),d&&d(W,_)}),L=O(p),D=O(y),T=O(W=>{const{duration:_,delay:j,easing:M}=la({style:g,timeout:f,easing:a},{mode:"exit"});let B;f==="auto"?(B=v.transitions.getAutoHeightDuration(W.clientHeight),S.current=B):B=_,W.style.transition=[v.transitions.create("opacity",{duration:B,delay:j}),v.transitions.create("transform",{duration:ld?B:B*.666,delay:ld?j:j||B*.333,easing:M})].join(","),W.style.opacity=0,W.style.transform=ad(.75),h&&h(W)}),N=O(x),F=W=>{f==="auto"&&w.start(S.current||0,W),r&&r(C.current,W)};return c.jsx(m,{appear:i,in:l,nodeRef:C,onEnter:k,onEntered:L,onEntering:A,onExit:T,onExited:N,onExiting:D,addEndListener:F,timeout:f==="auto"?null:f,...b,children:(W,{ownerState:_,...j})=>E.cloneElement(s,{style:{opacity:0,transform:ad(.75),visibility:W==="exited"&&!l?"hidden":void 0,...YO[W],...g,...s.props.style},ref:P,...j})})});process.env.NODE_ENV!=="production"&&(ao.propTypes={addEndListener:o.func,appear:o.bool,children:Tr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),ao&&(ao.muiSupportAuto=!0);const KO=e=>{const{classes:t,disableUnderline:n}=e,i=ve({root:["root",!n&&"underline"],input:["input"]},ZT,t);return{...t,...i}},GO=X(Ca,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sa(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vi.disabled}, .${vi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${vi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),XO=X(Ea,{name:"MuiInput",slot:"Input",overridesResolver:wa})({}),_a=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:x="text",...y}=r,g=KO(r),m={root:{ownerState:{disableUnderline:i}}},b=u??a?St(u??a,m):m,w=h.root??s.Root??GO,S=h.input??s.Input??XO;return c.jsx(bi,{slots:{root:w,input:S},slotProps:b,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:x,...y,classes:g})});process.env.NODE_ENV!=="production"&&(_a.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Tt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),_a.muiName="Input";function JO(e){return be("MuiInputLabel",e)}ye("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const QO=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:l}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${ee(r)}`,a],asterisk:[l&&"asterisk"]},p=ve(d,JO,t);return{...t,...p}},ZO=X(Pi,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ti.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(me(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Rg=E.forwardRef(function(t,n){const r=Se({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:d,...p}=r,u=xn();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const x=tr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:i,formControl:u,shrink:h,size:x.size,variant:x.variant,required:x.required,focused:x.focused},g=QO(y);return c.jsx(ZO,{"data-shrink":h,ref:n,className:ue(g.root,d),...p,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function e2(e){return be("MuiLinearProgress",e)}ye("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cd=4,dd=Gn`
167
+ `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Bn,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Tt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const YT=X(xg,{name:"MuiPopper",slot:"Root"})({}),ed=E.forwardRef(function(t,n){const r=ii(),i=Se({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:d,container:p,disablePortal:u,keepMounted:h,modifiers:x,open:y,placement:g,popperOptions:f,popperRef:m,transition:b,slots:w,slotProps:S,...v}=i,C=w?.root??l?.Root,P={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:x,open:y,placement:g,popperOptions:f,popperRef:m,transition:b,...v};return c.jsx(YT,{as:a,direction:r?"rtl":"ltr",slots:{root:C},slotProps:S??d,...P,ref:n})});process.env.NODE_ENV!=="production"&&(ed.propTypes={anchorEl:o.oneOfType([Bn,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Bn,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Tt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function ba(e){return parseInt(e,10)||0}const KT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function GT(e){for(const t in e)return!1;return!0}function Sg(e){return GT(e)||e.outerHeightStyle===0&&!e.overflowing}const wg=E.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...d}=t,{current:p}=E.useRef(l!=null),u=E.useRef(null),h=ct(n,u),x=E.useRef(null),y=E.useRef(null),g=E.useCallback(()=>{const S=u.current,v=y.current;if(!S||!v)return;const P=Ln(S).getComputedStyle(S);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=P.width,v.value=S.value||t.placeholder||"x",v.value.slice(-1)===`
168
+ `&&(v.value+=" ");const O=P.boxSizing,A=ba(P.paddingBottom)+ba(P.paddingTop),k=ba(P.borderBottomWidth)+ba(P.borderTopWidth),L=v.scrollHeight;v.value="x";const D=v.scrollHeight;let T=L;s&&(T=Math.max(Number(s)*D,T)),i&&(T=Math.min(Number(i)*D,T)),T=Math.max(T,D);const I=T+(O==="border-box"?A+k:0),F=Math.abs(T-L)<=1;return{outerHeightStyle:I,overflowing:F}},[i,s,t.placeholder]),f=Et(()=>{const S=u.current,v=g();if(!S||!v||Sg(v))return!1;const C=v.outerHeightStyle;return x.current!=null&&x.current!==C}),m=E.useCallback(()=>{const S=u.current,v=g();if(!S||!v||Sg(v))return;const C=v.outerHeightStyle;x.current!==C&&(x.current=C,S.style.height=`${C}px`),S.style.overflow=v.overflowing?"hidden":""},[g]),b=E.useRef(-1);Ht(()=>{const S=Fh(m),v=u?.current;if(!v)return;const C=Ln(v);C.addEventListener("resize",S);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{f()&&(P.unobserve(v),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{P.observe(v)}))}),P.observe(v)),()=>{S.clear(),cancelAnimationFrame(b.current),C.removeEventListener("resize",S),P&&P.disconnect()}},[g,m,f]),Ht(()=>{m()});const w=S=>{p||m();const v=S.target,C=v.value.length,P=v.value.endsWith(`
169
+ `),O=v.selectionStart===C;P&&O&&v.setSelectionRange(C,C),r&&r(S)};return c.jsxs(E.Fragment,{children:[c.jsx("textarea",{value:l,onChange:w,ref:h,rows:s,style:a,...d}),c.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...KT.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(wg.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function tr({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const va=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(va.displayName="FormControlContext");function xn(){return E.useContext(va)}function Cg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function xa(e,t=!1){return e&&(Cg(e.value)&&e.value!==""||t&&Cg(e.defaultValue)&&e.defaultValue!=="")}function XT(e){return e.startAdornment}function JT(e){return be("MuiInputBase",e)}const io=ye("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Eg;const Sa=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ee(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wa=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},QT=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:h,size:x,startAdornment:y,type:g}=e,f={root:["root",`color${ee(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",x&&x!=="medium"&&`size${ee(x)}`,u&&"multiline",y&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",x==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return ve(f,JT,t)},Ca=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sa})(me(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${io.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ea=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wa})(me(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${io.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${io.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Tg=MC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),bi=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:d,components:p={},componentsProps:u={},defaultValue:h,disabled:x,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:m=!1,id:b,inputComponent:w="input",inputProps:S={},inputRef:v,margin:C,maxRows:P,minRows:O,multiline:A=!1,name:k,onBlur:L,onChange:D,onClick:T,onFocus:I,onKeyDown:F,onKeyUp:W,placeholder:_,readOnly:j,renderSuffix:M,rows:B,size:$,slotProps:V={},slots:G={},startAdornment:K,type:Z="text",value:Q,...J}=r,ae=S.value!=null?S.value:Q,{current:se}=E.useRef(ae!=null),le=E.useRef(),q=E.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
170
+ `))},[]),ne=ct(le,v,S.ref,q),[U,de]=E.useState(!1),re=xn();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(re)return re.registerEffect()},[re]);const oe=tr({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=re?re.focused:U,E.useEffect(()=>{!re&&x&&U&&(de(!1),L&&L())},[re,x,U,L]);const pe=re&&re.onFilled,he=re&&re.onEmpty,we=E.useCallback(xe=>{xa(xe)?pe&&pe():he&&he()},[pe,he]);Ht(()=>{se&&we({value:ae})},[ae,we,se]);const Ae=xe=>{I&&I(xe),S.onFocus&&S.onFocus(xe),re&&re.onFocus?re.onFocus(xe):de(!0)},De=xe=>{L&&L(xe),S.onBlur&&S.onBlur(xe),re&&re.onBlur?re.onBlur(xe):de(!1)},Me=(xe,...Ze)=>{if(!se){const _e=xe.target||le.current;if(_e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":cn(1));we({value:_e.value})}S.onChange&&S.onChange(xe,...Ze),D&&D(xe,...Ze)};E.useEffect(()=>{we(le.current)},[]);const ce=xe=>{le.current&&xe.currentTarget===xe.target&&le.current.focus(),T&&T(xe)};let Xe=w,Ne=S;A&&Xe==="input"&&(B?(process.env.NODE_ENV!=="production"&&(O||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ne={type:void 0,minRows:B,maxRows:B,...Ne}):Ne={type:void 0,maxRows:P,minRows:O,...Ne},Xe=wg);const ie=xe=>{we(xe.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};E.useEffect(()=>{re&&re.setAdornedStart(!!K)},[re,K]);const te={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:re,fullWidth:m,hiddenLabel:oe.hiddenLabel,multiline:A,size:oe.size,startAdornment:K,type:Z},fe=QT(te),Ce=G.root||p.Root||Ca,Pe=V.root||u.root||{},Te=G.input||p.Input||Ea;return Ne={...Ne,...V.input??u.input},c.jsxs(E.Fragment,{children:[!y&&typeof Tg=="function"&&(Eg||(Eg=c.jsx(Tg,{}))),c.jsxs(Ce,{...Pe,ref:n,onClick:ce,...J,...!Zn(Ce)&&{ownerState:{...te,...Pe.ownerState}},className:ue(fe.root,Pe.className,l,j&&"MuiInputBase-readOnly"),children:[K,c.jsx(va.Provider,{value:null,children:c.jsx(Te,{"aria-invalid":oe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:oe.disabled,id:b,onAnimationStart:ie,name:k,placeholder:_,readOnly:j,required:oe.required,rows:B,value:ae,onKeyDown:F,onKeyUp:W,type:Z,...Ne,...!Zn(Te)&&{as:Xe,ownerState:{...te,...Ne.ownerState}},ref:ne,className:ue(fe.input,Ne.className,j&&"MuiInputBase-readOnly"),onBlur:De,onChange:Me,onFocus:Ae})}),g,M?M({...oe,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(bi.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:Bc,inputProps:o.object,inputRef:Tt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function ZT(e){return be("MuiInput",e)}const vi={...io,...ye("MuiInput",["root","underline","input"])};function eP(e){return be("MuiOutlinedInput",e)}const Sn={...io,...ye("MuiOutlinedInput",["root","notchedOutline","input"])};function tP(e){return be("MuiFilledInput",e)}const Er={...io,...ye("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},nP=We(c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rP=We(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function oP(e){return be("MuiAvatar",e)}ye("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const iP=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ve({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},oP,t)},sP=X("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(me(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),aP=X("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),lP=X(rP,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function cP({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Ta=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:x,srcSet:y,variant:g="circular",...f}=r;let m=null;const b={...r,component:l,variant:g},w=cP({...u,...typeof p.img=="function"?p.img(b):p.img,src:x,srcSet:y}),S=x||y,v=S&&w!=="error";b.colorDefault=!v,delete b.ownerState;const C=iP(b),[P,O]=Ee("root",{ref:n,className:ue(C.root,a),elementType:sP,externalForwardedProps:{slots:d,slotProps:p,component:l,...f},ownerState:b}),[A,k]=Ee("img",{className:C.img,elementType:aP,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:x,srcSet:y,sizes:h},ownerState:b}),[L,D]=Ee("fallback",{className:C.fallback,elementType:lP,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:b});return v?m=c.jsx(A,{...k}):s||s===0?m=s:S&&i?m=i[0]:m=c.jsx(L,{...D}),c.jsx(P,{...O,children:m})});process.env.NODE_ENV!=="production"&&(Ta.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function dP(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Pg(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;const d=s.type;return typeof d=="function"&&!dP(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Tr=nn(o.element,Pg);Tr.isRequired=nn(o.element.isRequired,Pg);const uP={entering:{opacity:1},entered:{opacity:1}},Pa=E.forwardRef(function(t,n){const r=gn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:d,in:p,onEnter:u,onEntered:h,onEntering:x,onExit:y,onExited:g,onExiting:f,style:m,timeout:b=i,TransitionComponent:w=mn,...S}=t,v=E.useRef(null),C=ct(v,Cr(l),n),P=F=>W=>{if(F){const _=v.current;W===void 0?F(_):F(_,W)}},O=P(x),A=P((F,W)=>{Uh(F);const _=la({style:m,timeout:b,easing:d},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",_),F.style.transition=r.transitions.create("opacity",_),u&&u(F,W)}),k=P(h),L=P(f),D=P(F=>{const W=la({style:m,timeout:b,easing:d},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",W),F.style.transition=r.transitions.create("opacity",W),y&&y(F)}),T=P(g),I=F=>{s&&s(v.current,F)};return c.jsx(w,{appear:a,in:p,nodeRef:v,onEnter:A,onEntered:k,onEntering:O,onExit:D,onExited:T,onExiting:L,addEndListener:I,timeout:b,...S,children:(F,{ownerState:W,..._})=>E.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!p?"hidden":void 0,...uP[F],...m,...l.props.style},ref:C,..._})})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={addEndListener:o.func,appear:o.bool,children:Tr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function pP(e){return be("MuiBackdrop",e)}ye("MuiBackdrop",["root","invisible"]);const fP=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},pP,t)},hP=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),td=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:x={},TransitionComponent:y,transitionDuration:g,...f}=r,m={...r,component:a,invisible:l},b=fP(m),w={transition:y,root:p.Root,...x},S={...u,...h},v={component:a,slots:w,slotProps:S},[C,P]=Ee("root",{elementType:hP,externalForwardedProps:v,className:ue(b.root,s),ownerState:m}),[O,A]=Ee("transition",{elementType:Pa,externalForwardedProps:v,ownerState:m});return c.jsx(O,{in:d,timeout:g,...f,...A,children:c.jsx(C,{"aria-hidden":!0,...P,classes:b,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(td.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const gP=ye("MuiBox",["root"]),mP=Mc(),N=Pw({themeId:qo,defaultTheme:mP,defaultClassName:gP.root,generateClassName:oh.generate});process.env.NODE_ENV!=="production"&&(N.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function yP(e){return be("MuiButton",e)}const Pr=ye("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Og=E.createContext({});process.env.NODE_ENV!=="production"&&(Og.displayName="ButtonGroupContext");const kg=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(kg.displayName="ButtonGroupButtonContext");const bP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:l,classes:d}=e,p={root:["root",a&&"loading",s,`${s}${ee(t)}`,`size${ee(i)}`,`${s}Size${ee(i)}`,`color${ee(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ee(l)}`],startIcon:["icon","startIcon",`iconSize${ee(i)}`],endIcon:["icon","endIcon",`iconSize${ee(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ve(p,yP,d);return{...d,...u}},Ng=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],vP=X(ci,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ee(n.color)}`],t[`size${ee(n.size)}`],t[`${n.variant}Size${ee(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(me(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Pr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Pr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Pr.loading}`]:{color:"transparent"}}}]}})),xP=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ee(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ng]})),SP=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ee(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ng]})),wP=X("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ig=X("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ke=E.forwardRef(function(t,n){const r=E.useContext(Og),i=E.useContext(kg),s=ri(r,t),a=Se({props:s,name:"MuiButton"}),{children:l,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:x=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:b,loading:w=null,loadingIndicator:S,loadingPosition:v="center",size:C="medium",startIcon:P,type:O,variant:A="text",...k}=a,L=gr(b),D=S??c.jsx(ua,{"aria-labelledby":L,color:"inherit",size:16}),T={...a,color:d,component:p,disabled:h,disableElevation:x,disableFocusRipple:y,fullWidth:m,loading:w,loadingIndicator:D,loadingPosition:v,size:C,type:O,variant:A},I=bP(T),F=(P||w&&v==="start")&&c.jsx(xP,{className:I.startIcon,ownerState:T,children:P||c.jsx(Ig,{className:I.loadingIconPlaceholder,ownerState:T})}),W=(g||w&&v==="end")&&c.jsx(SP,{className:I.endIcon,ownerState:T,children:g||c.jsx(Ig,{className:I.loadingIconPlaceholder,ownerState:T})}),_=i||"",j=typeof w=="boolean"?c.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:w&&c.jsx(wP,{className:I.loadingIndicator,ownerState:T,children:D})}):null;return c.jsxs(vP,{ownerState:T,className:ue(r.className,I.root,u,_),component:p,disabled:h||w,focusRipple:!y,focusVisibleClassName:ue(I.focusVisible,f),ref:n,type:O,id:w?L:b,...k,classes:I,children:[F,v!=="end"&&j,l,v==="end"&&j,W]})});process.env.NODE_ENV!=="production"&&(Ke.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function CP(e){return be("MuiCard",e)}ye("MuiCard",["root"]);const EP=e=>{const{classes:t}=e;return ve({root:["root"]},CP,t)},TP=X(rn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Rn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},d=EP(l);return c.jsx(TP,{className:ue(d.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={children:o.node,classes:o.object,className:o.string,raised:nn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function PP(e){return be("MuiCardContent",e)}ye("MuiCardContent",["root"]);const OP=e=>{const{classes:t}=e;return ve({root:["root"]},PP,t)},kP=X("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Ag=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardContent"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=OP(l);return c.jsx(kP,{as:s,className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function NP(e){return be("PrivateSwitchBase",e)}ye("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const IP=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${ee(i)}`],input:["input"]};return ve(s,NP,t)},AP=X(ci,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),MP=X("input",{name:"MuiSwitchBase",shouldForwardProp:wt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Oa=E.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:x,inputRef:y,name:g,onBlur:f,onChange:m,onFocus:b,readOnly:w,required:S=!1,tabIndex:v,type:C,value:P,slots:O={},slotProps:A={},...k}=t,[L,D]=Jr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),T=xn(),I=Q=>{b&&b(Q),T&&T.onFocus&&T.onFocus(Q)},F=Q=>{f&&f(Q),T&&T.onBlur&&T.onBlur(Q)},W=Q=>{if(Q.nativeEvent.defaultPrevented)return;const J=Q.target.checked;D(J),m&&m(Q,J)};let _=l;T&&typeof _>"u"&&(_=T.disabled);const j=C==="checkbox"||C==="radio",M={...t,checked:L,disabled:_,disableFocusRipple:d,edge:p},B=IP(M),$={slots:O,slotProps:{input:x,...A}},[V,G]=Ee("root",{ref:n,elementType:AP,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...$,component:"span",...k},getSlotProps:Q=>({...Q,onFocus:J=>{Q.onFocus?.(J),I(J)},onBlur:J=>{Q.onBlur?.(J),F(J)}}),ownerState:M,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:_,role:void 0,tabIndex:null}}),[K,Z]=Ee("input",{ref:y,elementType:MP,className:B.input,externalForwardedProps:$,getSlotProps:Q=>({...Q,onChange:J=>{Q.onChange?.(J),W(J)}}),ownerState:M,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:_,id:j?h:void 0,name:g,readOnly:w,required:S,tabIndex:v,type:C,...C==="checkbox"&&P===void 0?{}:{value:P}}});return c.jsxs(V,{...G,children:[c.jsx(K,{...Z}),L?s:u]})});process.env.NODE_ENV!=="production"&&(Oa.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Tt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const FP=We(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_P=We(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),DP=We(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $P(e){return be("MuiCheckbox",e)}const nd=ye("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${ee(r)}`,`size${ee(i)}`]},a=ve(s,$P,t);return{...t,...a}},LP=X(Oa,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ee(n.size)}`],n.color!=="default"&&t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${nd.checked}, &.${nd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${nd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),jP=c.jsx(_P,{}),BP=c.jsx(FP,{}),WP=c.jsx(DP,{}),Pt=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCheckbox"}),{checkedIcon:i=jP,color:s="primary",icon:a=BP,indeterminate:l=!1,indeterminateIcon:d=WP,inputProps:p,size:u="medium",disableRipple:h=!1,className:x,slots:y={},slotProps:g={},...f}=r,m=l?d:a,b=l?d:i,w={...r,disableRipple:h,color:s,indeterminate:l,size:u},S=zP(w),v=g.input??p,[C,P]=Ee("root",{ref:n,elementType:LP,className:ue(S.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:E.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:E.cloneElement(b,{fontSize:b.props.fontSize??u}),disableRipple:h,slots:y,slotProps:{input:Dh(typeof v=="function"?v(w):v,{"data-indeterminate":l})}}});return c.jsx(C,{...P,classes:S})});process.env.NODE_ENV!=="production"&&(Pt.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Mg(e){return e.substring(2).toLowerCase()}function RP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ka(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=E.useRef(!1),l=E.useRef(null),d=E.useRef(!1),p=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=ct(Cr(t),l),h=Et(g=>{const f=p.current;p.current=!1;const m=ut(l.current);if(!d.current||!l.current||"clientX"in g&&RP(g,m))return;if(a.current){a.current=!1;return}let b;g.composedPath?b=g.composedPath().includes(l.current):b=!m.documentElement.contains(g.target)||l.current.contains(g.target),!b&&(n||!f)&&i(g)}),x=g=>f=>{p.current=!0;const m=t.props[g];m&&m(f)},y={ref:u};return s!==!1&&(y[s]=x(s)),E.useEffect(()=>{if(s!==!1){const g=Mg(s),f=ut(l.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(y[r]=x(r)),E.useEffect(()=>{if(r!==!1){const g=Mg(r),f=ut(l.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),E.cloneElement(t,y)}process.env.NODE_ENV!=="production"&&(ka.propTypes={children:Tr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(ka.propTypes=Ec(ka.propTypes));function Fg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function VP(e){const t=ut(e);return t.body===e?Ln(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _g(e){return parseInt(Ln(e).getComputedStyle(e).paddingRight,10)||0}function UP(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Dg(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),d=!UP(a);l&&d&&xi(a,i)})}function rd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function HP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(VP(r)){const a=Fg(Ln(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_g(r)+a}px`;const l=ut(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${_g(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=ut(r).body;else{const a=r.parentElement,l=Ln(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function qP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class YP{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&xi(t.modalRef,!1);const i=qP(n);Dg(n,t.mount,t.modalRef,i,!0);const s=rd(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=rd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=HP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=rd(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&xi(t.modalRef,n),Dg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&xi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Si(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const KP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function GP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function XP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function JP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||XP(e))}function QP(e){const t=[],n=[];return Array.from(e.querySelectorAll(KP)).forEach((r,i)=>{const s=GP(r);s===-1||!JP(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function ZP(){return!0}function Na(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=QP,isEnabled:a=ZP,open:l}=e,d=E.useRef(!1),p=E.useRef(null),u=E.useRef(null),h=E.useRef(null),x=E.useRef(null),y=E.useRef(!1),g=E.useRef(null),f=ct(Cr(t),g),m=E.useRef(null);E.useEffect(()=>{!l||!g.current||(y.current=!n)},[n,l]),E.useEffect(()=>{if(!l||!g.current)return;const S=ut(g.current),v=Si(S);return g.current.contains(v)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
171
+ `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),E.useEffect(()=>{if(!l||!g.current)return;const S=ut(g.current),v=Si(S),C=A=>{m.current=A,!(r||!a()||A.key!=="Tab")&&v===g.current&&A.shiftKey&&(d.current=!0,u.current&&u.current.focus())},P=()=>{const A=g.current;if(A===null)return;const k=Si(S);if(!S.hasFocus()||!a()||d.current){d.current=!1;return}if(A.contains(k)||r&&k!==p.current&&k!==u.current)return;if(k!==x.current)x.current=null;else if(x.current!==null)return;if(!y.current)return;let L=[];if((k===p.current||k===u.current)&&(L=s(g.current)),L.length>0){const D=!!(m.current?.shiftKey&&m.current?.key==="Tab"),T=L[0],I=L[L.length-1];typeof T!="string"&&typeof I!="string"&&(D?I.focus():T.focus())}else A.focus()};S.addEventListener("focusin",P),S.addEventListener("keydown",C,!0);const O=setInterval(()=>{const A=Si(S);A&&A.tagName==="BODY"&&P()},50);return()=>{clearInterval(O),S.removeEventListener("focusin",P),S.removeEventListener("keydown",C,!0)}},[n,r,i,a,l,s]);const b=S=>{h.current===null&&(h.current=S.relatedTarget),y.current=!0,x.current=S.target;const v=t.props.onFocus;v&&v(S)},w=S=>{h.current===null&&(h.current=S.relatedTarget),y.current=!0};return c.jsxs(E.Fragment,{children:[c.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:f,onFocus:b}),c.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Na.propTypes={children:Tr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Na.propTypes=Ec(Na.propTypes));function eO(e){return typeof e=="function"?e():e}function tO(e){return e?e.props.hasOwnProperty("in"):!1}const $g=()=>{},Ia=new YP;function nO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:p,rootRef:u}=e,h=E.useRef({}),x=E.useRef(null),y=E.useRef(null),g=ct(y,u),[f,m]=E.useState(!p),b=tO(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>ut(x.current),v=()=>(h.current.modalRef=y.current,h.current.mount=x.current,h.current),C=()=>{Ia.mount(v(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},P=Et(()=>{const W=eO(t)||S().body;Ia.add(v(),W),y.current&&C()}),O=()=>Ia.isTopModal(v()),A=Et(W=>{x.current=W,W&&(p&&O()?C():y.current&&xi(y.current,w))}),k=E.useCallback(()=>{Ia.remove(v(),w)},[w]);E.useEffect(()=>()=>{k()},[k]),E.useEffect(()=>{p?P():(!b||!i)&&k()},[p,k,b,i,P]);const L=W=>_=>{W.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!O())&&(n||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},D=W=>_=>{W.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(W={})=>{const _=xr(e);delete _.onTransitionEnter,delete _.onTransitionExited;const j={..._,...W};return{role:"presentation",...j,onKeyDown:L(j),ref:g}},getBackdropProps:(W={})=>{const _=W;return{"aria-hidden":!0,..._,onClick:D(_),open:p}},getTransitionProps:()=>{const W=()=>{m(!1),s&&s()},_=()=>{m(!0),a&&a(),i&&k()};return{onEnter:_c(W,l?.props.onEnter??$g),onExited:_c(_,l?.props.onExited??$g)}},rootRef:g,portalRef:A,isTopModal:O,exited:f,hasTransition:b}}function rO(e){return be("MuiModal",e)}ye("MuiModal",["root","hidden","backdrop"]);const oO=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},rO,r)},iO=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(me(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),sO=X(td,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),so=E.forwardRef(function(t,n){const r=Se({name:"MuiModal",props:t}),{BackdropComponent:i=sO,BackdropProps:s,classes:a,className:l,closeAfterTransition:d=!1,children:p,container:u,component:h,components:x={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:v=!1,keepMounted:C=!1,onClose:P,onTransitionEnter:O,onTransitionExited:A,open:k,slotProps:L={},slots:D={},theme:T,...I}=r,F={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:b,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:v,keepMounted:C},{getRootProps:W,getBackdropProps:_,getTransitionProps:j,portalRef:M,isTopModal:B,exited:$,hasTransition:V}=nO({...F,rootRef:n}),G={...F,exited:$},K=oO(G),Z={};if(p.props.tabIndex===void 0&&(Z.tabIndex="-1"),V){const{onEnter:q,onExited:ne}=j();Z.onEnter=q,Z.onExited=ne}const Q={slots:{root:x.Root,backdrop:x.Backdrop,...D},slotProps:{...y,...L}},[J,ae]=Ee("root",{ref:n,elementType:iO,externalForwardedProps:{...Q,...I,component:h},getSlotProps:W,ownerState:G,className:ue(l,K?.root,!G.open&&G.exited&&K?.hidden)}),[se,le]=Ee("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:q=>_({...q,onClick:ne=>{q?.onClick&&q.onClick(ne)}}),className:ue(s?.className,K?.backdrop),ownerState:G});return!C&&!k&&(!V||$)?null:c.jsx(yi,{ref:M,container:u,disablePortal:b,children:c.jsxs(J,{...ae,children:[!v&&i?c.jsx(se,{...le}):null,c.jsx(Na,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:B,open:k,children:E.cloneElement(p,Z)})]})})});process.env.NODE_ENV!=="production"&&(so.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Tr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Bn,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function aO(e){return be("MuiDialog",e)}const od=ye("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),id=E.createContext({});process.env.NODE_ENV!=="production"&&(id.displayName="DialogContext");const lO=X(td,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),cO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ee(n)}`],paper:["paper",`paperScroll${ee(n)}`,`paperWidth${ee(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return ve(a,aO,t)},dO=X(so,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),uO=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ee(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),pO=X(rn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ee(n.scroll)}`],t[`paperWidth${ee(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(me(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${od.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${od.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${od.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wi=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialog"}),i=gn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:x,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:b,onClose:w,open:S,PaperComponent:v=rn,PaperProps:C={},scroll:P="paper",slots:O={},slotProps:A={},TransitionComponent:k=Pa,transitionDuration:L=s,TransitionProps:D,...T}=r,I={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:m,scroll:P},F=cO(I),W=E.useRef(),_=de=>{W.current=de.target===de.currentTarget},j=de=>{b&&b(de),W.current&&(W.current=null,w&&w(de,"backdropClick"))},M=gr(l),B=E.useMemo(()=>({titleId:M}),[M]),$={transition:k,...O},V={transition:D,paper:C,backdrop:u,...A},G={slots:$,slotProps:V},[K,Z]=Ee("root",{elementType:dO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:I,className:ue(F.root,x),ref:n}),[Q,J]=Ee("backdrop",{elementType:lO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:I}),[ae,se]=Ee("paper",{elementType:pO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:I,className:ue(F.paper,C.className)}),[le,q]=Ee("container",{elementType:uO,externalForwardedProps:G,ownerState:I,className:F.container}),[ne,U]=Ee("transition",{elementType:Pa,externalForwardedProps:G,ownerState:I,additionalProps:{appear:!0,in:S,timeout:L,role:"presentation"}});return c.jsx(K,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:L,as:p,...J}},disableEscapeKeyDown:y,onClose:w,open:S,onClick:j,...Z,...T,children:c.jsx(ne,{...U,children:c.jsx(le,{onMouseDown:_,...q,children:c.jsx(ae,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":M,"aria-modal":d,...se,children:c.jsx(id.Provider,{value:B,children:h})})})})})});process.env.NODE_ENV!=="production"&&(wi.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function fO(e){return be("MuiDialogActions",e)}ye("MuiDialogActions",["root","spacing"]);const hO=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},fO,t)},gO=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),sd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},d=hO(l);return c.jsx(gO,{className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(sd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function mO(e){return be("MuiDialogContent",e)}ye("MuiDialogContent",["root","dividers"]);function yO(e){return be("MuiDialogTitle",e)}const bO=ye("MuiDialogTitle",["root"]),vO=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},mO,t)},xO=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(me(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${bO.root} + &`]:{paddingTop:0}}}]}))),Aa=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},d=vO(l);return c.jsx(xO,{className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Aa.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const SO=e=>{const{classes:t}=e;return ve({root:["root"]},yO,t)},wO=X(R,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Ci=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,d=SO(l),{titleId:p=s}=E.useContext(id);return c.jsx(wO,{component:"h2",className:ue(d.root,i),ownerState:l,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function CO(e){return be("MuiDivider",e)}const zg=ye("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),EO=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:d}=e;return ve({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},CO,r)},TO=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(me(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),PO=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(me(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Xt=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:l="horizontal",component:d=s||l==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:x="center",variant:y="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:p,light:u,orientation:l,role:h,textAlign:x,variant:y},m=EO(f);return c.jsx(TO,{as:d,className:ue(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...g,children:s?c.jsx(PO,{className:m.wrapper,ownerState:f,children:s}):null})});Xt&&(Xt.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Xt.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const OO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${ee(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},p=ve(d,tP,t);return{...t,...p}},kO=X(Ca,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sa(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),NO=X(Ea,{name:"MuiFilledInput",slot:"Input",overridesResolver:wa})(me(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ma=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:x={},type:y="text",...g}=r,f={...r,disableUnderline:i,fullWidth:l,inputComponent:p,multiline:u,type:y},m=OO(r),b={root:{ownerState:f},input:{ownerState:f}},w=h??a?St(b,h??a):b,S=x.root??s.Root??kO,v=x.input??s.Input??NO;return c.jsx(bi,{slots:{root:S,input:v},slotProps:w,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:y,...g,classes:m})});process.env.NODE_ENV!=="production"&&(Ma.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Tt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Ma.muiName="Input";function IO(e){return be("MuiFormControl",e)}ye("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const AO=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ee(n)}`,r&&"fullWidth"]};return ve(i,IO,t)},MO=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ee(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Fa=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:x=!1,margin:y="none",required:g=!1,size:f="medium",variant:m="outlined",...b}=r,w={...r,color:a,component:l,disabled:d,error:p,fullWidth:h,hiddenLabel:x,margin:y,required:g,size:f,variant:m},S=AO(w),[v,C]=E.useState(()=>{let _=!1;return i&&E.Children.forEach(i,j=>{if(!Pc(j,["Input","Select"]))return;const M=Pc(j,["Select"])?j.props.input:j;M&&XT(M.props)&&(_=!0)}),_}),[P,O]=E.useState(()=>{let _=!1;return i&&E.Children.forEach(i,j=>{Pc(j,["Input","Select"])&&(xa(j.props,!0)||xa(j.props.inputProps,!0))&&(_=!0)}),_}),[A,k]=E.useState(!1);d&&A&&k(!1);const L=u!==void 0&&!d?u:A;let D;const T=E.useRef(!1);process.env.NODE_ENV!=="production"&&(D=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
+ `)),T.current=!0,()=>{T.current=!1}));const I=E.useCallback(()=>{O(!0)},[]),F=E.useCallback(()=>{O(!1)},[]),W=E.useMemo(()=>({adornedStart:v,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:L,fullWidth:h,hiddenLabel:x,size:f,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:F,onFilled:I,registerEffect:D,required:g,variant:m}),[v,a,d,p,P,L,h,x,D,F,I,g,f,m]);return c.jsx(va.Provider,{value:W,children:c.jsx(MO,{as:l,ownerState:w,className:ue(S.root,s),ref:n,...b,children:i})})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function FO(e){return be("MuiFormControlLabel",e)}const Ei=ye("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_O=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${ee(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return ve(a,FO,t)},DO=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ei.label}`]:t.label},t.root,t[`labelPlacement${ee(n.labelPlacement)}`]]}})(me(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ei.disabled}`]:{cursor:"default"},[`& .${Ei.label}`]:{[`&.${Ei.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),$O=X("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Ei.error}`]:{color:(e.vars||e).palette.error.main}}))),wn=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:x="end",name:y,onChange:g,required:f,slots:m={},slotProps:b={},value:w,...S}=r,v=xn(),C=d??l.props.disabled??v?.disabled,P=f??l.props.required,O={disabled:C,required:P};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof l.props[W]>"u"&&typeof r[W]<"u"&&(O[W]=r[W])});const A=tr({props:r,muiFormControl:v,states:["error"]}),k={...r,disabled:C,labelPlacement:x,required:P,error:A.error},L=_O(k),D={slots:m,slotProps:{...a,...b}},[T,I]=Ee("typography",{elementType:R,externalForwardedProps:D,ownerState:k});let F=h;return F!=null&&F.type!==R&&!p&&(F=c.jsx(T,{component:"span",...I,className:ue(L.label,I?.className),children:F})),c.jsxs(DO,{className:ue(L.root,s),ownerState:k,ref:n,...S,children:[E.cloneElement(l,O),P?c.jsxs("div",{children:[F,c.jsxs($O,{ownerState:k,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):F]})});process.env.NODE_ENV!=="production"&&(wn.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Tt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function zO(e){return be("MuiFormGroup",e)}ye("MuiFormGroup",["root","row","error"]);const LO=e=>{const{classes:t,row:n,error:r}=e;return ve({root:["root",n&&"row",r&&"error"]},zO,t)},jO=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Lg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=xn(),d=tr({props:r,muiFormControl:l,states:["error"]}),p={...r,row:s,error:d.error},u=LO(p);return c.jsx(jO,{className:ue(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function BO(e){return be("MuiFormHelperText",e)}const jg=ye("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Bg;const WO=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:l,required:d}=e,p={root:["root",i&&"disabled",s&&"error",r&&`size${ee(r)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return ve(p,BO,t)},RO=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ee(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Wg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:d,filled:p,focused:u,margin:h,required:x,variant:y,...g}=r,f=xn(),m=tr({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),b={...r,component:a,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete b.ownerState;const w=WO(b);return c.jsx(RO,{as:a,className:ue(w.root,s),ref:n,...g,ownerState:b,children:i===" "?Bg||(Bg=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function VO(e){return be("MuiFormLabel",e)}const Ti=ye("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),UO=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:l}=e,d={root:["root",`color${ee(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return ve(d,VO,t)},HO=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${Ti.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ti.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ti.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),qO=X("span",{name:"MuiFormLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Ti.error}`]:{color:(e.vars||e).palette.error.main}}))),Pi=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:d,error:p,filled:u,focused:h,required:x,...y}=r,g=xn(),f=tr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},b=UO(m);return c.jsxs(HO,{as:l,ownerState:m,className:ue(b.root,s),ref:n,...y,children:[i,f.required&&c.jsxs(qO,{ownerState:m,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Pi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ad(e){return`scale(${e}, ${e**2})`}const YO={entering:{opacity:1,transform:ad(1)},entered:{opacity:1,transform:"none"}},ld=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ao=E.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:x,onExiting:y,style:g,timeout:f="auto",TransitionComponent:m=mn,...b}=t,w=vr(),S=E.useRef(),v=gn(),C=E.useRef(null),P=ct(C,Cr(s),n),O=W=>_=>{if(W){const j=C.current;_===void 0?W(j):W(j,_)}},A=O(u),k=O((W,_)=>{Uh(W);const{duration:j,delay:M,easing:B}=la({style:g,timeout:f,easing:a},{mode:"enter"});let $;f==="auto"?($=v.transitions.getAutoHeightDuration(W.clientHeight),S.current=$):$=j,W.style.transition=[v.transitions.create("opacity",{duration:$,delay:M}),v.transitions.create("transform",{duration:ld?$:$*.666,delay:M,easing:B})].join(","),d&&d(W,_)}),L=O(p),D=O(y),T=O(W=>{const{duration:_,delay:j,easing:M}=la({style:g,timeout:f,easing:a},{mode:"exit"});let B;f==="auto"?(B=v.transitions.getAutoHeightDuration(W.clientHeight),S.current=B):B=_,W.style.transition=[v.transitions.create("opacity",{duration:B,delay:j}),v.transitions.create("transform",{duration:ld?B:B*.666,delay:ld?j:j||B*.333,easing:M})].join(","),W.style.opacity=0,W.style.transform=ad(.75),h&&h(W)}),I=O(x),F=W=>{f==="auto"&&w.start(S.current||0,W),r&&r(C.current,W)};return c.jsx(m,{appear:i,in:l,nodeRef:C,onEnter:k,onEntered:L,onEntering:A,onExit:T,onExited:I,onExiting:D,addEndListener:F,timeout:f==="auto"?null:f,...b,children:(W,{ownerState:_,...j})=>E.cloneElement(s,{style:{opacity:0,transform:ad(.75),visibility:W==="exited"&&!l?"hidden":void 0,...YO[W],...g,...s.props.style},ref:P,...j})})});process.env.NODE_ENV!=="production"&&(ao.propTypes={addEndListener:o.func,appear:o.bool,children:Tr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),ao&&(ao.muiSupportAuto=!0);const KO=e=>{const{classes:t,disableUnderline:n}=e,i=ve({root:["root",!n&&"underline"],input:["input"]},ZT,t);return{...t,...i}},GO=X(Ca,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sa(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vi.disabled}, .${vi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${vi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),XO=X(Ea,{name:"MuiInput",slot:"Input",overridesResolver:wa})({}),_a=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:x="text",...y}=r,g=KO(r),m={root:{ownerState:{disableUnderline:i}}},b=u??a?St(u??a,m):m,w=h.root??s.Root??GO,S=h.input??s.Input??XO;return c.jsx(bi,{slots:{root:w,input:S},slotProps:b,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:x,...y,classes:g})});process.env.NODE_ENV!=="production"&&(_a.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Tt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),_a.muiName="Input";function JO(e){return be("MuiInputLabel",e)}ye("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const QO=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:l}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${ee(r)}`,a],asterisk:[l&&"asterisk"]},p=ve(d,JO,t);return{...t,...p}},ZO=X(Pi,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ti.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(me(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Rg=E.forwardRef(function(t,n){const r=Se({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:d,...p}=r,u=xn();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const x=tr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:i,formControl:u,shrink:h,size:x.size,variant:x.variant,required:x.required,focused:x.focused},g=QO(y);return c.jsx(ZO,{"data-shrink":h,ref:n,className:ue(g.root,d),...p,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function e2(e){return be("MuiLinearProgress",e)}ye("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cd=4,dd=Gn`
173
173
  0% {
174
174
  left: -35%;
175
175
  right: 100%;
@@ -220,21 +220,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
220
220
  }
221
221
  `,r2=typeof pd!="string"?Kr`
222
222
  animation: ${pd} 3s infinite linear;
223
- `:null,o2=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${ee(r)}`,n],dashed:["dashed",`dashedColor${ee(r)}`],bar1:["bar","bar1",`barColor${ee(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ee(r)}`,n==="buffer"&&`color${ee(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ve(i,e2,t)},fd=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),i2=X("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ee(n.color)}`],t[n.variant]]}})(me(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:fd(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),s2=X("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ee(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>{const n=fd(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),r2||{animation:`${pd} 3s infinite linear`}),a2=X("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ee(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${cd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${cd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:t2||{animation:`${dd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),l2=X("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ee(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:fd(e,t),transition:`transform .${cd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:n2||{animation:`${ud} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Vg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},h=o2(u),x=ii(),y={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){y["aria-valuenow"]=Math.round(a),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let f=a-100;x&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(l!==void 0){let f=(l||0)-100;x&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return c.jsxs(i2,{className:ue(h.root,i),ownerState:u,role:"progressbar",...y,ref:n,...p,children:[d==="buffer"?c.jsx(s2,{className:h.dashed,ownerState:u}):null,c.jsx(a2,{className:h.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:c.jsx(l2,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(Vg.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const Oi=E.createContext({});process.env.NODE_ENV!=="production"&&(Oi.displayName="ListContext");function c2(e){return be("MuiList",e)}ye("MuiList",["root","padding","dense","subheader"]);const d2=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ve({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},c2,t)},u2=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ug=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:p,...u}=r,h=E.useMemo(()=>({dense:l}),[l]),x={...r,component:a,dense:l,disablePadding:d},y=d2(x);return c.jsx(Oi.Provider,{value:h,children:c.jsxs(u2,{as:a,className:ue(y.root,s),ref:n,ownerState:x,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Hg=ye("MuiListItemIcon",["root","alignItemsFlexStart"]);function p2(e){return be("MuiListItemText",e)}const lo=ye("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),f2=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return ve({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},p2,t)},h2=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lo.primary}`]:t.primary},{[`& .${lo.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${eg.root}:where(& .${lo.primary})`]:{display:"block"},[`.${eg.root}:where(& .${lo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),hd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:x={},slotProps:y={},...g}=r,{dense:f}=E.useContext(Oi);let m=d??i,b=u;const w={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!b,dense:f},S=f2(w),v={slots:x,slotProps:{primary:p,secondary:h,...y}},[C,P]=Ee("root",{className:ue(S.root,s),elementType:h2,externalForwardedProps:{...v,...g},ownerState:w,ref:n}),[O,A]=Ee("primary",{className:S.primary,elementType:R,externalForwardedProps:v,ownerState:w}),[k,L]=Ee("secondary",{className:S.secondary,elementType:R,externalForwardedProps:v,ownerState:w});return m!=null&&m.type!==R&&!a&&(m=c.jsx(O,{variant:f?"body2":"body1",component:A?.variant?void 0:"span",...A,children:m})),b!=null&&b.type!==R&&!a&&(b=c.jsx(k,{variant:"body2",color:"textSecondary",...L,children:b})),c.jsxs(C,{...P,children:[m,b]})});process.env.NODE_ENV!=="production"&&(hd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function gd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function qg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Yg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ki(e,t,n,r,i,s){let a=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Yg(l,s)||d)l=i(e,l,n);else return l.focus(),!0}return!1}const Kg=E.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...x}=t,y=E.useRef(null),g=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ht(()=>{i&&y.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:v})=>{const C=!y.current.style.width;if(S.clientHeight<y.current.clientHeight&&C){const P=`${Fg(zn(S))}px`;y.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=P,y.current.style.width=`calc(100% + ${P})`}return y.current}}),[]);const f=S=>{const v=y.current,C=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=Si(ut(v));if(C==="ArrowDown")S.preventDefault(),ki(v,O,p,d,gd);else if(C==="ArrowUp")S.preventDefault(),ki(v,O,p,d,qg);else if(C==="Home")S.preventDefault(),ki(v,null,p,d,gd);else if(C==="End")S.preventDefault(),ki(v,null,p,d,qg);else if(C.length===1){const A=g.current,k=C.toLowerCase(),L=performance.now();A.keys.length>0&&(L-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&k!==A.keys[0]&&(A.repeating=!1)),A.lastTime=L,A.keys.push(k);const D=O&&!A.repeating&&Yg(O,A);A.previousKeyMatched&&(D||ki(v,O,!1,d,gd,A))?S.preventDefault():A.previousKeyMatched=!1}u&&u(S)},m=ct(y,n);let b=-1;E.Children.forEach(a,(S,v)=>{if(!E.isValidElement(S)){b===v&&(b+=1,b>=a.length&&(b=-1));return}process.env.NODE_ENV!=="production"&&Dc.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
224
- `)),S.props.disabled||(h==="selectedMenu"&&S.props.selected||b===-1)&&(b=v),b===v&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const w=E.Children.map(a,(S,v)=>{if(v===b){const C={};return s&&(C.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),E.cloneElement(S,C)}return S});return c.jsx(Ug,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:i?0:-1,...x,children:w})});process.env.NODE_ENV!=="production"&&(Kg.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function g2(e){return be("MuiPopover",e)}ye("MuiPopover",["root","paper"]);function Gg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Xg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Jg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ii(e){return typeof e=="function"?e():e}const m2=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},g2,t)},y2=X(so,{name:"MuiPopover",slot:"Root"})({}),Qg=X(rn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),md=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:p,className:u,container:h,elevation:x=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:m={},slotProps:b={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:v="auto",TransitionProps:C={},disableScrollLock:P=!1,...O}=r,A=E.useRef(),k={...r,anchorOrigin:a,anchorReference:d,elevation:x,marginThreshold:y,transformOrigin:w,TransitionComponent:S,transitionDuration:v,TransitionProps:C},L=m2(k),D=E.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const q=Ii(s),ne=q&&q.nodeType===1?q:ut(A.current).body,U=ne.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const de=ne.getBoundingClientRect();process.env.NODE_ENV!=="test"&&de.top===0&&de.left===0&&de.right===0&&de.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
225
- `))}return{top:U.top+Gg(U,a.vertical),left:U.left+Xg(U,a.horizontal)}},[s,a.horizontal,a.vertical,l,d]),T=E.useCallback(q=>({vertical:Gg(q,w.vertical),horizontal:Xg(q,w.horizontal)}),[w.horizontal,w.vertical]),N=E.useCallback(q=>{const ne={width:q.offsetWidth,height:q.offsetHeight},U=T(ne);if(d==="none")return{top:null,left:null,transformOrigin:Jg(U)};const de=D();let re=de.top-U.vertical,oe=de.left-U.horizontal;const pe=re+ne.height,he=oe+ne.width,we=zn(Ii(s)),Ae=we.innerHeight-y,De=we.innerWidth-y;if(y!==null&&re<y){const Me=re-y;re-=Me,U.vertical+=Me}else if(y!==null&&pe>Ae){const Me=pe-Ae;re-=Me,U.vertical+=Me}if(process.env.NODE_ENV!=="production"&&ne.height>Ae&&ne.height&&Ae&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ne.height-Ae}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
226
- `)),y!==null&&oe<y){const Me=oe-y;oe-=Me,U.horizontal+=Me}else if(he>De){const Me=he-De;oe-=Me,U.horizontal+=Me}return{top:`${Math.round(re)}px`,left:`${Math.round(oe)}px`,transformOrigin:Jg(U)}},[s,d,D,T,y]),[F,W]=E.useState(g),_=E.useCallback(()=>{const q=A.current;if(!q)return;const ne=N(q);ne.top!==null&&q.style.setProperty("top",ne.top),ne.left!==null&&(q.style.left=ne.left),q.style.transformOrigin=ne.transformOrigin,W(!0)},[N]);E.useEffect(()=>(P&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,P,_]);const j=()=>{_()},M=()=>{W(!1)};E.useEffect(()=>{g&&_()}),E.useImperativeHandle(i,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const q=Fh(()=>{_()}),ne=zn(Ii(s));return ne.addEventListener("resize",q),()=>{q.clear(),ne.removeEventListener("resize",q)}},[s,g,_]);let B=v;const $={slots:{transition:S,...m},slotProps:{transition:C,paper:f,...b}},[V,G]=Ee("transition",{elementType:ao,externalForwardedProps:$,ownerState:k,getSlotProps:q=>({...q,onEntering:(ne,U)=>{q.onEntering?.(ne,U),j()},onExited:ne=>{q.onExited?.(ne),M()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!V.muiSupportAuto&&(B=void 0);const K=h||(s?ut(Ii(s)).body:void 0),[Z,{slots:Q,slotProps:J,...ae}]=Ee("root",{ref:n,elementType:y2,externalForwardedProps:{...$,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Dh(typeof b.backdrop=="function"?b.backdrop(k):b.backdrop,{invisible:!0})},container:K,open:g},ownerState:k,className:ue(L.root,u)}),[se,le]=Ee("paper",{ref:A,className:L.paper,elementType:Qg,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:x,style:F?void 0:{opacity:0}},ownerState:k});return c.jsx(Z,{...ae,...!Zn(Z)&&{slots:Q,slotProps:J,disableScrollLock:P},children:c.jsx(V,{...G,timeout:B,children:c.jsx(se,{...le,children:p})})})});process.env.NODE_ENV!=="production"&&(md.propTypes={action:Tt,anchorEl:nn(o.oneOfType([jn,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ii(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
223
+ `:null,o2=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${ee(r)}`,n],dashed:["dashed",`dashedColor${ee(r)}`],bar1:["bar","bar1",`barColor${ee(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ee(r)}`,n==="buffer"&&`color${ee(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ve(i,e2,t)},fd=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),i2=X("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ee(n.color)}`],t[n.variant]]}})(me(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:fd(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),s2=X("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ee(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>{const n=fd(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),r2||{animation:`${pd} 3s infinite linear`}),a2=X("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ee(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${cd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${cd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:t2||{animation:`${dd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),l2=X("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ee(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:fd(e,t),transition:`transform .${cd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:n2||{animation:`${ud} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Vg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},h=o2(u),x=ii(),y={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){y["aria-valuenow"]=Math.round(a),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let f=a-100;x&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(l!==void 0){let f=(l||0)-100;x&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return c.jsxs(i2,{className:ue(h.root,i),ownerState:u,role:"progressbar",...y,ref:n,...p,children:[d==="buffer"?c.jsx(s2,{className:h.dashed,ownerState:u}):null,c.jsx(a2,{className:h.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:c.jsx(l2,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(Vg.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const Oi=E.createContext({});process.env.NODE_ENV!=="production"&&(Oi.displayName="ListContext");function c2(e){return be("MuiList",e)}ye("MuiList",["root","padding","dense","subheader"]);const d2=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ve({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},c2,t)},u2=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ug=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:p,...u}=r,h=E.useMemo(()=>({dense:l}),[l]),x={...r,component:a,dense:l,disablePadding:d},y=d2(x);return c.jsx(Oi.Provider,{value:h,children:c.jsxs(u2,{as:a,className:ue(y.root,s),ref:n,ownerState:x,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Hg=ye("MuiListItemIcon",["root","alignItemsFlexStart"]);function p2(e){return be("MuiListItemText",e)}const lo=ye("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),f2=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return ve({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},p2,t)},h2=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lo.primary}`]:t.primary},{[`& .${lo.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${eg.root}:where(& .${lo.primary})`]:{display:"block"},[`.${eg.root}:where(& .${lo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),hd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:x={},slotProps:y={},...g}=r,{dense:f}=E.useContext(Oi);let m=d??i,b=u;const w={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!b,dense:f},S=f2(w),v={slots:x,slotProps:{primary:p,secondary:h,...y}},[C,P]=Ee("root",{className:ue(S.root,s),elementType:h2,externalForwardedProps:{...v,...g},ownerState:w,ref:n}),[O,A]=Ee("primary",{className:S.primary,elementType:R,externalForwardedProps:v,ownerState:w}),[k,L]=Ee("secondary",{className:S.secondary,elementType:R,externalForwardedProps:v,ownerState:w});return m!=null&&m.type!==R&&!a&&(m=c.jsx(O,{variant:f?"body2":"body1",component:A?.variant?void 0:"span",...A,children:m})),b!=null&&b.type!==R&&!a&&(b=c.jsx(k,{variant:"body2",color:"textSecondary",...L,children:b})),c.jsxs(C,{...P,children:[m,b]})});process.env.NODE_ENV!=="production"&&(hd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function gd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function qg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Yg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ki(e,t,n,r,i,s){let a=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Yg(l,s)||d)l=i(e,l,n);else return l.focus(),!0}return!1}const Kg=E.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...x}=t,y=E.useRef(null),g=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ht(()=>{i&&y.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:v})=>{const C=!y.current.style.width;if(S.clientHeight<y.current.clientHeight&&C){const P=`${Fg(Ln(S))}px`;y.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=P,y.current.style.width=`calc(100% + ${P})`}return y.current}}),[]);const f=S=>{const v=y.current,C=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=Si(ut(v));if(C==="ArrowDown")S.preventDefault(),ki(v,O,p,d,gd);else if(C==="ArrowUp")S.preventDefault(),ki(v,O,p,d,qg);else if(C==="Home")S.preventDefault(),ki(v,null,p,d,gd);else if(C==="End")S.preventDefault(),ki(v,null,p,d,qg);else if(C.length===1){const A=g.current,k=C.toLowerCase(),L=performance.now();A.keys.length>0&&(L-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&k!==A.keys[0]&&(A.repeating=!1)),A.lastTime=L,A.keys.push(k);const D=O&&!A.repeating&&Yg(O,A);A.previousKeyMatched&&(D||ki(v,O,!1,d,gd,A))?S.preventDefault():A.previousKeyMatched=!1}u&&u(S)},m=ct(y,n);let b=-1;E.Children.forEach(a,(S,v)=>{if(!E.isValidElement(S)){b===v&&(b+=1,b>=a.length&&(b=-1));return}process.env.NODE_ENV!=="production"&&Dc.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
224
+ `)),S.props.disabled||(h==="selectedMenu"&&S.props.selected||b===-1)&&(b=v),b===v&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const w=E.Children.map(a,(S,v)=>{if(v===b){const C={};return s&&(C.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),E.cloneElement(S,C)}return S});return c.jsx(Ug,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:i?0:-1,...x,children:w})});process.env.NODE_ENV!=="production"&&(Kg.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function g2(e){return be("MuiPopover",e)}ye("MuiPopover",["root","paper"]);function Gg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Xg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Jg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ni(e){return typeof e=="function"?e():e}const m2=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},g2,t)},y2=X(so,{name:"MuiPopover",slot:"Root"})({}),Qg=X(rn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),md=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:p,className:u,container:h,elevation:x=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:m={},slotProps:b={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:v="auto",TransitionProps:C={},disableScrollLock:P=!1,...O}=r,A=E.useRef(),k={...r,anchorOrigin:a,anchorReference:d,elevation:x,marginThreshold:y,transformOrigin:w,TransitionComponent:S,transitionDuration:v,TransitionProps:C},L=m2(k),D=E.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const q=Ni(s),ne=q&&q.nodeType===1?q:ut(A.current).body,U=ne.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const de=ne.getBoundingClientRect();process.env.NODE_ENV!=="test"&&de.top===0&&de.left===0&&de.right===0&&de.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
225
+ `))}return{top:U.top+Gg(U,a.vertical),left:U.left+Xg(U,a.horizontal)}},[s,a.horizontal,a.vertical,l,d]),T=E.useCallback(q=>({vertical:Gg(q,w.vertical),horizontal:Xg(q,w.horizontal)}),[w.horizontal,w.vertical]),I=E.useCallback(q=>{const ne={width:q.offsetWidth,height:q.offsetHeight},U=T(ne);if(d==="none")return{top:null,left:null,transformOrigin:Jg(U)};const de=D();let re=de.top-U.vertical,oe=de.left-U.horizontal;const pe=re+ne.height,he=oe+ne.width,we=Ln(Ni(s)),Ae=we.innerHeight-y,De=we.innerWidth-y;if(y!==null&&re<y){const Me=re-y;re-=Me,U.vertical+=Me}else if(y!==null&&pe>Ae){const Me=pe-Ae;re-=Me,U.vertical+=Me}if(process.env.NODE_ENV!=="production"&&ne.height>Ae&&ne.height&&Ae&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ne.height-Ae}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
226
+ `)),y!==null&&oe<y){const Me=oe-y;oe-=Me,U.horizontal+=Me}else if(he>De){const Me=he-De;oe-=Me,U.horizontal+=Me}return{top:`${Math.round(re)}px`,left:`${Math.round(oe)}px`,transformOrigin:Jg(U)}},[s,d,D,T,y]),[F,W]=E.useState(g),_=E.useCallback(()=>{const q=A.current;if(!q)return;const ne=I(q);ne.top!==null&&q.style.setProperty("top",ne.top),ne.left!==null&&(q.style.left=ne.left),q.style.transformOrigin=ne.transformOrigin,W(!0)},[I]);E.useEffect(()=>(P&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,P,_]);const j=()=>{_()},M=()=>{W(!1)};E.useEffect(()=>{g&&_()}),E.useImperativeHandle(i,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const q=Fh(()=>{_()}),ne=Ln(Ni(s));return ne.addEventListener("resize",q),()=>{q.clear(),ne.removeEventListener("resize",q)}},[s,g,_]);let B=v;const $={slots:{transition:S,...m},slotProps:{transition:C,paper:f,...b}},[V,G]=Ee("transition",{elementType:ao,externalForwardedProps:$,ownerState:k,getSlotProps:q=>({...q,onEntering:(ne,U)=>{q.onEntering?.(ne,U),j()},onExited:ne=>{q.onExited?.(ne),M()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!V.muiSupportAuto&&(B=void 0);const K=h||(s?ut(Ni(s)).body:void 0),[Z,{slots:Q,slotProps:J,...ae}]=Ee("root",{ref:n,elementType:y2,externalForwardedProps:{...$,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Dh(typeof b.backdrop=="function"?b.backdrop(k):b.backdrop,{invisible:!0})},container:K,open:g},ownerState:k,className:ue(L.root,u)}),[se,le]=Ee("paper",{ref:A,className:L.paper,elementType:Qg,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:x,style:F?void 0:{opacity:0}},ownerState:k});return c.jsx(Z,{...ae,...!Zn(Z)&&{slots:Q,slotProps:J,disableScrollLock:P},children:c.jsx(V,{...G,timeout:B,children:c.jsx(se,{...le,children:p})})})});process.env.NODE_ENV!=="production"&&(md.propTypes={action:Tt,anchorEl:nn(o.oneOfType([Bn,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ni(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
227
227
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
228
- `))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([jn,o.func]),disableScrollLock:o.bool,elevation:ca,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Bc}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function b2(e){return be("MuiMenu",e)}ye("MuiMenu",["root","paper","list"]);const v2={vertical:"top",horizontal:"right"},x2={vertical:"top",horizontal:"left"},S2=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},b2,t)},w2=X(md,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),C2=X(Qg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),E2=X(Kg,{name:"MuiMenu",slot:"List"})({outline:0}),yd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:h={},PopoverClasses:x,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:b={},slotProps:w={},...S}=r,v=ii(),C={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:y,TransitionProps:f,variant:m},P=S2(C),O=i&&!l&&u,A=E.useRef(null),k=(B,$)=>{A.current&&A.current.adjustStyleForScrollbar(B,{direction:v?"rtl":"ltr"}),g&&g(B,$)},L=B=>{B.key==="Tab"&&(B.preventDefault(),p&&p(B,"tabKeyDown"))};let D=-1;E.Children.map(s,(B,$)=>{E.isValidElement(B)&&(process.env.NODE_ENV!=="production"&&Dc.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
- `)),B.props.disabled||(m==="selectedMenu"&&B.props.selected||D===-1)&&(D=$))});const T={slots:b,slotProps:{list:d,transition:f,paper:h,...w}},N=vn({elementType:b.root,externalSlotProps:w.root,ownerState:C,className:[P.root,a]}),[F,W]=Ee("paper",{className:P.paper,elementType:C2,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:C}),[_,j]=Ee("list",{className:ue(P.list,d.className),elementType:E2,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:B=>({...B,onKeyDown:$=>{L($),B.onKeyDown?.($)}}),ownerState:C}),M=typeof T.slotProps.transition=="function"?T.slotProps.transition(C):T.slotProps.transition;return c.jsx(w2,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?v2:x2,slots:{root:b.root,paper:F,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:N,paper:W,backdrop:typeof w.backdrop=="function"?w.backdrop(C):w.backdrop,transition:{...M,onEntering:(...B)=>{k(...B),M?.onEntering?.(...B)}}},open:u,ref:n,transitionDuration:y,ownerState:C,...S,classes:x,children:c.jsx(_,{actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:O,variant:m,...j,children:s})})});process.env.NODE_ENV!=="production"&&(yd.propTypes={anchorEl:o.oneOfType([jn,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function T2(e){return be("MuiMenuItem",e)}const Ni=ye("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),P2=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},O2=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=ve({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},T2,a);return{...a,...d}},k2=X(ci,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:P2})(me(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ni.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ni.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ni.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ni.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ni.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zg.inset}`]:{marginLeft:52},[`& .${lo.root}`]:{marginTop:0,marginBottom:0},[`& .${lo.inset}`]:{paddingLeft:36},[`& .${Hg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Hg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ot=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:x,...y}=r,g=E.useContext(Oi),f=E.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=E.useRef(null);Ht(()=>{i&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const b={...r,dense:f.dense,divider:l,disableGutters:d},w=O2(r),S=ct(m,n);let v;return r.disabled||(v=h!==void 0?h:-1),c.jsx(Oi.Provider,{value:f,children:c.jsx(k2,{ref:S,role:u,tabIndex:v,component:s,focusVisibleClassName:ue(w.focusVisible,p),className:ue(w.root,x),...y,ownerState:b,classes:w})})});process.env.NODE_ENV!=="production"&&(Ot.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function I2(e){return be("MuiMobileStepper",e)}ye("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const N2=e=>{const{classes:t,position:n}=e,r={root:["root",`position${ee(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return ve(r,I2,t)},A2=X(rn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ee(n.position)}`]]}})(me(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),M2=X("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),F2=X("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>ai(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(me(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),_2=X(Vg,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),Zg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:l,nextButton:d,position:p="bottom",steps:u,variant:h="dots",slots:x={},slotProps:y={},...g}=r,f={...r,activeStep:i,position:p,variant:h};let m;h==="progress"&&(u===1?m=100:m=Math.ceil(i/(u-1)*100));const b=N2(f),w={slots:x,slotProps:{progress:l,...y}},[S,v]=Ee("root",{ref:n,elementType:A2,shouldForwardComponentProp:!0,className:ue(b.root,a),externalForwardedProps:{...w,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[C,P]=Ee("dots",{className:b.dots,elementType:M2,externalForwardedProps:w,ownerState:f}),[O,A]=Ee("dot",{elementType:F2,externalForwardedProps:w,ownerState:f}),[k,L]=Ee("progress",{className:b.progress,elementType:_2,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return c.jsxs(S,{...v,children:[s,h==="text"&&c.jsxs(E.Fragment,{children:[i+1," / ",u]}),h==="dots"&&c.jsx(C,{...P,children:[...new Array(u)].map((D,T)=>c.jsx(O,{...A,className:ue(b.dot,A.className,T===i&&b.dotActive),dotActive:T===i},T))}),h==="progress"&&c.jsx(k,{...L}),d]})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={activeStep:ca,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:ca.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function D2(e){return be("MuiNativeSelect",e)}const bd=ye("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$2=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ee(n)}`,s&&"iconOpen",r&&"disabled"]};return ve(l,D2,t)},em=X("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${bd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),z2=X(em,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${bd.multiple}`]:t.multiple}]}})({}),tm=X("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${bd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),L2=X(tm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ee(n.variant)}`],n.open&&t.iconOpen]}})({}),nm=E.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:l,variant:d="standard",...p}=t,u={...t,disabled:i,variant:d,error:s},h=$2(u);return c.jsxs(E.Fragment,{children:[c.jsx(z2,{ownerState:u,className:ue(h.select,r),disabled:i,ref:l||n,...p}),t.multiple?null:c.jsx(L2,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(nm.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Tt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var rm;const j2=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:wt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),B2=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:wt})(me(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function om(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,l=i!=null&&i!=="",d={...e,notched:s,withLabel:l};return c.jsx(j2,{"aria-hidden":!0,className:r,ownerState:d,...a,children:c.jsx(B2,{ownerState:d,children:l?c.jsx("span",{children:i}):rm||(rm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(om.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const W2=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},eP,t);return{...t,...r}},R2=X(Ca,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sa})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ot()).map(([n])=>({props:{color:n},style:{[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Sn.error} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Sn.disabled} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),V2=X(om,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),U2=X(Ea,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wa})(me(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Da=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:x="text",...y}=r,g=W2(r),f=xn(),m=tr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:x},w=u.root??i.Root??R2,S=u.input??i.Input??U2,[v,C]=Ee("notchedOutline",{elementType:V2,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&m.required?c.jsxs(E.Fragment,{children:[l," ","*"]}):l}});return c.jsx(bi,{slots:{root:w,input:S},slotProps:h,renderSuffix:P=>c.jsx(v,{...C,notched:typeof p<"u"?p:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:x,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Da.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Tt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Da.muiName="Input";const H2=We(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),q2=We(c.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Y2=X("span",{name:"MuiRadioButtonIcon",shouldForwardProp:wt})({position:"relative",display:"flex"}),K2=X(H2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),G2=X(q2,{name:"MuiRadioButtonIcon"})(me(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function vd(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return c.jsxs(Y2,{className:n.root,ownerState:i,children:[c.jsx(K2,{fontSize:r,className:n.background,ownerState:i}),c.jsx(G2,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(vd.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const xd=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(xd.displayName="RadioGroupContext");function X2(){return E.useContext(xd)}function J2(e){return be("MuiRadio",e)}const im=ye("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Q2=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ee(n)}`,r!=="medium"&&`size${ee(r)}`]};return{...t,...ve(i,J2,t)}},Z2=X(Oa,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ee(n.size)}`],t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${im.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${im.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function ek(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const tk=c.jsx(vd,{checked:!0}),nk=c.jsx(vd,{}),co=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=tk,color:a="primary",icon:l=nk,name:d,onChange:p,size:u="medium",className:h,disabled:x,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:m,...b}=r,w=xn();let S=x;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const v={...r,disabled:S,disableRipple:y,color:a,size:u},C=Q2(v),P=X2();let O=i;const A=_c(p,P&&P.onChange);let k=d;P&&(typeof O>"u"&&(O=ek(P.value,r.value)),typeof k>"u"&&(k=P.name));const L=f.input??m,[D,T]=Ee("root",{ref:n,elementType:Z2,className:ue(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...b},getSlotProps:N=>({...N,onChange:(F,...W)=>{N.onChange?.(F,...W),A(F,...W)}}),ownerState:v,additionalProps:{type:"radio",icon:E.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:S,name:k,checked:O,slots:g,slotProps:{input:typeof L=="function"?L(v):L}}});return c.jsx(D,{...T,classes:C})});process.env.NODE_ENV!=="production"&&(co.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Tt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function rk(e){return be("MuiRadioGroup",e)}ye("MuiRadioGroup",["root","row","error"]);const ok=e=>{const{classes:t,row:n,error:r}=e;return ve({root:["root",n&&"row",r&&"error"]},rk,t)},$a=E.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:d,value:p,...u}=t,h=E.useRef(null),x=ok(t),[y,g]=Jr({controlled:p,default:a,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const f=ct(n,h),m=gr(l),b=E.useMemo(()=>({name:m,onChange(w){g(w.target.value),d&&d(w,w.target.value)},value:y}),[m,d,g,y]);return c.jsx(xd.Provider,{value:b,children:c.jsx(Lg,{role:"radiogroup",ref:f,className:ue(x.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&($a.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const ik={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function sm(e){return be("MuiSelect",e)}const Ai=ye("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var am;const sk=X(em,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ai.select}`]:t.select},{[`&.${Ai.select}`]:t[n.variant]},{[`&.${Ai.error}`]:t.error},{[`&.${Ai.multiple}`]:t.multiple}]}})({[`&.${Ai.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ak=X(tm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ee(n.variant)}`],n.open&&t.iconOpen]}})({}),lk=X("input",{shouldForwardProp:e=>ai(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ck(e){return e==null||typeof e=="string"&&!e.trim()}const dk=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ee(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(l,sm,t)},cm=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:x,error:y=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:b={},multiple:w,name:S,onBlur:v,onChange:C,onClose:P,onFocus:O,onKeyDown:A,onMouseDown:k,onOpen:L,open:D,readOnly:T,renderValue:N,required:F,SelectDisplayProps:W={},tabIndex:_,type:j,value:M,variant:B="standard",...$}=t,[V,G]=Jr({controlled:M,default:u,name:"Select"}),[K,Z]=Jr({controlled:D,default:p,name:"Select"}),Q=E.useRef(null),J=E.useRef(null),[ae,se]=E.useState(null),{current:le}=E.useRef(D!=null),[q,ne]=E.useState(),U=ct(n,f),de=E.useCallback(ge=>{J.current=ge,ge&&se(ge)},[]),re=ae?.parentNode;E.useImperativeHandle(U,()=>({focus:()=>{J.current.focus()},node:Q.current,value:V}),[V]),E.useEffect(()=>{p&&K&&ae&&!le&&(ne(a?null:re.clientWidth),J.current.focus())},[ae,a]),E.useEffect(()=>{s&&J.current.focus()},[s]),E.useEffect(()=>{if(!m)return;const ge=ut(J.current).getElementById(m);if(ge){const Fe=()=>{getSelection().isCollapsed&&J.current.focus()};return ge.addEventListener("click",Fe),()=>{ge.removeEventListener("click",Fe)}}},[m]);const oe=(ge,Fe)=>{ge?L&&L(Fe):P&&P(Fe),le||(ne(a?null:re.clientWidth),Z(ge))},pe=ge=>{k?.(ge),ge.button===0&&(ge.preventDefault(),J.current.focus(),oe(!0,ge))},he=ge=>{oe(!1,ge)},we=E.Children.toArray(l),Ae=ge=>{const Fe=we.find(et=>et.props.value===ge.target.value);Fe!==void 0&&(G(Fe.props.value),C&&C(ge,Fe))},De=ge=>Fe=>{let et;if(Fe.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(V)?V.slice():[];const On=V.indexOf(ge.props.value);On===-1?et.push(ge.props.value):et.splice(On,1)}else et=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Fe),V!==et&&(G(et),C)){const On=Fe.nativeEvent||Fe,Je=new On.constructor(On.type,On);Object.defineProperty(Je,"target",{writable:!0,value:{value:et,name:S}}),C(Je,ge)}w||oe(!1,Fe)}},Me=ge=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),oe(!0,ge)),A?.(ge))},ce=ae!==null&&K,Xe=ge=>{!ce&&v&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:V,name:S}}),v(ge))};delete $["aria-invalid"];let Ie,ie;const te=[];let fe=!1,Ce=!1;(xa({value:V})||x)&&(N?Ie=N(V):fe=!0);const Pe=we.map(ge=>{if(!E.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&Dc.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
228
+ `))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Bn,o.func]),disableScrollLock:o.bool,elevation:ca,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Bc}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function b2(e){return be("MuiMenu",e)}ye("MuiMenu",["root","paper","list"]);const v2={vertical:"top",horizontal:"right"},x2={vertical:"top",horizontal:"left"},S2=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},b2,t)},w2=X(md,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),C2=X(Qg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),E2=X(Kg,{name:"MuiMenu",slot:"List"})({outline:0}),yd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:h={},PopoverClasses:x,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:b={},slotProps:w={},...S}=r,v=ii(),C={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:y,TransitionProps:f,variant:m},P=S2(C),O=i&&!l&&u,A=E.useRef(null),k=(B,$)=>{A.current&&A.current.adjustStyleForScrollbar(B,{direction:v?"rtl":"ltr"}),g&&g(B,$)},L=B=>{B.key==="Tab"&&(B.preventDefault(),p&&p(B,"tabKeyDown"))};let D=-1;E.Children.map(s,(B,$)=>{E.isValidElement(B)&&(process.env.NODE_ENV!=="production"&&Dc.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
+ `)),B.props.disabled||(m==="selectedMenu"&&B.props.selected||D===-1)&&(D=$))});const T={slots:b,slotProps:{list:d,transition:f,paper:h,...w}},I=vn({elementType:b.root,externalSlotProps:w.root,ownerState:C,className:[P.root,a]}),[F,W]=Ee("paper",{className:P.paper,elementType:C2,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:C}),[_,j]=Ee("list",{className:ue(P.list,d.className),elementType:E2,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:B=>({...B,onKeyDown:$=>{L($),B.onKeyDown?.($)}}),ownerState:C}),M=typeof T.slotProps.transition=="function"?T.slotProps.transition(C):T.slotProps.transition;return c.jsx(w2,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?v2:x2,slots:{root:b.root,paper:F,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:I,paper:W,backdrop:typeof w.backdrop=="function"?w.backdrop(C):w.backdrop,transition:{...M,onEntering:(...B)=>{k(...B),M?.onEntering?.(...B)}}},open:u,ref:n,transitionDuration:y,ownerState:C,...S,classes:x,children:c.jsx(_,{actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:O,variant:m,...j,children:s})})});process.env.NODE_ENV!=="production"&&(yd.propTypes={anchorEl:o.oneOfType([Bn,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function T2(e){return be("MuiMenuItem",e)}const Ii=ye("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),P2=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},O2=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=ve({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},T2,a);return{...a,...d}},k2=X(ci,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:P2})(me(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ii.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ii.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ii.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ii.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ii.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zg.inset}`]:{marginLeft:52},[`& .${lo.root}`]:{marginTop:0,marginBottom:0},[`& .${lo.inset}`]:{paddingLeft:36},[`& .${Hg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Hg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ot=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:x,...y}=r,g=E.useContext(Oi),f=E.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=E.useRef(null);Ht(()=>{i&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const b={...r,dense:f.dense,divider:l,disableGutters:d},w=O2(r),S=ct(m,n);let v;return r.disabled||(v=h!==void 0?h:-1),c.jsx(Oi.Provider,{value:f,children:c.jsx(k2,{ref:S,role:u,tabIndex:v,component:s,focusVisibleClassName:ue(w.focusVisible,p),className:ue(w.root,x),...y,ownerState:b,classes:w})})});process.env.NODE_ENV!=="production"&&(Ot.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function N2(e){return be("MuiMobileStepper",e)}ye("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const I2=e=>{const{classes:t,position:n}=e,r={root:["root",`position${ee(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return ve(r,N2,t)},A2=X(rn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ee(n.position)}`]]}})(me(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),M2=X("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),F2=X("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>ai(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(me(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),_2=X(Vg,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),Zg=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:l,nextButton:d,position:p="bottom",steps:u,variant:h="dots",slots:x={},slotProps:y={},...g}=r,f={...r,activeStep:i,position:p,variant:h};let m;h==="progress"&&(u===1?m=100:m=Math.ceil(i/(u-1)*100));const b=I2(f),w={slots:x,slotProps:{progress:l,...y}},[S,v]=Ee("root",{ref:n,elementType:A2,shouldForwardComponentProp:!0,className:ue(b.root,a),externalForwardedProps:{...w,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[C,P]=Ee("dots",{className:b.dots,elementType:M2,externalForwardedProps:w,ownerState:f}),[O,A]=Ee("dot",{elementType:F2,externalForwardedProps:w,ownerState:f}),[k,L]=Ee("progress",{className:b.progress,elementType:_2,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return c.jsxs(S,{...v,children:[s,h==="text"&&c.jsxs(E.Fragment,{children:[i+1," / ",u]}),h==="dots"&&c.jsx(C,{...P,children:[...new Array(u)].map((D,T)=>c.jsx(O,{...A,className:ue(b.dot,A.className,T===i&&b.dotActive),dotActive:T===i},T))}),h==="progress"&&c.jsx(k,{...L}),d]})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={activeStep:ca,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:ca.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function D2(e){return be("MuiNativeSelect",e)}const bd=ye("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$2=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ee(n)}`,s&&"iconOpen",r&&"disabled"]};return ve(l,D2,t)},em=X("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${bd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),z2=X(em,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${bd.multiple}`]:t.multiple}]}})({}),tm=X("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${bd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),L2=X(tm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ee(n.variant)}`],n.open&&t.iconOpen]}})({}),nm=E.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:l,variant:d="standard",...p}=t,u={...t,disabled:i,variant:d,error:s},h=$2(u);return c.jsxs(E.Fragment,{children:[c.jsx(z2,{ownerState:u,className:ue(h.select,r),disabled:i,ref:l||n,...p}),t.multiple?null:c.jsx(L2,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(nm.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Tt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var rm;const j2=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:wt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),B2=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:wt})(me(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function om(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,l=i!=null&&i!=="",d={...e,notched:s,withLabel:l};return c.jsx(j2,{"aria-hidden":!0,className:r,ownerState:d,...a,children:c.jsx(B2,{ownerState:d,children:l?c.jsx("span",{children:i}):rm||(rm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(om.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const W2=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},eP,t);return{...t,...r}},R2=X(Ca,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sa})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ot()).map(([n])=>({props:{color:n},style:{[`&.${Sn.focused} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Sn.error} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Sn.disabled} .${Sn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),V2=X(om,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),U2=X(Ea,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wa})(me(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Da=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:x="text",...y}=r,g=W2(r),f=xn(),m=tr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:x},w=u.root??i.Root??R2,S=u.input??i.Input??U2,[v,C]=Ee("notchedOutline",{elementType:V2,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&m.required?c.jsxs(E.Fragment,{children:[l," ","*"]}):l}});return c.jsx(bi,{slots:{root:w,input:S},slotProps:h,renderSuffix:P=>c.jsx(v,{...C,notched:typeof p<"u"?p:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:x,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Da.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Tt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Da.muiName="Input";const H2=We(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),q2=We(c.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Y2=X("span",{name:"MuiRadioButtonIcon",shouldForwardProp:wt})({position:"relative",display:"flex"}),K2=X(H2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),G2=X(q2,{name:"MuiRadioButtonIcon"})(me(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function vd(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return c.jsxs(Y2,{className:n.root,ownerState:i,children:[c.jsx(K2,{fontSize:r,className:n.background,ownerState:i}),c.jsx(G2,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(vd.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const xd=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(xd.displayName="RadioGroupContext");function X2(){return E.useContext(xd)}function J2(e){return be("MuiRadio",e)}const im=ye("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Q2=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ee(n)}`,r!=="medium"&&`size${ee(r)}`]};return{...t,...ve(i,J2,t)}},Z2=X(Oa,{shouldForwardProp:e=>wt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ee(n.size)}`],t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${im.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${im.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function ek(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const tk=c.jsx(vd,{checked:!0}),nk=c.jsx(vd,{}),co=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=tk,color:a="primary",icon:l=nk,name:d,onChange:p,size:u="medium",className:h,disabled:x,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:m,...b}=r,w=xn();let S=x;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const v={...r,disabled:S,disableRipple:y,color:a,size:u},C=Q2(v),P=X2();let O=i;const A=_c(p,P&&P.onChange);let k=d;P&&(typeof O>"u"&&(O=ek(P.value,r.value)),typeof k>"u"&&(k=P.name));const L=f.input??m,[D,T]=Ee("root",{ref:n,elementType:Z2,className:ue(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...b},getSlotProps:I=>({...I,onChange:(F,...W)=>{I.onChange?.(F,...W),A(F,...W)}}),ownerState:v,additionalProps:{type:"radio",icon:E.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:S,name:k,checked:O,slots:g,slotProps:{input:typeof L=="function"?L(v):L}}});return c.jsx(D,{...T,classes:C})});process.env.NODE_ENV!=="production"&&(co.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Tt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function rk(e){return be("MuiRadioGroup",e)}ye("MuiRadioGroup",["root","row","error"]);const ok=e=>{const{classes:t,row:n,error:r}=e;return ve({root:["root",n&&"row",r&&"error"]},rk,t)},$a=E.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:d,value:p,...u}=t,h=E.useRef(null),x=ok(t),[y,g]=Jr({controlled:p,default:a,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const f=ct(n,h),m=gr(l),b=E.useMemo(()=>({name:m,onChange(w){g(w.target.value),d&&d(w,w.target.value)},value:y}),[m,d,g,y]);return c.jsx(xd.Provider,{value:b,children:c.jsx(Lg,{role:"radiogroup",ref:f,className:ue(x.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&($a.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const ik={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function sm(e){return be("MuiSelect",e)}const Ai=ye("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var am;const sk=X(em,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ai.select}`]:t.select},{[`&.${Ai.select}`]:t[n.variant]},{[`&.${Ai.error}`]:t.error},{[`&.${Ai.multiple}`]:t.multiple}]}})({[`&.${Ai.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ak=X(tm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ee(n.variant)}`],n.open&&t.iconOpen]}})({}),lk=X("input",{shouldForwardProp:e=>ai(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ck(e){return e==null||typeof e=="string"&&!e.trim()}const dk=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ee(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(l,sm,t)},cm=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:x,error:y=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:b={},multiple:w,name:S,onBlur:v,onChange:C,onClose:P,onFocus:O,onKeyDown:A,onMouseDown:k,onOpen:L,open:D,readOnly:T,renderValue:I,required:F,SelectDisplayProps:W={},tabIndex:_,type:j,value:M,variant:B="standard",...$}=t,[V,G]=Jr({controlled:M,default:u,name:"Select"}),[K,Z]=Jr({controlled:D,default:p,name:"Select"}),Q=E.useRef(null),J=E.useRef(null),[ae,se]=E.useState(null),{current:le}=E.useRef(D!=null),[q,ne]=E.useState(),U=ct(n,f),de=E.useCallback(ge=>{J.current=ge,ge&&se(ge)},[]),re=ae?.parentNode;E.useImperativeHandle(U,()=>({focus:()=>{J.current.focus()},node:Q.current,value:V}),[V]),E.useEffect(()=>{p&&K&&ae&&!le&&(ne(a?null:re.clientWidth),J.current.focus())},[ae,a]),E.useEffect(()=>{s&&J.current.focus()},[s]),E.useEffect(()=>{if(!m)return;const ge=ut(J.current).getElementById(m);if(ge){const Fe=()=>{getSelection().isCollapsed&&J.current.focus()};return ge.addEventListener("click",Fe),()=>{ge.removeEventListener("click",Fe)}}},[m]);const oe=(ge,Fe)=>{ge?L&&L(Fe):P&&P(Fe),le||(ne(a?null:re.clientWidth),Z(ge))},pe=ge=>{k?.(ge),ge.button===0&&(ge.preventDefault(),J.current.focus(),oe(!0,ge))},he=ge=>{oe(!1,ge)},we=E.Children.toArray(l),Ae=ge=>{const Fe=we.find(et=>et.props.value===ge.target.value);Fe!==void 0&&(G(Fe.props.value),C&&C(ge,Fe))},De=ge=>Fe=>{let et;if(Fe.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(V)?V.slice():[];const On=V.indexOf(ge.props.value);On===-1?et.push(ge.props.value):et.splice(On,1)}else et=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Fe),V!==et&&(G(et),C)){const On=Fe.nativeEvent||Fe,Je=new On.constructor(On.type,On);Object.defineProperty(Je,"target",{writable:!0,value:{value:et,name:S}}),C(Je,ge)}w||oe(!1,Fe)}},Me=ge=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),oe(!0,ge)),A?.(ge))},ce=ae!==null&&K,Xe=ge=>{!ce&&v&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:V,name:S}}),v(ge))};delete $["aria-invalid"];let Ne,ie;const te=[];let fe=!1,Ce=!1;(xa({value:V})||x)&&(I?Ne=I(V):fe=!0);const Pe=we.map(ge=>{if(!E.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&Dc.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
230
230
  `));let Fe;if(w){if(!Array.isArray(V))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":cn(2));Fe=V.some(et=>lm(et,ge.props.value)),Fe&&fe&&te.push(ge.props.children)}else Fe=lm(V,ge.props.value),Fe&&fe&&(ie=ge.props.children);return Fe&&(Ce=!0),E.cloneElement(ge,{"aria-selected":Fe?"true":"false",onClick:De(ge),onKeyUp:et=>{et.key===" "&&et.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(et)},role:"option",selected:Fe,value:void 0,"data-value":ge.props.value})});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(!Ce&&!w&&V!==""){const ge=we.map(Fe=>Fe.props.value);console.warn([`MUI: You have provided an out-of-range value \`${V}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ge.filter(Fe=>Fe!=null).map(Fe=>`\`${Fe}\``).join(", ")||'""'}.`].join(`
231
- `))}},[Ce,we,w,S,V]),fe&&(w?te.length===0?Ie=null:Ie=te.reduce((ge,Fe,et)=>(ge.push(Fe),et<te.length-1&&ge.push(", "),ge),[]):Ie=ie);let Te=q;!a&&le&&ae&&(Te=re.clientWidth);let xe;typeof _<"u"?xe=_:xe=h?null:0;const Ze=W.id||(S?`mui-component-select-${S}`:void 0),_e={...t,variant:B,value:V,open:ce,error:y},pt=dk(_e),sn={...b.PaperProps,...typeof b.slotProps?.paper=="function"?b.slotProps.paper(_e):b.slotProps?.paper},kr={...b.MenuListProps,...typeof b.slotProps?.list=="function"?b.slotProps.list(_e):b.slotProps?.list},or=gr();return c.jsxs(E.Fragment,{children:[c.jsx(sk,{as:"div",ref:de,tabIndex:xe,role:"combobox","aria-controls":ce?or:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ce?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,Ze].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":F?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Me,onMouseDown:h||T?null:pe,onBlur:Xe,onFocus:O,...W,ownerState:_e,className:ue(W.className,pt.select,d),id:Ze,children:ck(Ie)?am||(am=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ie}),c.jsx(lk,{"aria-invalid":y,value:Array.isArray(V)?V.join(","):V,name:S,ref:Q,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:h,className:pt.nativeInput,autoFocus:s,required:F,...$,ownerState:_e}),c.jsx(ak,{as:g,className:pt.icon,ownerState:_e}),c.jsx(yd,{id:`menu-${S||""}`,anchorEl:re,open:ce,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:or,...kr},paper:{...sn,style:{minWidth:Te,...sn!=null?sn.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(cm.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Tt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const uk=e=>{const{classes:t}=e,r=ve({root:["root"]},sm,t);return{...t,...r}},Sd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>wt(e)&&e!=="variant"},pk=X(_a,Sd)(""),fk=X(Da,Sd)(""),hk=X(Ma,Sd)(""),Rn=E.forwardRef(function(t,n){const r=Se({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=nP,id:h,input:x,inputProps:y,label:g,labelId:f,MenuProps:m,multiple:b=!1,native:w=!1,onClose:S,onOpen:v,open:C,renderValue:P,SelectDisplayProps:O,variant:A="outlined",...k}=r,L=w?nm:cm,D=xn(),T=tr({props:r,muiFormControl:D,states:["variant","error"]}),N=T.variant||A,F={...r,variant:N,classes:a},W=uk(F),{root:_,...j}=W,M=x||{standard:c.jsx(pk,{ownerState:F}),outlined:c.jsx(fk,{label:g,ownerState:F}),filled:c.jsx(hk,{ownerState:F})}[N],B=ct(n,Cr(M));return c.jsx(E.Fragment,{children:E.cloneElement(M,{inputComponent:L,inputProps:{children:s,error:T.error,IconComponent:u,variant:N,type:void 0,multiple:b,...w?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:m,onClose:S,onOpen:v,open:C,renderValue:P,SelectDisplayProps:{id:h,...O}},...y,classes:y?St(j,y.classes):j,...x?x.props.inputProps:{}},...(b&&w||p)&&N==="outlined"?{notched:!0}:{},ref:B,className:ue(M.props.className,l,W.root),...!x&&{variant:N},...k})})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),Rn.muiName="Select";function gk(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const mk=2;function uo(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function dm(e,t){return e-t}function um(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function za(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function La(e,t,n){return(e-t)*100/(n-t)}function yk(e,t,n){return(n-t)*e+t}function bk(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function vk(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(bk(t)))}function pm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(dm)}function ja({sliderRef:e,activeIndex:t,setActive:n}){const r=ut(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Ba(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?gk(e,t):!1}const xk={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Sk=e=>e;let Wa;function fm(){return Wa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Wa=CSS.supports("touch-action","none"):Wa=!0),Wa}function wk(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:l=100,min:d=0,name:p,onChange:u,onChangeCommitted:h,orientation:x="horizontal",rootRef:y,scale:g=Sk,step:f=1,shiftStep:m=10,tabIndex:b,value:w}=e,S=E.useRef(void 0),[v,C]=E.useState(-1),[P,O]=E.useState(-1),[A,k]=E.useState(!1),L=E.useRef(0),D=E.useRef(null),[T,N]=Jr({controlled:w,default:n??d,name:"Slider"}),F=u&&((ie,te,fe)=>{const Ce=ie.nativeEvent||ie,Pe=new Ce.constructor(Ce.type,Ce);Object.defineProperty(Pe,"target",{writable:!0,value:{value:te,name:p}}),D.current=te,u(Pe,te,fe)}),W=Array.isArray(T);let _=W?T.slice().sort(dm):[T];_=_.map(ie=>ie==null?d:Xr(ie,d,l));const j=a===!0&&f!==null?[...Array(Math.floor((l-d)/f)+1)].map((ie,te)=>({value:d+f*te})):a||[],M=j.map(ie=>ie.value),[B,$]=E.useState(-1),V=E.useRef(null),G=ct(y,V),K=ie=>te=>{const fe=Number(te.currentTarget.getAttribute("data-index"));eo(te.target)&&$(fe),O(fe),ie?.onFocus?.(te)},Z=ie=>te=>{eo(te.target)||$(-1),O(-1),ie?.onBlur?.(te)},Q=(ie,te)=>{const fe=Number(ie.currentTarget.getAttribute("data-index")),Ce=_[fe],Pe=M.indexOf(Ce);let Te=te;if(j&&f==null){const xe=M[M.length-1];Te>=xe?Te=xe:Te<=M[0]?Te=M[0]:Te=Te<Ce?M[Pe-1]:M[Pe+1]}if(Te=Xr(Te,d,l),W){i&&(Te=Xr(Te,_[fe-1]||-1/0,_[fe+1]||1/0));const xe=Te;Te=pm({values:_,newValue:Te,index:fe});let Ze=fe;i||(Ze=Te.indexOf(xe)),ja({sliderRef:V,activeIndex:Ze})}N(Te),$(fe),F&&!Ba(Te,T)&&F(ie,Te,fe),h&&h(ie,D.current??Te)},J=ie=>te=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(te.key)){te.preventDefault();const fe=Number(te.currentTarget.getAttribute("data-index")),Ce=_[fe];let Pe=null;if(f!=null){const Te=te.shiftKey?m:f;switch(te.key){case"ArrowUp":Pe=uo(Ce,Te,1,d,l);break;case"ArrowRight":Pe=uo(Ce,Te,s?-1:1,d,l);break;case"ArrowDown":Pe=uo(Ce,Te,-1,d,l);break;case"ArrowLeft":Pe=uo(Ce,Te,s?1:-1,d,l);break;case"PageUp":Pe=uo(Ce,m,1,d,l);break;case"PageDown":Pe=uo(Ce,m,-1,d,l);break;case"Home":Pe=d;break;case"End":Pe=l;break}}else if(j){const Te=M[M.length-1],xe=M.indexOf(Ce),Ze=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],_e=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ze.includes(te.key)?xe===0?Pe=M[0]:Pe=M[xe-1]:_e.includes(te.key)&&(xe===M.length-1?Pe=Te:Pe=M[xe+1])}Pe!=null&&Q(te,Pe)}ie?.onKeyDown?.(te)};Ht(()=>{r&&V.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&C(-1),r&&B!==-1&&$(-1);const ae=ie=>te=>{ie.onChange?.(te),Q(te,te.target.valueAsNumber)},se=E.useRef(void 0);let le=x;s&&x==="horizontal"&&(le+="-reverse");const q=({finger:ie,move:te=!1})=>{const{current:fe}=V,{width:Ce,height:Pe,bottom:Te,left:xe}=fe.getBoundingClientRect();let Ze;le.startsWith("vertical")?Ze=(Te-ie.y)/Pe:Ze=(ie.x-xe)/Ce,le.includes("-reverse")&&(Ze=1-Ze);let _e;if(_e=yk(Ze,d,l),f)_e=vk(_e,f,d);else{const sn=um(M,_e);_e=M[sn]}_e=Xr(_e,d,l);let pt=0;if(W){te?pt=se.current:pt=um(_,_e),i&&(_e=Xr(_e,_[pt-1]||-1/0,_[pt+1]||1/0));const sn=_e;_e=pm({values:_,newValue:_e,index:pt}),i&&te||(pt=_e.indexOf(sn),se.current=pt)}return{newValue:_e,activeIndex:pt}},ne=Et(ie=>{const te=za(ie,S);if(!te)return;if(L.current+=1,ie.type==="mousemove"&&ie.buttons===0){U(ie);return}const{newValue:fe,activeIndex:Ce}=q({finger:te,move:!0});ja({sliderRef:V,activeIndex:Ce,setActive:C}),N(fe),!A&&L.current>mk&&k(!0),F&&!Ba(fe,T)&&F(ie,fe,Ce)}),U=Et(ie=>{const te=za(ie,S);if(k(!1),!te)return;const{newValue:fe}=q({finger:te,move:!0});C(-1),ie.type==="touchend"&&O(-1),h&&h(ie,D.current??fe),S.current=void 0,re()}),de=Et(ie=>{if(r)return;fm()||ie.preventDefault();const te=ie.changedTouches[0];te!=null&&(S.current=te.identifier);const fe=za(ie,S);if(fe!==!1){const{newValue:Pe,activeIndex:Te}=q({finger:fe});ja({sliderRef:V,activeIndex:Te,setActive:C}),N(Pe),F&&!Ba(Pe,T)&&F(ie,Pe,Te)}L.current=0;const Ce=ut(V.current);Ce.addEventListener("touchmove",ne,{passive:!0}),Ce.addEventListener("touchend",U,{passive:!0})}),re=E.useCallback(()=>{const ie=ut(V.current);ie.removeEventListener("mousemove",ne),ie.removeEventListener("mouseup",U),ie.removeEventListener("touchmove",ne),ie.removeEventListener("touchend",U)},[U,ne]);E.useEffect(()=>{const{current:ie}=V;return ie.addEventListener("touchstart",de,{passive:fm()}),()=>{ie.removeEventListener("touchstart",de),re()}},[re,de]),E.useEffect(()=>{r&&re()},[r,re]);const oe=ie=>te=>{if(ie.onMouseDown?.(te),r||te.defaultPrevented||te.button!==0)return;te.preventDefault();const fe=za(te,S);if(fe!==!1){const{newValue:Pe,activeIndex:Te}=q({finger:fe});ja({sliderRef:V,activeIndex:Te,setActive:C}),N(Pe),F&&!Ba(Pe,T)&&F(te,Pe,Te)}L.current=0;const Ce=ut(V.current);Ce.addEventListener("mousemove",ne,{passive:!0}),Ce.addEventListener("mouseup",U)},pe=La(W?_[0]:d,d,l),he=La(_[_.length-1],d,l)-pe,we=(ie={})=>{const te=xr(ie),fe={onMouseDown:oe(te||{})},Ce={...te,...fe};return{...ie,ref:G,...Ce}},Ae=ie=>te=>{ie.onMouseOver?.(te);const fe=Number(te.currentTarget.getAttribute("data-index"));O(fe)},De=ie=>te=>{ie.onMouseLeave?.(te),O(-1)},Me=(ie={})=>{const te=xr(ie),fe={onMouseOver:Ae(te||{}),onMouseLeave:De(te||{})};return{...ie,...te,...fe}},ce=ie=>({pointerEvents:v!==-1&&v!==ie?"none":void 0});let Xe;return x==="vertical"&&(Xe=s?"vertical-rl":"vertical-lr"),{active:v,axis:le,axisProps:xk,dragging:A,focusedThumbIndex:B,getHiddenInputProps:(ie={})=>{const te=xr(ie),fe={onChange:ae(te||{}),onFocus:K(te||{}),onBlur:Z(te||{}),onKeyDown:J(te||{})},Ce={...te,...fe};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":x,"aria-valuemax":g(l),"aria-valuemin":g(d),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ie,...Ce,style:{...ik,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Xe}}},getRootProps:we,getThumbProps:Me,marks:j,open:P,range:W,rootRef:G,trackLeap:he,trackOffset:pe,values:_,getThumbStyle:ce}}const Ck=e=>!e||!Zn(e);function Ek(e){return be("MuiSlider",e)}const Jt=ye("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Tk=e=>{const{open:t}=e;return{offset:ue(t&&Jt.valueLabelOpen),circle:Jt.valueLabelCircle,label:Jt.valueLabelLabel}};function hm(e){const{children:t,className:n,value:r}=e,i=Tk(e);return t?E.cloneElement(t,{className:t.props.className},c.jsxs(E.Fragment,{children:[t.props.children,c.jsx("span",{className:ue(i.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:i.circle,children:c.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(hm.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function gm(e){return e}const Pk=X("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ee(n.color)}`],n.size!=="medium"&&t[`size${ee(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(me(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Jt.dragging}`]:{[`& .${Jt.thumb}, & .${Jt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Ok=X("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),kk=X("span",{name:"MuiSlider",slot:"Track"})(me(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Ik=X("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ee(n.color)}`],n.size!=="medium"&&t[`thumbSize${ee(n.size)}`]]}})(me(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Jt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Jt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),mm=X(hm,{name:"MuiSlider",slot:"ValueLabel"})(me(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(mm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const Nk=X("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ai(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(me(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Ak=X("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ai(e)&&e!=="markLabelActive"})(me(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Mk=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:l,size:d}=e,p={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${ee(l)}`,d&&`size${ee(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${ee(d)}`,l&&`thumbColor${ee(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ve(p,Ek,a)},Fk=({children:e})=>e,ym=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSlider"}),i=ii(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:d="span",components:p={},componentsProps:u={},color:h="primary",classes:x,className:y,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:b,marks:w=!1,max:S=100,min:v=0,name:C,onChange:P,onChangeCommitted:O,orientation:A="horizontal",shiftStep:k=10,size:L="medium",step:D=1,scale:T=gm,slotProps:N,slots:F,tabIndex:W,track:_="normal",value:j,valueLabelDisplay:M="off",valueLabelFormat:B=gm,...$}=r,V={...r,isRtl:i,max:S,min:v,classes:x,disabled:f,disableSwap:g,orientation:A,marks:w,color:h,size:L,step:D,shiftStep:k,scale:T,track:_,valueLabelDisplay:M,valueLabelFormat:B},{axisProps:G,getRootProps:K,getHiddenInputProps:Z,getThumbProps:Q,open:J,active:ae,axis:se,focusedThumbIndex:le,range:q,dragging:ne,marks:U,values:de,trackOffset:re,trackLeap:oe,getThumbStyle:pe}=wk({...V,rootRef:n});V.marked=U.length>0&&U.some(Je=>Je.label),V.dragging=ne,V.focusedThumbIndex=le;const he=Mk(V),we=F?.root??p.Root??Pk,Ae=F?.rail??p.Rail??Ok,De=F?.track??p.Track??kk,Me=F?.thumb??p.Thumb??Ik,ce=F?.valueLabel??p.ValueLabel??mm,Xe=F?.mark??p.Mark??Nk,Ie=F?.markLabel??p.MarkLabel??Ak,ie=F?.input??p.Input??"input",te=N?.root??u.root,fe=N?.rail??u.rail,Ce=N?.track??u.track,Pe=N?.thumb??u.thumb,Te=N?.valueLabel??u.valueLabel,xe=N?.mark??u.mark,Ze=N?.markLabel??u.markLabel,_e=N?.input??u.input,pt=vn({elementType:we,getSlotProps:K,externalSlotProps:te,externalForwardedProps:$,additionalProps:{...Ck(we)&&{as:d}},ownerState:{...V,...te?.ownerState},className:[he.root,y]}),sn=vn({elementType:Ae,externalSlotProps:fe,ownerState:V,className:he.rail}),kr=vn({elementType:De,externalSlotProps:Ce,additionalProps:{style:{...G[se].offset(re),...G[se].leap(oe)}},ownerState:{...V,...Ce?.ownerState},className:he.track}),or=vn({elementType:Me,getSlotProps:Q,externalSlotProps:Pe,ownerState:{...V,...Pe?.ownerState},className:he.thumb}),ge=vn({elementType:ce,externalSlotProps:Te,ownerState:{...V,...Te?.ownerState},className:he.valueLabel}),Fe=vn({elementType:Xe,externalSlotProps:xe,ownerState:V,className:he.mark}),et=vn({elementType:Ie,externalSlotProps:Ze,ownerState:V,className:he.markLabel}),On=vn({elementType:ie,getSlotProps:Z,externalSlotProps:_e,ownerState:V});return c.jsxs(we,{...pt,children:[c.jsx(Ae,{...sn}),c.jsx(De,{...kr}),U.filter(Je=>Je.value>=v&&Je.value<=S).map((Je,ft)=>{const ji=La(Je.value,v,S),fo=G[se].offset(ji);let an;return _===!1?an=de.includes(Je.value):an=_==="normal"&&(q?Je.value>=de[0]&&Je.value<=de[de.length-1]:Je.value<=de[0])||_==="inverted"&&(q?Je.value<=de[0]||Je.value>=de[de.length-1]:Je.value>=de[0]),c.jsxs(E.Fragment,{children:[c.jsx(Xe,{"data-index":ft,...Fe,...!Zn(Xe)&&{markActive:an},style:{...fo,...Fe.style},className:ue(Fe.className,an&&he.markActive)}),Je.label!=null?c.jsx(Ie,{"aria-hidden":!0,"data-index":ft,...et,...!Zn(Ie)&&{markLabelActive:an},style:{...fo,...et.style},className:ue(he.markLabel,et.className,an&&he.markLabelActive),children:Je.label}):null]},ft)}),de.map((Je,ft)=>{const ji=La(Je,v,S),fo=G[se].offset(ji),an=M==="off"?Fk:ce;return c.jsx(an,{...!Zn(an)&&{valueLabelFormat:B,valueLabelDisplay:M,value:typeof B=="function"?B(T(Je),ft):B,index:ft,open:J===ft||ae===ft||M==="on",disabled:f},...ge,children:c.jsx(Me,{"data-index":ft,...or,className:ue(he.thumb,or.className,ae===ft&&he.active,le===ft&&he.focusVisible),style:{...fo,...pe(ft),...or.style},children:c.jsx(ie,{"data-index":ft,"aria-label":m?m(ft):s,"aria-valuenow":T(Je),"aria-labelledby":l,"aria-valuetext":b?b(T(Je),ft):a,value:de[ft],...On})})},ft)})]})});process.env.NODE_ENV!=="production"&&(ym.propTypes={"aria-label":nn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":nn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function _k(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=vr();E.useEffect(()=>{if(!i)return;function b(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[i,r]);const l=Et((b,w)=>{r?.(b,w)}),d=Et(b=>{!r||b==null||a.start(b,()=>{l(null,"timeout")})});E.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=b=>{r?.(b,"clickaway")},u=a.clear,h=E.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),x=b=>w=>{const S=b.onBlur;S?.(w),h()},y=b=>w=>{const S=b.onFocus;S?.(w),u()},g=b=>w=>{const S=b.onMouseEnter;S?.(w),u()},f=b=>w=>{const S=b.onMouseLeave;S?.(w),h()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,i,h,u]),{getRootProps:(b={})=>{const w={...xr(e),...xr(b)};return{role:"presentation",...b,...w,onBlur:x(w),onFocus:y(w),onMouseEnter:g(w),onMouseLeave:f(w)}},onClickAway:p}}function Dk(e){return be("MuiSnackbarContent",e)}ye("MuiSnackbarContent",["root","message","action"]);const $k=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},Dk,t)},zk=X(rn,{name:"MuiSnackbarContent",slot:"Root"})(me(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Cc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Cc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Lk=X("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),jk=X("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...d}=r,p=r,u=$k(p);return c.jsxs(zk,{role:l,elevation:6,className:ue(u.root,s),ownerState:p,ref:n,...d,children:[c.jsx(Lk,{className:u.message,ownerState:p,children:a}),i?c.jsx(jk,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(bm.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Bk(e){return be("MuiSnackbar",e)}ye("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Wk=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ee(n.vertical)}${ee(n.horizontal)}`]};return ve(r,Bk,t)},Rk=X("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ee(n.anchorOrigin.vertical)}${ee(n.anchorOrigin.horizontal)}`]]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),po=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbar"}),i=gn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:x,ContentProps:y,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:b,onFocus:w,onMouseEnter:S,onMouseLeave:v,open:C,resumeHideDuration:P,slots:O={},slotProps:A={},TransitionComponent:k,transitionDuration:L=s,TransitionProps:{onEnter:D,onExited:T,...N}={},...F}=r,W={...r,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:k,transitionDuration:L},_=Wk(W),{getRootProps:j,onClickAway:M}=_k(W),[B,$]=E.useState(!0),V=de=>{$(!0),T&&T(de)},G=(de,re)=>{$(!1),D&&D(de,re)},K={slots:{transition:k,...O},slotProps:{content:y,clickAwayListener:x,transition:N,...A}},[Z,Q]=Ee("root",{ref:n,className:[_.root,h],elementType:Rk,getSlotProps:j,externalForwardedProps:{...K,...F},ownerState:W}),[J,{ownerState:ae,...se}]=Ee("clickAwayListener",{elementType:ka,externalForwardedProps:K,getSlotProps:de=>({onClickAway:(...re)=>{const oe=re[0];de.onClickAway?.(...re),!oe?.defaultMuiPrevented&&M(...re)}}),ownerState:W}),[le,q]=Ee("content",{elementType:bm,shouldForwardComponentProp:!0,externalForwardedProps:K,additionalProps:{message:f,action:a},ownerState:W}),[ne,U]=Ee("transition",{elementType:ao,externalForwardedProps:K,getSlotProps:de=>({onEnter:(...re)=>{de.onEnter?.(...re),G(...re)},onExited:(...re)=>{de.onExited?.(...re),V(...re)}}),additionalProps:{appear:!0,in:C,timeout:L,direction:l==="top"?"down":"up"},ownerState:W});return!C&&B?null:c.jsx(J,{...se,...O.clickAwayListener&&{ownerState:ae},children:c.jsx(Z,{...Q,children:c.jsx(ne,{...U,children:u||c.jsx(le,{...q})})})})});process.env.NODE_ENV!=="production"&&(po.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Vk(e){return be("MuiTooltip",e)}const st=ye("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Uk(e){return Math.round(e*1e5)/1e5}const Hk=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ee(s.split("-")[0])}`],arrow:["arrow"]};return ve(a,Vk,t)},qk=X(ed,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${st.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${st.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${st.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${st.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${st.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${st.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${st.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${st.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Yk=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ee(n.placement.split("-")[0])}`]]}})(me(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${st.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${st.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${st.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${st.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Uk(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${st.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${st.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Kk=X("span",{name:"MuiTooltip",slot:"Arrow"})(me(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ra=!1;const vm=new aa;let Mi={x:0,y:0};function Va(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const wd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:x=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:b=!1,id:w,leaveDelay:S=0,leaveTouchDelay:v=1500,onClose:C,onOpen:P,open:O,placement:A="bottom",PopperComponent:k,PopperProps:L={},slotProps:D={},slots:T={},title:N,TransitionComponent:F,TransitionProps:W,..._}=r,j=E.isValidElement(s)?s:c.jsx("span",{children:s}),M=gn(),B=ii(),[$,V]=E.useState(),[G,K]=E.useState(null),Z=E.useRef(!1),Q=x||b,J=vr(),ae=vr(),se=vr(),le=vr(),[q,ne]=Jr({controlled:O,default:!1,name:"Tooltip",state:"open"});let U=q;if(process.env.NODE_ENV!=="production"){const{current:ke}=E.useRef(O!==void 0);E.useEffect(()=>{$&&$.disabled&&!ke&&N!==""&&$.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
232
- `))},[N,$,ke])}const de=gr(w),re=E.useRef(),oe=Et(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),le.clear()});E.useEffect(()=>oe,[oe]);const pe=ke=>{vm.clear(),Ra=!0,ne(!0),P&&!U&&P(ke)},he=Et(ke=>{vm.start(800+S,()=>{Ra=!1}),ne(!1),C&&U&&C(ke),J.start(M.transitions.duration.shortest,()=>{Z.current=!1})}),we=ke=>{Z.current&&ke.type!=="touchstart"||($&&$.removeAttribute("title"),ae.clear(),se.clear(),g||Ra&&f?ae.start(Ra?f:g,()=>{pe(ke)}):pe(ke))},Ae=ke=>{ae.clear(),se.start(S,()=>{he(ke)})},[,De]=E.useState(!1),Me=ke=>{eo(ke.target)||(De(!1),Ae(ke))},ce=ke=>{$||V(ke.currentTarget),eo(ke.target)&&(De(!0),we(ke))},Xe=ke=>{Z.current=!0;const ir=j.props;ir.onTouchStart&&ir.onTouchStart(ke)},Ie=ke=>{Xe(ke),se.clear(),J.clear(),oe(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(m,()=>{document.body.style.WebkitUserSelect=re.current,we(ke)})},ie=ke=>{j.props.onTouchEnd&&j.props.onTouchEnd(ke),oe(),se.start(v,()=>{he(ke)})};E.useEffect(()=>{if(!U)return;function ke(ir){ir.key==="Escape"&&he(ir)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[he,U]);const te=ct(Cr(j),V,n);!N&&N!==0&&(U=!1);const fe=E.useRef(),Ce=ke=>{const ir=j.props;ir.onMouseMove&&ir.onMouseMove(ke),Mi={x:ke.clientX,y:ke.clientY},fe.current&&fe.current.update()},Pe={},Te=typeof N=="string";p?(Pe.title=!U&&Te&&!h?N:null,Pe["aria-describedby"]=U?de:null):(Pe["aria-label"]=Te?N:null,Pe["aria-labelledby"]=U&&!Te?de:null);const xe={...Pe,..._,...j.props,className:ue(_.className,j.props.className),onTouchStart:Xe,ref:te,...b?{onMouseMove:Ce}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,E.useEffect(()=>{$&&!$.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
233
- `))},[$]));const Ze={};y||(xe.onTouchStart=Ie,xe.onTouchEnd=ie),h||(xe.onMouseOver=Va(we,xe.onMouseOver),xe.onMouseLeave=Va(Ae,xe.onMouseLeave),Q||(Ze.onMouseOver=we,Ze.onMouseLeave=Ae)),u||(xe.onFocus=Va(ce,xe.onFocus),xe.onBlur=Va(Me,xe.onBlur),Q||(Ze.onFocus=ce,Ze.onBlur=Me)),process.env.NODE_ENV!=="production"&&j.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${j.props.title}\` or the Tooltip component.`].join(`
234
- `));const _e={...r,isRtl:B,arrow:i,disableInteractive:Q,placement:A,PopperComponentProp:k,touch:Z.current},pt=typeof D.popper=="function"?D.popper(_e):D.popper,sn=E.useMemo(()=>{let ke=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return L.popperOptions?.modifiers&&(ke=ke.concat(L.popperOptions.modifiers)),pt?.popperOptions?.modifiers&&(ke=ke.concat(pt.popperOptions.modifiers)),{...L.popperOptions,...pt?.popperOptions,modifiers:ke}},[G,L.popperOptions,pt?.popperOptions]),kr=Hk(_e),or=typeof D.transition=="function"?D.transition(_e):D.transition,ge={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:D.arrow??d.arrow,popper:{...L,...pt??d.popper},tooltip:D.tooltip??d.tooltip,transition:{...W,...or??d.transition}}},[Fe,et]=Ee("popper",{elementType:qk,externalForwardedProps:ge,ownerState:_e,className:ue(kr.popper,L?.className)}),[On,Je]=Ee("transition",{elementType:ao,externalForwardedProps:ge,ownerState:_e}),[ft,ji]=Ee("tooltip",{elementType:Yk,className:kr.tooltip,externalForwardedProps:ge,ownerState:_e}),[fo,an]=Ee("arrow",{elementType:Kk,className:kr.arrow,externalForwardedProps:ge,ownerState:_e,ref:K});return c.jsxs(E.Fragment,{children:[E.cloneElement(j,xe),c.jsx(Fe,{as:k??ed,placement:A,anchorEl:b?{getBoundingClientRect:()=>({top:Mi.y,left:Mi.x,right:Mi.x,bottom:Mi.y,width:0,height:0})}:$,popperRef:fe,open:$?U:!1,id:de,transition:!0,...Ze,...et,popperOptions:sn,children:({TransitionProps:ke})=>c.jsx(On,{timeout:M.transitions.duration.shorter,...ke,...Je,children:c.jsxs(ft,{...ji,children:[N,i?c.jsx(fo,{...an}):null]})})})]})});process.env.NODE_ENV!=="production"&&(wd.propTypes={arrow:o.bool,children:Tr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function Gk(e){return be("MuiSwitch",e)}const kt=ye("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xk=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,l={root:["root",n&&`edge${ee(n)}`,`size${ee(r)}`],switchBase:["switchBase",`color${ee(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=ve(l,Gk,t);return{...t,...d}},Jk=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ee(n.edge)}`],t[`size${ee(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${kt.thumb}`]:{width:16,height:16},[`& .${kt.switchBase}`]:{padding:4,[`&.${kt.checked}`]:{transform:"translateX(16px)"}}}}]}),Qk=X(Oa,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${kt.input}`]:t.input},n.color!=="default"&&t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${kt.checked}`]:{transform:"translateX(20px)"},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kt.checked} + .${kt.track}`]:{opacity:.5},[`&.${kt.disabled} + .${kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kt.input}`]:{left:"-100%",width:"300%"}})),me(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ot(["light"])).map(([t])=>({props:{color:t},style:{[`&.${kt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${kt.checked} + .${kt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Zk=X("span",{name:"MuiSwitch",slot:"Track"})(me(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),eI=X("span",{name:"MuiSwitch",slot:"Thumb"})(me(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),xm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:d,slots:p={},slotProps:u={},...h}=r,x={...r,color:s,edge:a,size:l},y=Xk(x),g={slots:p,slotProps:u},[f,m]=Ee("root",{className:ue(y.root,i),elementType:Jk,externalForwardedProps:g,ownerState:x,additionalProps:{sx:d}}),[b,w]=Ee("thumb",{className:y.thumb,elementType:eI,externalForwardedProps:g,ownerState:x}),S=c.jsx(b,{...w}),[v,C]=Ee("track",{className:y.track,elementType:Zk,externalForwardedProps:g,ownerState:x});return c.jsxs(f,{...m,children:[c.jsx(Qk,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:x,...h,classes:{...y,root:y.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(x):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(x):u.input}}}),c.jsx(v,{...C})]})});process.env.NODE_ENV!=="production"&&(xm.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Tt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Cd=E.createContext();process.env.NODE_ENV!=="production"&&(Cd.displayName="TableContext");function tI(e){return be("MuiTable",e)}ye("MuiTable",["root","stickyHeader"]);const nI=e=>{const{classes:t,stickyHeader:n}=e;return ve({root:["root",n&&"stickyHeader"]},tI,t)},rI=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Sm="table",wm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTable"}),{className:i,component:s=Sm,padding:a="normal",size:l="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:l,stickyHeader:d},h=nI(u),x=E.useMemo(()=>({padding:a,size:l,stickyHeader:d}),[a,l,d]);return c.jsx(Cd.Provider,{value:x,children:c.jsx(rI,{as:s,role:s===Sm?null:"table",ref:n,className:ue(h.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(wm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Fi=E.createContext();process.env.NODE_ENV!=="production"&&(Fi.displayName="Tablelvl2Context");function oI(e){return be("MuiTableBody",e)}ye("MuiTableBody",["root"]);const iI=e=>{const{classes:t}=e;return ve({root:["root"]},oI,t)},sI=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),aI={variant:"body"},Cm="tbody",Em=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableBody"}),{className:i,component:s=Cm,...a}=r,l={...r,component:s},d=iI(l);return c.jsx(Fi.Provider,{value:aI,children:c.jsx(sI,{className:ue(d.root,i),as:s,ref:n,role:s===Cm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Em.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function lI(e){return be("MuiTableCell",e)}const cI=ye("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),dI=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ee(r)}`,i!=="normal"&&`padding${ee(i)}`,`size${ee(s)}`]};return ve(l,lI,t)},uI=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ee(n.size)}`],n.padding!=="normal"&&t[`padding${ee(n.padding)}`],n.align!=="inherit"&&t[`align${ee(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
235
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${cI.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),nr=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:d,size:p,sortDirection:u,variant:h,...x}=r,y=E.useContext(Cd),g=E.useContext(Fi),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let b=d;m==="td"?b=void 0:!b&&f&&(b="col");const w=h||g&&g.variant,S={...r,align:i,component:m,padding:l||(y&&y.padding?y.padding:"normal"),size:p||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w},v=dI(S);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),c.jsx(uI,{as:m,ref:n,className:ue(v.root,s),"aria-sort":C,scope:b,ownerState:S,...x})});process.env.NODE_ENV!=="production"&&(nr.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function pI(e){return be("MuiTableContainer",e)}ye("MuiTableContainer",["root"]);const fI=e=>{const{classes:t}=e;return ve({root:["root"]},pI,t)},hI=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Tm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=fI(l);return c.jsx(hI,{ref:n,as:s,className:ue(d.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function gI(e){return be("MuiTableHead",e)}ye("MuiTableHead",["root"]);const mI=e=>{const{classes:t}=e;return ve({root:["root"]},gI,t)},yI=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),bI={variant:"head"},Pm="thead",Om=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableHead"}),{className:i,component:s=Pm,...a}=r,l={...r,component:s},d=mI(l);return c.jsx(Fi.Provider,{value:bI,children:c.jsx(yI,{as:s,className:ue(d.root,i),ref:n,role:s===Pm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Om.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function vI(e){return be("MuiTableRow",e)}const km=ye("MuiTableRow",["root","selected","hover","head","footer"]),xI=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return ve({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},vI,t)},SI=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(me(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${km.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${km.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Im="tr",_i=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableRow"}),{className:i,component:s=Im,hover:a=!1,selected:l=!1,...d}=r,p=E.useContext(Fi),u={...r,component:s,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=xI(u);return c.jsx(SI,{as:s,ref:n,className:ue(h.root,i),role:s===Im?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(_i.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wI(e){return be("MuiTextField",e)}ye("MuiTextField",["root"]);const CI={standard:_a,filled:Ma,outlined:Da},EI=e=>{const{classes:t}=e;return ve({root:["root"]},wI,t)},TI=X(Fa,{name:"MuiTextField",slot:"Root"})({}),Di=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:x,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:m,inputProps:b,InputProps:w,inputRef:S,label:v,maxRows:C,minRows:P,multiline:O=!1,name:A,onBlur:k,onChange:L,onFocus:D,placeholder:T,required:N=!1,rows:F,select:W=!1,SelectProps:_,slots:j={},slotProps:M={},type:B,value:$,variant:V="outlined",...G}=r,K={...r,autoFocus:s,color:d,disabled:u,error:h,fullWidth:y,multiline:O,required:N,select:W,variant:V},Z=EI(K);process.env.NODE_ENV!=="production"&&W&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=gr(f),J=g&&Q?`${Q}-helper-text`:void 0,ae=v&&Q?`${Q}-label`:void 0,se=CI[V],le={slots:j,slotProps:{input:w,inputLabel:m,htmlInput:b,formHelperText:x,select:_,...M}},q={},ne=le.slotProps.inputLabel;V==="outlined"&&(ne&&typeof ne.shrink<"u"&&(q.notched=ne.shrink),q.label=v),W&&((!_||!_.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[U,de]=Ee("root",{elementType:TI,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...G},ownerState:K,className:ue(Z.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:y,required:N,color:d,variant:V}}),[re,oe]=Ee("input",{elementType:se,externalForwardedProps:le,additionalProps:q,ownerState:K}),[pe,he]=Ee("inputLabel",{elementType:Rg,externalForwardedProps:le,ownerState:K}),[we,Ae]=Ee("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:K}),[De,Me]=Ee("formHelperText",{elementType:Wg,externalForwardedProps:le,ownerState:K}),[ce,Xe]=Ee("select",{elementType:Rn,externalForwardedProps:le,ownerState:K}),Ie=c.jsx(re,{"aria-describedby":J,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:y,multiline:O,name:A,rows:F,maxRows:C,minRows:P,type:B,value:$,id:Q,inputRef:S,onBlur:k,onChange:L,onFocus:D,placeholder:T,inputProps:Ae,slots:{input:j.htmlInput?we:void 0},...oe});return c.jsxs(U,{...de,children:[v!=null&&v!==""&&c.jsx(pe,{htmlFor:Q,id:ae,...he,children:v}),W?c.jsx(ce,{"aria-describedby":J,id:Q,labelId:ae,value:$,input:Ie,...Xe,children:a}):Ie,g&&c.jsx(De,{id:J,...Me,children:g})]})});process.env.NODE_ENV!=="production"&&(Di.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Tt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const Nm=ph({themeId:qo});function Ed(){return Ed=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function PI(e,t){if(e==null)return{};var n=OI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Td=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=PI(e,["color","size"]);return z.createElement("svg",Ed({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),z.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Td.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Td.displayName="Bell";function Pd(){return Pd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(this,arguments)}function kI(e,t){if(e==null)return{};var n=II(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function II(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ua=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=kI(e,["color","size"]);return z.createElement("svg",Pd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("polyline",{points:"6 9 12 15 18 9"}))});Ua.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Ua.displayName="ChevronDown";function Od(){return Od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function NI(e,t){if(e==null)return{};var n=AI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kd=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=NI(e,["color","size"]);return z.createElement("svg",Od({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"12",cy:"12",r:"1"}),z.createElement("circle",{cx:"12",cy:"5",r:"1"}),z.createElement("circle",{cx:"12",cy:"19",r:"1"}))});kd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},kd.displayName="MoreVertical";function Id(){return Id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function MI(e,t){if(e==null)return{};var n=FI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Nd=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=MI(e,["color","size"]);return z.createElement("svg",Id({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"11",cy:"11",r:"8"}),z.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Nd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Nd.displayName="Search";function Ad(){return Ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function _I(e,t){if(e==null)return{};var n=DI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Md=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=_I(e,["color","size"]);return z.createElement("svg",Ad({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"12",cy:"12",r:"3"}),z.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});Md.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Md.displayName="Settings";function Fd(){return Fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fd.apply(this,arguments)}function $I(e,t){if(e==null)return{};var n=zI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _d=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=$I(e,["color","size"]);return z.createElement("svg",Fd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),z.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),z.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});_d.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},_d.displayName="ShoppingBag";function Dd(){return Dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dd.apply(this,arguments)}function LI(e,t){if(e==null)return{};var n=jI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $d=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=LI(e,["color","size"]);return z.createElement("svg",Dd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});$d.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},$d.displayName="X";function Cn(){const t={theme:z.useMemo(()=>Mc({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),topBar:{root:{width:"100%",maxWidth:"100%",height:72,minHeight:72,maxHeight:72,marginLeft:0,marginRight:0,marginBottom:0,marginTop:0,paddingTop:"20px",gap:"20px",opacity:1,bgcolor:"#FFFFFF",boxSizing:"border-box",overflow:"hidden"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px",paddingRight:"20px",paddingTop:0,paddingBottom:0,margin:0,maxWidth:"100%",flexShrink:0},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480,maxHeight:"none"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,overflowY:"visible",overflowX:"hidden",maxHeight:"none"},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,minWidth:160,flexShrink:0,height:120,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}}},n={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",p:{xs:2,sm:3,md:4},bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{width:800,maxWidth:"100%",minHeight:448,display:"flex",flexDirection:"column",gap:"4px",opacity:1,borderRadius:0,boxShadow:"none",background:"#f7f8fa",p:0,mb:3,marginLeft:"auto",marginRight:"auto",boxSizing:"border-box"},categoryTableHeader:{width:800,height:28,display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,background:"#F8F8F8",boxSizing:"border-box"},categoryTableHeaderCheckboxCol:{width:16,height:16,flex:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",opacity:1},categoryTableHeaderCell:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},categoryTableHeaderCategoryCell:{width:234,height:16,flex:"0 0 234px",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",gap:"4px"},categoryTableHeaderStockCell:{width:120,height:16,flex:"0 0 120px",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},categoryTableHeaderProductsCell:{width:296,height:16,flex:"0 0 296px",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},categoryTableHeaderEmptyCell:{width:38,height:16,flex:"0 0 38px",opacity:0},categoryTableRow:(...r)=>({width:800,height:80,display:"flex",alignItems:"center",gap:"16px",padding:"12px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:"#FFFFFF",boxSizing:"border-box"}),categoryTableRowCheckboxFrame:{width:16,height:20,flex:"0 0 16px",display:"flex",alignItems:"center",gap:"8px",opacity:1},categoryTableRowCheckbox:{width:16,height:16,padding:0,borderRadius:"4px",border:"0.5px solid #454545",color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16}},categoryNameCell:{width:234,height:56,flex:"0 0 234px",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{width:234,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:97,height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{width:120,height:32,flex:"0 0 120px",display:"flex",flexDirection:"column",gap:"4px",opacity:1},categoryStock:r=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...r)=>({width:120,height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{width:296,height:56,flex:"0 0 296px",display:"flex",gap:"4px",opacity:1},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:"#f5f5f5",opacity:1},categoryViewCell:{width:38,height:56,flex:"0 0 38px",display:"flex",alignItems:"center",gap:"2px",opacity:1,marginLeft:"6px"},categoryViewButton:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",background:"none",textTransform:"none",p:0,minWidth:0,boxShadow:"none",justifyContent:"center",alignItems:"center","&:hover":{background:"none",boxShadow:"none"}},categoryViewButtonIcon:{width:12,height:12,color:"#808080"},categoryTableAllStore:{font:{fontFamily:"Inter, sans-serif"},outerCard:{width:800,maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:770,maxWidth:"100%",height:28,gap:"32px",padding:"6px 16px",borderRadius:"8px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",bgcolor:"#808080",opacity:1},categoryNameText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#FFFFFF",opacity:1},tableHeader:{width:800,height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:{width:480,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerStatusOsa:{width:240,gap:"40px"},headerStatusText:{width:80,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerOsaText:{width:120,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},arrowDown:{width:12,height:12,color:"#454545"},rowCard:{width:"100%",maxWidth:800,minHeight:80,gap:"16px",padding:"12px 16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},checkboxBase:{width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",color:"#FFFFFF"},checkboxRow:{border:"0.5px solid #454545",color:"#FFFFFF"},productBlock:{width:480,height:56,gap:"16px"},imageBox:{width:56,height:56,border:"1px solid #F1F1F1",borderRadius:"8px"},productName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},productMeta:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"},productMetaBullet:{color:"#C5C5C5"},productSku:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#808080"},statusOsaBlock:{width:240,height:32,gap:"40px"},statusActiveBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#D8FBE3",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusNoStockBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusActive:{padding:"4px 6px",borderRadius:"4px",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545",verticalAlign:"middle"},stockValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#EB8F00"},osaValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},onShelfText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"}},categoryTableSingleStore:{outerCard:{width:800,maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},tableHeader:{width:"100%",maxWidth:800,height:28,gap:"32px",padding:"8px 16px 4px 16px",opacity:1},headerLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerProduct:{width:238},headerStatus:{width:64},headerPrice:{width:50},headerStock:{width:90},headerOffer:{width:150},stockOfferGap:"12px",checkboxBlue:{border:"0.5px solid #2D64B8",bgcolor:"#F3F8FF",color:"#2D64B8"},rowCard:{width:"100%",maxWidth:800,height:88,gap:"32px",padding:"16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},productBlock:{width:237,height:56,gap:"16px"},productDetailsWidth:165,statusBlock:{width:64,height:20},priceBlock:{width:50,height:48,gap:"4px"},priceText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},clockIcon:{width:16,height:16,borderRadius:"4px",padding:"2px",bgcolor:"#F5F5F5"},stockBlock:{width:90,height:32,gap:"4px"},offerBlock:{width:150,height:36,gap:"4px"},offerText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},onShelfPercentRed:{color:"#d32f2f"},onShelfPercentNormal:{color:"#808080"},onShelfSpan:{color:"#808080"}},categoryTablePagination:{wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}},contentWrapper:{marginTop:"72px",position:"relative",zIndex:0,width:"100%",boxSizing:"border-box"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"}};return t.categoryDetail=n,t}const Am=0,Mm=1e4;function Fm({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=z.useMemo(()=>{const w=s?.min??t.minPrice??Am,S=s?.max??t.maxPrice??Mm;return{min:Number(w)||Am,max:Math.max(Number(S)||Mm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),l=t.status==="active"||t.status==="inactive"?t.status:"",d=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",p=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,u=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=p??a.min,x=u??a.max,y=(w,S)=>{n({...t,status:S===l?void 0:S||void 0})},g=(w,S)=>{n({...t,stock:S===d?void 0:S||void 0})},f=(w,S)=>{if(!Array.isArray(S)||S.length!==2)return;const v=Number(S[0]),C=Number(S[1]),P=Math.min(v,C),O=Math.max(v,C);n({...t,minPrice:P,maxPrice:O})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),b=()=>{const w={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(w)};return c.jsxs(wi,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,disableScrollLock:!0,children:[c.jsx(Ci,{children:"Filter Products"}),c.jsx(Aa,{children:c.jsxs(I,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[c.jsxs(Fa,{component:"fieldset",children:[c.jsx(Pi,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),c.jsxs($a,{row:!0,value:l,onChange:y,name:"status",children:[c.jsx(wn,{value:"active",control:c.jsx(co,{size:"small"}),label:"Active"}),c.jsx(wn,{value:"inactive",control:c.jsx(co,{size:"small"}),label:"Inactive"})]})]}),c.jsxs(Fa,{component:"fieldset",children:[c.jsx(Pi,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),c.jsxs($a,{row:!0,value:d,onChange:g,name:"stock",children:[c.jsx(wn,{value:"inStock",control:c.jsx(co,{size:"small"}),label:"In Stock"}),c.jsx(wn,{value:"outOfStock",control:c.jsx(co,{size:"small"}),label:"Out of Stock"})]})]}),c.jsxs(I,{children:[c.jsx(Pi,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),c.jsxs(R,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",x]}),c.jsx(I,{sx:{px:.5},children:c.jsx(ym,{value:[h,x],onChange:f,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:w=>`₹${w}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),c.jsxs(sd,{sx:{gap:.5,flexWrap:"wrap"},children:[c.jsx(Ke,{onClick:r,children:"Cancel"}),m&&c.jsx(Ke,{variant:"contained",onClick:b,children:"Clear Filters"}),c.jsx(Ke,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const BI=We(c.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");function WI(e){return c.jsx(BI,{...e})}const _m=We(c.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Ha(e){return c.jsx(_m,{...e})}const RI=We(c.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedSharp");function $i(e){return c.jsx(RI,{...e})}function VI(e){return c.jsx(Md,{...e})}const UI={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function Dm(e){const{sx:t={},...n}=e;return c.jsx(I,{component:"button",sx:{...UI,...t},title:"Notifications","aria-label":"Notifications",...n,children:c.jsx(Td,{size:20})})}const HI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",qI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function $m(e){const{sx:t={},...n}=e;return c.jsx(I,{sx:{flexShrink:0,...t},...n,children:c.jsx(I,{sx:{padding:"1px",borderRadius:"10px",background:"linear-gradient(93.46deg, #568BDC 8.37%, #87FFD7 52.21%, #5ABDCE 93.24%)",flexShrink:0,width:32,height:32,boxSizing:"border-box"},children:c.jsx(I,{component:"button",sx:{position:"relative",width:"100%",height:"100%",minWidth:30,minHeight:30,padding:0,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",borderRadius:"9px",background:"linear-gradient(94.11deg, #5BC0CF 3.33%, #2D64B8 92.67%)",border:"none",cursor:"pointer"},title:"Ask Aira","aria-label":"Ask Aira",children:c.jsxs(I,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[c.jsx(I,{component:"img",src:HI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),c.jsx(I,{component:"img",src:qI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const qa=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,backTo:d="/home",hideViewSwitch:p=!1,isHomeDefault:u=!1,tenantStatus:h={matched:!0},priceRange:x,styles:y})=>{const g=bt(),f=Cn(),[m,b]=z.useState(null),w=!!m,[S,v]=z.useState(!1),[C,P]=z.useState(!1),[O,A]=z.useState(e||{}),[k,L]=z.useState(e?.search??""),D=Array.isArray(e?.store)?e.store:[],T=()=>{b(null)},[N,F]=z.useState(D),W=K=>{F(K==="all"?["all"]:[K])},_=K=>{i?v(!0):(F(D.length===0?["all"]:D),b(K.currentTarget))},j=()=>{t({...e,store:N}),b(null)},M=K=>{a?a(K):t({...e,store:K}),v(!1)},B=()=>{v(!1)};z.useEffect(()=>{const K=e?.search??"";String(K)!==String(k)&&L(K)},[e?.search,k]);const $=K=>{if(K.key==="Enter"){K.preventDefault();const Z=(k??"").trim();t({...e,search:Z})}},V=f,G=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:V.topBar)||{};return c.jsxs(c.Fragment,{children:[c.jsx(I,{sx:{...G.root,position:"fixed",top:0,left:0,right:0,display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",boxSizing:"border-box",overflow:"hidden",zIndex:1100},children:c.jsx(I,{sx:{width:"100%",maxWidth:1151,display:"flex",justifyContent:"center",boxSizing:"border-box"},children:c.jsxs(I,{sx:{...G.inner,width:"100%",minWidth:0,height:32,minHeight:0,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[l&&c.jsxs(c.Fragment,{children:[c.jsxs(I,{component:"button",onClick:()=>g(d),sx:{display:"flex",alignItems:"center",width:48,height:16,gap:"4px",opacity:1,background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:.85}},children:[c.jsx(Ha,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(R,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),c.jsx(I,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:414},children:c.jsxs(I,{sx:{...G.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:414,height:20,gap:"12px",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[c.jsx(Nd,{size:18,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),c.jsx(bi,{placeholder:l?"Search Products":"Search Products & Categories",value:k,onChange:K=>L(K.target.value),onKeyDown:$,sx:{...G.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:0}}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",minWidth:0,flexShrink:0,height:32,gap:"16px",flexDirection:"row",boxSizing:"border-box"},children:[c.jsxs(I,{sx:{display:"flex",gap:1,alignItems:"center"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",width:216,height:32,borderRadius:"6px",border:"1px solid #F1F1F1",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",backgroundColor:"#FFFFFF",cursor:"pointer",gap:1,boxSizing:"border-box"},onClick:_,tabIndex:0,"aria-label":"Select stores",children:[c.jsx(_d,{size:18,style:{color:"#555",marginRight:4}}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16},children:D.length===0||D.includes("all")?"All Stores":D.length===1?"1 Store":`${D.length} Stores`}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16},children:` ${n.filter(K=>K.id!=="all"&&K.storeCode!=="all").length} stores`}),c.jsx(Ua,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),c.jsxs(yd,{anchorEl:m,open:w,onClose:T,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[c.jsxs(Ot,{onClick:()=>W("all"),children:[c.jsx(Pt,{checked:N.length===0||N.includes("all")}),c.jsx(hd,{primary:"All Stores"})]}),c.jsx(Xt,{}),c.jsx(I,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(K=>K.id!=="all").map(K=>c.jsxs(Ot,{onClick:()=>W(K.id),children:[c.jsx(Pt,{checked:N.includes(K.id)}),c.jsx(hd,{primary:K.name})]},K.id))}),c.jsx(Xt,{}),c.jsx(I,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:c.jsx(Ke,{variant:"contained",size:"small",onClick:j,children:"Apply"})})]}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",width:67,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(A(e||{}),P(!0))},children:[c.jsx(R,{sx:{width:29,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:u?"MTD":"Filters"}),c.jsx(Ua,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",width:63,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},children:[c.jsx(R,{sx:{width:25,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545"},children:"Sort"}),c.jsx(WI,{sx:{width:16,height:16,opacity:1,color:"#454545"}})]})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsxs(I,{sx:{display:"flex",gap:1,alignItems:"center"},children:[c.jsx(I,{component:"button",sx:G.iconOnly,title:"Refresh",children:c.jsx($i,{sx:{width:20,height:20,opacity:1}})}),!p&&c.jsx(I,{component:"button",sx:{...G.iconOnly,cursor:h.loading?"not-allowed":"pointer",opacity:h.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:h.loading?"none":"auto"},title:h.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{h.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:c.jsx(VI,{size:18.33,color:"#454545"})}),c.jsx(I,{component:"button",sx:G.iconOnly,title:"More",children:c.jsx(kd,{size:20})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}})]}),c.jsx(Dm,{}),c.jsx(I,{sx:{marginLeft:"auto",flexShrink:0},children:c.jsx($m,{})})]})})}),i&&(()=>{const{open:K,onClose:Z,onStoreSelect:Q,...J}=s||{};return c.jsx(i,{open:S,onClose:B,onStoreSelect:M,selectedStores:D,...J})})(),!r&&c.jsx(Fm,{open:C,filters:O,onChange:A,onClose:()=>P(!1),onApply:K=>{t&&t(K!==void 0?K:O),P(!1)},priceRange:x})]})};function YI({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=Cn(),i=yt(),s=i.state?.filters||{category:"",status:"",search:"",store:[]},[a,l]=z.useState(s),[d,p]=z.useState(!1),[u,h]=z.useState(a),x=Le(A=>A.dashboard),y=x?.companyId??"",g=x?.products||[],f=g.reduce((A,k)=>(k?.id&&(A[k.id]=k),A),{}),m=g.map(A=>A?.id).filter(Boolean),b=z.useMemo(()=>x?.stores||[],[x?.stores]);console.log(m,"productIds we get at page");const w=$t(),S=z.useRef(!1);z.useEffect(()=>{!y&&!S.current&&(S.current=!0,w(zr()))},[w,y]),z.useEffect(()=>{y&&w(Lr())},[y,w]),z.useEffect(()=>{i.state?.filters&&setTimeout(()=>{l(i.state.filters)},0)},[i.state]),z.useEffect(()=>{Array.isArray(m)},[m,a,f]);const v=A=>{l(A)},C=()=>{h(a),p(!0)},P=b.length>0?b:[{id:"all",name:"All Stores",storeCode:"all"}],O=i.state&&i.state.tenantStatus||{matched:!0};return c.jsxs("div",{className:"app-container",children:[c.jsx(qa,{styles:r,onFilterChange:v,filters:a,stores:P,onOpenFilterModal:C,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:O}),c.jsx("div",{className:"product-main-container",style:{marginTop:"92px"}}),c.jsx(Fm,{open:d,filters:u,onChange:h,onClose:()=>p(!1),onApply:A=>{l(A!==void 0?A:u),p(!1)}})]})}const zm=We(c.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),KI=e=>c.jsx($n,{...e,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),GI=()=>{const e=bt(),t=$t(),n=Cn(),{metrics:r,loading:i}=Le(C=>C.dashboard),[s,a]=z.useState({search:"",store:[],category:"all",status:"all"}),l=C=>a(C),[d,p]=z.useState(new Date);z.useEffect(()=>{t(zo())},[t]),z.useEffect(()=>{const C=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(C)},[]);const u=d.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=d.getDate(),x=d.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),y=r?.activeProducts||0,g=r?.activeCatalogues||0,f=r?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),b=f?.availableProducts||0,w=f?.totalRequests||0,S=f?.availabilityPercentage||0,v=w>0?100-S:0;return c.jsxs(c.Fragment,{children:[c.jsx(qa,{styles:n.topBar,filters:s,onFilterChange:l,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),c.jsxs(I,{sx:{marginTop:"72px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",p:4,bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[c.jsx(Wn,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:c.jsxs(Ag,{sx:{p:1},children:[c.jsx(R,{variant:"body2",color:"text.secondary",children:u}),c.jsx(R,{variant:"h6",fontWeight:400,color:"#000000",children:h}),c.jsx(R,{variant:"caption",color:"text.secondary",children:x})]})}),c.jsxs(I,{children:[c.jsxs(R,{variant:"h6",fontWeight:700,children:["Hi Ashok ",c.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),c.jsx(R,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),c.jsx(I,{sx:{mt:2},children:c.jsxs(Wn,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(KI,{sx:{fontSize:24,color:"#000000"}}),c.jsxs(R,{variant:"h6",fontWeight:700,children:["Products ",c.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:i?"...":y})]})]}),c.jsxs(R,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/"),children:["Report ",">"]})]}),c.jsxs(I,{sx:{display:"flex",gap:2},children:[c.jsxs(Wn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(R,{variant:"body2",color:"#454545",children:"Active Products"}),c.jsx(R,{variant:"h6",fontWeight:700,children:i?"...":y}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.5},children:[c.jsx(zm,{sx:{fontSize:16,color:"#4caf50"}}),c.jsx(R,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),c.jsxs(Wn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(R,{variant:"body2",color:"#454545",children:"Active Catalogs"}),c.jsx(R,{variant:"h6",fontWeight:700,children:i?"...":g}),c.jsx(R,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),c.jsxs(Wn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(R,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),c.jsxs(R,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[i?"...":`${S}%`,c.jsx(R,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:i?"":`${m(b)}/${m(w)}`})]}),c.jsx(R,{variant:"caption",color:"error",children:i?"":`${v.toFixed(0)}% missing`})]})]})]})})]})]})};function zi({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1}){const a=bt(),l=Cn(),[d]=z.useState({matched:!1,error:"",apiResponse:null,loading:!1});let p=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const h=Le(g=>g?.dashboard)?.products||[],x=t||(()=>a("/product-setting")),y=!r&&!e&&Array.isArray(h)&&h.length===0;return c.jsx(I,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:c.jsx(I,{sx:p.wrapper,children:c.jsxs(I,{sx:p.card,children:[c.jsxs(I,{sx:p.iconContainer,children:[c.jsxs(I,{sx:p.sparkleContainer,children:[c.jsx(I,{sx:p.sparkleLeft}),c.jsx(I,{sx:p.sparkleCenter}),c.jsx(I,{sx:p.sparkleRight})]}),c.jsx(I,{sx:p.inboxIcon,children:c.jsx(I,{sx:p.notch})})]}),c.jsx(R,{sx:p.title,children:r?"Session Expired":n?`No Product in ${n} Category`:"No Products"}),!s&&c.jsx(R,{sx:p.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!y?`No products found in the "${n}" category.`:y?"No products found in store inventory. Start syncing to add products.":d.matched?"Active integrations fetched successfully":d.error?d.error:"No active integration found for this tenant id"}),!s&&!e&&!r&&y&&!i&&c.jsx(R,{component:"a",href:"#",sx:p.actionLink,onClick:g=>{g.preventDefault(),x()},children:"Start Syncing Products"})]})})})}const zd=We(c.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),XI="#22c55e";function Lm(e){const{sx:t,color:n=XI,fontSize:r,...i}=e;return c.jsxs($n,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[c.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function JI({catalogSlug:e="",onClose:t}){const n=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",r=()=>{n&&navigator.clipboard.writeText(n).then(()=>{}).catch(()=>{})};return c.jsxs(I,{sx:{position:"fixed",top:24,right:24,zIndex:1400,display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:400,minWidth:320,px:2,py:1.5,borderRadius:2,backgroundColor:"#e8f5e9",border:"1px solid #c8e6c9",boxShadow:"0 4px 12px rgba(0,0,0,0.08)"},children:[c.jsx(I,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:c.jsx(Lm,{sx:{fontSize:40}})}),c.jsxs(I,{sx:{flex:1,minWidth:0,pt:.25},children:[c.jsx(R,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),c.jsx(R,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),c.jsx(R,{component:"button",onClick:r,sx:{marginTop:.75,padding:0,border:"none",background:"none",cursor:"pointer",fontWeight:500,fontSize:14,color:"#2563eb",textDecoration:"underline","&:hover":{color:"#1d4ed8"}},children:"Copy Share Link"})]}),c.jsx(it,{onClick:t,size:"small","aria-label":"Close",sx:{color:"#888",p:.5,mt:-.5,mr:-.5,"&:hover":{color:"#333",bgcolor:"rgba(0,0,0,0.04)"}},children:c.jsx(zd,{sx:{fontSize:20}})})]})}const QI=We(c.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),jm=We(c.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Dt({size:e,style:t,sx:n,...r}){return c.jsx(jm,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const Ya={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},Bm={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},ZI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},Ka=e=>{if(e==null||!Number.isFinite(e))return"0";if(e>=1e3){const t=e/1e3;return(t%1===0?String(t):t.toFixed(1).replace(/\.0$/,""))+"K"}return String(Math.round(e))},Wm=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s})=>{const a=e?.metrics||{},l=e?.productDashboardMetrics||{},d=!t,p=t?`${t} Products`:"Categories",u=t?l.productCount!=null?l.productCount:n:d&&(a.activeCategories!=null||a.activeProducts!=null)?a.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,h=t?"":"Products",x=t?"":d&&a.activeProducts!=null?a.activeProducts:e?.homePageCardSummary?.totalProducts??0,y=d?e?.homePageCardSummary?.lastSyncHoursAgo!=null?`Sync ${e.homePageCardSummary.lastSyncHoursAgo}h ago`:"":e?.homePageCardSummary?.lastSyncHoursAgo!=null?`Sync ${e.homePageCardSummary.lastSyncHoursAgo}h ago`:"",g=d&&a.activeCatalogues!=null?a.activeCatalogues:t&&l.activeCatalogues!=null?l.activeCatalogues:i,f=a.onShelfYesterdayPerc!=null?Math.round(Number(a.onShelfYesterdayPerc)):null,m=a.totalOnShelfYesterdayCount!=null?Number(a.totalOnShelfYesterdayCount):null,b=a.totalStockYesterdayCount!=null?Number(a.totalStockYesterdayCount):null,w=a.missingOnShelfYesterdayPercent!=null?Math.round(Number(a.missingOnShelfYesterdayPercent)):null,S=l.onShelfYesterdayPerc!=null?Math.round(Number(l.onShelfYesterdayPerc)):null,v=l.totalOnShelfYesterdayCount!=null?Number(l.totalOnShelfYesterdayCount):null,C=l.totalStockYesterdayCount!=null?Number(l.totalStockYesterdayCount):null,P=l.missingOnShelfYesterdayPercent!=null?Math.round(Number(l.missingOnShelfYesterdayPercent)):null,O=d?f!=null?`${f}%`:"78%":S!=null?`${S}%`:"78%",A=d?m!=null&&b!=null?`${Ka(m)}/${Ka(b)}`:"78/100k":v!=null&&C!=null?`${Ka(v)}/${Ka(C)}`:"78/100k",k=d?w!=null?`${w}% Missing`:"22% missing":P!=null?`${P}% Missing`:"22% missing",L=!!t,D=L?"8px":"12px",T=L?261.3333435058594:void 0,N=101;return c.jsxs(I,{sx:{width:"fit-content",maxWidth:"100%",height:L?101:"auto",gap:D,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",marginLeft:"auto",marginRight:"auto",mb:3},children:[c.jsx(Ld,{cardWidth:T??344,cardHeight:N,title:p,titleValue:u,subtitle:h,subtitleValue:x,recentText:y,tickMarkRequired:!0,btnLabel:"History",flexGrow:!1}),c.jsx(Ld,{cardWidth:T??220,cardHeight:N,title:"Active Catalogs",titleValue:g,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!1}),c.jsx(Ld,{cardWidth:T??220,cardHeight:N,title:"On Shelf Yesterday",titleValue:O,thirdVaue:A,recentText:k,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!1})]})};function Ld({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:l="",recentTextColor:d="#808080",btnLabel:p="",tickMarkRequired:u=!1,linkRequired:h=!1,onBtnClick:x,isThirdCard:y=!1,flexGrow:g=!1}){const f={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},m={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},b={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},w={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return c.jsxs(Wn,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:g?"1 1 200px":"0 0 auto",height:t,opacity:1,gap:"1px",borderRadius:"12px",bgcolor:"#fff",boxShadow:"0 2px 8px #e0e0e0",p:0,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"},children:[c.jsx(I,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px",padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:y?c.jsx(c.Fragment,{children:c.jsxs(I,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(R,{sx:{...Ya,height:16},children:n}),c.jsxs(I,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[c.jsx(R,{sx:{...f},children:i}),c.jsx(R,{sx:{...m},children:s})]})]})}):c.jsxs(c.Fragment,{children:[n&&c.jsxs(I,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(R,{sx:{...Ya,width:158,height:16},children:n}),c.jsx(R,{sx:{...Bm,width:32,height:32},children:i}),s&&c.jsx(R,{component:"span",sx:{...Ya,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&c.jsxs(I,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(R,{sx:{...Ya,width:158,height:16},children:r}),c.jsx(R,{sx:{...Bm,width:47,height:32},children:a})]})]})}),c.jsx(Xt,{}),c.jsx(I,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:y?c.jsxs(c.Fragment,{children:[c.jsx(I,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:c.jsx(R,{sx:{...b,whiteSpace:"nowrap"},children:l})}),p&&c.jsxs(I,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[c.jsx(Ke,{variant:"text",size:"small",onClick:x,sx:{...w,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:p}),c.jsx(Dt,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs(I,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&c.jsx(Lm,{sx:{width:12,height:12,mr:.5}}),h&&c.jsx(QI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),c.jsx(R,{sx:{...ZI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l})]}),p&&c.jsx(I,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:c.jsxs(Ke,{variant:"text",size:"small",onClick:x,sx:{color:"#2D64B8",textTransform:"none",fontWeight:600,fontFamily:"Inter, sans-serif",fontSize:12,lineHeight:"16px",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:[p,c.jsx(Dt,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const eN=We(c.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function jd(e){return c.jsx(eN,{...e})}function tN(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function Rm(e){return e?.categoryName??e?.name??""}function nN({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],onToggleCategory:i}){const s=d=>r.some(p=>Rm(p)===Rm(d)),a=e.length>0&&e.every(s),l=e.some(s);return c.jsxs(Wn,{sx:t.categoryTable,children:[c.jsxs(I,{sx:t.categoryTableHeader,children:[i&&c.jsx(I,{sx:t.categoryTableHeaderCheckboxCol,children:c.jsx(Pt,{checked:a,indeterminate:l&&!a,onChange:()=>{a?e.forEach(d=>i(d)):e.forEach(d=>{s(d)||i(d)})},size:"sm",sx:{p:0,"& .MuiSvgIcon-root":{fontSize:16}}})}),c.jsxs(I,{sx:t.categoryTableHeaderCategoryCell,children:["Category",c.jsx(jd,{sx:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"}})]}),c.jsx(I,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),c.jsx(I,{sx:t.categoryTableHeaderProductsCell,children:"Products"}),c.jsx(I,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((d,p)=>c.jsxs(I,{sx:t.categoryTableRow(p),children:[i&&c.jsx(I,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Pt,{checked:s(d),onChange:()=>i(d),size:"sm",sx:t.categoryTableRowCheckbox})}),c.jsxs(I,{sx:t.categoryNameCell,children:[c.jsx(R,{sx:t.categoryName,children:d.categoryName}),c.jsxs(R,{sx:t.categoryProducts,children:[d.productCount," Products"]}),c.jsxs(R,{sx:t.categoryUpdated,children:["Updated ",tN(d.lastUpdated)]})]}),c.jsxs(I,{sx:t.categoryStockCell,children:[c.jsxs(R,{sx:t.categoryStock(p),children:[d.totalStock,"/",d.totalOsa]}),c.jsx(R,{sx:t.categoryOSA(p),children:d.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(I,{component:"span",sx:Number(d.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(d.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsx(I,{sx:t.categoryImagesCell,children:(Array.isArray(d.images)?d.images:[]).map((u,h)=>c.jsx(Ta,{src:u,alt:(d.categoryName||"")+" product",sx:t.categoryImage},h))}),c.jsx(I,{sx:t.categoryViewCell,children:c.jsxs(Ke,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:d.categoryName,...d}),children:["View",c.jsx(Dt,{sx:t.categoryViewButtonIcon})]})})]},d.categoryName||p))]})}const Vm=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i})=>{const s=r||[],a=i||[],l=s.length>0,d=a.length>0;if(!l&&!d)return null;const p=d?`${a.length} categor${a.length===1?"y":"ies"} selected`:`${s.length} items selected`;return c.jsxs(I,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",bgcolor:"#18181B",borderRadius:"16px",boxShadow:3,px:3,py:2,display:"flex",alignItems:"center",zIndex:1300,minWidth:400},children:[c.jsx(R,{sx:{color:"#fff",mr:1},children:c.jsx("b",{children:p})}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:e,children:"Promo Print"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:t,children:"Create Catalog"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:n,children:"OSA Request"})]})},rN=We(c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Um(e){return c.jsx(rN,{...e})}const Hm=We([c.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),c.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft"),qm=We([c.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),c.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight"),oN=()=>{const e=$t(),t=bt(),n=yt(),r=Cn(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[l,d]=z.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:p,companyId:u,loading:h,error:x}=Le(q=>q.dashboard),y=z.useMemo(()=>p&&typeof p=="object"&&Object.keys(p).length>0?{matched:!0,error:"",apiResponse:p,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[p]),g=Le(q=>q.dashboard),{categoryList:f=[],stores:m=[],categoryPagination:b={}}=g||{},w=f,{currentPage:S=1,limit:v=10,totalCount:C=0,totalPages:P=1,hasNextPage:O=!1}=b,{sharedCatalogues:A=[],sharedCataloguesTotal:k=0,lastStableActiveCatalogsCount:L=null}=Le(q=>q.productSettings??{}),D=z.useMemo(()=>Array.isArray(A)?A.filter(q=>q.status===!0).length:0,[A]),N=k>0&&A.length>=k?D:L??D,F=Array.isArray(f)&&f.length>0,W=()=>{y.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},_=m.length>0?m:[{id:"all",name:"All Stores",storeCode:"all"}],j=q=>{d(q)},M=z.useCallback((q={})=>{const ne=Array.isArray(l.store)?l.store:[],U={...q};if(ne.length>0&&!ne.includes("all")){const de=ne.map(re=>m.find(pe=>pe.id===re)?.storeCode).filter(Boolean);de.length>0&&(U.storeCode=de[0])}return l.search!=null&&String(l.search).trim()!==""&&(U.search=String(l.search).trim()),l.minOsa!=null&&l.minOsa!==""&&(U.minOsa=l.minOsa),l.maxOsa!=null&&l.maxOsa!==""&&(U.maxOsa=l.maxOsa),l.order!=null&&l.order!==""&&(U.order=l.order),U},[l.store,l.search,l.minOsa,l.maxOsa,l.order,m]),B=z.useRef(null);z.useEffect(()=>{if(!u)return;const q=M({page:S,limit:v}),ne=JSON.stringify(q);B.current!==ne&&(B.current=ne,e(ur(q)))},[u,S,v,M,e]);const $=q=>{const ne=M({page:q,limit:v});e(ur(ne))},V=q=>{const ne=M({page:1,limit:q});e(ur(ne))},[G,K]=z.useState(!1);z.useEffect(()=>{!u&&!G?e(zr()).finally(()=>{K(!0)}):u&&queueMicrotask(()=>K(!0))},[e,u,G]);const Z=z.useRef(null);z.useEffect(()=>{u&&u!==Z.current&&(Z.current=u,e(At(u)),e(ur({page:1,limit:10})),e(Lr()),e(zo()),e(tn({page:1})))},[e,u]),z.useEffect(()=>{if(!u||k<=0)return;(Array.isArray(A)?A.length:0)<k&&e(tn({page:1,limit:k}))},[u,k,A?.length,e,A]);const Q=q=>{t(`/category?categoryName=${encodeURIComponent(q.name||q.categoryName)}`,{state:{filters:l}})},[J,ae]=z.useState([]),se=z.useCallback(q=>{const ne=q?.categoryName??q?.name??"";ae(U=>U.some(re=>(re?.categoryName??re?.name)===ne)?U.filter(re=>(re?.categoryName??re?.name)!==ne):[...U,q])},[]),le=G&&x&&!u;return c.jsxs(c.Fragment,{children:[i&&c.jsx(JI,{catalogSlug:i.catalogSlug,onClose:s}),!le&&c.jsx(qa,{filters:l,onFilterChange:j,styles:a.topBar,stores:_,tenantStatus:y,hasProducts:F}),c.jsx(I,{sx:le?{marginTop:0}:F?a.contentWrapper??{marginTop:"72px",display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:"72px"},children:le?c.jsx(zi,{handleStartSyncing:W,loading:!1,sessionExpired:!0}):!G&&!u?c.jsx(zi,{handleStartSyncing:W,loading:!0,sessionExpired:!1}):F?c.jsxs(I,{sx:a.root,children:[c.jsx(Wm,{productState:g,categoryCount:f.length,activeCatalogsCount:N,onManageClick:()=>t("/catalogs/manage-shared")}),f.length>0?c.jsxs(c.Fragment,{children:[c.jsx(nN,{categoryData:w,styles:a,onView:Q,selectedCategories:J,onToggleCategory:se}),c.jsx(Vm,{selectedCategories:J,onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>{}}),C>0&&(()=>{const q=a?.categoryTablePagination??{};return c.jsxs(I,{sx:q.wrapper,children:[c.jsxs(I,{sx:q.resultsPerPageBox,children:[c.jsx(R,{component:"span",sx:q.resultsPerPageText,children:"Results per page"}),c.jsx(Rn,{value:v,onChange:ne=>V(Number(ne.target.value)),IconComponent:Um,variant:"standard",disableUnderline:!0,sx:q.select,children:[5,10,20,50].map(ne=>c.jsx(Ot,{value:ne,children:ne},ne))})]}),c.jsxs(I,{sx:q.navBox,children:[c.jsx(it,{size:"small",disabled:S<=1,onClick:()=>$(1),sx:q.iconButton,title:"First page",children:c.jsx(Hm,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:S<=1,onClick:()=>$(S-1),sx:q.iconButton,title:"Previous page",children:c.jsx(Ha,{sx:{width:16,height:16,opacity:1}})}),c.jsx(R,{component:"span",sx:q.pageText,children:C===0?"0 of 0":`${(S-1)*v+1}-${Math.min(S*v,C)} of ${C}`}),c.jsx(it,{size:"small",disabled:!O||S>=P,onClick:()=>$(S+1),sx:q.iconButton,title:"Next page",children:c.jsx(Dt,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:!O||S>=P,onClick:()=>$(P),sx:q.iconButton,title:"Last page",children:c.jsx(qm,{sx:{width:16,height:16,opacity:1}})})]})]})})()]}):c.jsxs(I,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[c.jsx(R,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),c.jsx(R,{sx:{fontSize:14,color:"#808080"},children:l.search&&String(l.search).trim()?"No category found for your search.":"No category available."})]})]}):c.jsx(zi,{handleStartSyncing:W,loading:h,sessionExpired:!1,hasIntegration:y.matched})})]})};function En({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:l,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:h,subtitleColor:x}){const y={width:"100%",maxWidth:600,height:58,boxSizing:"border-box",background:"#FFFFFF",borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},g=d?u||"#999999":h||"#000000",f=d?"#bbbbbb":x||"#808080",m={card:{...y,...p},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},title:{fontWeight:700,fontSize:12,color:g,lineHeight:"16px"},subtitle:{color:f,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return c.jsxs(I,{onClick:d?void 0:i,sx:{...m.card,...p||{}},children:[e&&c.jsx(I,{sx:m.icon,children:e}),c.jsxs(I,{sx:m.cardInner,children:[c.jsxs(I,{children:[c.jsx(R,{sx:m.title,children:t}),n&&c.jsx(R,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),l&&c.jsx(I,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:l})]})]})}const iN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ym=e=>{const t=sN(e);return t.charAt(0).toUpperCase()+t.slice(1)},Km=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),aN=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var lN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const cN=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},d)=>z.createElement("svg",{ref:d,...lN,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Km("lucide",i),...!s&&!aN(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>z.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Or=(e,t)=>{const n=z.forwardRef(({className:r,...i},s)=>z.createElement(cN,{ref:s,iconNode:t,className:Km(`lucide-${iN(Ym(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Ym(e),n};const dN=Or("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const uN=Or("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Gm=Or("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const pN=Or("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const fN=Or("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);const hN=Or("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const gN=Or("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Bd({size:e=15,color:t="#454545",...n}){return c.jsx(hN,{size:e,color:t,...n})}const mN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",yN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function bN(e){const{sx:t={},...n}=e;return c.jsxs(I,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[c.jsx(I,{component:"img",src:mN,alt:"",sx:{position:"absolute",width:12.25,height:12.25,top:1.84,left:1.84,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}}),c.jsx(I,{component:"img",src:yN,alt:"",sx:{position:"absolute",width:5.104,height:5.104,top:13.06,left:13.06,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}})]})}function vN({size:e=15,color:t="#454545",...n}){return c.jsx(dN,{size:e,color:t,...n})}function xN({size:e=15,color:t="#454545",...n}){return c.jsx(pN,{size:e,color:t,...n})}function SN({size:e=15,color:t="#454545",...n}){return c.jsx(fN,{size:e,color:t,...n})}function wN({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:l=()=>{},integrationData:d={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=bt();d?.configs;const x=d?.configs?.sync_frequency||"Daily",y=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",f={width:600,maxWidth:"100%",minHeight:468,mx:"auto",mt:4,boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>c.jsxs(I,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[c.jsx(I,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),c.jsxs(I,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx(En,{icon:c.jsx(Bd,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(En,{icon:c.jsx(bN,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:c.jsx(I,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(xm,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),b=(v,C)=>c.jsxs(I,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),c.jsxs(I,{sx:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px",cursor:v?"not-allowed":"pointer",opacity:v?.5:1},onClick:v?void 0:C,children:[c.jsx(I,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx($i,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:"#2D64B8",width:62},children:"Sync Now"})]})]}),w=v=>{const C=v?x:"Daily",P=v?y:"10:00 AM",O=!v&&i===0;return c.jsxs(I,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[b(O,l),!v&&i===0&&c.jsx(En,{icon:c.jsx($i,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&c.jsxs(c.Fragment,{children:[c.jsx(En,{icon:c.jsx($i,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(En,{icon:c.jsx(Bd,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&c.jsxs(c.Fragment,{children:[c.jsx(En,{icon:c.jsx($i,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0,titleColorWhenDisabled:"#454545",action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(En,{icon:c.jsx(Bd,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsxs(I,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},children:[c.jsx(I,{sx:{width:296},children:c.jsx(En,{icon:c.jsx(vN,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:C,highlightStyle:u,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})}),c.jsx(I,{sx:{width:296},children:c.jsx(En,{icon:c.jsx(xN,{size:15,color:"#454545"}),title:"Sync Time",subtitle:P,highlightStyle:u,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})})]}),c.jsx(En,{icon:c.jsx(SN,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},S=i===3&&d&&Object.keys(d||{}).length>0;return c.jsxs(I,{sx:f,children:[m(),w(S)]})}const rr=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=(i=12)=>!n||!Array.isArray(n)||n.length===0?null:c.jsx(I,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:n.map((s,a)=>c.jsxs(z.Fragment,{children:[a>0&&c.jsx(Gm,{size:i,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:a===n.length-1?700:400,fontSize:a===n.length-1?"16px":"12px",lineHeight:a===n.length-1?"20px":"16px",letterSpacing:0,color:a===n.length-1?"#000000":"#808080",verticalAlign:"middle"},children:s.label})]},s.label))});return c.jsx(I,{sx:{position:"fixed",top:0,left:0,right:0,width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",opacity:1,color:"#FFFFFF",backgroundColor:"#FFFFFF",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",overflow:"hidden",zIndex:1100},children:c.jsxs(I,{sx:{width:"100%",maxWidth:1151,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"},children:[c.jsxs(I,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0},children:[c.jsxs(I,{onClick:t,sx:{width:48,height:16,gap:"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[c.jsx(Ha,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(R,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsx(I,{sx:{flex:1,minWidth:0,height:20,paddingLeft:"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:n&&n.length>0?r(12):c.jsxs(c.Fragment,{children:[c.jsx(R,{sx:{width:51,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),c.jsx(Gm,{size:12,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),c.jsx(R,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle"},children:e})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}}),c.jsxs(I,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"16px",flexShrink:0},children:[c.jsx(Dm,{}),c.jsx($m,{})]})]})})};function CN({open:e,onClose:t,onSave:n}){gn();const r=Cn(),[i,s]=z.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=h=>s(h.target.value),d=()=>{n&&n(i),t()},p=()=>{},u=r.productSettingModal;return c.jsx(so,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:c.jsxs(I,{sx:u.container,children:[c.jsxs(I,{sx:u.header,children:[c.jsx(R,{sx:u.headerTitle,children:"Sync Method"}),c.jsx(it,{onClick:t,size:"small",sx:u.closeButton,children:c.jsx(gN,{size:20})})]}),c.jsxs(I,{sx:u.content,children:[c.jsx($a,{value:i,onChange:l,children:a.map(h=>c.jsx(wn,{value:h.value,control:c.jsx(co,{icon:c.jsx(I,{sx:u.radioIcon}),checkedIcon:c.jsx(uN,{size:18,color:"#000"}),sx:u.radioChecked}),label:c.jsx(R,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),c.jsxs(I,{sx:u.upgradeSection,children:[c.jsx(R,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),c.jsx(R,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),c.jsx(I,{sx:u.footer,children:c.jsx(Ke,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const EN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=Cn();let i;return i=r.productSettingModal,c.jsx(so,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:c.jsxs(I,{sx:i.container,children:[c.jsx(I,{sx:i.header,children:c.jsx(R,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),c.jsxs(I,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(Ke,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(Ke,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function TN(){const e=yt(),t=bt(),n=$t(),{companyId:r,integrationData:i,loading:s}=Le(N=>N?.dashboard||{}),[a,l]=z.useState(!0),[d,p]=z.useState(),[u,h]=z.useState(0),[x,y]=z.useState(""),[g,f]=z.useState(!1),[m,b]=z.useState(!1),[w,S]=z.useState(!1),[v,C]=z.useState(""),P=z.useRef(null),O=z.useRef(!1);z.useEffect(()=>{const N=e.state?.tenantIntegrationMatched===!0;r&&r!==P.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?P.current=r:(P.current=r,n(At(r)))),N&&r&&!s&&!O.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),O.current=!0,n(At(r))),N||(O.current=!1)},[r,n,s,i,e.state]),z.useEffect(()=>{let N=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(N=e.state.tenantIntegrationMatched);const F=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),W=e.state?.fromSyncStep===1?1:N===!0||F?3:0;queueMicrotask(()=>h(W))},[e.state,i]);const A=()=>f(!0),k=N=>{y(N),h(1),f(!1)},L=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},D=async()=>{const N=i?.channelId||i?.id;if(!N){C("Channel ID not found"),S(!0),b(!1);return}b(!1);try{const F=await n(Wo(N));if(Wo.fulfilled.match(F)){const W=F.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";C(W),S(!0),W==="Sync started successfully"&&setTimeout(()=>{n(At(r)),n(Fn()),t("/")},2500)}else C("Sync not started successfully"),S(!0)}catch{C("Sync not started successfully"),S(!0)}},T=()=>{u===1?(h(0),y("")):t("/")};return c.jsxs(I,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,pt:"72px",display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx(rr,{breadcrumbRight:"Settings",onBack:T}),c.jsx(CN,{open:g,onClose:()=>f(!1),onSave:k}),c.jsx(EN,{isOpen:m,onClose:()=>b(!1),onConfirm:D}),c.jsx(po,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(wN,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:d,setSelectedCard:p,syncStep:u,syncMethod:x,integrationData:i,onSetupSync:A,onSetupFTP:L,onSyncNow:()=>b(!0)})]})}const PN=["Setup FTP","Check data","Start Sync"],ON=e=>{const{onBack:t}=e,n=yt(),r=bt();n.state?.tenantIntegrationData;const i=n.state?.fromSyncStep,s=()=>{t?t():i!==void 0?r("/product-setting",{state:{fromSyncStep:i,tenantIntegrationMatched:i===3}}):r("/product-setting")};return c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),c.jsxs(I,{sx:{maxWidth:800,mx:"auto",pt:"72px",px:2},children:[c.jsx(I,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:PN.map((a,l)=>c.jsx(R,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:l===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:224,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:a},a))}),c.jsx(I,{sx:{width:800,height:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:c.jsxs(rn,{elevation:0,sx:{width:400,height:210,gap:"24px",borderRadius:"20px",padding:"24px",background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(I,{sx:{width:352,height:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",verticalAlign:"middle",color:"#000000",opacity:1,width:145,height:20,margin:0},children:"Setup Instructions"}),c.jsxs(I,{component:"ol",sx:{margin:0,paddingLeft:"28px",listStylePosition:"outside",listStyleType:"decimal",fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0px",color:"#454545",opacity:1,width:352,height:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},children:[c.jsx("li",{children:"Directory should have just one file"}),c.jsx("li",{children:"File format must be in CSV (comma separated)"}),c.jsx("li",{children:"File structure should be flat"})]})]}),c.jsx(I,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})]})};function kN(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs($n,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[c.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function IN(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs($n,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[c.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),c.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}const NN=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return c.jsx(I,{sx:{position:"relative",width:16,height:16,borderRadius:"50%",border:"1px solid",borderColor:i,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",boxSizing:"border-box",flexShrink:0},children:r?c.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:c.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):c.jsx("svg",{width:8,height:8,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:c.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2D64B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})},Ga=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:l,filledSegments:d,filledSegmentsStart:p=0,previousStepsComplete:u=!1})=>{const x=gn().transitions?.duration?.standard??400,[y,g]=z.useState(0),[f,m]=z.useState(!1),b=Math.max(1,e.length),w=50/b,S=100*(b-1)/b,v=40/b,C=b>1?100/b:0,P=100,O=z.useMemo(()=>{let A;if(typeof d=="number"){const L=typeof p=="number"?p:0,D=d-L;A=C*(L+y*D)}else typeof l=="number"?A=C*(l+y):s?A=y?S:0:r?A=y?S*.5:0:A=y?v:0;const k=Math.min(A,S)/S;return Math.round(k*P)},[y,d,p,l,s,r,C,S,v]);return z.useEffect(()=>{if(a){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof d=="number"&&typeof p=="number"&&p>0){setTimeout(()=>{g(0),m(!1)},0);const k=setTimeout(()=>{g(1),setTimeout(()=>m(!0),x)},50);return()=>clearTimeout(k)}setTimeout(()=>{g(0),m(!1)},0);const A=setTimeout(()=>{g(1),setTimeout(()=>m(!0),x)},50);return()=>clearTimeout(A)},[t,e.length,r,a,d,p,x]),c.jsxs(I,{sx:{width:800,opacity:1},children:[c.jsx(I,{sx:{width:800,height:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((A,k)=>c.jsxs(I,{sx:{width:256,height:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[c.jsx(NN,{active:k===t,completed:k<t,showBlue:k===0&&i||k===1&&n&&(f||u)||k===2&&s}),c.jsx(I,{component:"span",sx:{width:224,height:16,fontFamily:"Inter, sans-serif",fontWeight:k===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:A})]},A))}),c.jsx(I,{sx:{width:"100%",mt:1,mb:0},children:c.jsx(I,{sx:{marginLeft:`${w}%`,width:`${S}%`},children:c.jsx(Zg,{variant:"progress",steps:P+1,position:"static",activeStep:O,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},AN=e=>e.dashboard?.companyId||"";function MN(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const FN=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=z.useState(null),s=yt(),a=bt(),l=Le(AN),[d,p]=z.useState(!1);z.useEffect(()=>{let k,L;return setTimeout(()=>{p(!1),k=setTimeout(()=>{L=setTimeout(()=>p(!0),600)},100)},0),()=>{k&&clearTimeout(k),L&&clearTimeout(L)}},[]);const[u,h]=z.useState(!1),x=localStorage.getItem("selectedSyncMethod")||"sftp",[y,g]=z.useState(`${x}:`),[f,m]=z.useState(""),[b,w]=z.useState(""),S=$t(),v=Le(k=>k.productSettings?.loading||!1),C=Le(k=>k.productSettings?.error||null),P=gn();Nm(P.breakpoints.up("lg"));const O=Le(k=>k.productSettings.syncData);z.useEffect(()=>{const k=s.state?.ftpConfig,L=s.state?.tenantIntegrationData;if(O&&O.serverAddress){setTimeout(()=>{g(O.serverAddress||""),m(O.configs&&O.configs.username||""),w(O.configs&&O.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const D=t.type||"sftp",T=t.host||"",N=t.port||"",F=t.path||"",W=`${D}://${T}${N?`:${N}`:""}${F?`/${F}`:""}`;setTimeout(()=>{g(W),m(t.username||""),w(t.password||"")},0);return}if(L&&L.configs){const D=L.configs,T=D.type||L.type||"sftp",N=D.host||"",F=D.port||"",W=D.path||"",_=`${T}://${N}:${F}/${W}`,j=D.username||"",M=D.password||"";setTimeout(()=>{g(_),m(j),w(M)},0);return}if(k){const T=`${k.type||"sftp"}://${k.host}:${k.port}/${k.path}`,N=k.username||"",F=k.password||"";setTimeout(()=>{g(T),m(N),w(F)},0)}},[s.state,O,t]);const A=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:k,host:L,port:D,path:T}=MN(y),N=await S(jo({serverAddress:y,username:f,password:b,companyId:l}));if(!jo.fulfilled.match(N))return;const F=N.payload;if(s.state?.fromSettingsIcon){const j=F?.entity_type||r?.entity_type||"products",M={...r||{},companyId:l,tenantId:l,type:k,serverAddress:y,configs:{host:L,port:Number(D),path:T,username:f,password:b,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:j,mappings:r?.mappings||F?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log(JSON.stringify(M,null,2)),i(M),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:M}});return}const W=F?.entity_type||"",_={tenantId:l,type:k,serverAddress:y,configs:{host:L,port:Number(D),path:T,username:f,password:b,sync_frequency:"",sync_time:""},entity_type:W||"products",mappings:F?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(_,null,2)),S(Ps(_)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),e.onNext&&e.onNext({putjson:_})};return c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),c.jsxs(I,{sx:{width:800,minHeight:600,gap:"32px",opacity:1,pt:"88px",left:"340px",mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(I,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...n,showSetupFtpBlueTick:d})}),c.jsx(I,{sx:{width:800,height:504,minHeight:504,borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},children:c.jsxs(I,{sx:{width:400,height:380,borderRadius:"20px",padding:"24px",gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(I,{sx:{width:352,height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:c.jsx(R,{sx:{width:102,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",color:"#000000",opacity:1,margin:0},children:"Login Details"})}),c.jsxs(I,{component:"form",autoComplete:"off",sx:{width:352,height:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(I,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Server Address"}),c.jsx("input",{type:"text",value:y,onChange:k=>g(k.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),c.jsxs(I,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Username"}),c.jsx("input",{type:"text",value:f,onChange:k=>m(k.target.value),placeholder:"Enter username",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),c.jsxs(I,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Password"}),c.jsx("input",{type:u?"text":"password",value:b,onChange:k=>w(k.target.value),placeholder:"Enter password",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}}),c.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>h(k=>!k),tabIndex:-1,size:"small",sx:{position:"absolute",right:11,top:35,color:"#454545",width:16,height:16,padding:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"#222"},"& .MuiSvgIcon-root":{width:16,height:16,fontSize:16}},children:u?c.jsx(IN,{}):c.jsx(kN,{})})]})]}),c.jsxs(I,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[c.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:A,disabled:v,children:v?"Loading...":"Next"})]}),C&&c.jsx(R,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})]})},_N=e=>e.productSettings.ftpColumns||[],DN=e=>e.productSettings.preview||[],$N=e=>e.productSettings.loading,zN=e=>e.productSettings.error,LN=e=>e.productSettings.existingMapping,jN=e=>e.productSettings.entity_type||"products",BN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=yt(),a=bt(),l=s.state?.fromSettingsIcon,[d,p]=z.useState(()=>{if(s.state?.putjson)return s.state.putjson;const _=window.localStorage.getItem("ftpSyncPutjson");return _?JSON.parse(_):t.length>0?{mappings:t}:null}),[u,h]=z.useState([]),[x,y]=z.useState({}),g=Le(_N),f=Le(DN),m=Le($N),b=Le(zN),w=Le(LN),S=Le(jN),v=z.useRef(m);z.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>y({})),v.current=m},[m]);const C=z.useRef(!1);z.useLayoutEffect(()=>{w==null||!w?.mappings||w.mappings.length===0?C.current||(C.current=!0,queueMicrotask(()=>y({}))):C.current=!1},[w]);const P=$t();z.useEffect(()=>{async function _(){try{let j=[];if(w?.mappings?.length>0){const M=w.mappings.map(B=>B.target_field).filter(B=>B&&typeof B=="string");j=[...new Set(M)]}try{const M=await P(Ro(S));Ro.fulfilled.match(M)&&Array.isArray(M.payload)&&M.payload.filter($=>$&&typeof $=="string").forEach($=>{j.includes($)||j.push($)})}catch{}if(t&&t.length>0){const M=t.map(B=>B.target_field).filter(B=>B&&typeof B=="string"&&!j.includes(B));M.length>0&&(j=[...j,...M])}j=j.filter(M=>M&&typeof M=="string"),h(j)}catch{if(w?.mappings?.length>0){const j=w.mappings.map(B=>B.target_field).filter(B=>B&&typeof B=="string"),M=[...new Set(j)];h(M)}else h([])}}(S||w?.mappings?.length>0||t&&t.length>0)&&_()},[S,w,t,P]);const O=z.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const _=w.mappings.map(j=>j.source_field).filter(j=>j);if(_.length>0)return _}return g&&g.length>0?g:[]},[w,g]),A=z.useMemo(()=>f.filter(j=>Object.keys(j).length>0),[f]),k=z.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const _={};return w.mappings.forEach(j=>{j.source_field&&j.target_field&&(_[j.source_field]=j.target_field)}),_}return{}},[w]),D=w?.mappings?.length>0?{...k,...x}:{...x},T=gn();Nm(T.breakpoints.up("lg"));const N=Le(_=>_.productSettings.syncData),F=z.useMemo(()=>{if(N?.serverAddress)return N.serverAddress;const _=N?.configs||{},j=(N?.type||"sftp").toLowerCase(),M=_.host,B=_.port,$=_.path;if(!M)return"";let V=`${j}://${M}`;if(B!=null&&B!==""&&(V+=`:${B}`),$){const G=String($).replace(/^\/+/,"");V+=`/${G}`}return V},[N]),W=()=>{const _=O.map($=>({source_field:$||"",target_field:D[$]||""})).filter($=>$.source_field&&$.target_field);if(_.length===0)return;if(l&&d){const $={...d,tenantId:d.tenantId||d.companyId,type:d.type||N.type||"sftp",entity_type:d.entity_type||N.entity_type||"products",mappings:_};p($),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),r?r({fromSettingsIcon:!0,putjson:$}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:$});return}const j=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),M=N.companyId||j.companyId||j.tenantId||"",B={...j,companyId:M,tenantId:M,type:N.type||j.type||"sftp",integration_type:N.integration_type||j.integration_type||"",entity_type:j.entity_type||N.entity_type||"products",configs:N.configs||j.configs||{},ftp_columns:O,preview:A,mappings:_};P(Ps(B)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),r?r({putjson:B}):e.onNext&&e.onNext({putjson:B})};return c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}}))}),c.jsxs(I,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(I,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...i})}),c.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:c.jsxs(rn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[c.jsxs(I,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(I,{children:[c.jsx(R,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),F&&c.jsx(R,{variant:"body2",sx:{color:"#888",mt:.5},children:F})]}),c.jsxs(I,{children:[c.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:W,children:"Next"})]})]}),c.jsx(Tm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?c.jsx(I,{sx:{p:3,textAlign:"center"},children:"Loading..."}):b?c.jsx(I,{sx:{p:3,color:"red",textAlign:"center"},children:b}):O.length===0?c.jsx(I,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):c.jsxs(wm,{size:"small",children:[c.jsxs(Om,{children:[c.jsxs(_i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),O.map((_,j)=>c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:_},_+j))]}),c.jsxs(_i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),O.map((_,j)=>c.jsx(nr,{sx:{background:"#fafafa",borderBottom:"none"},children:c.jsxs(Rn,{value:D[_]||"",onChange:M=>y(B=>({...B,[_]:M.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[c.jsx(Ot,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:c.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),u.map(M=>c.jsx(Ot,{value:M,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:M},M))]})},j))]})]}),c.jsx(Em,{children:A.length>0?A.map((_,j)=>c.jsxs(_i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:j===0?"Data preview":""}),O.map((M,B)=>c.jsx(nr,{sx:{background:"#fff",borderBottom:"none"},children:_[M]||""},B))]},j)):c.jsx(_i,{children:c.jsx(nr,{colSpan:O.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},WN=e=>e.dashboard?.companyId||"",RN=e=>e.dashboard?.integrationData||null,VN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=yt(),s=bt(),a=$t(),l=Le(WN),d=Le(RN),p=i.state?.fromSettingsIcon,[u,h]=z.useState(()=>{if(i.state?.putjson){const M=JSON.parse(JSON.stringify(i.state.putjson));return M.mappings&&(M.originalMappings=JSON.parse(JSON.stringify(M.mappings))),M.configs?.sync_frequency&&!M.originalSyncFrequency&&(M.originalSyncFrequency=M.configs.sync_frequency),M.configs?.sync_time&&!M.originalSyncTime&&(M.originalSyncTime=M.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),M}const j=window.localStorage.getItem("ftpSyncPutjson");if(j){const M=JSON.parse(j);return M.mappings&&!M.originalMappings&&(M.originalMappings=JSON.parse(JSON.stringify(M.mappings))),M.configs?.sync_frequency&&!M.originalSyncFrequency&&(M.originalSyncFrequency=M.configs.sync_frequency),M.configs?.sync_time&&!M.originalSyncTime&&(M.originalSyncTime=M.configs.sync_time),M}return null});z.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[x,y]=z.useState(null),[g,f]=z.useState(null);z.useEffect(()=>{const j=i.state?.fromProductSetting;let M=null;if(j&&i.state?.integrationData)M=i.state.integrationData;else if(d&&Object.keys(d).length>0)M=d;else if(l&&!j){a(At(l)).then(B=>{if(At.fulfilled.match(B)){const $=B.payload;if(M=$&&$.data&&$.data[0]||null,M){y(M);const V=M.id||M.channelId||null;V&&f(V)}}});return}if(M){y(M);const B=M.id||M.channelId||null;B&&f(B)}},[l,i.state,d,a]);const m=!!p||!!x,b=j=>{if(!j)return"";const M=j.charAt(0).toUpperCase()+j.slice(1).toLowerCase();return M==="Daily"||M==="Day"?"Daily":M==="Weekly"||M==="Week"?"Weekly":M==="Monthly"||M==="Month"?"Monthly":M},[w,S]=z.useState(()=>{if(t)return b(t);const j=u?.configs?.sync_frequency?b(u.configs.sync_frequency):"";return j||"Daily"}),[v,C]=z.useState(n||u&&u.configs?.sync_time||"");z.useEffect(()=>{async function j(){if(l)try{const M=i.state?.fromProductSetting;let B=null;if(M&&i.state?.integrationData)B=i.state.integrationData;else if(d&&Object.keys(d).length>0)B=d;else{const $=await a(At(l));if(At.fulfilled.match($)){const V=$.payload;B=V&&V.data&&V.data[0]||null}}if(B){const $=B.id||B.channelId||null;$&&f($);const V=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),G={...B,companyId:B.companyId||l,entity_type:B.entity_type||V?.entity_type||"product",mappings:B.mappings||V?.mappings||[]},K=B.configs?.sync_frequency||"",Z=B.configs?.sync_time||"",Q=b(K);if(h(G),M){if(t){const J=b(t);S(J)}n&&C(n),h(J=>({...J,...G,originalSyncFrequency:t?b(t):J.originalSyncFrequency||Q,originalSyncTime:n||J.originalSyncTime||Z,configs:{...G.configs,sync_frequency:t?b(t).toLowerCase():G.configs?.sync_frequency,sync_time:n||G.configs?.sync_time}}))}else{const J=t?b(t):"";if(J)S(J);else if(Q)S(Q);else if(V?.configs?.sync_frequency){const ae=b(V.configs.sync_frequency);S(ae)}else S("Daily");n?C(n):Z?C(Z):V?.configs?.sync_time?C(V.configs.sync_time):C(""),h(G),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G))}}}catch{const M=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&M?.configs?.sync_frequency?S(b(M.configs.sync_frequency)):t&&S(b(t)),!n&&M?.configs?.sync_time?C(M.configs.sync_time):n&&C(n)}}j()},[l]),z.useEffect(()=>{if(t){const j=b(t);S(j),u&&u.configs?.sync_frequency!==j&&h(M=>{const B={...M,configs:{...M.configs,sync_frequency:j}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),B})}},[t]),z.useEffect(()=>{n&&(C(n),u&&u.configs?.sync_time!==n&&h(j=>{const M={...j,configs:{...j.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),M}))},[n]),z.useEffect(()=>{if(u&&m&&(w||v)){const j=u.configs?.sync_frequency,M=u.configs?.sync_time;(j!==w||M!==v)&&h(B=>{const $={...B,configs:{...B.configs,sync_frequency:w||B.configs?.sync_frequency,sync_time:v||B.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$})}},[w,v,m]);const P=Le(j=>j.productSettings.syncData),O=j=>{const M=j.target.value;S(M),u&&h(B=>{const $={...B,configs:{...B.configs,sync_frequency:M}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$}),m||a(Ps({...P,configs:{...P&&P.configs||{},sync_frequency:M,sync_time:v}}))},A=j=>{const M=j.target.value;C(M),u&&h(B=>{const $={...B,configs:{...B.configs,sync_time:M}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$}),m||a(Ps({...P,configs:{...P&&P.configs||{},sync_frequency:w,sync_time:M}}))};function k(j){try{const M=new URL(j);return{type:M.protocol.replace(":",""),host:M.hostname,port:M.port,path:M.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[L,D]=z.useState(!1),[T,N]=z.useState(""),F=async()=>{const j=i.state?.fromProductSetting;if(m){if(!u){N("Update failed: missing data."),D(!0);return}let U={...u};u.originalMappings||(U.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],h(U)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(U.originalSyncFrequency=u.configs.sync_frequency||"",h(U)),!u.originalSyncTime&&u.configs?.sync_time&&(U.originalSyncTime=u.configs.sync_time||"",h(U));const de=JSON.parse(JSON.stringify(u.mappings||[])),re=JSON.parse(JSON.stringify(u.originalMappings||[]));let oe,pe;j?(oe=t?b(t):"",pe=n||""):(oe=u.originalSyncFrequency||u.configs?.sync_frequency||"",pe=u.originalSyncTime||u.configs?.sync_time||"",oe=b(oe));const he=j?!1:JSON.stringify(de)!==JSON.stringify(re),we=w!==oe,Ae=v!==pe,De=(we||Ae)&&!he,Me=he;if(De){const ce=g||u?.id||u?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!ce){N("Channel ID is missing. Please try again."),D(!0);return}const Xe={configs:{}};we&&(Xe.configs.sync_frequency=w.toLowerCase()),Ae&&(Xe.configs.sync_time=v);try{const Ie=await a(Vo({channelId:ce,data:Xe}));if(Ie.error||Vo.rejected.match(Ie)){const fe=Ie.payload||Ie.error?.message||"Update failed. Please try again.";N(fe),D(!0);return}let ie="";we&&!Ae?ie="SyncFrequency Updated":!we&&Ae?ie="SyncTime Updated":we&&Ae&&(ie="SyncTime and SyncFrequency Updated"),N(ie),D(!0),h(fe=>{const Ce={...fe,configs:{...fe.configs,sync_frequency:w.toLowerCase(),sync_time:v},originalSyncFrequency:w,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce)),Ce});const te=i.state?.fromProductSetting;te&&l&&await a(At(l)),setTimeout(()=>{te&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Ie){const ie=Ie?.message||Ie?.response?.data?.message||"Update failed. Please try again.";N(ie),D(!0);return}}if(Me){const ce={...u,configs:{...u.configs,sync_frequency:w.toLowerCase(),sync_time:v}};h(ce),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ce));const Xe=ce.tenantId||ce.companyId;if(!ce.configs){N("Configuration error. Please try again."),D(!0);return}const Ie=ce.entity_type||u?.entity_type;if(!Ie){N("Entity type is missing. Please try again."),D(!0);return}const ie={tenantId:Xe,type:ce.type,entity_type:Ie,configs:{host:ce.configs.host||"",port:ce.configs.port?Number(ce.configs.port):0,username:ce.configs.username||"",password:ce.configs.password||"",path:ce.configs.path||"",sync_frequency:w.toLowerCase()||"",sync_time:v||""},mappings:(ce.mappings||[]).map(te=>({source_field:te.source_field,target_field:te.target_field}))};if(!ie.tenantId){N("Tenant ID is missing. Please try again."),D(!0);return}if(!ie.type){N("Sync type is missing. Please try again."),D(!0);return}if(!ie.entity_type){N("Entity type is missing. Please try again."),D(!0);return}try{const te=await a(jr(ie));if(jr.rejected.match(te)){const fe=te.payload||te.error?.message||"Update failed. Please try again.";N(fe),D(!0);return}jr.fulfilled.match(te)?(h(fe=>{const Ce={...fe,originalSyncFrequency:w,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(fe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce)),Ce}),N("Sync Update Successfully"),D(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(N("Update failed. Please try again."),D(!0))}catch(te){const fe=te?.message||te?.response?.data?.message||"Update failed. Please try again.";N(fe),D(!0)}}else N("No changes detected."),D(!0);return}const M=P.configs||{},B=k(P.serverAddress||""),$=M.host||B.host,V=M.port!=null?Number(M.port):parseInt(B.port,10),G=(M.path||B.path||"").replace(/^\//,""),K=P.type||B.type||"sftp",Z=P.username||M.username||"",Q=P.password||M.password||"",J=w||M.sync_frequency||"",ae=typeof J=="string"?J.toLowerCase():J;let se=v||M.sync_time||"";if(typeof se=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(se.trim())){const[U,de]=se.trim().split(/\s+/),[re,oe]=U.split(":").map(Number),pe=de.toUpperCase()==="PM"&&re!==12?re+12:de.toUpperCase()==="AM"&&re===12?0:re;se=`${String(pe).padStart(2,"0")}:${String(oe).padStart(2,"0")}`}else typeof se=="string"&&(se=se.trim());const le=(P.mappings||[]).filter(U=>U.source_field&&U.target_field).map(U=>({source_field:U.source_field,target_field:U.target_field}));if(!l){N("Company ID is required. Please ensure the app is properly configured."),D(!0);return}if(!$||!V||!Z||!Q||le.length===0){N("Please fill all required fields and mappings before saving."),D(!0);return}const q=P.entity_type||"products",ne={tenantId:l,type:K,entity_type:q,configs:{host:$,port:Number(V),username:Z,password:Q,path:G,sync_frequency:ae,sync_time:se},mappings:le};try{const U=await a(Bo(ne));Bo.fulfilled.match(U)?(N("Save and Start Sync Updated Successfully"),D(!0),e.onNext&&e.onNext()):(N(U?.payload||"Save failed. Please try again."),D(!0))}catch{N("Save failed. Please try again."),D(!0)}},[W,_]=z.useState(!1);return z.useEffect(()=>{const j=setTimeout(()=>_(!0),850);return()=>clearTimeout(j)},[]),c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),c.jsxs(I,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(I,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...r,showStartSyncBlueTick:W})}),c.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:c.jsxs(rn,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[c.jsxs(I,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[c.jsxs(I,{sx:{flex:1},children:[c.jsx(R,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),c.jsxs(Rn,{size:"small",value:w,onChange:O,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[c.jsx(Ot,{value:"Daily",children:"Daily"}),c.jsx(Ot,{value:"Weekly",children:"Weekly"}),c.jsx(Ot,{value:"Monthly",children:"Monthly"})]})]}),c.jsxs(I,{sx:{flex:1},children:[c.jsx(R,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),c.jsx(Di,{type:"time",size:"small",value:v,onChange:A,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),c.jsxs(I,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[c.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:F,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),c.jsx(po,{open:L,autoHideDuration:4e3,onClose:()=>D(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},UN=e=>{const{onBack:t,stepperProps:n={}}=e,r=$t(),s=!!Le(p=>p.productSettings.saveResult),[a,l]=z.useState(s),d=bt();return z.useEffect(()=>{s&&(l(!0),r(l1()))},[s,r]),c.jsxs(c.Fragment,{children:[c.jsx(po,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>d("/products/settings/ftp-sync",{state:{step:3}}))}),c.jsxs(I,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(I,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...n})}),c.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsxs(I,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[c.jsx(I,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:c.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),c.jsx(R,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),c.jsx(Ke,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>d("/"),children:"Back to all products"})]})})]})]}),c.jsx(po,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function HN(e){const t=yt(),n=bt(),r=t.state?.fromProductSetting?3:0,[i,s]=z.useState(r),a=$t(),{companyId:l,integrationData:d}=Le(v=>v.dashboard),p=t.state?.fromSyncStep;z.useEffect(()=>{const v=t.state?.fromProductSetting;l&&!v&&a(At(l))},[l,a,t.state]);const u=()=>{s(v=>Math.min(v+1,4))},h=()=>{if(i===0&&p!==void 0){n("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(v=>Math.max(v-1,0))},x=d?.configs||{},y=d?.mappings||d?.dataMappings||[],f=(v=>{if(!v)return"";const C=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return C==="Daily"||C==="Day"?"Daily":C==="Weekly"||C==="Week"?"Weekly":C==="Monthly"||C==="Month"?"Monthly":C})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"",b=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],S={0:{steps:b,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:b,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:b,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(i){case 0:return c.jsx(ON,{onNext:u,onBack:h,stepperProps:S[0],...e});case 1:return c.jsx(FN,{onNext:u,onBack:h,ftpDetails:x,stepperProps:S[1],...e});case 2:return c.jsx(BN,{onNext:u,onBack:h,mapping:y,stepperProps:S[2],...e});case 3:return c.jsx(VN,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,stepperProps:S[3],...e});case 4:return c.jsx(UN,{onBack:h,stepperProps:S[4],...e});default:return null}}const qN=We(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),YN=We([c.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),c.jsx("path",{d:"M9 12h6v2H9z"},"1")],"Inventory2Outlined"),KN=We(c.jsx("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline"),GN=We(c.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),XN=We(c.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),JN=We(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3M6 6h9v4H6z"}),"SaveOutlined"),QN=We(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Wd=We(c.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),ZN=We(c.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),eA=We(c.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tA(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onBack:l,onPageChange:d,onRowsPerPageChange:p,onSave:u,onDelete:h,onStatusChange:x,updateCatalogError:y=null,updateCatalogLoading:g=!1}=e,[f,m]=z.useState(null),[b,w]=z.useState({name:"",slug:"",status:!0}),S=k=>{const L=k.slugRaw??(typeof k.slug=="string"?k.slug.replace(/^\//,""):"")??"",D=k.status==="Active"||k.status===!0;m(k.id),w({name:k.name??"",slug:L,status:D})},v=async k=>{if(typeof u!="function")return;const L=b.slug.trim().replace(/^\//,""),D={id:k.id,name:b.name.trim(),slug:L||b.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:b.status};await u(D),m(null)},C=()=>{m(null)},P=t,O=Math.max(0,Number(n)||0),A=Math.max(0,Math.ceil(O/Math.max(1,i))-1);return c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[c.jsx(rr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:l}),c.jsxs(I,{sx:{maxWidth:900,mx:"auto",pt:4,pb:4},children:[c.jsxs(R,{sx:{fontWeight:700,fontSize:20,color:"#111",mb:3},children:["All Catalogs"," ",c.jsx(I,{component:"span",sx:{fontWeight:400,color:"#888",fontSize:18,ml:.5},children:n})]}),y&&c.jsx(R,{color:"error",sx:{mb:2},children:y}),P.map(k=>{const L=f===k.id;return c.jsxs(rn,{elevation:0,sx:{p:2.5,mb:2,borderRadius:2,bgcolor:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"flex-start",gap:2,flex:1,minWidth:0},children:[c.jsx(qN,{sx:{color:"#666",fontSize:24,mt:.25}}),c.jsxs(I,{sx:{minWidth:0,flex:1},children:[L?c.jsxs(c.Fragment,{children:[c.jsx(Di,{label:"Name",size:"small",value:b.name,onChange:D=>w(T=>({...T,name:D.target.value})),fullWidth:!0,sx:{mb:1.5,"& .MuiInputBase-root":{fontSize:16,fontWeight:700}}}),c.jsx(Di,{label:"Slug",size:"small",value:b.slug,onChange:D=>w(T=>({...T,slug:D.target.value})),fullWidth:!0,placeholder:"/catalog-slug",sx:{mb:1.5}})]}):c.jsxs(c.Fragment,{children:[c.jsx(R,{sx:{fontWeight:700,fontSize:16,color:"#111"},children:k.name}),c.jsx(R,{sx:{color:"#888",fontSize:14,mt:.25},children:k.slug})]}),c.jsx(I,{sx:{display:"flex",alignItems:"center",gap:2,mt:1,flexWrap:"wrap"},children:c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(YN,{sx:{fontSize:18,color:"#888"}}),c.jsxs(R,{sx:{fontSize:14,color:"#555"},children:[k.productsCount," Products"]})]})}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:2,mt:.5,flexWrap:"wrap"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(KN,{sx:{fontSize:18,color:"#888"}}),c.jsxs(R,{sx:{fontSize:14,color:"#555"},children:["By ",k.createdBy]})]}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(GN,{sx:{fontSize:18,color:"#888"}}),c.jsx(R,{sx:{fontSize:14,color:"#555"},children:k.date})]})]})]})]}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1.5,flexShrink:0,ml:2},children:[L?c.jsxs(Rn,{size:"small",value:b.status?"Active":"Inactive",onChange:D=>w(T=>({...T,status:D.target.value==="Active"})),sx:{minWidth:100,height:36,fontWeight:600,fontSize:14,borderRadius:1.5,bgcolor:b.status?"#e8f5e9":"#f5f5f5",color:b.status?"#2e7d32":"#666","& .MuiSelect-select":{py:1}},children:[c.jsx(Ot,{value:"Active",children:"Active"}),c.jsx(Ot,{value:"Inactive",children:"Inactive"})]}):c.jsx(I,{onClick:()=>{if(typeof x!="function"||g)return;const T=(typeof a=="function"?a(k):s[k.id]??k.status??"Active")!=="Active";x(k,T)},sx:{minWidth:100,height:36,display:"flex",alignItems:"center",justifyContent:"center",px:.025,bgcolor:(typeof a=="function"?a(k):s[k.id]??k.status??"Active")==="Active"?"#e8f5e9":"#f5f5f5",color:(typeof a=="function"?a(k):s[k.id]??k.status??"Active")==="Active"?"#2e7d32":"#666",fontWeight:600,fontSize:18,borderRadius:1.5,cursor:typeof x=="function"&&!g?"pointer":"default",opacity:g?.7:1,"&:hover":typeof x=="function"&&!g?{opacity:.9}:{}},children:typeof a=="function"?a(k):s[k.id]??k.status??"Active"}),L?c.jsxs(c.Fragment,{children:[c.jsx(it,{size:"small",sx:{color:"#1976d2"},"aria-label":"Save catalog",disabled:g,onClick:()=>v(k),children:c.jsx(JN,{sx:{fontSize:22}})}),c.jsx(Ke,{size:"small",onClick:C,sx:{minWidth:0,px:1},children:"Cancel"})]}):c.jsx(it,{size:"small",sx:{color:"#666"},"aria-label":"Edit catalog",onClick:()=>S(k),children:c.jsx(XN,{sx:{fontSize:22}})}),c.jsx(it,{size:"small",sx:{color:"#666"},"aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(k):null,children:c.jsx(QN,{sx:{fontSize:22}})})]})]},k.id)}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:2,mt:4,flexWrap:"wrap"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[c.jsx(R,{sx:{fontSize:14,color:"#555"},children:"Results per page"}),c.jsxs(Rn,{size:"small",value:i,onChange:k=>typeof p=="function"?p(k):null,IconComponent:Wd,sx:{minWidth:56,height:36,fontSize:14,"& .MuiSelect-select":{py:1}},children:[c.jsx(Ot,{value:5,children:"5"}),c.jsx(Ot,{value:10,children:"10"}),c.jsx(Ot,{value:25,children:"25"})]})]}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.5},children:[c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(0):null,disabled:r===0,"aria-label":"First page",children:c.jsx(ZN,{})}),c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(Math.max(0,r-1)):null,disabled:r===0,"aria-label":"Previous page",children:c.jsx(_m,{})}),c.jsx(R,{sx:{fontSize:14,color:"#555",px:1.5},children:O===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,O)} of ${O}`}),c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(r+1):null,disabled:r>=A,"aria-label":"Next page",children:c.jsx(jm,{})}),c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(A):null,disabled:r>=A,"aria-label":"Last page",children:c.jsx(eA,{})})]})]})]})]})}const nA=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=Cn().productSettingModal;return c.jsx(so,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:s.modal,children:c.jsxs(I,{sx:s.container,children:[c.jsx(I,{sx:s.header,children:c.jsxs(R,{sx:{...s.headerTitle,fontSize:22},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),c.jsxs(I,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(Ke,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(Ke,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function rA(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function oA(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,slugRaw:typeof t=="string"?t.replace(/^\//,""):t||"",productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:rA(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function iA(e){const t=bt(),n=$t(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Le(B=>B.productSettings??{}),{updateCatalogLoading:l=!1,updateCatalogError:d=null}=Le(B=>B.dashboard??{}),[p,u]=z.useState(0),[h,x]=z.useState(10),[y,g]=z.useState({}),[f,m]=z.useState(!1),[b,w]=z.useState(null),[S,v]=z.useState(!1),[C,P]=z.useState("");z.useEffect(()=>{n(tn({page:p+1,limit:h}))},[n,p,h]),z.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const O=z.useMemo(()=>Array.isArray(r)?r.map(oA).filter(Boolean):[],[r]),A=i,k=B=>u(B),L=B=>{const $=Number(B.target.value);x($),u(0)},D=B=>y[B.id]??B.status,T=()=>t(-1),N=async B=>{const{id:$,name:V,slug:G,status:K}=B;await n(Lo({id:$,name:V,slug:G,status:K})).unwrap(),n(tn({page:p+1,limit:h}))},F=async(B,$)=>{const V=B.slugRaw??(typeof B.slug=="string"?B.slug.replace(/^\//,""):"")??"";g(G=>({...G,[B.id]:$?"Active":"Inactive"}));try{await n(Lo({id:B.id,name:B.name??"",slug:V,status:$})).unwrap(),n(tn({page:p+1,limit:h}))}catch{g(G=>({...G,[B.id]:B.status}))}},W=B=>{w(B),m(!0)},_=()=>{m(!1),w(null)},j=async()=>{if(!b?.id){_();return}try{await n(Es(b.id)).unwrap(),P("Catalog delete Successfully"),v(!0),_(),n(tn({page:p+1,limit:h}))}catch{P("Failed to delete catalog"),v(!0)}},M=c.jsx(rr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:T});return s&&O.length===0?c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[M,c.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:c.jsx(ua,{})})]}):a&&O.length===0?c.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[M,c.jsx(I,{sx:{textAlign:"center",py:4},children:c.jsx(R,{color:"error",children:a})})]}):c.jsxs(c.Fragment,{children:[c.jsx(tA,{catalogs:O,totalCount:A,page:p,rowsPerPage:h,statusById:y,getStatus:D,onBack:T,onPageChange:k,onRowsPerPageChange:L,onStatusChange:F,onSave:N,onDelete:W,updateCatalogError:d,updateCatalogLoading:l,...e}),c.jsx(nA,{isOpen:f,onClose:_,onConfirm:j,catalogName:b?.name}),c.jsx(po,{open:S,autoHideDuration:4e3,onClose:()=>v(!1),message:C,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const Xm=We(c.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),sA=We([c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),c.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function aA(e){return c.jsx(sA,{...e})}function Jm(e){return c.jsx($n,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",fill:"currentColor"})})}function lA({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,onPageChange:l,onLimitChange:d}){const p=e?.categoryTableAllStore??{},u=e?.categoryTableSingleStore??{},h=e?.categoryTablePagination??{},x=O=>t.some(A=>A.id===O.id),[y,g]=z.useState(null),[f,m]=z.useState([]),b=(O,A)=>{g(O.currentTarget),m(A)},w=()=>{g(null),m([])},S=!!y,v=!s,C=v?u.outerCard:p.outerCard,P=v?"6px":"4px";return c.jsxs(Wn,{sx:{...e.categoryTable,...C,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible"},children:[c.jsx(I,{sx:{...p.categoryNameBox,display:"flex",alignItems:"center",mb:P},children:c.jsx(R,{sx:p.categoryNameText,children:i})}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",...v?u.tableHeader:p.tableHeader,boxSizing:"border-box",gap:v?"32px":"16px"},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:v?"32px":"16px",flex:"0 0 auto"},children:[c.jsx(Pt,{checked:n.length>0&&n.every(x),indeterminate:n.some(x)&&!n.every(x),onChange:()=>{n.every(x)?n.forEach(O=>r(O,i,!1)):n.forEach(O=>{x(O)||r(O,i,!0)})},size:"small",sx:{p:0,width:16,height:16,color:v?"#F3F8FF":"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:v?"0.5px solid #2D64B8":"0.5px solid #D0D5DD",bgcolor:v?"#F3F8FF":"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:v?"#F3F8FF":"#FFFFFF",color:v?"#2D64B8":"#1976d2",border:v?"0.5px solid #2D64B8":"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:v?"#F3F8FF":"#FFFFFF",color:v?"#2D64B8":"#1976d2",border:v?"0.5px solid #2D64B8":"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:`0.5px solid ${v?"#2D64B8":"#D0D5DD"}`,background:v?"#F3F8FF":"#FFFFFF"}}),checkedIcon:v?c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2D64B8",background:"#F3F8FF",position:"relative"},children:c.jsx(Jm,{sx:{position:"absolute",top:2,left:2,fontSize:12,color:"#2D64B8"}})}):c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:v?c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2D64B8",background:"#F3F8FF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#2D64B8",borderRadius:2}})}):c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})})}),s?c.jsx(I,{sx:{display:"flex",alignItems:"center",width:p.headerProduct.width,flexShrink:0},children:c.jsx(R,{component:"span",sx:p.headerProduct,children:"Product"})}):c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerProduct},children:"Product"})]}),v?c.jsxs(c.Fragment,{children:[c.jsx(I,{sx:{minWidth:u.headerStatus.width,flexShrink:0,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerStatus},children:"Status"})}),c.jsx(I,{sx:{minWidth:u.headerPrice.width,flexShrink:0,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerPrice},children:"Price"})}),c.jsx(I,{sx:{minWidth:u.headerStock.width,flexShrink:0,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerStock},children:"Stock"})}),c.jsxs(I,{sx:{flexShrink:0,display:"flex",alignItems:"center",marginLeft:"10px"},children:[c.jsx(I,{sx:{minWidth:u.headerOffer.width,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerOffer},children:"Offer"})}),c.jsx(jd,{sx:{...p.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"-10px"}})]})]}):c.jsxs(I,{sx:{display:"flex",alignItems:"center",...p.headerStatusOsa,flex:"0 0 auto"},children:[c.jsx(R,{component:"span",sx:p.headerStatusText,children:"Status"}),c.jsxs(I,{sx:{display:"inline-flex",alignItems:"center",flexShrink:0},children:[c.jsx(R,{component:"span",sx:p.headerOsaText,children:"Stock / OSA"}),c.jsx(jd,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})]})]})]}),n.map((O,A)=>{let k=[];O.offers&&Array.isArray(O.offers)?k=O.offers:O.offer&&typeof O.offer=="string"&&O.offer.includes(`
231
+ `))}},[Ce,we,w,S,V]),fe&&(w?te.length===0?Ne=null:Ne=te.reduce((ge,Fe,et)=>(ge.push(Fe),et<te.length-1&&ge.push(", "),ge),[]):Ne=ie);let Te=q;!a&&le&&ae&&(Te=re.clientWidth);let xe;typeof _<"u"?xe=_:xe=h?null:0;const Ze=W.id||(S?`mui-component-select-${S}`:void 0),_e={...t,variant:B,value:V,open:ce,error:y},pt=dk(_e),sn={...b.PaperProps,...typeof b.slotProps?.paper=="function"?b.slotProps.paper(_e):b.slotProps?.paper},kr={...b.MenuListProps,...typeof b.slotProps?.list=="function"?b.slotProps.list(_e):b.slotProps?.list},or=gr();return c.jsxs(E.Fragment,{children:[c.jsx(sk,{as:"div",ref:de,tabIndex:xe,role:"combobox","aria-controls":ce?or:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ce?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,Ze].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":F?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:Me,onMouseDown:h||T?null:pe,onBlur:Xe,onFocus:O,...W,ownerState:_e,className:ue(W.className,pt.select,d),id:Ze,children:ck(Ne)?am||(am=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ne}),c.jsx(lk,{"aria-invalid":y,value:Array.isArray(V)?V.join(","):V,name:S,ref:Q,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:h,className:pt.nativeInput,autoFocus:s,required:F,...$,ownerState:_e}),c.jsx(ak,{as:g,className:pt.icon,ownerState:_e}),c.jsx(yd,{id:`menu-${S||""}`,anchorEl:re,open:ce,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:or,...kr},paper:{...sn,style:{minWidth:Te,...sn!=null?sn.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(cm.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Tt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const uk=e=>{const{classes:t}=e,r=ve({root:["root"]},sm,t);return{...t,...r}},Sd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>wt(e)&&e!=="variant"},pk=X(_a,Sd)(""),fk=X(Da,Sd)(""),hk=X(Ma,Sd)(""),Vn=E.forwardRef(function(t,n){const r=Se({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=nP,id:h,input:x,inputProps:y,label:g,labelId:f,MenuProps:m,multiple:b=!1,native:w=!1,onClose:S,onOpen:v,open:C,renderValue:P,SelectDisplayProps:O,variant:A="outlined",...k}=r,L=w?nm:cm,D=xn(),T=tr({props:r,muiFormControl:D,states:["variant","error"]}),I=T.variant||A,F={...r,variant:I,classes:a},W=uk(F),{root:_,...j}=W,M=x||{standard:c.jsx(pk,{ownerState:F}),outlined:c.jsx(fk,{label:g,ownerState:F}),filled:c.jsx(hk,{ownerState:F})}[I],B=ct(n,Cr(M));return c.jsx(E.Fragment,{children:E.cloneElement(M,{inputComponent:L,inputProps:{children:s,error:T.error,IconComponent:u,variant:I,type:void 0,multiple:b,...w?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:m,onClose:S,onOpen:v,open:C,renderValue:P,SelectDisplayProps:{id:h,...O}},...y,classes:y?St(j,y.classes):j,...x?x.props.inputProps:{}},...(b&&w||p)&&I==="outlined"?{notched:!0}:{},ref:B,className:ue(M.props.className,l,W.root),...!x&&{variant:I},...k})})});process.env.NODE_ENV!=="production"&&(Vn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),Vn.muiName="Select";function gk(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const mk=2;function uo(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function dm(e,t){return e-t}function um(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function za(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function La(e,t,n){return(e-t)*100/(n-t)}function yk(e,t,n){return(n-t)*e+t}function bk(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function vk(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(bk(t)))}function pm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(dm)}function ja({sliderRef:e,activeIndex:t,setActive:n}){const r=ut(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Ba(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?gk(e,t):!1}const xk={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Sk=e=>e;let Wa;function fm(){return Wa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Wa=CSS.supports("touch-action","none"):Wa=!0),Wa}function wk(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:l=100,min:d=0,name:p,onChange:u,onChangeCommitted:h,orientation:x="horizontal",rootRef:y,scale:g=Sk,step:f=1,shiftStep:m=10,tabIndex:b,value:w}=e,S=E.useRef(void 0),[v,C]=E.useState(-1),[P,O]=E.useState(-1),[A,k]=E.useState(!1),L=E.useRef(0),D=E.useRef(null),[T,I]=Jr({controlled:w,default:n??d,name:"Slider"}),F=u&&((ie,te,fe)=>{const Ce=ie.nativeEvent||ie,Pe=new Ce.constructor(Ce.type,Ce);Object.defineProperty(Pe,"target",{writable:!0,value:{value:te,name:p}}),D.current=te,u(Pe,te,fe)}),W=Array.isArray(T);let _=W?T.slice().sort(dm):[T];_=_.map(ie=>ie==null?d:Xr(ie,d,l));const j=a===!0&&f!==null?[...Array(Math.floor((l-d)/f)+1)].map((ie,te)=>({value:d+f*te})):a||[],M=j.map(ie=>ie.value),[B,$]=E.useState(-1),V=E.useRef(null),G=ct(y,V),K=ie=>te=>{const fe=Number(te.currentTarget.getAttribute("data-index"));eo(te.target)&&$(fe),O(fe),ie?.onFocus?.(te)},Z=ie=>te=>{eo(te.target)||$(-1),O(-1),ie?.onBlur?.(te)},Q=(ie,te)=>{const fe=Number(ie.currentTarget.getAttribute("data-index")),Ce=_[fe],Pe=M.indexOf(Ce);let Te=te;if(j&&f==null){const xe=M[M.length-1];Te>=xe?Te=xe:Te<=M[0]?Te=M[0]:Te=Te<Ce?M[Pe-1]:M[Pe+1]}if(Te=Xr(Te,d,l),W){i&&(Te=Xr(Te,_[fe-1]||-1/0,_[fe+1]||1/0));const xe=Te;Te=pm({values:_,newValue:Te,index:fe});let Ze=fe;i||(Ze=Te.indexOf(xe)),ja({sliderRef:V,activeIndex:Ze})}I(Te),$(fe),F&&!Ba(Te,T)&&F(ie,Te,fe),h&&h(ie,D.current??Te)},J=ie=>te=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(te.key)){te.preventDefault();const fe=Number(te.currentTarget.getAttribute("data-index")),Ce=_[fe];let Pe=null;if(f!=null){const Te=te.shiftKey?m:f;switch(te.key){case"ArrowUp":Pe=uo(Ce,Te,1,d,l);break;case"ArrowRight":Pe=uo(Ce,Te,s?-1:1,d,l);break;case"ArrowDown":Pe=uo(Ce,Te,-1,d,l);break;case"ArrowLeft":Pe=uo(Ce,Te,s?1:-1,d,l);break;case"PageUp":Pe=uo(Ce,m,1,d,l);break;case"PageDown":Pe=uo(Ce,m,-1,d,l);break;case"Home":Pe=d;break;case"End":Pe=l;break}}else if(j){const Te=M[M.length-1],xe=M.indexOf(Ce),Ze=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],_e=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ze.includes(te.key)?xe===0?Pe=M[0]:Pe=M[xe-1]:_e.includes(te.key)&&(xe===M.length-1?Pe=Te:Pe=M[xe+1])}Pe!=null&&Q(te,Pe)}ie?.onKeyDown?.(te)};Ht(()=>{r&&V.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&C(-1),r&&B!==-1&&$(-1);const ae=ie=>te=>{ie.onChange?.(te),Q(te,te.target.valueAsNumber)},se=E.useRef(void 0);let le=x;s&&x==="horizontal"&&(le+="-reverse");const q=({finger:ie,move:te=!1})=>{const{current:fe}=V,{width:Ce,height:Pe,bottom:Te,left:xe}=fe.getBoundingClientRect();let Ze;le.startsWith("vertical")?Ze=(Te-ie.y)/Pe:Ze=(ie.x-xe)/Ce,le.includes("-reverse")&&(Ze=1-Ze);let _e;if(_e=yk(Ze,d,l),f)_e=vk(_e,f,d);else{const sn=um(M,_e);_e=M[sn]}_e=Xr(_e,d,l);let pt=0;if(W){te?pt=se.current:pt=um(_,_e),i&&(_e=Xr(_e,_[pt-1]||-1/0,_[pt+1]||1/0));const sn=_e;_e=pm({values:_,newValue:_e,index:pt}),i&&te||(pt=_e.indexOf(sn),se.current=pt)}return{newValue:_e,activeIndex:pt}},ne=Et(ie=>{const te=za(ie,S);if(!te)return;if(L.current+=1,ie.type==="mousemove"&&ie.buttons===0){U(ie);return}const{newValue:fe,activeIndex:Ce}=q({finger:te,move:!0});ja({sliderRef:V,activeIndex:Ce,setActive:C}),I(fe),!A&&L.current>mk&&k(!0),F&&!Ba(fe,T)&&F(ie,fe,Ce)}),U=Et(ie=>{const te=za(ie,S);if(k(!1),!te)return;const{newValue:fe}=q({finger:te,move:!0});C(-1),ie.type==="touchend"&&O(-1),h&&h(ie,D.current??fe),S.current=void 0,re()}),de=Et(ie=>{if(r)return;fm()||ie.preventDefault();const te=ie.changedTouches[0];te!=null&&(S.current=te.identifier);const fe=za(ie,S);if(fe!==!1){const{newValue:Pe,activeIndex:Te}=q({finger:fe});ja({sliderRef:V,activeIndex:Te,setActive:C}),I(Pe),F&&!Ba(Pe,T)&&F(ie,Pe,Te)}L.current=0;const Ce=ut(V.current);Ce.addEventListener("touchmove",ne,{passive:!0}),Ce.addEventListener("touchend",U,{passive:!0})}),re=E.useCallback(()=>{const ie=ut(V.current);ie.removeEventListener("mousemove",ne),ie.removeEventListener("mouseup",U),ie.removeEventListener("touchmove",ne),ie.removeEventListener("touchend",U)},[U,ne]);E.useEffect(()=>{const{current:ie}=V;return ie.addEventListener("touchstart",de,{passive:fm()}),()=>{ie.removeEventListener("touchstart",de),re()}},[re,de]),E.useEffect(()=>{r&&re()},[r,re]);const oe=ie=>te=>{if(ie.onMouseDown?.(te),r||te.defaultPrevented||te.button!==0)return;te.preventDefault();const fe=za(te,S);if(fe!==!1){const{newValue:Pe,activeIndex:Te}=q({finger:fe});ja({sliderRef:V,activeIndex:Te,setActive:C}),I(Pe),F&&!Ba(Pe,T)&&F(te,Pe,Te)}L.current=0;const Ce=ut(V.current);Ce.addEventListener("mousemove",ne,{passive:!0}),Ce.addEventListener("mouseup",U)},pe=La(W?_[0]:d,d,l),he=La(_[_.length-1],d,l)-pe,we=(ie={})=>{const te=xr(ie),fe={onMouseDown:oe(te||{})},Ce={...te,...fe};return{...ie,ref:G,...Ce}},Ae=ie=>te=>{ie.onMouseOver?.(te);const fe=Number(te.currentTarget.getAttribute("data-index"));O(fe)},De=ie=>te=>{ie.onMouseLeave?.(te),O(-1)},Me=(ie={})=>{const te=xr(ie),fe={onMouseOver:Ae(te||{}),onMouseLeave:De(te||{})};return{...ie,...te,...fe}},ce=ie=>({pointerEvents:v!==-1&&v!==ie?"none":void 0});let Xe;return x==="vertical"&&(Xe=s?"vertical-rl":"vertical-lr"),{active:v,axis:le,axisProps:xk,dragging:A,focusedThumbIndex:B,getHiddenInputProps:(ie={})=>{const te=xr(ie),fe={onChange:ae(te||{}),onFocus:K(te||{}),onBlur:Z(te||{}),onKeyDown:J(te||{})},Ce={...te,...fe};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":x,"aria-valuemax":g(l),"aria-valuemin":g(d),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ie,...Ce,style:{...ik,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Xe}}},getRootProps:we,getThumbProps:Me,marks:j,open:P,range:W,rootRef:G,trackLeap:he,trackOffset:pe,values:_,getThumbStyle:ce}}const Ck=e=>!e||!Zn(e);function Ek(e){return be("MuiSlider",e)}const Jt=ye("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Tk=e=>{const{open:t}=e;return{offset:ue(t&&Jt.valueLabelOpen),circle:Jt.valueLabelCircle,label:Jt.valueLabelLabel}};function hm(e){const{children:t,className:n,value:r}=e,i=Tk(e);return t?E.cloneElement(t,{className:t.props.className},c.jsxs(E.Fragment,{children:[t.props.children,c.jsx("span",{className:ue(i.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:i.circle,children:c.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(hm.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function gm(e){return e}const Pk=X("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ee(n.color)}`],n.size!=="medium"&&t[`size${ee(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(me(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Jt.dragging}`]:{[`& .${Jt.thumb}, & .${Jt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Ok=X("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),kk=X("span",{name:"MuiSlider",slot:"Track"})(me(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Nk=X("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ee(n.color)}`],n.size!=="medium"&&t[`thumbSize${ee(n.size)}`]]}})(me(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Jt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Jt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),mm=X(hm,{name:"MuiSlider",slot:"ValueLabel"})(me(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(mm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const Ik=X("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ai(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(me(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Ak=X("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ai(e)&&e!=="markLabelActive"})(me(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Mk=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:l,size:d}=e,p={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${ee(l)}`,d&&`size${ee(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${ee(d)}`,l&&`thumbColor${ee(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ve(p,Ek,a)},Fk=({children:e})=>e,ym=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSlider"}),i=ii(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:d="span",components:p={},componentsProps:u={},color:h="primary",classes:x,className:y,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:b,marks:w=!1,max:S=100,min:v=0,name:C,onChange:P,onChangeCommitted:O,orientation:A="horizontal",shiftStep:k=10,size:L="medium",step:D=1,scale:T=gm,slotProps:I,slots:F,tabIndex:W,track:_="normal",value:j,valueLabelDisplay:M="off",valueLabelFormat:B=gm,...$}=r,V={...r,isRtl:i,max:S,min:v,classes:x,disabled:f,disableSwap:g,orientation:A,marks:w,color:h,size:L,step:D,shiftStep:k,scale:T,track:_,valueLabelDisplay:M,valueLabelFormat:B},{axisProps:G,getRootProps:K,getHiddenInputProps:Z,getThumbProps:Q,open:J,active:ae,axis:se,focusedThumbIndex:le,range:q,dragging:ne,marks:U,values:de,trackOffset:re,trackLeap:oe,getThumbStyle:pe}=wk({...V,rootRef:n});V.marked=U.length>0&&U.some(Je=>Je.label),V.dragging=ne,V.focusedThumbIndex=le;const he=Mk(V),we=F?.root??p.Root??Pk,Ae=F?.rail??p.Rail??Ok,De=F?.track??p.Track??kk,Me=F?.thumb??p.Thumb??Nk,ce=F?.valueLabel??p.ValueLabel??mm,Xe=F?.mark??p.Mark??Ik,Ne=F?.markLabel??p.MarkLabel??Ak,ie=F?.input??p.Input??"input",te=I?.root??u.root,fe=I?.rail??u.rail,Ce=I?.track??u.track,Pe=I?.thumb??u.thumb,Te=I?.valueLabel??u.valueLabel,xe=I?.mark??u.mark,Ze=I?.markLabel??u.markLabel,_e=I?.input??u.input,pt=vn({elementType:we,getSlotProps:K,externalSlotProps:te,externalForwardedProps:$,additionalProps:{...Ck(we)&&{as:d}},ownerState:{...V,...te?.ownerState},className:[he.root,y]}),sn=vn({elementType:Ae,externalSlotProps:fe,ownerState:V,className:he.rail}),kr=vn({elementType:De,externalSlotProps:Ce,additionalProps:{style:{...G[se].offset(re),...G[se].leap(oe)}},ownerState:{...V,...Ce?.ownerState},className:he.track}),or=vn({elementType:Me,getSlotProps:Q,externalSlotProps:Pe,ownerState:{...V,...Pe?.ownerState},className:he.thumb}),ge=vn({elementType:ce,externalSlotProps:Te,ownerState:{...V,...Te?.ownerState},className:he.valueLabel}),Fe=vn({elementType:Xe,externalSlotProps:xe,ownerState:V,className:he.mark}),et=vn({elementType:Ne,externalSlotProps:Ze,ownerState:V,className:he.markLabel}),On=vn({elementType:ie,getSlotProps:Z,externalSlotProps:_e,ownerState:V});return c.jsxs(we,{...pt,children:[c.jsx(Ae,{...sn}),c.jsx(De,{...kr}),U.filter(Je=>Je.value>=v&&Je.value<=S).map((Je,ft)=>{const ji=La(Je.value,v,S),fo=G[se].offset(ji);let an;return _===!1?an=de.includes(Je.value):an=_==="normal"&&(q?Je.value>=de[0]&&Je.value<=de[de.length-1]:Je.value<=de[0])||_==="inverted"&&(q?Je.value<=de[0]||Je.value>=de[de.length-1]:Je.value>=de[0]),c.jsxs(E.Fragment,{children:[c.jsx(Xe,{"data-index":ft,...Fe,...!Zn(Xe)&&{markActive:an},style:{...fo,...Fe.style},className:ue(Fe.className,an&&he.markActive)}),Je.label!=null?c.jsx(Ne,{"aria-hidden":!0,"data-index":ft,...et,...!Zn(Ne)&&{markLabelActive:an},style:{...fo,...et.style},className:ue(he.markLabel,et.className,an&&he.markLabelActive),children:Je.label}):null]},ft)}),de.map((Je,ft)=>{const ji=La(Je,v,S),fo=G[se].offset(ji),an=M==="off"?Fk:ce;return c.jsx(an,{...!Zn(an)&&{valueLabelFormat:B,valueLabelDisplay:M,value:typeof B=="function"?B(T(Je),ft):B,index:ft,open:J===ft||ae===ft||M==="on",disabled:f},...ge,children:c.jsx(Me,{"data-index":ft,...or,className:ue(he.thumb,or.className,ae===ft&&he.active,le===ft&&he.focusVisible),style:{...fo,...pe(ft),...or.style},children:c.jsx(ie,{"data-index":ft,"aria-label":m?m(ft):s,"aria-valuenow":T(Je),"aria-labelledby":l,"aria-valuetext":b?b(T(Je),ft):a,value:de[ft],...On})})},ft)})]})});process.env.NODE_ENV!=="production"&&(ym.propTypes={"aria-label":nn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":nn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function _k(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=vr();E.useEffect(()=>{if(!i)return;function b(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[i,r]);const l=Et((b,w)=>{r?.(b,w)}),d=Et(b=>{!r||b==null||a.start(b,()=>{l(null,"timeout")})});E.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=b=>{r?.(b,"clickaway")},u=a.clear,h=E.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),x=b=>w=>{const S=b.onBlur;S?.(w),h()},y=b=>w=>{const S=b.onFocus;S?.(w),u()},g=b=>w=>{const S=b.onMouseEnter;S?.(w),u()},f=b=>w=>{const S=b.onMouseLeave;S?.(w),h()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,i,h,u]),{getRootProps:(b={})=>{const w={...xr(e),...xr(b)};return{role:"presentation",...b,...w,onBlur:x(w),onFocus:y(w),onMouseEnter:g(w),onMouseLeave:f(w)}},onClickAway:p}}function Dk(e){return be("MuiSnackbarContent",e)}ye("MuiSnackbarContent",["root","message","action"]);const $k=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},Dk,t)},zk=X(rn,{name:"MuiSnackbarContent",slot:"Root"})(me(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Cc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Cc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Lk=X("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),jk=X("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...d}=r,p=r,u=$k(p);return c.jsxs(zk,{role:l,elevation:6,className:ue(u.root,s),ownerState:p,ref:n,...d,children:[c.jsx(Lk,{className:u.message,ownerState:p,children:a}),i?c.jsx(jk,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(bm.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Bk(e){return be("MuiSnackbar",e)}ye("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Wk=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ee(n.vertical)}${ee(n.horizontal)}`]};return ve(r,Bk,t)},Rk=X("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ee(n.anchorOrigin.vertical)}${ee(n.anchorOrigin.horizontal)}`]]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),po=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbar"}),i=gn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:x,ContentProps:y,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:b,onFocus:w,onMouseEnter:S,onMouseLeave:v,open:C,resumeHideDuration:P,slots:O={},slotProps:A={},TransitionComponent:k,transitionDuration:L=s,TransitionProps:{onEnter:D,onExited:T,...I}={},...F}=r,W={...r,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:k,transitionDuration:L},_=Wk(W),{getRootProps:j,onClickAway:M}=_k(W),[B,$]=E.useState(!0),V=de=>{$(!0),T&&T(de)},G=(de,re)=>{$(!1),D&&D(de,re)},K={slots:{transition:k,...O},slotProps:{content:y,clickAwayListener:x,transition:I,...A}},[Z,Q]=Ee("root",{ref:n,className:[_.root,h],elementType:Rk,getSlotProps:j,externalForwardedProps:{...K,...F},ownerState:W}),[J,{ownerState:ae,...se}]=Ee("clickAwayListener",{elementType:ka,externalForwardedProps:K,getSlotProps:de=>({onClickAway:(...re)=>{const oe=re[0];de.onClickAway?.(...re),!oe?.defaultMuiPrevented&&M(...re)}}),ownerState:W}),[le,q]=Ee("content",{elementType:bm,shouldForwardComponentProp:!0,externalForwardedProps:K,additionalProps:{message:f,action:a},ownerState:W}),[ne,U]=Ee("transition",{elementType:ao,externalForwardedProps:K,getSlotProps:de=>({onEnter:(...re)=>{de.onEnter?.(...re),G(...re)},onExited:(...re)=>{de.onExited?.(...re),V(...re)}}),additionalProps:{appear:!0,in:C,timeout:L,direction:l==="top"?"down":"up"},ownerState:W});return!C&&B?null:c.jsx(J,{...se,...O.clickAwayListener&&{ownerState:ae},children:c.jsx(Z,{...Q,children:c.jsx(ne,{...U,children:u||c.jsx(le,{...q})})})})});process.env.NODE_ENV!=="production"&&(po.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Vk(e){return be("MuiTooltip",e)}const st=ye("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Uk(e){return Math.round(e*1e5)/1e5}const Hk=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ee(s.split("-")[0])}`],arrow:["arrow"]};return ve(a,Vk,t)},qk=X(ed,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${st.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${st.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${st.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${st.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${st.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${st.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${st.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${st.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Yk=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ee(n.placement.split("-")[0])}`]]}})(me(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${st.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${st.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${st.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${st.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Uk(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${st.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${st.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Kk=X("span",{name:"MuiTooltip",slot:"Arrow"})(me(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ra=!1;const vm=new aa;let Mi={x:0,y:0};function Va(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const wd=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:x=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:b=!1,id:w,leaveDelay:S=0,leaveTouchDelay:v=1500,onClose:C,onOpen:P,open:O,placement:A="bottom",PopperComponent:k,PopperProps:L={},slotProps:D={},slots:T={},title:I,TransitionComponent:F,TransitionProps:W,..._}=r,j=E.isValidElement(s)?s:c.jsx("span",{children:s}),M=gn(),B=ii(),[$,V]=E.useState(),[G,K]=E.useState(null),Z=E.useRef(!1),Q=x||b,J=vr(),ae=vr(),se=vr(),le=vr(),[q,ne]=Jr({controlled:O,default:!1,name:"Tooltip",state:"open"});let U=q;if(process.env.NODE_ENV!=="production"){const{current:ke}=E.useRef(O!==void 0);E.useEffect(()=>{$&&$.disabled&&!ke&&I!==""&&$.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
232
+ `))},[I,$,ke])}const de=gr(w),re=E.useRef(),oe=Et(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),le.clear()});E.useEffect(()=>oe,[oe]);const pe=ke=>{vm.clear(),Ra=!0,ne(!0),P&&!U&&P(ke)},he=Et(ke=>{vm.start(800+S,()=>{Ra=!1}),ne(!1),C&&U&&C(ke),J.start(M.transitions.duration.shortest,()=>{Z.current=!1})}),we=ke=>{Z.current&&ke.type!=="touchstart"||($&&$.removeAttribute("title"),ae.clear(),se.clear(),g||Ra&&f?ae.start(Ra?f:g,()=>{pe(ke)}):pe(ke))},Ae=ke=>{ae.clear(),se.start(S,()=>{he(ke)})},[,De]=E.useState(!1),Me=ke=>{eo(ke.target)||(De(!1),Ae(ke))},ce=ke=>{$||V(ke.currentTarget),eo(ke.target)&&(De(!0),we(ke))},Xe=ke=>{Z.current=!0;const ir=j.props;ir.onTouchStart&&ir.onTouchStart(ke)},Ne=ke=>{Xe(ke),se.clear(),J.clear(),oe(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(m,()=>{document.body.style.WebkitUserSelect=re.current,we(ke)})},ie=ke=>{j.props.onTouchEnd&&j.props.onTouchEnd(ke),oe(),se.start(v,()=>{he(ke)})};E.useEffect(()=>{if(!U)return;function ke(ir){ir.key==="Escape"&&he(ir)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[he,U]);const te=ct(Cr(j),V,n);!I&&I!==0&&(U=!1);const fe=E.useRef(),Ce=ke=>{const ir=j.props;ir.onMouseMove&&ir.onMouseMove(ke),Mi={x:ke.clientX,y:ke.clientY},fe.current&&fe.current.update()},Pe={},Te=typeof I=="string";p?(Pe.title=!U&&Te&&!h?I:null,Pe["aria-describedby"]=U?de:null):(Pe["aria-label"]=Te?I:null,Pe["aria-labelledby"]=U&&!Te?de:null);const xe={...Pe,..._,...j.props,className:ue(_.className,j.props.className),onTouchStart:Xe,ref:te,...b?{onMouseMove:Ce}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,E.useEffect(()=>{$&&!$.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
233
+ `))},[$]));const Ze={};y||(xe.onTouchStart=Ne,xe.onTouchEnd=ie),h||(xe.onMouseOver=Va(we,xe.onMouseOver),xe.onMouseLeave=Va(Ae,xe.onMouseLeave),Q||(Ze.onMouseOver=we,Ze.onMouseLeave=Ae)),u||(xe.onFocus=Va(ce,xe.onFocus),xe.onBlur=Va(Me,xe.onBlur),Q||(Ze.onFocus=ce,Ze.onBlur=Me)),process.env.NODE_ENV!=="production"&&j.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${j.props.title}\` or the Tooltip component.`].join(`
234
+ `));const _e={...r,isRtl:B,arrow:i,disableInteractive:Q,placement:A,PopperComponentProp:k,touch:Z.current},pt=typeof D.popper=="function"?D.popper(_e):D.popper,sn=E.useMemo(()=>{let ke=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return L.popperOptions?.modifiers&&(ke=ke.concat(L.popperOptions.modifiers)),pt?.popperOptions?.modifiers&&(ke=ke.concat(pt.popperOptions.modifiers)),{...L.popperOptions,...pt?.popperOptions,modifiers:ke}},[G,L.popperOptions,pt?.popperOptions]),kr=Hk(_e),or=typeof D.transition=="function"?D.transition(_e):D.transition,ge={slots:{popper:l.Popper,transition:l.Transition??F,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:D.arrow??d.arrow,popper:{...L,...pt??d.popper},tooltip:D.tooltip??d.tooltip,transition:{...W,...or??d.transition}}},[Fe,et]=Ee("popper",{elementType:qk,externalForwardedProps:ge,ownerState:_e,className:ue(kr.popper,L?.className)}),[On,Je]=Ee("transition",{elementType:ao,externalForwardedProps:ge,ownerState:_e}),[ft,ji]=Ee("tooltip",{elementType:Yk,className:kr.tooltip,externalForwardedProps:ge,ownerState:_e}),[fo,an]=Ee("arrow",{elementType:Kk,className:kr.arrow,externalForwardedProps:ge,ownerState:_e,ref:K});return c.jsxs(E.Fragment,{children:[E.cloneElement(j,xe),c.jsx(Fe,{as:k??ed,placement:A,anchorEl:b?{getBoundingClientRect:()=>({top:Mi.y,left:Mi.x,right:Mi.x,bottom:Mi.y,width:0,height:0})}:$,popperRef:fe,open:$?U:!1,id:de,transition:!0,...Ze,...et,popperOptions:sn,children:({TransitionProps:ke})=>c.jsx(On,{timeout:M.transitions.duration.shorter,...ke,...Je,children:c.jsxs(ft,{...ji,children:[I,i?c.jsx(fo,{...an}):null]})})})]})});process.env.NODE_ENV!=="production"&&(wd.propTypes={arrow:o.bool,children:Tr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function Gk(e){return be("MuiSwitch",e)}const kt=ye("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xk=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,l={root:["root",n&&`edge${ee(n)}`,`size${ee(r)}`],switchBase:["switchBase",`color${ee(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=ve(l,Gk,t);return{...t,...d}},Jk=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ee(n.edge)}`],t[`size${ee(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${kt.thumb}`]:{width:16,height:16},[`& .${kt.switchBase}`]:{padding:4,[`&.${kt.checked}`]:{transform:"translateX(16px)"}}}}]}),Qk=X(Oa,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${kt.input}`]:t.input},n.color!=="default"&&t[`color${ee(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${kt.checked}`]:{transform:"translateX(20px)"},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kt.checked} + .${kt.track}`]:{opacity:.5},[`&.${kt.disabled} + .${kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kt.input}`]:{left:"-100%",width:"300%"}})),me(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ot(["light"])).map(([t])=>({props:{color:t},style:{[`&.${kt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${kt.checked} + .${kt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Zk=X("span",{name:"MuiSwitch",slot:"Track"})(me(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),eN=X("span",{name:"MuiSwitch",slot:"Thumb"})(me(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),xm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:d,slots:p={},slotProps:u={},...h}=r,x={...r,color:s,edge:a,size:l},y=Xk(x),g={slots:p,slotProps:u},[f,m]=Ee("root",{className:ue(y.root,i),elementType:Jk,externalForwardedProps:g,ownerState:x,additionalProps:{sx:d}}),[b,w]=Ee("thumb",{className:y.thumb,elementType:eN,externalForwardedProps:g,ownerState:x}),S=c.jsx(b,{...w}),[v,C]=Ee("track",{className:y.track,elementType:Zk,externalForwardedProps:g,ownerState:x});return c.jsxs(f,{...m,children:[c.jsx(Qk,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:x,...h,classes:{...y,root:y.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(x):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(x):u.input}}}),c.jsx(v,{...C})]})});process.env.NODE_ENV!=="production"&&(xm.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Tt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Cd=E.createContext();process.env.NODE_ENV!=="production"&&(Cd.displayName="TableContext");function tN(e){return be("MuiTable",e)}ye("MuiTable",["root","stickyHeader"]);const nN=e=>{const{classes:t,stickyHeader:n}=e;return ve({root:["root",n&&"stickyHeader"]},tN,t)},rN=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Sm="table",wm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTable"}),{className:i,component:s=Sm,padding:a="normal",size:l="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:l,stickyHeader:d},h=nN(u),x=E.useMemo(()=>({padding:a,size:l,stickyHeader:d}),[a,l,d]);return c.jsx(Cd.Provider,{value:x,children:c.jsx(rN,{as:s,role:s===Sm?null:"table",ref:n,className:ue(h.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(wm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Fi=E.createContext();process.env.NODE_ENV!=="production"&&(Fi.displayName="Tablelvl2Context");function oN(e){return be("MuiTableBody",e)}ye("MuiTableBody",["root"]);const iN=e=>{const{classes:t}=e;return ve({root:["root"]},oN,t)},sN=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),aN={variant:"body"},Cm="tbody",Em=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableBody"}),{className:i,component:s=Cm,...a}=r,l={...r,component:s},d=iN(l);return c.jsx(Fi.Provider,{value:aN,children:c.jsx(sN,{className:ue(d.root,i),as:s,ref:n,role:s===Cm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Em.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function lN(e){return be("MuiTableCell",e)}const cN=ye("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),dN=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ee(r)}`,i!=="normal"&&`padding${ee(i)}`,`size${ee(s)}`]};return ve(l,lN,t)},uN=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ee(n.size)}`],n.padding!=="normal"&&t[`padding${ee(n.padding)}`],n.align!=="inherit"&&t[`align${ee(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
235
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${cN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),nr=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:d,size:p,sortDirection:u,variant:h,...x}=r,y=E.useContext(Cd),g=E.useContext(Fi),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let b=d;m==="td"?b=void 0:!b&&f&&(b="col");const w=h||g&&g.variant,S={...r,align:i,component:m,padding:l||(y&&y.padding?y.padding:"normal"),size:p||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w},v=dN(S);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),c.jsx(uN,{as:m,ref:n,className:ue(v.root,s),"aria-sort":C,scope:b,ownerState:S,...x})});process.env.NODE_ENV!=="production"&&(nr.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function pN(e){return be("MuiTableContainer",e)}ye("MuiTableContainer",["root"]);const fN=e=>{const{classes:t}=e;return ve({root:["root"]},pN,t)},hN=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Tm=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=fN(l);return c.jsx(hN,{ref:n,as:s,className:ue(d.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function gN(e){return be("MuiTableHead",e)}ye("MuiTableHead",["root"]);const mN=e=>{const{classes:t}=e;return ve({root:["root"]},gN,t)},yN=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),bN={variant:"head"},Pm="thead",Om=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableHead"}),{className:i,component:s=Pm,...a}=r,l={...r,component:s},d=mN(l);return c.jsx(Fi.Provider,{value:bN,children:c.jsx(yN,{as:s,className:ue(d.root,i),ref:n,role:s===Pm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Om.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function vN(e){return be("MuiTableRow",e)}const km=ye("MuiTableRow",["root","selected","hover","head","footer"]),xN=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return ve({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},vN,t)},SN=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(me(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${km.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${km.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Nm="tr",_i=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableRow"}),{className:i,component:s=Nm,hover:a=!1,selected:l=!1,...d}=r,p=E.useContext(Fi),u={...r,component:s,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=xN(u);return c.jsx(SN,{as:s,ref:n,className:ue(h.root,i),role:s===Nm?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(_i.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function wN(e){return be("MuiTextField",e)}ye("MuiTextField",["root"]);const CN={standard:_a,filled:Ma,outlined:Da},EN=e=>{const{classes:t}=e;return ve({root:["root"]},wN,t)},TN=X(Fa,{name:"MuiTextField",slot:"Root"})({}),Di=E.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:x,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:m,inputProps:b,InputProps:w,inputRef:S,label:v,maxRows:C,minRows:P,multiline:O=!1,name:A,onBlur:k,onChange:L,onFocus:D,placeholder:T,required:I=!1,rows:F,select:W=!1,SelectProps:_,slots:j={},slotProps:M={},type:B,value:$,variant:V="outlined",...G}=r,K={...r,autoFocus:s,color:d,disabled:u,error:h,fullWidth:y,multiline:O,required:I,select:W,variant:V},Z=EN(K);process.env.NODE_ENV!=="production"&&W&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=gr(f),J=g&&Q?`${Q}-helper-text`:void 0,ae=v&&Q?`${Q}-label`:void 0,se=CN[V],le={slots:j,slotProps:{input:w,inputLabel:m,htmlInput:b,formHelperText:x,select:_,...M}},q={},ne=le.slotProps.inputLabel;V==="outlined"&&(ne&&typeof ne.shrink<"u"&&(q.notched=ne.shrink),q.label=v),W&&((!_||!_.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[U,de]=Ee("root",{elementType:TN,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...G},ownerState:K,className:ue(Z.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:y,required:I,color:d,variant:V}}),[re,oe]=Ee("input",{elementType:se,externalForwardedProps:le,additionalProps:q,ownerState:K}),[pe,he]=Ee("inputLabel",{elementType:Rg,externalForwardedProps:le,ownerState:K}),[we,Ae]=Ee("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:K}),[De,Me]=Ee("formHelperText",{elementType:Wg,externalForwardedProps:le,ownerState:K}),[ce,Xe]=Ee("select",{elementType:Vn,externalForwardedProps:le,ownerState:K}),Ne=c.jsx(re,{"aria-describedby":J,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:y,multiline:O,name:A,rows:F,maxRows:C,minRows:P,type:B,value:$,id:Q,inputRef:S,onBlur:k,onChange:L,onFocus:D,placeholder:T,inputProps:Ae,slots:{input:j.htmlInput?we:void 0},...oe});return c.jsxs(U,{...de,children:[v!=null&&v!==""&&c.jsx(pe,{htmlFor:Q,id:ae,...he,children:v}),W?c.jsx(ce,{"aria-describedby":J,id:Q,labelId:ae,value:$,input:Ne,...Xe,children:a}):Ne,g&&c.jsx(De,{id:J,...Me,children:g})]})});process.env.NODE_ENV!=="production"&&(Di.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Tt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const Im=ph({themeId:qo});function Ed(){return Ed=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function PN(e,t){if(e==null)return{};var n=ON(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ON(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Td=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=PN(e,["color","size"]);return z.createElement("svg",Ed({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),z.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Td.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Td.displayName="Bell";function Pd(){return Pd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(this,arguments)}function kN(e,t){if(e==null)return{};var n=NN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ua=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=kN(e,["color","size"]);return z.createElement("svg",Pd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("polyline",{points:"6 9 12 15 18 9"}))});Ua.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Ua.displayName="ChevronDown";function Od(){return Od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function IN(e,t){if(e==null)return{};var n=AN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kd=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=IN(e,["color","size"]);return z.createElement("svg",Od({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"12",cy:"12",r:"1"}),z.createElement("circle",{cx:"12",cy:"5",r:"1"}),z.createElement("circle",{cx:"12",cy:"19",r:"1"}))});kd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},kd.displayName="MoreVertical";function Nd(){return Nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}function MN(e,t){if(e==null)return{};var n=FN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Id=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=MN(e,["color","size"]);return z.createElement("svg",Nd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"11",cy:"11",r:"8"}),z.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Id.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Id.displayName="Search";function Ad(){return Ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function _N(e,t){if(e==null)return{};var n=DN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Md=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=_N(e,["color","size"]);return z.createElement("svg",Ad({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("circle",{cx:"12",cy:"12",r:"3"}),z.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});Md.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Md.displayName="Settings";function Fd(){return Fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fd.apply(this,arguments)}function $N(e,t){if(e==null)return{};var n=zN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _d=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=$N(e,["color","size"]);return z.createElement("svg",Fd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),z.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),z.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});_d.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},_d.displayName="ShoppingBag";function Dd(){return Dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dd.apply(this,arguments)}function LN(e,t){if(e==null)return{};var n=jN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $d=z.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=LN(e,["color","size"]);return z.createElement("svg",Dd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});$d.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},$d.displayName="X";function Cn(){const t={theme:z.useMemo(()=>Mc({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),topBar:{root:{width:"100%",maxWidth:"100%",height:72,minHeight:72,maxHeight:72,marginLeft:0,marginRight:0,marginBottom:0,marginTop:0,paddingTop:"20px",gap:"20px",opacity:1,bgcolor:"#FFFFFF",boxSizing:"border-box",overflow:"hidden"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px",paddingRight:"20px",paddingTop:0,paddingBottom:0,margin:0,maxWidth:"100%",flexShrink:0},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480,maxHeight:"none"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,overflowY:"visible",overflowX:"hidden",maxHeight:"none"},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,minWidth:160,flexShrink:0,height:120,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}}},n={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",p:{xs:2,sm:3,md:4},bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{width:800,maxWidth:"100%",minHeight:448,display:"flex",flexDirection:"column",gap:"4px",opacity:1,borderRadius:0,boxShadow:"none",background:"#f7f8fa",p:0,mb:3,marginLeft:"auto",marginRight:"auto",boxSizing:"border-box"},categoryTableHeader:{width:800,height:28,display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,background:"#F8F8F8",boxSizing:"border-box"},categoryTableHeaderCheckboxCol:{width:16,height:16,flex:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",opacity:1},categoryTableHeaderCell:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},categoryTableHeaderCategoryCell:{width:234,height:16,flex:"0 0 234px",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",gap:"4px"},categoryTableHeaderStockCell:{width:120,height:16,flex:"0 0 120px",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},categoryTableHeaderProductsCell:{width:296,height:16,flex:"0 0 296px",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},categoryTableHeaderEmptyCell:{width:38,height:16,flex:"0 0 38px",opacity:0},categoryTableRow:(...r)=>({width:800,height:80,display:"flex",alignItems:"center",gap:"16px",padding:"12px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:"#FFFFFF",boxSizing:"border-box"}),categoryTableRowCheckboxFrame:{width:16,height:20,flex:"0 0 16px",display:"flex",alignItems:"center",gap:"8px",opacity:1},categoryTableRowCheckbox:{width:16,height:16,padding:0,borderRadius:"4px",border:"0.5px solid #454545",color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16}},categoryNameCell:{width:234,height:56,flex:"0 0 234px",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{width:234,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:97,height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{width:120,height:32,flex:"0 0 120px",display:"flex",flexDirection:"column",gap:"4px",opacity:1},categoryStock:r=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...r)=>({width:120,height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{width:296,height:56,flex:"0 0 296px",display:"flex",gap:"4px",opacity:1},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:"#f5f5f5",opacity:1},categoryViewCell:{width:38,height:56,flex:"0 0 38px",display:"flex",alignItems:"center",gap:"2px",opacity:1,marginLeft:"6px"},categoryViewButton:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",background:"none",textTransform:"none",p:0,minWidth:0,boxShadow:"none",justifyContent:"center",alignItems:"center","&:hover":{background:"none",boxShadow:"none"}},categoryViewButtonIcon:{width:12,height:12,color:"#808080"},categoryTableAllStore:{font:{fontFamily:"Inter, sans-serif"},outerCard:{width:800,maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:770,maxWidth:"100%",height:28,gap:"32px",padding:"6px 16px",borderRadius:"8px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",bgcolor:"#808080",opacity:1},categoryNameText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#FFFFFF",opacity:1},tableHeader:{width:800,height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:{width:480,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerStatusOsa:{width:240,gap:"40px"},headerStatusText:{width:80,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerOsaText:{width:120,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},arrowDown:{width:12,height:12,color:"#454545"},rowCard:{width:"100%",maxWidth:800,minHeight:80,gap:"16px",padding:"12px 16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},checkboxBase:{width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",color:"#FFFFFF"},checkboxRow:{border:"0.5px solid #454545",color:"#FFFFFF"},productBlock:{width:480,height:56,gap:"16px"},imageBox:{width:56,height:56,border:"1px solid #F1F1F1",borderRadius:"8px"},productName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},productMeta:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"},productMetaBullet:{color:"#C5C5C5"},productSku:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#808080"},statusOsaBlock:{width:240,height:32,gap:"40px"},statusActiveBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#D8FBE3",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusNoStockBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusActive:{padding:"4px 6px",borderRadius:"4px",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545",verticalAlign:"middle"},stockValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#EB8F00"},osaValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},onShelfText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"}},categoryTableSingleStore:{outerCard:{width:800,maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},tableHeader:{width:"100%",maxWidth:800,height:28,gap:"32px",padding:"8px 16px 4px 16px",opacity:1},headerLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerProduct:{width:238},headerStatus:{width:64},headerPrice:{width:50},headerStock:{width:90},headerOffer:{width:150},stockOfferGap:"12px",checkboxBlue:{border:"0.5px solid #2D64B8",bgcolor:"#F3F8FF",color:"#2D64B8"},rowCard:{width:"100%",maxWidth:800,height:88,gap:"32px",padding:"16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},productBlock:{width:237,height:56,gap:"16px"},productDetailsWidth:165,statusBlock:{width:64,height:20},priceBlock:{width:50,height:48,gap:"4px"},priceText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},clockIcon:{width:16,height:16,borderRadius:"4px",padding:"2px",bgcolor:"#F5F5F5"},stockBlock:{width:90,height:32,gap:"4px"},offerBlock:{width:150,height:36,gap:"4px"},offerText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},onShelfPercentRed:{color:"#d32f2f"},onShelfPercentNormal:{color:"#808080"},onShelfSpan:{color:"#808080"}},categoryTablePagination:{wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}},contentWrapper:{marginTop:"72px",position:"relative",zIndex:0,width:"100%",boxSizing:"border-box"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"}};return t.categoryDetail=n,t}const Am=0,Mm=1e4;function Fm({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=z.useMemo(()=>{const w=s?.min??t.minPrice??Am,S=s?.max??t.maxPrice??Mm;return{min:Number(w)||Am,max:Math.max(Number(S)||Mm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),l=t.status==="active"||t.status==="inactive"?t.status:"",d=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",p=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,u=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=p??a.min,x=u??a.max,y=(w,S)=>{n({...t,status:S===l?void 0:S||void 0})},g=(w,S)=>{n({...t,stock:S===d?void 0:S||void 0})},f=(w,S)=>{if(!Array.isArray(S)||S.length!==2)return;const v=Number(S[0]),C=Number(S[1]),P=Math.min(v,C),O=Math.max(v,C);n({...t,minPrice:P,maxPrice:O})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),b=()=>{const w={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(w)};return c.jsxs(wi,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,disableScrollLock:!0,children:[c.jsx(Ci,{children:"Filter Products"}),c.jsx(Aa,{children:c.jsxs(N,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[c.jsxs(Fa,{component:"fieldset",children:[c.jsx(Pi,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),c.jsxs($a,{row:!0,value:l,onChange:y,name:"status",children:[c.jsx(wn,{value:"active",control:c.jsx(co,{size:"small"}),label:"Active"}),c.jsx(wn,{value:"inactive",control:c.jsx(co,{size:"small"}),label:"Inactive"})]})]}),c.jsxs(Fa,{component:"fieldset",children:[c.jsx(Pi,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),c.jsxs($a,{row:!0,value:d,onChange:g,name:"stock",children:[c.jsx(wn,{value:"inStock",control:c.jsx(co,{size:"small"}),label:"In Stock"}),c.jsx(wn,{value:"outOfStock",control:c.jsx(co,{size:"small"}),label:"Out of Stock"})]})]}),c.jsxs(N,{children:[c.jsx(Pi,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),c.jsxs(R,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",x]}),c.jsx(N,{sx:{px:.5},children:c.jsx(ym,{value:[h,x],onChange:f,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:w=>`₹${w}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),c.jsxs(sd,{sx:{gap:.5,flexWrap:"wrap"},children:[c.jsx(Ke,{onClick:r,children:"Cancel"}),m&&c.jsx(Ke,{variant:"contained",onClick:b,children:"Clear Filters"}),c.jsx(Ke,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const BN=We(c.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");function WN(e){return c.jsx(BN,{...e})}const _m=We(c.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Ha(e){return c.jsx(_m,{...e})}const RN=We(c.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedSharp");function $i(e){return c.jsx(RN,{...e})}function VN(e){return c.jsx(Md,{...e})}const UN={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function Dm(e){const{sx:t={},...n}=e;return c.jsx(N,{component:"button",sx:{...UN,...t},title:"Notifications","aria-label":"Notifications",...n,children:c.jsx(Td,{size:20})})}const HN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",qN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function $m(e){const{sx:t={},...n}=e;return c.jsx(N,{sx:{flexShrink:0,...t},...n,children:c.jsx(N,{sx:{padding:"1px",borderRadius:"10px",background:"linear-gradient(93.46deg, #568BDC 8.37%, #87FFD7 52.21%, #5ABDCE 93.24%)",flexShrink:0,width:32,height:32,boxSizing:"border-box"},children:c.jsx(N,{component:"button",sx:{position:"relative",width:"100%",height:"100%",minWidth:30,minHeight:30,padding:0,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",borderRadius:"9px",background:"linear-gradient(94.11deg, #5BC0CF 3.33%, #2D64B8 92.67%)",border:"none",cursor:"pointer"},title:"Ask Aira","aria-label":"Ask Aira",children:c.jsxs(N,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[c.jsx(N,{component:"img",src:HN,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),c.jsx(N,{component:"img",src:qN,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const qa=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,backTo:d="/home",hideViewSwitch:p=!1,isHomeDefault:u=!1,tenantStatus:h={matched:!0},priceRange:x,styles:y})=>{const g=bt(),f=Cn(),[m,b]=z.useState(null),w=!!m,[S,v]=z.useState(!1),[C,P]=z.useState(!1),[O,A]=z.useState(e||{}),[k,L]=z.useState(e?.search??""),D=Array.isArray(e?.store)?e.store:[],T=()=>{b(null)},[I,F]=z.useState(D),W=K=>{F(K==="all"?["all"]:[K])},_=K=>{i?v(!0):(F(D.length===0?["all"]:D),b(K.currentTarget))},j=()=>{t({...e,store:I}),b(null)},M=K=>{a?a(K):t({...e,store:K}),v(!1)},B=()=>{v(!1)};z.useEffect(()=>{const K=e?.search??"";String(K)!==String(k)&&L(K)},[e?.search,k]);const $=K=>{if(K.key==="Enter"){K.preventDefault();const Z=(k??"").trim();t({...e,search:Z})}},V=f,G=y!=null&&y.root!==void 0?y:(y!=null&&y.topBar!=null?y.topBar:V.topBar)||{};return c.jsxs(c.Fragment,{children:[c.jsx(N,{sx:{...G.root,position:"fixed",top:0,left:{xs:0,md:260},right:0,display:"flex",flexDirection:"column",alignItems:"center",width:{xs:"100%",md:"auto"},height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",boxSizing:"border-box",overflow:"hidden",zIndex:1100},children:c.jsx(N,{sx:{width:"100%",maxWidth:1151,display:"flex",justifyContent:"center",boxSizing:"border-box"},children:c.jsxs(N,{sx:{...G.inner,width:"100%",minWidth:0,height:32,minHeight:0,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[l&&c.jsxs(c.Fragment,{children:[c.jsxs(N,{component:"button",onClick:()=>g(d),sx:{display:"flex",alignItems:"center",width:48,height:16,gap:"4px",opacity:1,background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:.85}},children:[c.jsx(Ha,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(R,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),c.jsx(N,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:414},children:c.jsxs(N,{sx:{...G.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:414,height:20,gap:"12px",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[c.jsx(Id,{size:18,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),c.jsx(bi,{placeholder:l?"Search Products":"Search Products & Categories",value:k,onChange:K=>L(K.target.value),onKeyDown:$,sx:{...G.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:0}}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",minWidth:0,flexShrink:0,height:32,gap:"16px",flexDirection:"row",boxSizing:"border-box"},children:[c.jsxs(N,{sx:{display:"flex",gap:1,alignItems:"center"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",width:216,height:32,borderRadius:"6px",border:"1px solid #F1F1F1",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",backgroundColor:"#FFFFFF",cursor:"pointer",gap:1,boxSizing:"border-box"},onClick:_,tabIndex:0,"aria-label":"Select stores",children:[c.jsx(_d,{size:18,style:{color:"#555",marginRight:4}}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16},children:D.length===0||D.includes("all")?"All Stores":D.length===1?"1 Store":`${D.length} Stores`}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16},children:` ${n.filter(K=>K.id!=="all"&&K.storeCode!=="all").length} stores`}),c.jsx(Ua,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),c.jsxs(yd,{anchorEl:m,open:w,onClose:T,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[c.jsxs(Ot,{onClick:()=>W("all"),children:[c.jsx(Pt,{checked:I.length===0||I.includes("all")}),c.jsx(hd,{primary:"All Stores"})]}),c.jsx(Xt,{}),c.jsx(N,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(K=>K.id!=="all").map(K=>c.jsxs(Ot,{onClick:()=>W(K.id),children:[c.jsx(Pt,{checked:I.includes(K.id)}),c.jsx(hd,{primary:K.name})]},K.id))}),c.jsx(Xt,{}),c.jsx(N,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:c.jsx(Ke,{variant:"contained",size:"small",onClick:j,children:"Apply"})})]}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",width:67,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(A(e||{}),P(!0))},children:[c.jsx(R,{sx:{width:29,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:u?"MTD":"Filters"}),c.jsx(Ua,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",width:63,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},children:[c.jsx(R,{sx:{width:25,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545"},children:"Sort"}),c.jsx(WN,{sx:{width:16,height:16,opacity:1,color:"#454545"}})]})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsxs(N,{sx:{display:"flex",gap:1,alignItems:"center"},children:[c.jsx(N,{component:"button",sx:G.iconOnly,title:"Refresh",children:c.jsx($i,{sx:{width:20,height:20,opacity:1}})}),!p&&c.jsx(N,{component:"button",sx:{...G.iconOnly,cursor:h.loading?"not-allowed":"pointer",opacity:h.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:h.loading?"none":"auto"},title:h.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{h.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:c.jsx(VN,{size:18.33,color:"#454545"})}),c.jsx(N,{component:"button",sx:G.iconOnly,title:"More",children:c.jsx(kd,{size:20})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}})]}),c.jsx(Dm,{}),c.jsx(N,{sx:{marginLeft:"auto",flexShrink:0},children:c.jsx($m,{})})]})})}),i&&(()=>{const{open:K,onClose:Z,onStoreSelect:Q,...J}=s||{};return c.jsx(i,{open:S,onClose:B,onStoreSelect:M,selectedStores:D,...J})})(),!r&&c.jsx(Fm,{open:C,filters:O,onChange:A,onClose:()=>P(!1),onApply:K=>{t&&t(K!==void 0?K:O),P(!1)},priceRange:x})]})};function YN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=Cn(),i=yt(),s=i.state?.filters||{category:"",status:"",search:"",store:[]},[a,l]=z.useState(s),[d,p]=z.useState(!1),[u,h]=z.useState(a),x=Le(A=>A.dashboard),y=x?.companyId??"",g=x?.products||[],f=g.reduce((A,k)=>(k?.id&&(A[k.id]=k),A),{}),m=g.map(A=>A?.id).filter(Boolean),b=z.useMemo(()=>x?.stores||[],[x?.stores]);console.log(m,"productIds we get at page");const w=$t(),S=z.useRef(!1);z.useEffect(()=>{!y&&!S.current&&(S.current=!0,w(zr()))},[w,y]),z.useEffect(()=>{y&&w(Lr())},[y,w]),z.useEffect(()=>{i.state?.filters&&setTimeout(()=>{l(i.state.filters)},0)},[i.state]),z.useEffect(()=>{Array.isArray(m)},[m,a,f]);const v=A=>{l(A)},C=()=>{h(a),p(!0)},P=b.length>0?b:[{id:"all",name:"All Stores",storeCode:"all"}],O=i.state&&i.state.tenantStatus||{matched:!0};return c.jsxs("div",{className:"app-container",children:[c.jsx(qa,{styles:r,onFilterChange:v,filters:a,stores:P,onOpenFilterModal:C,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:O}),c.jsx("div",{className:"product-main-container",style:{marginTop:"92px"}}),c.jsx(Fm,{open:d,filters:u,onChange:h,onClose:()=>p(!1),onApply:A=>{l(A!==void 0?A:u),p(!1)}})]})}const zm=We(c.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),KN=e=>c.jsx(zn,{...e,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),GN=()=>{const e=bt(),t=$t(),n=Cn(),{metrics:r,loading:i}=Le(C=>C.dashboard),[s,a]=z.useState({search:"",store:[],category:"all",status:"all"}),l=C=>a(C),[d,p]=z.useState(new Date);z.useEffect(()=>{t(zo())},[t]),z.useEffect(()=>{const C=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(C)},[]);const u=d.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=d.getDate(),x=d.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),y=r?.activeProducts||0,g=r?.activeCatalogues||0,f=r?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),b=f?.availableProducts||0,w=f?.totalRequests||0,S=f?.availabilityPercentage||0,v=w>0?100-S:0;return c.jsxs(c.Fragment,{children:[c.jsx(qa,{styles:n.topBar,filters:s,onFilterChange:l,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),c.jsxs(N,{sx:{marginTop:"72px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",p:4,bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[c.jsx(Rn,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:c.jsxs(Ag,{sx:{p:1},children:[c.jsx(R,{variant:"body2",color:"text.secondary",children:u}),c.jsx(R,{variant:"h6",fontWeight:400,color:"#000000",children:h}),c.jsx(R,{variant:"caption",color:"text.secondary",children:x})]})}),c.jsxs(N,{children:[c.jsxs(R,{variant:"h6",fontWeight:700,children:["Hi Ashok ",c.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),c.jsx(R,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),c.jsx(N,{sx:{mt:2},children:c.jsxs(Rn,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(KN,{sx:{fontSize:24,color:"#000000"}}),c.jsxs(R,{variant:"h6",fontWeight:700,children:["Products ",c.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:i?"...":y})]})]}),c.jsxs(R,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/"),children:["Report ",">"]})]}),c.jsxs(N,{sx:{display:"flex",gap:2},children:[c.jsxs(Rn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(R,{variant:"body2",color:"#454545",children:"Active Products"}),c.jsx(R,{variant:"h6",fontWeight:700,children:i?"...":y}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.5},children:[c.jsx(zm,{sx:{fontSize:16,color:"#4caf50"}}),c.jsx(R,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),c.jsxs(Rn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(R,{variant:"body2",color:"#454545",children:"Active Catalogs"}),c.jsx(R,{variant:"h6",fontWeight:700,children:i?"...":g}),c.jsx(R,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),c.jsxs(Rn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(R,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),c.jsxs(R,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[i?"...":`${S}%`,c.jsx(R,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:i?"":`${m(b)}/${m(w)}`})]}),c.jsx(R,{variant:"caption",color:"error",children:i?"":`${v.toFixed(0)}% missing`})]})]})]})})]})]})};function zi({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1}){const a=bt(),l=Cn(),[d]=z.useState({matched:!1,error:"",apiResponse:null,loading:!1});let p=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const h=Le(g=>g?.dashboard)?.products||[],x=t||(()=>a("/product-setting")),y=!r&&!e&&Array.isArray(h)&&h.length===0;return c.jsx(N,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:c.jsx(N,{sx:p.wrapper,children:c.jsxs(N,{sx:p.card,children:[c.jsxs(N,{sx:p.iconContainer,children:[c.jsxs(N,{sx:p.sparkleContainer,children:[c.jsx(N,{sx:p.sparkleLeft}),c.jsx(N,{sx:p.sparkleCenter}),c.jsx(N,{sx:p.sparkleRight})]}),c.jsx(N,{sx:p.inboxIcon,children:c.jsx(N,{sx:p.notch})})]}),c.jsx(R,{sx:p.title,children:r?"Session Expired":n?`No Product in ${n} Category`:"No Products"}),!s&&c.jsx(R,{sx:p.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!y?`No products found in the "${n}" category.`:y?"No products found in store inventory. Start syncing to add products.":d.matched?"Active integrations fetched successfully":d.error?d.error:"No active integration found for this tenant id"}),!s&&!e&&!r&&y&&!i&&c.jsx(R,{component:"a",href:"#",sx:p.actionLink,onClick:g=>{g.preventDefault(),x()},children:"Start Syncing Products"})]})})})}const zd=We(c.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),XN="#22c55e";function Lm(e){const{sx:t,color:n=XN,fontSize:r,...i}=e;return c.jsxs(zn,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[c.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function JN({catalogSlug:e="",onClose:t}){const n=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",r=()=>{n&&navigator.clipboard.writeText(n).then(()=>{}).catch(()=>{})};return c.jsxs(N,{sx:{position:"fixed",top:24,right:24,zIndex:1400,display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:400,minWidth:320,px:2,py:1.5,borderRadius:2,backgroundColor:"#e8f5e9",border:"1px solid #c8e6c9",boxShadow:"0 4px 12px rgba(0,0,0,0.08)"},children:[c.jsx(N,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:c.jsx(Lm,{sx:{fontSize:40}})}),c.jsxs(N,{sx:{flex:1,minWidth:0,pt:.25},children:[c.jsx(R,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),c.jsx(R,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),c.jsx(R,{component:"button",onClick:r,sx:{marginTop:.75,padding:0,border:"none",background:"none",cursor:"pointer",fontWeight:500,fontSize:14,color:"#2563eb",textDecoration:"underline","&:hover":{color:"#1d4ed8"}},children:"Copy Share Link"})]}),c.jsx(it,{onClick:t,size:"small","aria-label":"Close",sx:{color:"#888",p:.5,mt:-.5,mr:-.5,"&:hover":{color:"#333",bgcolor:"rgba(0,0,0,0.04)"}},children:c.jsx(zd,{sx:{fontSize:20}})})]})}const QN=We(c.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),jm=We(c.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Dt({size:e,style:t,sx:n,...r}){return c.jsx(jm,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const Ya={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},Bm={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},ZN={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},Ka=e=>{if(e==null||!Number.isFinite(e))return"0";if(e>=1e3){const t=e/1e3;return(t%1===0?String(t):t.toFixed(1).replace(/\.0$/,""))+"K"}return String(Math.round(e))},Wm=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s})=>{const a=e?.metrics||{},l=e?.productDashboardMetrics||{},d=!t,p=t?`${t} Products`:"Categories",u=t?l.productCount!=null?l.productCount:n:d&&(a.activeCategories!=null||a.activeProducts!=null)?a.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,h=t?"":"Products",x=t?"":d&&a.activeProducts!=null?a.activeProducts:e?.homePageCardSummary?.totalProducts??0,y=d?e?.homePageCardSummary?.lastSyncHoursAgo!=null?`Sync ${e.homePageCardSummary.lastSyncHoursAgo}h ago`:"":e?.homePageCardSummary?.lastSyncHoursAgo!=null?`Sync ${e.homePageCardSummary.lastSyncHoursAgo}h ago`:"",g=d&&a.activeCatalogues!=null?a.activeCatalogues:t&&l.activeCatalogues!=null?l.activeCatalogues:i,f=a.onShelfYesterdayPerc!=null?Math.round(Number(a.onShelfYesterdayPerc)):null,m=a.totalOnShelfYesterdayCount!=null?Number(a.totalOnShelfYesterdayCount):null,b=a.totalStockYesterdayCount!=null?Number(a.totalStockYesterdayCount):null,w=a.missingOnShelfYesterdayPercent!=null?Math.round(Number(a.missingOnShelfYesterdayPercent)):null,S=l.onShelfYesterdayPerc!=null?Math.round(Number(l.onShelfYesterdayPerc)):null,v=l.totalOnShelfYesterdayCount!=null?Number(l.totalOnShelfYesterdayCount):null,C=l.totalStockYesterdayCount!=null?Number(l.totalStockYesterdayCount):null,P=l.missingOnShelfYesterdayPercent!=null?Math.round(Number(l.missingOnShelfYesterdayPercent)):null,O=d?f!=null?`${f}%`:"78%":S!=null?`${S}%`:"78%",A=d?m!=null&&b!=null?`${Ka(m)}/${Ka(b)}`:"78/100k":v!=null&&C!=null?`${Ka(v)}/${Ka(C)}`:"78/100k",k=d?w!=null?`${w}% Missing`:"22% missing":P!=null?`${P}% Missing`:"22% missing",L=!!t,D=L?"8px":"12px",T=L?261.3333435058594:void 0,I=101;return c.jsxs(N,{sx:{width:"fit-content",maxWidth:"100%",height:L?101:"auto",gap:D,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",marginLeft:"auto",marginRight:"auto",mb:3},children:[c.jsx(Ld,{cardWidth:T??344,cardHeight:I,title:p,titleValue:u,subtitle:h,subtitleValue:x,recentText:y,tickMarkRequired:!0,btnLabel:"History",flexGrow:!1}),c.jsx(Ld,{cardWidth:T??220,cardHeight:I,title:"Active Catalogs",titleValue:g,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!1}),c.jsx(Ld,{cardWidth:T??220,cardHeight:I,title:"On Shelf Yesterday",titleValue:O,thirdVaue:A,recentText:k,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!1})]})};function Ld({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:l="",recentTextColor:d="#808080",btnLabel:p="",tickMarkRequired:u=!1,linkRequired:h=!1,onBtnClick:x,isThirdCard:y=!1,flexGrow:g=!1}){const f={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},m={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},b={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},w={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return c.jsxs(Rn,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:g?"1 1 200px":"0 0 auto",height:t,opacity:1,gap:"1px",borderRadius:"12px",bgcolor:"#fff",boxShadow:"0 2px 8px #e0e0e0",p:0,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"},children:[c.jsx(N,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px",padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:y?c.jsx(c.Fragment,{children:c.jsxs(N,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(R,{sx:{...Ya,height:16},children:n}),c.jsxs(N,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[c.jsx(R,{sx:{...f},children:i}),c.jsx(R,{sx:{...m},children:s})]})]})}):c.jsxs(c.Fragment,{children:[n&&c.jsxs(N,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(R,{sx:{...Ya,width:158,height:16},children:n}),c.jsx(R,{sx:{...Bm,width:32,height:32},children:i}),s&&c.jsx(R,{component:"span",sx:{...Ya,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&c.jsxs(N,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(R,{sx:{...Ya,width:158,height:16},children:r}),c.jsx(R,{sx:{...Bm,width:47,height:32},children:a})]})]})}),c.jsx(Xt,{}),c.jsx(N,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:y?c.jsxs(c.Fragment,{children:[c.jsx(N,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:c.jsx(R,{sx:{...b,whiteSpace:"nowrap"},children:l})}),p&&c.jsxs(N,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[c.jsx(Ke,{variant:"text",size:"small",onClick:x,sx:{...w,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:p}),c.jsx(Dt,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs(N,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&c.jsx(Lm,{sx:{width:12,height:12,mr:.5}}),h&&c.jsx(QN,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),c.jsx(R,{sx:{...ZN,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l})]}),p&&c.jsx(N,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:c.jsxs(Ke,{variant:"text",size:"small",onClick:x,sx:{color:"#2D64B8",textTransform:"none",fontWeight:600,fontFamily:"Inter, sans-serif",fontSize:12,lineHeight:"16px",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:[p,c.jsx(Dt,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const eI=We(c.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function jd(e){return c.jsx(eI,{...e})}function tI(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function Rm(e){return e?.categoryName??e?.name??""}function nI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],onToggleCategory:i}){const s=d=>r.some(p=>Rm(p)===Rm(d)),a=e.length>0&&e.every(s),l=e.some(s);return c.jsxs(Rn,{sx:t.categoryTable,children:[c.jsxs(N,{sx:t.categoryTableHeader,children:[i&&c.jsx(N,{sx:t.categoryTableHeaderCheckboxCol,children:c.jsx(Pt,{checked:a,indeterminate:l&&!a,onChange:()=>{a?e.forEach(d=>i(d)):e.forEach(d=>{s(d)||i(d)})},size:"sm",sx:{p:0,"& .MuiSvgIcon-root":{fontSize:16}}})}),c.jsxs(N,{sx:t.categoryTableHeaderCategoryCell,children:["Category",c.jsx(jd,{sx:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"}})]}),c.jsx(N,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),c.jsx(N,{sx:t.categoryTableHeaderProductsCell,children:"Products"}),c.jsx(N,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((d,p)=>c.jsxs(N,{sx:t.categoryTableRow(p),children:[i&&c.jsx(N,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Pt,{checked:s(d),onChange:()=>i(d),size:"sm",sx:t.categoryTableRowCheckbox})}),c.jsxs(N,{sx:t.categoryNameCell,children:[c.jsx(R,{sx:t.categoryName,children:d.categoryName}),c.jsxs(R,{sx:t.categoryProducts,children:[d.productCount," Products"]}),c.jsxs(R,{sx:t.categoryUpdated,children:["Updated ",tI(d.lastUpdated)]})]}),c.jsxs(N,{sx:t.categoryStockCell,children:[c.jsxs(R,{sx:t.categoryStock(p),children:[d.totalStock,"/",d.totalOsa]}),c.jsx(R,{sx:t.categoryOSA(p),children:d.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(N,{component:"span",sx:Number(d.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(d.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsx(N,{sx:t.categoryImagesCell,children:(Array.isArray(d.images)?d.images:[]).map((u,h)=>c.jsx(Ta,{src:u,alt:(d.categoryName||"")+" product",sx:t.categoryImage},h))}),c.jsx(N,{sx:t.categoryViewCell,children:c.jsxs(Ke,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:d.categoryName,...d}),children:["View",c.jsx(Dt,{sx:t.categoryViewButtonIcon})]})})]},d.categoryName||p))]})}const Vm=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i})=>{const s=r||[],a=i||[],l=s.length>0,d=a.length>0;if(!l&&!d)return null;const p=d?`${a.length} categor${a.length===1?"y":"ies"} selected`:`${s.length} items selected`;return c.jsxs(N,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",bgcolor:"#18181B",borderRadius:"16px",boxShadow:3,px:3,py:2,display:"flex",alignItems:"center",zIndex:1300,minWidth:400},children:[c.jsx(R,{sx:{color:"#fff",mr:1},children:c.jsx("b",{children:p})}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:e,children:"Promo Print"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:t,children:"Create Catalog"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:n,children:"OSA Request"})]})},rI=We(c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Um(e){return c.jsx(rI,{...e})}const Hm=We([c.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),c.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft"),qm=We([c.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),c.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight"),oI=()=>{const e=$t(),t=bt(),n=yt(),r=Cn(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[l,d]=z.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:p,companyId:u,loading:h,error:x}=Le(q=>q.dashboard),y=z.useMemo(()=>p&&typeof p=="object"&&Object.keys(p).length>0?{matched:!0,error:"",apiResponse:p,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[p]),g=Le(q=>q.dashboard),{categoryList:f=[],stores:m=[],categoryPagination:b={}}=g||{},w=f,{currentPage:S=1,limit:v=10,totalCount:C=0,totalPages:P=1,hasNextPage:O=!1}=b,{sharedCatalogues:A=[],sharedCataloguesTotal:k=0,lastStableActiveCatalogsCount:L=null}=Le(q=>q.productSettings??{}),D=z.useMemo(()=>Array.isArray(A)?A.filter(q=>q.status===!0).length:0,[A]),I=k>0&&A.length>=k?D:L??D,F=Array.isArray(f)&&f.length>0,W=()=>{y.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},_=m.length>0?m:[{id:"all",name:"All Stores",storeCode:"all"}],j=q=>{d(q)},M=z.useCallback((q={})=>{const ne=Array.isArray(l.store)?l.store:[],U={...q};if(ne.length>0&&!ne.includes("all")){const de=ne.map(re=>m.find(pe=>pe.id===re)?.storeCode).filter(Boolean);de.length>0&&(U.storeCode=de[0])}return l.search!=null&&String(l.search).trim()!==""&&(U.search=String(l.search).trim()),l.minOsa!=null&&l.minOsa!==""&&(U.minOsa=l.minOsa),l.maxOsa!=null&&l.maxOsa!==""&&(U.maxOsa=l.maxOsa),l.order!=null&&l.order!==""&&(U.order=l.order),U},[l.store,l.search,l.minOsa,l.maxOsa,l.order,m]),B=z.useRef(null);z.useEffect(()=>{if(!u)return;const q=M({page:S,limit:v}),ne=JSON.stringify(q);B.current!==ne&&(B.current=ne,e(ur(q)))},[u,S,v,M,e]);const $=q=>{const ne=M({page:q,limit:v});e(ur(ne))},V=q=>{const ne=M({page:1,limit:q});e(ur(ne))},[G,K]=z.useState(!1);z.useEffect(()=>{!u&&!G?e(zr()).finally(()=>{K(!0)}):u&&queueMicrotask(()=>K(!0))},[e,u,G]);const Z=z.useRef(null);z.useEffect(()=>{u&&u!==Z.current&&(Z.current=u,e(At(u)),e(ur({page:1,limit:10})),e(Lr()),e(zo()),e(tn({page:1})))},[e,u]),z.useEffect(()=>{if(!u||k<=0)return;(Array.isArray(A)?A.length:0)<k&&e(tn({page:1,limit:k}))},[u,k,A?.length,e,A]);const Q=q=>{t(`/category?categoryName=${encodeURIComponent(q.name||q.categoryName)}`,{state:{filters:l}})},[J,ae]=z.useState([]),se=z.useCallback(q=>{const ne=q?.categoryName??q?.name??"";ae(U=>U.some(re=>(re?.categoryName??re?.name)===ne)?U.filter(re=>(re?.categoryName??re?.name)!==ne):[...U,q])},[]),le=G&&x&&!u;return c.jsxs(c.Fragment,{children:[i&&c.jsx(JN,{catalogSlug:i.catalogSlug,onClose:s}),!le&&c.jsx(qa,{filters:l,onFilterChange:j,styles:a.topBar,stores:_,tenantStatus:y,hasProducts:F}),c.jsx(N,{sx:le?{marginTop:0}:F?a.contentWrapper??{marginTop:"72px",display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:"72px"},children:le?c.jsx(zi,{handleStartSyncing:W,loading:!1,sessionExpired:!0}):!G&&!u?c.jsx(zi,{handleStartSyncing:W,loading:!0,sessionExpired:!1}):F?c.jsxs(N,{sx:a.root,children:[c.jsx(Wm,{productState:g,categoryCount:f.length,activeCatalogsCount:I,onManageClick:()=>t("/catalogs/manage-shared")}),f.length>0?c.jsxs(c.Fragment,{children:[c.jsx(nI,{categoryData:w,styles:a,onView:Q,selectedCategories:J,onToggleCategory:se}),c.jsx(Vm,{selectedCategories:J,onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>{}}),C>0&&(()=>{const q=a?.categoryTablePagination??{};return c.jsxs(N,{sx:q.wrapper,children:[c.jsxs(N,{sx:q.resultsPerPageBox,children:[c.jsx(R,{component:"span",sx:q.resultsPerPageText,children:"Results per page"}),c.jsx(Vn,{value:v,onChange:ne=>V(Number(ne.target.value)),IconComponent:Um,variant:"standard",disableUnderline:!0,sx:q.select,children:[5,10,20,50].map(ne=>c.jsx(Ot,{value:ne,children:ne},ne))})]}),c.jsxs(N,{sx:q.navBox,children:[c.jsx(it,{size:"small",disabled:S<=1,onClick:()=>$(1),sx:q.iconButton,title:"First page",children:c.jsx(Hm,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:S<=1,onClick:()=>$(S-1),sx:q.iconButton,title:"Previous page",children:c.jsx(Ha,{sx:{width:16,height:16,opacity:1}})}),c.jsx(R,{component:"span",sx:q.pageText,children:C===0?"0 of 0":`${(S-1)*v+1}-${Math.min(S*v,C)} of ${C}`}),c.jsx(it,{size:"small",disabled:!O||S>=P,onClick:()=>$(S+1),sx:q.iconButton,title:"Next page",children:c.jsx(Dt,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:!O||S>=P,onClick:()=>$(P),sx:q.iconButton,title:"Last page",children:c.jsx(qm,{sx:{width:16,height:16,opacity:1}})})]})]})})()]}):c.jsxs(N,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[c.jsx(R,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),c.jsx(R,{sx:{fontSize:14,color:"#808080"},children:l.search&&String(l.search).trim()?"No category found for your search.":"No category available."})]})]}):c.jsx(zi,{handleStartSyncing:W,loading:h,sessionExpired:!1,hasIntegration:y.matched})})]})};function En({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:l,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:h,subtitleColor:x}){const y={width:"100%",maxWidth:600,height:58,boxSizing:"border-box",background:"#FFFFFF",borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},g=d?u||"#999999":h||"#000000",f=d?"#bbbbbb":x||"#808080",m={card:{...y,...p},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},title:{fontWeight:700,fontSize:12,color:g,lineHeight:"16px"},subtitle:{color:f,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return c.jsxs(N,{onClick:d?void 0:i,sx:{...m.card,...p||{}},children:[e&&c.jsx(N,{sx:m.icon,children:e}),c.jsxs(N,{sx:m.cardInner,children:[c.jsxs(N,{children:[c.jsx(R,{sx:m.title,children:t}),n&&c.jsx(R,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),l&&c.jsx(N,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:l})]})]})}const iI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ym=e=>{const t=sI(e);return t.charAt(0).toUpperCase()+t.slice(1)},Km=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),aI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var lI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const cI=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},d)=>z.createElement("svg",{ref:d,...lI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Km("lucide",i),...!s&&!aI(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>z.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Or=(e,t)=>{const n=z.forwardRef(({className:r,...i},s)=>z.createElement(cI,{ref:s,iconNode:t,className:Km(`lucide-${iI(Ym(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Ym(e),n};const dI=Or("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const uI=Or("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Gm=Or("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const pI=Or("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const fI=Or("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);const hI=Or("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const gI=Or("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Bd({size:e=15,color:t="#454545",...n}){return c.jsx(hI,{size:e,color:t,...n})}const mI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",yI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function bI(e){const{sx:t={},...n}=e;return c.jsxs(N,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[c.jsx(N,{component:"img",src:mI,alt:"",sx:{position:"absolute",width:12.25,height:12.25,top:1.84,left:1.84,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}}),c.jsx(N,{component:"img",src:yI,alt:"",sx:{position:"absolute",width:5.104,height:5.104,top:13.06,left:13.06,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}})]})}function vI({size:e=15,color:t="#454545",...n}){return c.jsx(dI,{size:e,color:t,...n})}function xI({size:e=15,color:t="#454545",...n}){return c.jsx(pI,{size:e,color:t,...n})}function SI({size:e=15,color:t="#454545",...n}){return c.jsx(fI,{size:e,color:t,...n})}function wI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:l=()=>{},integrationData:d={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=bt();d?.configs;const x=d?.configs?.sync_frequency||"Daily",y=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",f={width:600,maxWidth:"100%",minHeight:468,mx:"auto",mt:4,boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>c.jsxs(N,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[c.jsx(N,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),c.jsxs(N,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx(En,{icon:c.jsx(Bd,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(En,{icon:c.jsx(bI,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:c.jsx(N,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(xm,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),b=(v,C)=>c.jsxs(N,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),c.jsxs(N,{sx:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px",cursor:v?"not-allowed":"pointer",opacity:v?.5:1},onClick:v?void 0:C,children:[c.jsx(N,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx($i,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:"#2D64B8",width:62},children:"Sync Now"})]})]}),w=v=>{const C=v?x:"Daily",P=v?y:"10:00 AM",O=!v&&i===0;return c.jsxs(N,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[b(O,l),!v&&i===0&&c.jsx(En,{icon:c.jsx($i,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&c.jsxs(c.Fragment,{children:[c.jsx(En,{icon:c.jsx($i,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(En,{icon:c.jsx(Bd,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&c.jsxs(c.Fragment,{children:[c.jsx(En,{icon:c.jsx($i,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0,titleColorWhenDisabled:"#454545",action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(En,{icon:c.jsx(Bd,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})}),c.jsxs(N,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},children:[c.jsx(N,{sx:{width:296},children:c.jsx(En,{icon:c.jsx(vI,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:C,highlightStyle:u,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})}),c.jsx(N,{sx:{width:296},children:c.jsx(En,{icon:c.jsx(xI,{size:15,color:"#454545"}),title:"Sync Time",subtitle:P,highlightStyle:u,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})})]}),c.jsx(En,{icon:c.jsx(SI,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u,action:c.jsx(Dt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},S=i===3&&d&&Object.keys(d||{}).length>0;return c.jsxs(N,{sx:f,children:[m(),w(S)]})}const rr=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=(i=12)=>!n||!Array.isArray(n)||n.length===0?null:c.jsx(N,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:n.map((s,a)=>c.jsxs(z.Fragment,{children:[a>0&&c.jsx(Gm,{size:i,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:a===n.length-1?700:400,fontSize:a===n.length-1?"16px":"12px",lineHeight:a===n.length-1?"20px":"16px",letterSpacing:0,color:a===n.length-1?"#000000":"#808080",verticalAlign:"middle"},children:s.label})]},s.label))});return c.jsx(N,{sx:{position:"fixed",top:0,left:0,right:0,width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",opacity:1,color:"#FFFFFF",backgroundColor:"#FFFFFF",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",overflow:"hidden",zIndex:1100},children:c.jsxs(N,{sx:{width:"100%",maxWidth:1151,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"},children:[c.jsxs(N,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0},children:[c.jsxs(N,{onClick:t,sx:{width:48,height:16,gap:"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[c.jsx(Ha,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(R,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsx(N,{sx:{flex:1,minWidth:0,height:20,paddingLeft:"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:n&&n.length>0?r(12):c.jsxs(c.Fragment,{children:[c.jsx(R,{sx:{width:51,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),c.jsx(Gm,{size:12,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),c.jsx(R,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle"},children:e})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}}),c.jsxs(N,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"16px",flexShrink:0},children:[c.jsx(Dm,{}),c.jsx($m,{})]})]})})};function CI({open:e,onClose:t,onSave:n}){gn();const r=Cn(),[i,s]=z.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=h=>s(h.target.value),d=()=>{n&&n(i),t()},p=()=>{},u=r.productSettingModal;return c.jsx(so,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:c.jsxs(N,{sx:u.container,children:[c.jsxs(N,{sx:u.header,children:[c.jsx(R,{sx:u.headerTitle,children:"Sync Method"}),c.jsx(it,{onClick:t,size:"small",sx:u.closeButton,children:c.jsx(gI,{size:20})})]}),c.jsxs(N,{sx:u.content,children:[c.jsx($a,{value:i,onChange:l,children:a.map(h=>c.jsx(wn,{value:h.value,control:c.jsx(co,{icon:c.jsx(N,{sx:u.radioIcon}),checkedIcon:c.jsx(uI,{size:18,color:"#000"}),sx:u.radioChecked}),label:c.jsx(R,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),c.jsxs(N,{sx:u.upgradeSection,children:[c.jsx(R,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),c.jsx(R,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),c.jsx(N,{sx:u.footer,children:c.jsx(Ke,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const EI=({isOpen:e,onClose:t,onConfirm:n})=>{const r=Cn();let i;return i=r.productSettingModal,c.jsx(so,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:c.jsxs(N,{sx:i.container,children:[c.jsx(N,{sx:i.header,children:c.jsx(R,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),c.jsxs(N,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(Ke,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(Ke,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function TI(){const e=yt(),t=bt(),n=$t(),{companyId:r,integrationData:i,loading:s}=Le(I=>I?.dashboard||{}),[a,l]=z.useState(!0),[d,p]=z.useState(),[u,h]=z.useState(0),[x,y]=z.useState(""),[g,f]=z.useState(!1),[m,b]=z.useState(!1),[w,S]=z.useState(!1),[v,C]=z.useState(""),P=z.useRef(null),O=z.useRef(!1);z.useEffect(()=>{const I=e.state?.tenantIntegrationMatched===!0;r&&r!==P.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?P.current=r:(P.current=r,n(At(r)))),I&&r&&!s&&!O.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),O.current=!0,n(At(r))),I||(O.current=!1)},[r,n,s,i,e.state]),z.useEffect(()=>{let I=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(I=e.state.tenantIntegrationMatched);const F=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),W=e.state?.fromSyncStep===1?1:I===!0||F?3:0;queueMicrotask(()=>h(W))},[e.state,i]);const A=()=>f(!0),k=I=>{y(I),h(1),f(!1)},L=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},D=async()=>{const I=i?.channelId||i?.id;if(!I){C("Channel ID not found"),S(!0),b(!1);return}b(!1);try{const F=await n(Wo(I));if(Wo.fulfilled.match(F)){const W=F.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";C(W),S(!0),W==="Sync started successfully"&&setTimeout(()=>{n(At(r)),n(_n()),t("/")},2500)}else C("Sync not started successfully"),S(!0)}catch{C("Sync not started successfully"),S(!0)}},T=()=>{u===1?(h(0),y("")):t("/")};return c.jsxs(N,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,pt:"72px",display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx(rr,{breadcrumbRight:"Settings",onBack:T}),c.jsx(CI,{open:g,onClose:()=>f(!1),onSave:k}),c.jsx(EI,{isOpen:m,onClose:()=>b(!1),onConfirm:D}),c.jsx(po,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(wI,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:d,setSelectedCard:p,syncStep:u,syncMethod:x,integrationData:i,onSetupSync:A,onSetupFTP:L,onSyncNow:()=>b(!0)})]})}const PI=["Setup FTP","Check data","Start Sync"],OI=e=>{const{onBack:t}=e,n=yt(),r=bt();n.state?.tenantIntegrationData;const i=n.state?.fromSyncStep,s=()=>{t?t():i!==void 0?r("/product-setting",{state:{fromSyncStep:i,tenantIntegrationMatched:i===3}}):r("/product-setting")};return c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),c.jsxs(N,{sx:{maxWidth:800,mx:"auto",pt:"72px",px:2},children:[c.jsx(N,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:PI.map((a,l)=>c.jsx(R,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:l===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:224,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:a},a))}),c.jsx(N,{sx:{width:800,height:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:c.jsxs(rn,{elevation:0,sx:{width:400,height:210,gap:"24px",borderRadius:"20px",padding:"24px",background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(N,{sx:{width:352,height:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",verticalAlign:"middle",color:"#000000",opacity:1,width:145,height:20,margin:0},children:"Setup Instructions"}),c.jsxs(N,{component:"ol",sx:{margin:0,paddingLeft:"28px",listStylePosition:"outside",listStyleType:"decimal",fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0px",color:"#454545",opacity:1,width:352,height:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},children:[c.jsx("li",{children:"Directory should have just one file"}),c.jsx("li",{children:"File format must be in CSV (comma separated)"}),c.jsx("li",{children:"File structure should be flat"})]})]}),c.jsx(N,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})]})};function kI(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(zn,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[c.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function NI(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(zn,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[c.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),c.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}const II=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return c.jsx(N,{sx:{position:"relative",width:16,height:16,borderRadius:"50%",border:"1px solid",borderColor:i,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",boxSizing:"border-box",flexShrink:0},children:r?c.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:c.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):c.jsx("svg",{width:8,height:8,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:c.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2D64B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})},Ga=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:l,filledSegments:d,filledSegmentsStart:p=0,previousStepsComplete:u=!1})=>{const x=gn().transitions?.duration?.standard??400,[y,g]=z.useState(0),[f,m]=z.useState(!1),b=Math.max(1,e.length),w=50/b,S=100*(b-1)/b,v=40/b,C=b>1?100/b:0,P=100,O=z.useMemo(()=>{let A;if(typeof d=="number"){const L=typeof p=="number"?p:0,D=d-L;A=C*(L+y*D)}else typeof l=="number"?A=C*(l+y):s?A=y?S:0:r?A=y?S*.5:0:A=y?v:0;const k=Math.min(A,S)/S;return Math.round(k*P)},[y,d,p,l,s,r,C,S,v]);return z.useEffect(()=>{if(a){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof d=="number"&&typeof p=="number"&&p>0){setTimeout(()=>{g(0),m(!1)},0);const k=setTimeout(()=>{g(1),setTimeout(()=>m(!0),x)},50);return()=>clearTimeout(k)}setTimeout(()=>{g(0),m(!1)},0);const A=setTimeout(()=>{g(1),setTimeout(()=>m(!0),x)},50);return()=>clearTimeout(A)},[t,e.length,r,a,d,p,x]),c.jsxs(N,{sx:{width:800,opacity:1},children:[c.jsx(N,{sx:{width:800,height:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((A,k)=>c.jsxs(N,{sx:{width:256,height:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[c.jsx(II,{active:k===t,completed:k<t,showBlue:k===0&&i||k===1&&n&&(f||u)||k===2&&s}),c.jsx(N,{component:"span",sx:{width:224,height:16,fontFamily:"Inter, sans-serif",fontWeight:k===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:A})]},A))}),c.jsx(N,{sx:{width:"100%",mt:1,mb:0},children:c.jsx(N,{sx:{marginLeft:`${w}%`,width:`${S}%`},children:c.jsx(Zg,{variant:"progress",steps:P+1,position:"static",activeStep:O,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},AI=e=>e.dashboard?.companyId||"";function MI(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const FI=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=z.useState(null),s=yt(),a=bt(),l=Le(AI),[d,p]=z.useState(!1);z.useEffect(()=>{let k,L;return setTimeout(()=>{p(!1),k=setTimeout(()=>{L=setTimeout(()=>p(!0),600)},100)},0),()=>{k&&clearTimeout(k),L&&clearTimeout(L)}},[]);const[u,h]=z.useState(!1),x=localStorage.getItem("selectedSyncMethod")||"sftp",[y,g]=z.useState(`${x}:`),[f,m]=z.useState(""),[b,w]=z.useState(""),S=$t(),v=Le(k=>k.productSettings?.loading||!1),C=Le(k=>k.productSettings?.error||null),P=gn();Im(P.breakpoints.up("lg"));const O=Le(k=>k.productSettings.syncData);z.useEffect(()=>{const k=s.state?.ftpConfig,L=s.state?.tenantIntegrationData;if(O&&O.serverAddress){setTimeout(()=>{g(O.serverAddress||""),m(O.configs&&O.configs.username||""),w(O.configs&&O.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const D=t.type||"sftp",T=t.host||"",I=t.port||"",F=t.path||"",W=`${D}://${T}${I?`:${I}`:""}${F?`/${F}`:""}`;setTimeout(()=>{g(W),m(t.username||""),w(t.password||"")},0);return}if(L&&L.configs){const D=L.configs,T=D.type||L.type||"sftp",I=D.host||"",F=D.port||"",W=D.path||"",_=`${T}://${I}:${F}/${W}`,j=D.username||"",M=D.password||"";setTimeout(()=>{g(_),m(j),w(M)},0);return}if(k){const T=`${k.type||"sftp"}://${k.host}:${k.port}/${k.path}`,I=k.username||"",F=k.password||"";setTimeout(()=>{g(T),m(I),w(F)},0)}},[s.state,O,t]);const A=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:k,host:L,port:D,path:T}=MI(y),I=await S(jo({serverAddress:y,username:f,password:b,companyId:l}));if(!jo.fulfilled.match(I))return;const F=I.payload;if(s.state?.fromSettingsIcon){const j=F?.entity_type||r?.entity_type||"products",M={...r||{},companyId:l,tenantId:l,type:k,serverAddress:y,configs:{host:L,port:Number(D),path:T,username:f,password:b,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:j,mappings:r?.mappings||F?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log(JSON.stringify(M,null,2)),i(M),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:M}});return}const W=F?.entity_type||"",_={tenantId:l,type:k,serverAddress:y,configs:{host:L,port:Number(D),path:T,username:f,password:b,sync_frequency:"",sync_time:""},entity_type:W||"products",mappings:F?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(_,null,2)),S(Ps(_)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),e.onNext&&e.onNext({putjson:_})};return c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),c.jsxs(N,{sx:{width:800,minHeight:600,gap:"32px",opacity:1,pt:"88px",left:"340px",mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(N,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...n,showSetupFtpBlueTick:d})}),c.jsx(N,{sx:{width:800,height:504,minHeight:504,borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},children:c.jsxs(N,{sx:{width:400,height:380,borderRadius:"20px",padding:"24px",gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(N,{sx:{width:352,height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:c.jsx(R,{sx:{width:102,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",color:"#000000",opacity:1,margin:0},children:"Login Details"})}),c.jsxs(N,{component:"form",autoComplete:"off",sx:{width:352,height:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(N,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Server Address"}),c.jsx("input",{type:"text",value:y,onChange:k=>g(k.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),c.jsxs(N,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Username"}),c.jsx("input",{type:"text",value:f,onChange:k=>m(k.target.value),placeholder:"Enter username",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),c.jsxs(N,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Password"}),c.jsx("input",{type:u?"text":"password",value:b,onChange:k=>w(k.target.value),placeholder:"Enter password",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}}),c.jsx(it,{"aria-label":"toggle password visibility",onClick:()=>h(k=>!k),tabIndex:-1,size:"small",sx:{position:"absolute",right:11,top:35,color:"#454545",width:16,height:16,padding:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"#222"},"& .MuiSvgIcon-root":{width:16,height:16,fontSize:16}},children:u?c.jsx(NI,{}):c.jsx(kI,{})})]})]}),c.jsxs(N,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[c.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:A,disabled:v,children:v?"Loading...":"Next"})]}),C&&c.jsx(R,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})]})},_I=e=>e.productSettings.ftpColumns||[],DI=e=>e.productSettings.preview||[],$I=e=>e.productSettings.loading,zI=e=>e.productSettings.error,LI=e=>e.productSettings.existingMapping,jI=e=>e.productSettings.entity_type||"products",BI=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=yt(),a=bt(),l=s.state?.fromSettingsIcon,[d,p]=z.useState(()=>{if(s.state?.putjson)return s.state.putjson;const _=window.localStorage.getItem("ftpSyncPutjson");return _?JSON.parse(_):t.length>0?{mappings:t}:null}),[u,h]=z.useState([]),[x,y]=z.useState({}),g=Le(_I),f=Le(DI),m=Le($I),b=Le(zI),w=Le(LI),S=Le(jI),v=z.useRef(m);z.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>y({})),v.current=m},[m]);const C=z.useRef(!1);z.useLayoutEffect(()=>{w==null||!w?.mappings||w.mappings.length===0?C.current||(C.current=!0,queueMicrotask(()=>y({}))):C.current=!1},[w]);const P=$t();z.useEffect(()=>{async function _(){try{let j=[];if(w?.mappings?.length>0){const M=w.mappings.map(B=>B.target_field).filter(B=>B&&typeof B=="string");j=[...new Set(M)]}try{const M=await P(Ro(S));Ro.fulfilled.match(M)&&Array.isArray(M.payload)&&M.payload.filter($=>$&&typeof $=="string").forEach($=>{j.includes($)||j.push($)})}catch{}if(t&&t.length>0){const M=t.map(B=>B.target_field).filter(B=>B&&typeof B=="string"&&!j.includes(B));M.length>0&&(j=[...j,...M])}j=j.filter(M=>M&&typeof M=="string"),h(j)}catch{if(w?.mappings?.length>0){const j=w.mappings.map(B=>B.target_field).filter(B=>B&&typeof B=="string"),M=[...new Set(j)];h(M)}else h([])}}(S||w?.mappings?.length>0||t&&t.length>0)&&_()},[S,w,t,P]);const O=z.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const _=w.mappings.map(j=>j.source_field).filter(j=>j);if(_.length>0)return _}return g&&g.length>0?g:[]},[w,g]),A=z.useMemo(()=>f.filter(j=>Object.keys(j).length>0),[f]),k=z.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const _={};return w.mappings.forEach(j=>{j.source_field&&j.target_field&&(_[j.source_field]=j.target_field)}),_}return{}},[w]),D=w?.mappings?.length>0?{...k,...x}:{...x},T=gn();Im(T.breakpoints.up("lg"));const I=Le(_=>_.productSettings.syncData),F=z.useMemo(()=>{if(I?.serverAddress)return I.serverAddress;const _=I?.configs||{},j=(I?.type||"sftp").toLowerCase(),M=_.host,B=_.port,$=_.path;if(!M)return"";let V=`${j}://${M}`;if(B!=null&&B!==""&&(V+=`:${B}`),$){const G=String($).replace(/^\/+/,"");V+=`/${G}`}return V},[I]),W=()=>{const _=O.map($=>({source_field:$||"",target_field:D[$]||""})).filter($=>$.source_field&&$.target_field);if(_.length===0)return;if(l&&d){const $={...d,tenantId:d.tenantId||d.companyId,type:d.type||I.type||"sftp",entity_type:d.entity_type||I.entity_type||"products",mappings:_};p($),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),r?r({fromSettingsIcon:!0,putjson:$}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:$});return}const j=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),M=I.companyId||j.companyId||j.tenantId||"",B={...j,companyId:M,tenantId:M,type:I.type||j.type||"sftp",integration_type:I.integration_type||j.integration_type||"",entity_type:j.entity_type||I.entity_type||"products",configs:I.configs||j.configs||{},ftp_columns:O,preview:A,mappings:_};P(Ps(B)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),r?r({putjson:B}):e.onNext&&e.onNext({putjson:B})};return c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}}))}),c.jsxs(N,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(N,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...i})}),c.jsx(N,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:c.jsxs(rn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[c.jsxs(N,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(N,{children:[c.jsx(R,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),F&&c.jsx(R,{variant:"body2",sx:{color:"#888",mt:.5},children:F})]}),c.jsxs(N,{children:[c.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:W,children:"Next"})]})]}),c.jsx(Tm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?c.jsx(N,{sx:{p:3,textAlign:"center"},children:"Loading..."}):b?c.jsx(N,{sx:{p:3,color:"red",textAlign:"center"},children:b}):O.length===0?c.jsx(N,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):c.jsxs(wm,{size:"small",children:[c.jsxs(Om,{children:[c.jsxs(_i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),O.map((_,j)=>c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:_},_+j))]}),c.jsxs(_i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),O.map((_,j)=>c.jsx(nr,{sx:{background:"#fafafa",borderBottom:"none"},children:c.jsxs(Vn,{value:D[_]||"",onChange:M=>y(B=>({...B,[_]:M.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[c.jsx(Ot,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:c.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),u.map(M=>c.jsx(Ot,{value:M,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:M},M))]})},j))]})]}),c.jsx(Em,{children:A.length>0?A.map((_,j)=>c.jsxs(_i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:j===0?"Data preview":""}),O.map((M,B)=>c.jsx(nr,{sx:{background:"#fff",borderBottom:"none"},children:_[M]||""},B))]},j)):c.jsx(_i,{children:c.jsx(nr,{colSpan:O.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},WI=e=>e.dashboard?.companyId||"",RI=e=>e.dashboard?.integrationData||null,VI=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=yt(),s=bt(),a=$t(),l=Le(WI),d=Le(RI),p=i.state?.fromSettingsIcon,[u,h]=z.useState(()=>{if(i.state?.putjson){const M=JSON.parse(JSON.stringify(i.state.putjson));return M.mappings&&(M.originalMappings=JSON.parse(JSON.stringify(M.mappings))),M.configs?.sync_frequency&&!M.originalSyncFrequency&&(M.originalSyncFrequency=M.configs.sync_frequency),M.configs?.sync_time&&!M.originalSyncTime&&(M.originalSyncTime=M.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),M}const j=window.localStorage.getItem("ftpSyncPutjson");if(j){const M=JSON.parse(j);return M.mappings&&!M.originalMappings&&(M.originalMappings=JSON.parse(JSON.stringify(M.mappings))),M.configs?.sync_frequency&&!M.originalSyncFrequency&&(M.originalSyncFrequency=M.configs.sync_frequency),M.configs?.sync_time&&!M.originalSyncTime&&(M.originalSyncTime=M.configs.sync_time),M}return null});z.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[x,y]=z.useState(null),[g,f]=z.useState(null);z.useEffect(()=>{const j=i.state?.fromProductSetting;let M=null;if(j&&i.state?.integrationData)M=i.state.integrationData;else if(d&&Object.keys(d).length>0)M=d;else if(l&&!j){a(At(l)).then(B=>{if(At.fulfilled.match(B)){const $=B.payload;if(M=$&&$.data&&$.data[0]||null,M){y(M);const V=M.id||M.channelId||null;V&&f(V)}}});return}if(M){y(M);const B=M.id||M.channelId||null;B&&f(B)}},[l,i.state,d,a]);const m=!!p||!!x,b=j=>{if(!j)return"";const M=j.charAt(0).toUpperCase()+j.slice(1).toLowerCase();return M==="Daily"||M==="Day"?"Daily":M==="Weekly"||M==="Week"?"Weekly":M==="Monthly"||M==="Month"?"Monthly":M},[w,S]=z.useState(()=>{if(t)return b(t);const j=u?.configs?.sync_frequency?b(u.configs.sync_frequency):"";return j||"Daily"}),[v,C]=z.useState(n||u&&u.configs?.sync_time||"");z.useEffect(()=>{async function j(){if(l)try{const M=i.state?.fromProductSetting;let B=null;if(M&&i.state?.integrationData)B=i.state.integrationData;else if(d&&Object.keys(d).length>0)B=d;else{const $=await a(At(l));if(At.fulfilled.match($)){const V=$.payload;B=V&&V.data&&V.data[0]||null}}if(B){const $=B.id||B.channelId||null;$&&f($);const V=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),G={...B,companyId:B.companyId||l,entity_type:B.entity_type||V?.entity_type||"product",mappings:B.mappings||V?.mappings||[]},K=B.configs?.sync_frequency||"",Z=B.configs?.sync_time||"",Q=b(K);if(h(G),M){if(t){const J=b(t);S(J)}n&&C(n),h(J=>({...J,...G,originalSyncFrequency:t?b(t):J.originalSyncFrequency||Q,originalSyncTime:n||J.originalSyncTime||Z,configs:{...G.configs,sync_frequency:t?b(t).toLowerCase():G.configs?.sync_frequency,sync_time:n||G.configs?.sync_time}}))}else{const J=t?b(t):"";if(J)S(J);else if(Q)S(Q);else if(V?.configs?.sync_frequency){const ae=b(V.configs.sync_frequency);S(ae)}else S("Daily");n?C(n):Z?C(Z):V?.configs?.sync_time?C(V.configs.sync_time):C(""),h(G),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G))}}}catch{const M=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&M?.configs?.sync_frequency?S(b(M.configs.sync_frequency)):t&&S(b(t)),!n&&M?.configs?.sync_time?C(M.configs.sync_time):n&&C(n)}}j()},[l]),z.useEffect(()=>{if(t){const j=b(t);S(j),u&&u.configs?.sync_frequency!==j&&h(M=>{const B={...M,configs:{...M.configs,sync_frequency:j}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),B})}},[t]),z.useEffect(()=>{n&&(C(n),u&&u.configs?.sync_time!==n&&h(j=>{const M={...j,configs:{...j.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),M}))},[n]),z.useEffect(()=>{if(u&&m&&(w||v)){const j=u.configs?.sync_frequency,M=u.configs?.sync_time;(j!==w||M!==v)&&h(B=>{const $={...B,configs:{...B.configs,sync_frequency:w||B.configs?.sync_frequency,sync_time:v||B.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$})}},[w,v,m]);const P=Le(j=>j.productSettings.syncData),O=j=>{const M=j.target.value;S(M),u&&h(B=>{const $={...B,configs:{...B.configs,sync_frequency:M}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$}),m||a(Ps({...P,configs:{...P&&P.configs||{},sync_frequency:M,sync_time:v}}))},A=j=>{const M=j.target.value;C(M),u&&h(B=>{const $={...B,configs:{...B.configs,sync_time:M}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),$}),m||a(Ps({...P,configs:{...P&&P.configs||{},sync_frequency:w,sync_time:M}}))};function k(j){try{const M=new URL(j);return{type:M.protocol.replace(":",""),host:M.hostname,port:M.port,path:M.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[L,D]=z.useState(!1),[T,I]=z.useState(""),F=async()=>{const j=i.state?.fromProductSetting;if(m){if(!u){I("Update failed: missing data."),D(!0);return}let U={...u};u.originalMappings||(U.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],h(U)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(U.originalSyncFrequency=u.configs.sync_frequency||"",h(U)),!u.originalSyncTime&&u.configs?.sync_time&&(U.originalSyncTime=u.configs.sync_time||"",h(U));const de=JSON.parse(JSON.stringify(u.mappings||[])),re=JSON.parse(JSON.stringify(u.originalMappings||[]));let oe,pe;j?(oe=t?b(t):"",pe=n||""):(oe=u.originalSyncFrequency||u.configs?.sync_frequency||"",pe=u.originalSyncTime||u.configs?.sync_time||"",oe=b(oe));const he=j?!1:JSON.stringify(de)!==JSON.stringify(re),we=w!==oe,Ae=v!==pe,De=(we||Ae)&&!he,Me=he;if(De){const ce=g||u?.id||u?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!ce){I("Channel ID is missing. Please try again."),D(!0);return}const Xe={configs:{}};we&&(Xe.configs.sync_frequency=w.toLowerCase()),Ae&&(Xe.configs.sync_time=v);try{const Ne=await a(Vo({channelId:ce,data:Xe}));if(Ne.error||Vo.rejected.match(Ne)){const fe=Ne.payload||Ne.error?.message||"Update failed. Please try again.";I(fe),D(!0);return}let ie="";we&&!Ae?ie="SyncFrequency Updated":!we&&Ae?ie="SyncTime Updated":we&&Ae&&(ie="SyncTime and SyncFrequency Updated"),I(ie),D(!0),h(fe=>{const Ce={...fe,configs:{...fe.configs,sync_frequency:w.toLowerCase(),sync_time:v},originalSyncFrequency:w,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce)),Ce});const te=i.state?.fromProductSetting;te&&l&&await a(At(l)),setTimeout(()=>{te&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Ne){const ie=Ne?.message||Ne?.response?.data?.message||"Update failed. Please try again.";I(ie),D(!0);return}}if(Me){const ce={...u,configs:{...u.configs,sync_frequency:w.toLowerCase(),sync_time:v}};h(ce),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ce));const Xe=ce.tenantId||ce.companyId;if(!ce.configs){I("Configuration error. Please try again."),D(!0);return}const Ne=ce.entity_type||u?.entity_type;if(!Ne){I("Entity type is missing. Please try again."),D(!0);return}const ie={tenantId:Xe,type:ce.type,entity_type:Ne,configs:{host:ce.configs.host||"",port:ce.configs.port?Number(ce.configs.port):0,username:ce.configs.username||"",password:ce.configs.password||"",path:ce.configs.path||"",sync_frequency:w.toLowerCase()||"",sync_time:v||""},mappings:(ce.mappings||[]).map(te=>({source_field:te.source_field,target_field:te.target_field}))};if(!ie.tenantId){I("Tenant ID is missing. Please try again."),D(!0);return}if(!ie.type){I("Sync type is missing. Please try again."),D(!0);return}if(!ie.entity_type){I("Entity type is missing. Please try again."),D(!0);return}try{const te=await a(jr(ie));if(jr.rejected.match(te)){const fe=te.payload||te.error?.message||"Update failed. Please try again.";I(fe),D(!0);return}jr.fulfilled.match(te)?(h(fe=>{const Ce={...fe,originalSyncFrequency:w,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(fe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce)),Ce}),I("Sync Update Successfully"),D(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(I("Update failed. Please try again."),D(!0))}catch(te){const fe=te?.message||te?.response?.data?.message||"Update failed. Please try again.";I(fe),D(!0)}}else I("No changes detected."),D(!0);return}const M=P.configs||{},B=k(P.serverAddress||""),$=M.host||B.host,V=M.port!=null?Number(M.port):parseInt(B.port,10),G=(M.path||B.path||"").replace(/^\//,""),K=P.type||B.type||"sftp",Z=P.username||M.username||"",Q=P.password||M.password||"",J=w||M.sync_frequency||"",ae=typeof J=="string"?J.toLowerCase():J;let se=v||M.sync_time||"";if(typeof se=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(se.trim())){const[U,de]=se.trim().split(/\s+/),[re,oe]=U.split(":").map(Number),pe=de.toUpperCase()==="PM"&&re!==12?re+12:de.toUpperCase()==="AM"&&re===12?0:re;se=`${String(pe).padStart(2,"0")}:${String(oe).padStart(2,"0")}`}else typeof se=="string"&&(se=se.trim());const le=(P.mappings||[]).filter(U=>U.source_field&&U.target_field).map(U=>({source_field:U.source_field,target_field:U.target_field}));if(!l){I("Company ID is required. Please ensure the app is properly configured."),D(!0);return}if(!$||!V||!Z||!Q||le.length===0){I("Please fill all required fields and mappings before saving."),D(!0);return}const q=P.entity_type||"products",ne={tenantId:l,type:K,entity_type:q,configs:{host:$,port:Number(V),username:Z,password:Q,path:G,sync_frequency:ae,sync_time:se},mappings:le};try{const U=await a(Bo(ne));Bo.fulfilled.match(U)?(I("Save and Start Sync Updated Successfully"),D(!0),e.onNext&&e.onNext()):(I(U?.payload||"Save failed. Please try again."),D(!0))}catch{I("Save failed. Please try again."),D(!0)}},[W,_]=z.useState(!1);return z.useEffect(()=>{const j=setTimeout(()=>_(!0),850);return()=>clearTimeout(j)},[]),c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),c.jsxs(N,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(N,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...r,showStartSyncBlueTick:W})}),c.jsx(N,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsx(N,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:c.jsxs(rn,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[c.jsxs(N,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[c.jsxs(N,{sx:{flex:1},children:[c.jsx(R,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),c.jsxs(Vn,{size:"small",value:w,onChange:O,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[c.jsx(Ot,{value:"Daily",children:"Daily"}),c.jsx(Ot,{value:"Weekly",children:"Weekly"}),c.jsx(Ot,{value:"Monthly",children:"Monthly"})]})]}),c.jsxs(N,{sx:{flex:1},children:[c.jsx(R,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),c.jsx(Di,{type:"time",size:"small",value:v,onChange:A,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),c.jsxs(N,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[c.jsx(Ke,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),c.jsx(Ke,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:F,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),c.jsx(po,{open:L,autoHideDuration:4e3,onClose:()=>D(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},UI=e=>{const{onBack:t,stepperProps:n={}}=e,r=$t(),s=!!Le(p=>p.productSettings.saveResult),[a,l]=z.useState(s),d=bt();return z.useEffect(()=>{s&&(l(!0),r(l1()))},[s,r]),c.jsxs(c.Fragment,{children:[c.jsx(po,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>d("/products/settings/ftp-sync",{state:{step:3}}))}),c.jsxs(N,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(N,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(Ga,{...n})}),c.jsx(N,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsxs(N,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[c.jsx(N,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:c.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),c.jsx(R,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),c.jsx(Ke,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>d("/"),children:"Back to all products"})]})})]})]}),c.jsx(po,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function HI(e){const t=yt(),n=bt(),r=t.state?.fromProductSetting?3:0,[i,s]=z.useState(r),a=$t(),{companyId:l,integrationData:d}=Le(v=>v.dashboard),p=t.state?.fromSyncStep;z.useEffect(()=>{const v=t.state?.fromProductSetting;l&&!v&&a(At(l))},[l,a,t.state]);const u=()=>{s(v=>Math.min(v+1,4))},h=()=>{if(i===0&&p!==void 0){n("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(v=>Math.max(v-1,0))},x=d?.configs||{},y=d?.mappings||d?.dataMappings||[],f=(v=>{if(!v)return"";const C=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return C==="Daily"||C==="Day"?"Daily":C==="Weekly"||C==="Week"?"Weekly":C==="Monthly"||C==="Month"?"Monthly":C})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"",b=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],S={0:{steps:b,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:b,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:b,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(i){case 0:return c.jsx(OI,{onNext:u,onBack:h,stepperProps:S[0],...e});case 1:return c.jsx(FI,{onNext:u,onBack:h,ftpDetails:x,stepperProps:S[1],...e});case 2:return c.jsx(BI,{onNext:u,onBack:h,mapping:y,stepperProps:S[2],...e});case 3:return c.jsx(VI,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,stepperProps:S[3],...e});case 4:return c.jsx(UI,{onBack:h,stepperProps:S[4],...e});default:return null}}const qI=We(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),YI=We([c.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),c.jsx("path",{d:"M9 12h6v2H9z"},"1")],"Inventory2Outlined"),KI=We(c.jsx("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline"),GI=We(c.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),XI=We(c.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),JI=We(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3M6 6h9v4H6z"}),"SaveOutlined"),QI=We(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Wd=We(c.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),ZI=We(c.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),eA=We(c.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tA(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onBack:l,onPageChange:d,onRowsPerPageChange:p,onSave:u,onDelete:h,onStatusChange:x,updateCatalogError:y=null,updateCatalogLoading:g=!1}=e,[f,m]=z.useState(null),[b,w]=z.useState({name:"",slug:"",status:!0}),S=k=>{const L=k.slugRaw??(typeof k.slug=="string"?k.slug.replace(/^\//,""):"")??"",D=k.status==="Active"||k.status===!0;m(k.id),w({name:k.name??"",slug:L,status:D})},v=async k=>{if(typeof u!="function")return;const L=b.slug.trim().replace(/^\//,""),D={id:k.id,name:b.name.trim(),slug:L||b.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:b.status};await u(D),m(null)},C=()=>{m(null)},P=t,O=Math.max(0,Number(n)||0),A=Math.max(0,Math.ceil(O/Math.max(1,i))-1);return c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[c.jsx(rr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:l}),c.jsxs(N,{sx:{maxWidth:900,mx:"auto",pt:4,pb:4},children:[c.jsxs(R,{sx:{fontWeight:700,fontSize:20,color:"#111",mb:3},children:["All Catalogs"," ",c.jsx(N,{component:"span",sx:{fontWeight:400,color:"#888",fontSize:18,ml:.5},children:n})]}),y&&c.jsx(R,{color:"error",sx:{mb:2},children:y}),P.map(k=>{const L=f===k.id;return c.jsxs(rn,{elevation:0,sx:{p:2.5,mb:2,borderRadius:2,bgcolor:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"flex-start",gap:2,flex:1,minWidth:0},children:[c.jsx(qI,{sx:{color:"#666",fontSize:24,mt:.25}}),c.jsxs(N,{sx:{minWidth:0,flex:1},children:[L?c.jsxs(c.Fragment,{children:[c.jsx(Di,{label:"Name",size:"small",value:b.name,onChange:D=>w(T=>({...T,name:D.target.value})),fullWidth:!0,sx:{mb:1.5,"& .MuiInputBase-root":{fontSize:16,fontWeight:700}}}),c.jsx(Di,{label:"Slug",size:"small",value:b.slug,onChange:D=>w(T=>({...T,slug:D.target.value})),fullWidth:!0,placeholder:"/catalog-slug",sx:{mb:1.5}})]}):c.jsxs(c.Fragment,{children:[c.jsx(R,{sx:{fontWeight:700,fontSize:16,color:"#111"},children:k.name}),c.jsx(R,{sx:{color:"#888",fontSize:14,mt:.25},children:k.slug})]}),c.jsx(N,{sx:{display:"flex",alignItems:"center",gap:2,mt:1,flexWrap:"wrap"},children:c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(YI,{sx:{fontSize:18,color:"#888"}}),c.jsxs(R,{sx:{fontSize:14,color:"#555"},children:[k.productsCount," Products"]})]})}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:2,mt:.5,flexWrap:"wrap"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(KI,{sx:{fontSize:18,color:"#888"}}),c.jsxs(R,{sx:{fontSize:14,color:"#555"},children:["By ",k.createdBy]})]}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.75},children:[c.jsx(GI,{sx:{fontSize:18,color:"#888"}}),c.jsx(R,{sx:{fontSize:14,color:"#555"},children:k.date})]})]})]})]}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5,flexShrink:0,ml:2},children:[L?c.jsxs(Vn,{size:"small",value:b.status?"Active":"Inactive",onChange:D=>w(T=>({...T,status:D.target.value==="Active"})),sx:{minWidth:100,height:36,fontWeight:600,fontSize:14,borderRadius:1.5,bgcolor:b.status?"#e8f5e9":"#f5f5f5",color:b.status?"#2e7d32":"#666","& .MuiSelect-select":{py:1}},children:[c.jsx(Ot,{value:"Active",children:"Active"}),c.jsx(Ot,{value:"Inactive",children:"Inactive"})]}):c.jsx(N,{onClick:()=>{if(typeof x!="function"||g)return;const T=(typeof a=="function"?a(k):s[k.id]??k.status??"Active")!=="Active";x(k,T)},sx:{minWidth:100,height:36,display:"flex",alignItems:"center",justifyContent:"center",px:.025,bgcolor:(typeof a=="function"?a(k):s[k.id]??k.status??"Active")==="Active"?"#e8f5e9":"#f5f5f5",color:(typeof a=="function"?a(k):s[k.id]??k.status??"Active")==="Active"?"#2e7d32":"#666",fontWeight:600,fontSize:18,borderRadius:1.5,cursor:typeof x=="function"&&!g?"pointer":"default",opacity:g?.7:1,"&:hover":typeof x=="function"&&!g?{opacity:.9}:{}},children:typeof a=="function"?a(k):s[k.id]??k.status??"Active"}),L?c.jsxs(c.Fragment,{children:[c.jsx(it,{size:"small",sx:{color:"#1976d2"},"aria-label":"Save catalog",disabled:g,onClick:()=>v(k),children:c.jsx(JI,{sx:{fontSize:22}})}),c.jsx(Ke,{size:"small",onClick:C,sx:{minWidth:0,px:1},children:"Cancel"})]}):c.jsx(it,{size:"small",sx:{color:"#666"},"aria-label":"Edit catalog",onClick:()=>S(k),children:c.jsx(XI,{sx:{fontSize:22}})}),c.jsx(it,{size:"small",sx:{color:"#666"},"aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(k):null,children:c.jsx(QI,{sx:{fontSize:22}})})]})]},k.id)}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:2,mt:4,flexWrap:"wrap"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[c.jsx(R,{sx:{fontSize:14,color:"#555"},children:"Results per page"}),c.jsxs(Vn,{size:"small",value:i,onChange:k=>typeof p=="function"?p(k):null,IconComponent:Wd,sx:{minWidth:56,height:36,fontSize:14,"& .MuiSelect-select":{py:1}},children:[c.jsx(Ot,{value:5,children:"5"}),c.jsx(Ot,{value:10,children:"10"}),c.jsx(Ot,{value:25,children:"25"})]})]}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.5},children:[c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(0):null,disabled:r===0,"aria-label":"First page",children:c.jsx(ZI,{})}),c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(Math.max(0,r-1)):null,disabled:r===0,"aria-label":"Previous page",children:c.jsx(_m,{})}),c.jsx(R,{sx:{fontSize:14,color:"#555",px:1.5},children:O===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,O)} of ${O}`}),c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(r+1):null,disabled:r>=A,"aria-label":"Next page",children:c.jsx(jm,{})}),c.jsx(it,{size:"small",onClick:()=>typeof d=="function"?d(A):null,disabled:r>=A,"aria-label":"Last page",children:c.jsx(eA,{})})]})]})]})]})}const nA=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=Cn().productSettingModal;return c.jsx(so,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:s.modal,children:c.jsxs(N,{sx:s.container,children:[c.jsx(N,{sx:s.header,children:c.jsxs(R,{sx:{...s.headerTitle,fontSize:22},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),c.jsxs(N,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(Ke,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(Ke,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function rA(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function oA(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,slugRaw:typeof t=="string"?t.replace(/^\//,""):t||"",productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:rA(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function iA(e){const t=bt(),n=$t(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Le(B=>B.productSettings??{}),{updateCatalogLoading:l=!1,updateCatalogError:d=null}=Le(B=>B.dashboard??{}),[p,u]=z.useState(0),[h,x]=z.useState(10),[y,g]=z.useState({}),[f,m]=z.useState(!1),[b,w]=z.useState(null),[S,v]=z.useState(!1),[C,P]=z.useState("");z.useEffect(()=>{n(tn({page:p+1,limit:h}))},[n,p,h]),z.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const O=z.useMemo(()=>Array.isArray(r)?r.map(oA).filter(Boolean):[],[r]),A=i,k=B=>u(B),L=B=>{const $=Number(B.target.value);x($),u(0)},D=B=>y[B.id]??B.status,T=()=>t(-1),I=async B=>{const{id:$,name:V,slug:G,status:K}=B;await n(Lo({id:$,name:V,slug:G,status:K})).unwrap(),n(tn({page:p+1,limit:h}))},F=async(B,$)=>{const V=B.slugRaw??(typeof B.slug=="string"?B.slug.replace(/^\//,""):"")??"";g(G=>({...G,[B.id]:$?"Active":"Inactive"}));try{await n(Lo({id:B.id,name:B.name??"",slug:V,status:$})).unwrap(),n(tn({page:p+1,limit:h}))}catch{g(G=>({...G,[B.id]:B.status}))}},W=B=>{w(B),m(!0)},_=()=>{m(!1),w(null)},j=async()=>{if(!b?.id){_();return}try{await n(Es(b.id)).unwrap(),P("Catalog delete Successfully"),v(!0),_(),n(tn({page:p+1,limit:h}))}catch{P("Failed to delete catalog"),v(!0)}},M=c.jsx(rr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:T});return s&&O.length===0?c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[M,c.jsx(N,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:c.jsx(ua,{})})]}):a&&O.length===0?c.jsxs(N,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[M,c.jsx(N,{sx:{textAlign:"center",py:4},children:c.jsx(R,{color:"error",children:a})})]}):c.jsxs(c.Fragment,{children:[c.jsx(tA,{catalogs:O,totalCount:A,page:p,rowsPerPage:h,statusById:y,getStatus:D,onBack:T,onPageChange:k,onRowsPerPageChange:L,onStatusChange:F,onSave:I,onDelete:W,updateCatalogError:d,updateCatalogLoading:l,...e}),c.jsx(nA,{isOpen:f,onClose:_,onConfirm:j,catalogName:b?.name}),c.jsx(po,{open:S,autoHideDuration:4e3,onClose:()=>v(!1),message:C,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const Xm=We(c.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),sA=We([c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),c.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function aA(e){return c.jsx(sA,{...e})}function Jm(e){return c.jsx(zn,{viewBox:"0 0 24 24",...e,children:c.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",fill:"currentColor"})})}function lA({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,onPageChange:l,onLimitChange:d}){const p=e?.categoryTableAllStore??{},u=e?.categoryTableSingleStore??{},h=e?.categoryTablePagination??{},x=O=>t.some(A=>A.id===O.id),[y,g]=z.useState(null),[f,m]=z.useState([]),b=(O,A)=>{g(O.currentTarget),m(A)},w=()=>{g(null),m([])},S=!!y,v=!s,C=v?u.outerCard:p.outerCard,P=v?"6px":"4px";return c.jsxs(Rn,{sx:{...e.categoryTable,...C,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible"},children:[c.jsx(N,{sx:{...p.categoryNameBox,display:"flex",alignItems:"center",mb:P},children:c.jsx(R,{sx:p.categoryNameText,children:i})}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",...v?u.tableHeader:p.tableHeader,boxSizing:"border-box",gap:v?"32px":"16px"},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:v?"32px":"16px",flex:"0 0 auto"},children:[c.jsx(Pt,{checked:n.length>0&&n.every(x),indeterminate:n.some(x)&&!n.every(x),onChange:()=>{n.every(x)?n.forEach(O=>r(O,i,!1)):n.forEach(O=>{x(O)||r(O,i,!0)})},size:"small",sx:{p:0,width:16,height:16,color:v?"#F3F8FF":"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:v?"0.5px solid #2D64B8":"0.5px solid #D0D5DD",bgcolor:v?"#F3F8FF":"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:v?"#F3F8FF":"#FFFFFF",color:v?"#2D64B8":"#1976d2",border:v?"0.5px solid #2D64B8":"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:v?"#F3F8FF":"#FFFFFF",color:v?"#2D64B8":"#1976d2",border:v?"0.5px solid #2D64B8":"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:`0.5px solid ${v?"#2D64B8":"#D0D5DD"}`,background:v?"#F3F8FF":"#FFFFFF"}}),checkedIcon:v?c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2D64B8",background:"#F3F8FF",position:"relative"},children:c.jsx(Jm,{sx:{position:"absolute",top:2,left:2,fontSize:12,color:"#2D64B8"}})}):c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:v?c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2D64B8",background:"#F3F8FF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#2D64B8",borderRadius:2}})}):c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})})}),s?c.jsx(N,{sx:{display:"flex",alignItems:"center",width:p.headerProduct.width,flexShrink:0},children:c.jsx(R,{component:"span",sx:p.headerProduct,children:"Product"})}):c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerProduct},children:"Product"})]}),v?c.jsxs(c.Fragment,{children:[c.jsx(N,{sx:{minWidth:u.headerStatus.width,flexShrink:0,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerStatus},children:"Status"})}),c.jsx(N,{sx:{minWidth:u.headerPrice.width,flexShrink:0,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerPrice},children:"Price"})}),c.jsx(N,{sx:{minWidth:u.headerStock.width,flexShrink:0,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerStock},children:"Stock"})}),c.jsxs(N,{sx:{flexShrink:0,display:"flex",alignItems:"center",marginLeft:"10px"},children:[c.jsx(N,{sx:{minWidth:u.headerOffer.width,display:"flex",justifyContent:"flex-start"},children:c.jsx(R,{component:"span",sx:{...u.headerLabel,...u.headerOffer},children:"Offer"})}),c.jsx(jd,{sx:{...p.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"-10px"}})]})]}):c.jsxs(N,{sx:{display:"flex",alignItems:"center",...p.headerStatusOsa,flex:"0 0 auto"},children:[c.jsx(R,{component:"span",sx:p.headerStatusText,children:"Status"}),c.jsxs(N,{sx:{display:"inline-flex",alignItems:"center",flexShrink:0},children:[c.jsx(R,{component:"span",sx:p.headerOsaText,children:"Stock / OSA"}),c.jsx(jd,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})]})]})]}),n.map((O,A)=>{let k=[];O.offers&&Array.isArray(O.offers)?k=O.offers:O.offer&&typeof O.offer=="string"&&O.offer.includes(`
236
236
  `)?k=O.offer.split(`
237
- `):O.offer&&Array.isArray(O.offer)?k=O.offer:O.offer&&(k=[O.offer]);const L=k[0]||"",D=k.length>1?k.slice(1):[];return c.jsxs(I,{sx:{display:"flex",alignItems:"center",...v?u.rowCard:p.rowCard,boxSizing:"border-box",mt:A===0?v?0:.5:0,mb:.5},children:[c.jsx(I,{sx:{display:"flex",alignItems:"center",width:16,height:v?16:20,gap:"8px",flexShrink:0},children:c.jsx(Pt,{checked:x(O),onChange:()=>r(O,i),size:"small",sx:{p:0,width:16,height:16,color:v?"#F3F8FF":"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:v?"#F3F8FF":"#FFFFFF",color:v?"#2D64B8":"#2563EB",border:v?"0.5px solid #2D64B8":"0.5px solid #2563EB"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),checkedIcon:v?c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2D64B8",background:"#F3F8FF",position:"relative"},children:c.jsx(Jm,{sx:{position:"absolute",top:2,left:2,fontSize:12,color:"#2D64B8"}})}):c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",height:56,gap:"16px",flexShrink:0,minWidth:0,width:v?237:"100%",maxWidth:v?237:480},children:[c.jsx(I,{sx:{...p.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:O.productImage?c.jsx(Ta,{src:O.productImage,alt:O.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(Ta,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:O.productName&&O.productName[0]})}),c.jsxs(I,{sx:{display:"flex",flexDirection:"column",gap:"4px",width:v?u.productDetailsWidth:408,minWidth:0,maxWidth:"100%"},children:[c.jsx(R,{sx:p.productName,children:O.productName}),c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[c.jsx(R,{sx:p.productMeta,children:O.productWeight}),O.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(R,{component:"span",sx:{...p.productMeta,...p.productMetaBullet},children:"•"}),c.jsx(R,{component:"span",sx:p.productMeta,children:O.categoryName})]})]}),c.jsxs(R,{sx:p.productSku,children:["SKU: ",O.sku]})]})]}),c.jsxs(I,{sx:{display:"flex",alignItems:"flex-start",...v?u.statusBlock:p.statusOsaBlock,flexShrink:0,...v&&{alignSelf:"flex-start",marginTop:"8px"}},children:[c.jsx(I,{component:"span",sx:O.status===!0?p.statusActiveBox:p.statusNoStockBox,children:O.status===!0?"Active":"No Stock"}),!v&&c.jsxs(I,{sx:{display:"flex",flexDirection:"column",gap:"4px",width:120},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&c.jsx(wd,{title:"No stock",children:c.jsx(Xm,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(R,{component:"span",sx:p.stockValue,children:O.stock}),c.jsx(R,{component:"span",sx:p.osaValue,children:O.quantity?`/ ${O.quantity}`:""})]}),(()=>{const T=Number(typeof O.osa=="number"?O.osa:O.osa??0),N=T<50;return c.jsxs(R,{sx:{...p.onShelfText,color:"#808080"},children:[c.jsxs(I,{component:"span",sx:N?{color:"#d32f2f"}:{},children:[Math.round(T),"%"]})," on shelf"]})})()]})]}),v&&c.jsxs(I,{sx:{display:"flex",flexDirection:"column",...u.priceBlock,flexShrink:0},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(R,{sx:u.priceText,children:["₹",O.price]}),c.jsx(I,{sx:{...u.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(aA,{sx:{fontSize:14,color:"#808080"}})})]}),O.mrp&&c.jsxs(R,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",O.mrp]}),O.discount&&c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:O.discount})]}),v&&c.jsxs(I,{sx:{display:"flex",flexDirection:"column",...u.stockBlock,flexShrink:0},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&c.jsx(wd,{title:"No stock",children:c.jsx(Xm,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(R,{component:"span",sx:p.stockValue,children:O.stock}),c.jsx(R,{component:"span",sx:p.osaValue,children:O.quantity?`/ ${O.quantity}`:""})]}),(()=>{const T=typeof O.osa=="number"?O.osa:O.osa??0,N=Number(T),F=N<50;return c.jsxs(R,{sx:{...p.onShelfText,fontSize:"10px",color:u.onShelfPercentNormal.color},children:[c.jsxs(I,{component:"span",sx:F?{color:u.onShelfPercentRed.color}:{},children:[Math.round(N),"%"]})," ",c.jsx(I,{component:"span",sx:{color:u.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&c.jsxs(I,{sx:{display:"flex",flexDirection:"column",...u.offerBlock,flexShrink:0,minWidth:0,marginLeft:u.stockOfferGap},children:[c.jsx(R,{sx:{...u.offerText,whiteSpace:"pre-line"},children:L}),D.length>0&&c.jsxs(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:T=>b(T,k),children:["+",D.length," more"]})]})]},O.id||A)}),c.jsxs(md,{open:S,anchorEl:y,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[c.jsx(R,{sx:{fontWeight:700,mb:1},children:"Offers"}),f.map((O,A)=>c.jsxs(R,{sx:{fontSize:14,color:"#222",mb:.5},children:[A+1,". ",O]},A))]}),a&&typeof l=="function"&&typeof d=="function"&&c.jsxs(I,{sx:h.wrapper,children:[c.jsxs(I,{sx:h.resultsPerPageBox,children:[c.jsx(R,{component:"span",sx:h.resultsPerPageText,children:"Results per page"}),c.jsx(Rn,{value:a.limit??10,onChange:O=>d(Number(O.target.value)),IconComponent:Um,variant:"standard",disableUnderline:!0,sx:h.select,children:[5,10,20,50].map(O=>c.jsx(Ot,{value:O,children:O},O))})]}),c.jsxs(I,{sx:h.navBox,children:[c.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>l(1),sx:h.iconButton,title:"First page",children:c.jsx(Hm,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>l((a.currentPage??1)-1),sx:h.iconButton,title:"Previous page",children:c.jsx(Ha,{sx:{width:16,height:16,opacity:1}})}),c.jsx(R,{component:"span",sx:h.pageText,children:(a.totalCount??0)===0?"0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1}-${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),c.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>l((a.currentPage??1)+1),sx:h.iconButton,title:"Next page",children:c.jsx(Dt,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>l(a.totalPages??1),sx:h.iconButton,title:"Last page",children:c.jsx(qm,{sx:{width:16,height:16,opacity:1}})})]})]})]})}const Tn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Pn=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Li=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=Tn(r,0),a=Tn(i,0),l=s>a&&s>0?Math.round((s-a)/s*100):5,d=Math.max(0,s-a);return{productName:t,productCode:n,mrp:s,discountPrice:a,discount:l,saveAmount:d}},cA=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Li(e),a=Math.max(0,Tn(i,0)-Tn(s,0)),l=n.validTo||Pn().validTo,d=n.ppd||Pn().ppd;return`
237
+ `):O.offer&&Array.isArray(O.offer)?k=O.offer:O.offer&&(k=[O.offer]);const L=k[0]||"",D=k.length>1?k.slice(1):[];return c.jsxs(N,{sx:{display:"flex",alignItems:"center",...v?u.rowCard:p.rowCard,boxSizing:"border-box",mt:A===0?v?0:.5:0,mb:.5},children:[c.jsx(N,{sx:{display:"flex",alignItems:"center",width:16,height:v?16:20,gap:"8px",flexShrink:0},children:c.jsx(Pt,{checked:x(O),onChange:()=>r(O,i),size:"small",sx:{p:0,width:16,height:16,color:v?"#F3F8FF":"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:v?"#F3F8FF":"#FFFFFF",color:v?"#2D64B8":"#2563EB",border:v?"0.5px solid #2D64B8":"0.5px solid #2563EB"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),checkedIcon:v?c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2D64B8",background:"#F3F8FF",position:"relative"},children:c.jsx(Jm,{sx:{position:"absolute",top:2,left:2,fontSize:12,color:"#2D64B8"}})}):c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",height:56,gap:"16px",flexShrink:0,minWidth:0,width:v?237:"100%",maxWidth:v?237:480},children:[c.jsx(N,{sx:{...p.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:O.productImage?c.jsx(Ta,{src:O.productImage,alt:O.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(Ta,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:O.productName&&O.productName[0]})}),c.jsxs(N,{sx:{display:"flex",flexDirection:"column",gap:"4px",width:v?u.productDetailsWidth:408,minWidth:0,maxWidth:"100%"},children:[c.jsx(R,{sx:p.productName,children:O.productName}),c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[c.jsx(R,{sx:p.productMeta,children:O.productWeight}),O.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(R,{component:"span",sx:{...p.productMeta,...p.productMetaBullet},children:"•"}),c.jsx(R,{component:"span",sx:p.productMeta,children:O.categoryName})]})]}),c.jsxs(R,{sx:p.productSku,children:["SKU: ",O.sku]})]})]}),c.jsxs(N,{sx:{display:"flex",alignItems:"flex-start",...v?u.statusBlock:p.statusOsaBlock,flexShrink:0,...v&&{alignSelf:"flex-start",marginTop:"8px"}},children:[c.jsx(N,{component:"span",sx:O.status===!0?p.statusActiveBox:p.statusNoStockBox,children:O.status===!0?"Active":"No Stock"}),!v&&c.jsxs(N,{sx:{display:"flex",flexDirection:"column",gap:"4px",width:120},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&c.jsx(wd,{title:"No stock",children:c.jsx(Xm,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(R,{component:"span",sx:p.stockValue,children:O.stock}),c.jsx(R,{component:"span",sx:p.osaValue,children:O.quantity?`/ ${O.quantity}`:""})]}),(()=>{const T=Number(typeof O.osa=="number"?O.osa:O.osa??0),I=T<50;return c.jsxs(R,{sx:{...p.onShelfText,color:"#808080"},children:[c.jsxs(N,{component:"span",sx:I?{color:"#d32f2f"}:{},children:[Math.round(T),"%"]})," on shelf"]})})()]})]}),v&&c.jsxs(N,{sx:{display:"flex",flexDirection:"column",...u.priceBlock,flexShrink:0},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(R,{sx:u.priceText,children:["₹",O.price]}),c.jsx(N,{sx:{...u.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(aA,{sx:{fontSize:14,color:"#808080"}})})]}),O.mrp&&c.jsxs(R,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",O.mrp]}),O.discount&&c.jsx(R,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:O.discount})]}),v&&c.jsxs(N,{sx:{display:"flex",flexDirection:"column",...u.stockBlock,flexShrink:0},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&c.jsx(wd,{title:"No stock",children:c.jsx(Xm,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(R,{component:"span",sx:p.stockValue,children:O.stock}),c.jsx(R,{component:"span",sx:p.osaValue,children:O.quantity?`/ ${O.quantity}`:""})]}),(()=>{const T=typeof O.osa=="number"?O.osa:O.osa??0,I=Number(T),F=I<50;return c.jsxs(R,{sx:{...p.onShelfText,fontSize:"10px",color:u.onShelfPercentNormal.color},children:[c.jsxs(N,{component:"span",sx:F?{color:u.onShelfPercentRed.color}:{},children:[Math.round(I),"%"]})," ",c.jsx(N,{component:"span",sx:{color:u.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&c.jsxs(N,{sx:{display:"flex",flexDirection:"column",...u.offerBlock,flexShrink:0,minWidth:0,marginLeft:u.stockOfferGap},children:[c.jsx(R,{sx:{...u.offerText,whiteSpace:"pre-line"},children:L}),D.length>0&&c.jsxs(R,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:T=>b(T,k),children:["+",D.length," more"]})]})]},O.id||A)}),c.jsxs(md,{open:S,anchorEl:y,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[c.jsx(R,{sx:{fontWeight:700,mb:1},children:"Offers"}),f.map((O,A)=>c.jsxs(R,{sx:{fontSize:14,color:"#222",mb:.5},children:[A+1,". ",O]},A))]}),a&&typeof l=="function"&&typeof d=="function"&&c.jsxs(N,{sx:h.wrapper,children:[c.jsxs(N,{sx:h.resultsPerPageBox,children:[c.jsx(R,{component:"span",sx:h.resultsPerPageText,children:"Results per page"}),c.jsx(Vn,{value:a.limit??10,onChange:O=>d(Number(O.target.value)),IconComponent:Um,variant:"standard",disableUnderline:!0,sx:h.select,children:[5,10,20,50].map(O=>c.jsx(Ot,{value:O,children:O},O))})]}),c.jsxs(N,{sx:h.navBox,children:[c.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>l(1),sx:h.iconButton,title:"First page",children:c.jsx(Hm,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>l((a.currentPage??1)-1),sx:h.iconButton,title:"Previous page",children:c.jsx(Ha,{sx:{width:16,height:16,opacity:1}})}),c.jsx(R,{component:"span",sx:h.pageText,children:(a.totalCount??0)===0?"0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1}-${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),c.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>l((a.currentPage??1)+1),sx:h.iconButton,title:"Next page",children:c.jsx(Dt,{sx:{width:16,height:16,opacity:1}})}),c.jsx(it,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>l(a.totalPages??1),sx:h.iconButton,title:"Last page",children:c.jsx(qm,{sx:{width:16,height:16,opacity:1}})})]})]})]})}const Tn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},Pn=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Li=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=Tn(r,0),a=Tn(i,0),l=s>a&&s>0?Math.round((s-a)/s*100):5,d=Math.max(0,s-a);return{productName:t,productCode:n,mrp:s,discountPrice:a,discount:l,saveAmount:d}},cA=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Li(e),a=Math.max(0,Tn(i,0)-Tn(s,0)),l=n.validTo||Pn().validTo,d=n.ppd||Pn().ppd;return`
238
238
  <div class="sticker design-1">
239
239
  ${t.discountPrice?`
240
240
  <div class="our-price-header">SAVE</div>
@@ -1579,5 +1579,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
1579
1579
  <\/script>
1580
1580
  </body>
1581
1581
  </html>
1582
- `},mA=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=i>0?i:1,l=[];e.forEach(h=>{for(let x=0;x<a;x++)l.push(h)});const d={A4:hA,A7:gA},u=(d[n]||d.A4)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},yA=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},bA=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=Cn(),i=z.useMemo(()=>yA(),[]),[s,a]=z.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,d]=z.useState("design1"),[p,u]=z.useState(""),[h,x]=z.useState(1),[y,g]=z.useState(!1),f=w=>a(S=>({...S,[w]:!S[w]})),m=()=>{if(!n||n.length===0){alert("No products selected. Please select products first.");return}if(!p){g(!0);return}g(!1);const w=h>0?h:1;mA({selectedProducts:n,selectedDesign:l,sheetSize:p,itemsToShow:s,copyPerItem:w}),t()},b=r.promoPrintModal;return c.jsxs(wi,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[c.jsx(Ci,{children:c.jsxs(I,{sx:b.header,children:[c.jsx(R,{variant:"h6",fontWeight:600,children:"Promo Print"}),c.jsx(it,{onClick:t,size:"small",children:c.jsx($d,{size:20})})]})}),c.jsxs(Aa,{sx:{...b.content,overflowY:"visible",maxHeight:"none"},children:[c.jsxs(I,{sx:b.section,children:[c.jsx(R,{sx:b.sectionTitle,children:"Items to show"}),c.jsxs(I,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[c.jsx(wn,{control:c.jsx(Pt,{checked:s.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:b.checkboxLabel}),c.jsx(wn,{control:c.jsx(Pt,{checked:s.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:b.checkboxLabel}),c.jsx(wn,{control:c.jsx(Pt,{checked:s.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:b.checkboxLabel}),c.jsx(wn,{control:c.jsx(Pt,{checked:s.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:b.checkboxLabel})]})]}),c.jsxs(I,{sx:b.section,children:[c.jsx(R,{sx:b.sectionTitle,children:"Promo Design"}),c.jsxs(I,{sx:b.designContainer,children:[c.jsxs(I,{onClick:()=>d("design1"),sx:{...b.designCard.base,...l==="design1"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(R,{sx:{...b.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),c.jsx(I,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(I,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(R,{component:"span",sx:{...b.design1.rupeeSymbol},children:"₹"}),c.jsx(R,{component:"span",sx:{...b.design1.bigPrice},children:"1387"})]})}),c.jsxs(I,{sx:{...b.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(R,{sx:{...b.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",c.jsx(R,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),c.jsxs(R,{sx:{...b.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",c.jsx(R,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),c.jsx(R,{sx:{...b.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),c.jsxs(I,{sx:b.design1.dateRow,children:[c.jsxs(R,{sx:b.design1.validFromText,children:["VALID TO: ",i.validTo]}),c.jsxs(R,{sx:b.design1.validToText,children:["PPD: ",i.ppd]})]})]}),c.jsxs(I,{onClick:()=>d("design2"),sx:{...b.designCard.base,...l==="design2"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(I,{sx:b.design2.mainOfferBlock,children:[c.jsx(R,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),c.jsx(R,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),c.jsxs(R,{sx:{...b.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(R,{component:"span",sx:b.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),c.jsx(R,{sx:{...b.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),c.jsxs(I,{sx:b.design2.dateRow,children:[c.jsxs(R,{sx:b.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),c.jsxs(R,{sx:b.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),c.jsxs(I,{onClick:()=>d("design3"),sx:{...b.designCard.base,...l==="design3"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(R,{sx:{...b.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(I,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(I,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(R,{component:"span",sx:{...b.design3.rupeeSymbol},children:"₹"}),c.jsx(R,{component:"span",sx:{...b.design3.bigPrice},children:"29"})]})}),c.jsx(R,{sx:{...b.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),c.jsxs(I,{sx:b.design3.dateRow,children:[c.jsxs(R,{sx:b.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),c.jsxs(R,{sx:b.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),c.jsxs(I,{onClick:()=>d("design4"),sx:{...b.designCard.base,...l==="design4"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(R,{sx:{...b.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(I,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(I,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(R,{component:"span",sx:{...b.design4.rupeeSymbol},children:"₹"}),c.jsx(R,{component:"span",sx:{...b.design4.priceWhole},children:"899"}),c.jsx(R,{component:"span",sx:{...b.design4.priceDecimal},children:".70"})]})}),c.jsxs(I,{sx:{...b.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(R,{sx:{...b.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",c.jsx(R,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),c.jsxs(R,{sx:{...b.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(R,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),c.jsx(R,{sx:{...b.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),c.jsxs(I,{sx:b.design4.dateRow,children:[c.jsxs(R,{sx:b.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),c.jsxs(R,{sx:b.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),c.jsxs(I,{onClick:()=>d("design5"),sx:{...b.designCard.base,...l==="design5"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(I,{sx:b.design5.topSection,children:[c.jsxs(I,{sx:b.design5.leftColumn,children:[c.jsxs(I,{sx:b.design5.rewardsLogo,children:[c.jsxs(I,{sx:b.design5.logoLine1,children:[c.jsx(R,{sx:b.design5.logoMy,children:"My"}),c.jsx(R,{sx:b.design5.logoSpencer,children:"spencers"})]}),c.jsxs(R,{sx:b.design5.logoRewards,children:["Rewa",c.jsx(R,{component:"span",sx:b.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),c.jsxs(R,{sx:{...b.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(R,{sx:{...b.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(R,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"99"]})]}),c.jsx(I,{sx:b.design5.verticalDivider}),c.jsxs(I,{sx:b.design5.rightColumn,children:[c.jsxs(R,{sx:{...b.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",c.jsx("br",{}),"MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(R,{sx:{...b.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(R,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),c.jsxs(I,{sx:b.design5.middleSection,children:[c.jsx(R,{sx:{...b.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),c.jsxs(R,{sx:{...b.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",c.jsx(R,{component:"span",sx:b.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),c.jsx(I,{sx:b.design5.horizontalDivider}),c.jsx(I,{sx:b.design5.bottomSection,children:c.jsx(R,{sx:b.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),c.jsxs(I,{children:[c.jsx(I,{children:c.jsx(R,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"})}),c.jsxs(I,{sx:b.sheetSizeGroup,children:[["A4","A7"].map(w=>c.jsx(I,{onClick:()=>{u(w),g(!1)},bgcolor:"#F5F5F5",borderRadius:2,sx:{...b.sheetSizeBtn,...p===w?b.sheetSizeBtnSelected:{}},children:c.jsx(R,{variant:"body2",textAlign:"center",pt:1,children:w})},w)),c.jsxs(I,{sx:b.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,mt:1.5},children:[c.jsx(R,{variant:"caption",color:"text.secondary",sx:{mr:1},children:"Enter Copy per item:"}),c.jsx(Di,{type:"number",value:h,onChange:w=>{const S=parseInt(w.target.value,10);!isNaN(S)&&S>0?x(S):w.target.value===""&&x(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:"42px",width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px"}},size:"small"})]})]})]})]}),c.jsxs(sd,{sx:{...b.actions||{px:2,pb:1},flexDirection:"column",alignItems:"stretch"},children:[y&&c.jsx(R,{variant:"body2",sx:{color:"red",textAlign:"flex-start",mb:1},children:"Please Select a Sheet Size"}),c.jsx(Ke,{type:"button",onClick:m,variant:"contained",sx:b.printButton,children:"Print"})]})]})};function Rd(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function vA({onClose:e,selectedProducts:t=[],open:n,stores:r=[],onCreateSuccess:i}){const s=$t(),{createdById:a,createdByName:l,createCatalogLoading:d,createCatalogError:p}=Le(k=>k.dashboard),u=Array.isArray(t)?t.length:0,[h,x]=z.useState("Christmas Super Sale 2025"),[y]=z.useState(""),[g,f]=z.useState(["all"]),[m,b]=z.useState(!1),w=z.useMemo(()=>Rd(h),[h]),S=z.useMemo(()=>w?`/${w}`:"",[w]);z.useEffect(()=>{n&&s(i1())},[n,s]);const v=z.useMemo(()=>r.filter(k=>k.id!=="all"),[r]),C=g.includes("all")||g.length===0,P=z.useMemo(()=>C?v.map(k=>k.storeCode).filter(Boolean):g.filter(k=>k!=="all").map(k=>v.find(L=>L.id===k)?.storeCode).filter(Boolean),[C,g,v]),O=k=>{f(L=>{const D=L.filter(N=>N!=="all");if(D.includes(k)){const N=D.filter(F=>F!==k);return N.length===0?["all"]:N}const T=[...D,k];return T.length===v.length?["all"]:T})},A=()=>{const k=h?.trim();if(!k)return;const L=(t||[]).map((D,T)=>({productId:D.catalogProductId||D.productId||D.id,sorting:T+1})).filter(D=>D.productId);s(Cs({name:k,slug:w||Rd(k),description:y?.trim()||"",storeCode:P,createdById:a,createdByName:l||"Admin",products:L})).unwrap().then(()=>{const D=w||Rd(k);typeof i=="function"&&i(D),e()}).catch(()=>{})};return c.jsxs(wi,{open:n,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(Ci,{children:c.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(R,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",u," Items"]}),c.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(zd,{})})]})}),c.jsxs(Aa,{sx:{pt:1},children:[c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),c.jsx("input",{type:"text",value:h,onChange:k=>x(k.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),c.jsxs("div",{style:{position:"relative",marginBottom:16},children:[c.jsx("input",{type:"text",readOnly:!0,value:S,style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),S&&c.jsx(zm,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(I,{sx:{position:"relative",mb:3},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>b(k=>!k),children:[c.jsx(I,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),c.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),c.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:C?"All Stores":`${g.length} store(s) selected`}),c.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${v.length} stores`}),c.jsx(Wd,{sx:{color:"#888",ml:"auto"}})]}),m&&c.jsxs(I,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[c.jsxs(I,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{f(["all"]),b(!1)},children:[c.jsx(Pt,{size:"small",checked:C,sx:{p:.5,mr:1}}),"All Stores"]}),v.map(k=>{const L=g.includes(k.id);return c.jsxs(I,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:L?700:400,color:L?"#222":"#444",background:L?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>O(k.id),children:[c.jsx(Pt,{size:"small",checked:L,sx:{p:.5,mr:1}}),k.name]},k.id)})]})]}),p&&c.jsx(R,{color:"error",fontSize:14,sx:{mb:2},children:p}),c.jsx(I,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(Ke,{variant:"contained",color:"primary",disabled:d||!h?.trim()||u===0,onClick:A,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:d?"Creating...":"Create"})})]})]})}function xA({onClose:e,open:t,stores:n=[],selectedProducts:r=[],onSuccess:i}){const s=$t(),{createdById:a,createdByName:l,createOsaRequestLoading:d,createOsaRequestError:p}=Le(v=>v.dashboard),[u,h]=z.useState(["all"]),[x,y]=z.useState(!1),g=z.useMemo(()=>n.filter(v=>v.id!=="all"&&v.storeCode!=="all"),[n]),f=u.includes("all")||u.length===0,m=z.useMemo(()=>f?g.map(v=>v.storeCode).filter(Boolean):u.filter(v=>v!=="all").map(v=>g.find(C=>C.id===v)?.storeCode).filter(Boolean),[f,u,g]),b=z.useMemo(()=>(r||[]).map(v=>({productId:v.catalogProductId||v.productId||v.id})).filter(v=>v.productId),[r]);z.useEffect(()=>{t&&s(s1())},[t,s]);const w=v=>{h(C=>{const P=C.filter(A=>A!=="all");if(P.includes(v)){const A=P.filter(k=>k!==v);return A.length===0?["all"]:A}const O=[...P,v];return O.length===g.length?["all"]:O})},S=()=>{m.length===0||b.length===0||s(Ts({storeCodes:m,createdBy:a??null,createdByName:l||"",products:b})).unwrap().then(()=>{typeof i=="function"&&i(),e()}).catch(()=>{})};return c.jsxs(wi,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(Ci,{children:c.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(R,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),c.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(zd,{})})]})}),c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(I,{sx:{position:"relative",mb:3},children:[c.jsxs(I,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>y(v=>!v),children:[c.jsx(I,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),c.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),c.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:f?"All Stores":`${u.length} store(s) selected`}),c.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${g.length} stores`}),c.jsx(Wd,{sx:{color:"#888",ml:"auto"}})]}),x&&c.jsxs(I,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[c.jsxs(I,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:f?700:400,color:f?"#222":"#444",background:f?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{h(["all"]),y(!1)},children:[c.jsx(Pt,{size:"small",checked:f,sx:{p:.5,mr:1}}),"All Stores"]}),g.map(v=>{const C=u.includes(v.id);return c.jsxs(I,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>w(v.id),children:[c.jsx(Pt,{size:"small",checked:C,sx:{p:.5,mr:1}}),v.name]},v.id)})]})]}),p&&c.jsx(R,{color:"error",fontSize:14,sx:{mb:2},children:p}),c.jsx(I,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(Ke,{variant:"contained",color:"primary",disabled:!m.length||!b.length||d,onClick:S,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:d?"Sending...":"Send Request"})})]})}const SA={category:"all",status:"all",search:"",store:[]},wA=()=>{const e=$t(),t=bt(),n=yt(),[r]=hb(),i=r.get("categoryName"),a=Cn().categoryDetail,[l,d]=z.useState(()=>({...SA,...n.state?.filters||{}})),[p,u]=z.useState([]),[h,x]=z.useState(null),[y,g]=z.useState(!1),[f,m]=z.useState(!1),[b,w]=z.useState(!1),{integrationData:S,companyId:v,loading:C}=Le(oe=>oe.dashboard),P=z.useRef(!1);z.useEffect(()=>{!v&&!P.current&&(P.current=!0,e(zr()))},[e,v]);const O=z.useMemo(()=>S&&typeof S=="object"&&Object.keys(S).length>0?{matched:!0,error:"",apiResponse:S,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[S]),A=Le(oe=>oe.dashboard),{products:k=[],stores:L=[],pagination:D={}}=A||{},{currentPage:T=1,limit:N=10,totalCount:F=0,totalPages:W=1,hasNextPage:_=!1}=D,{sharedCatalogues:j=[],sharedCataloguesTotal:M=0}=Le(oe=>oe.productSettings??{}),B=z.useMemo(()=>Array.isArray(j)?j.filter(oe=>oe.status===!0).length:0,[j]),$=z.useMemo(()=>{if(!i||!Array.isArray(k))return[];const oe=i.trim().toLowerCase();return k.filter(pe=>{const he=(pe.categoryName||pe.category||"").toString().trim().toLowerCase();return he&&he===oe}).map(pe=>({...pe,catalogProductId:pe.productId||pe.id,id:pe.id||pe.sku||pe.productName}))},[k,i]),V=$.length>0,G=z.useMemo(()=>{if(!$||$.length===0)return;const oe=$.map(pe=>Number(pe.price??pe.sellingPrice??pe.mrp)).filter(pe=>Number.isFinite(pe)&&pe>=0);if(oe.length!==0)return{min:Math.min(...oe),max:Math.max(...oe)}},[$]),K=Array.isArray(k)&&k.length>0,Z=Array.isArray(l.store)?l.store:[],J=!(Z.length===1&&Z[0]!=="all"),ae=oe=>{oe.preventDefault(),t("/settings",{state:{tenantIntegrationData:O.apiResponse}})},se=L.length>0?L:[{id:"all",name:"All Stores",storeCode:"all"}],le=oe=>{d(oe)},q=z.useCallback((oe={})=>{const pe=Array.isArray(l.store)?l.store:[],he={page:T,limit:N,...oe};if(i&&i.trim()&&(he.categoryName=i.trim()),pe.length>0&&!pe.includes("all")){const we=pe.map(Ae=>L.find(Me=>Me.id===Ae)?.storeCode).filter(Boolean);we.length>0&&(he.storeCode=we.join(","))}return(l.status==="active"||l.status==="inactive")&&(he.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(he.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(he.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(he.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(he.search=String(l.search).trim()),he},[i,T,N,l.store,l.status,l.stock,l.minPrice,l.maxPrice,l.search,L]),ne=oe=>{e(Fn(q({page:oe})))},U=oe=>{e(Fn(q({page:1,limit:oe})))},de=z.useRef(null);z.useEffect(()=>{if(!v)return;const oe=Array.isArray(l.store)?l.store:[],pe={page:T,limit:N};if(i&&i.trim()&&(pe.categoryName=i.trim()),oe.length>0&&!oe.includes("all")){const we=oe.map(Ae=>L.find(Me=>Me.id===Ae)?.storeCode).filter(Boolean);we.length>0&&(pe.storeCode=we.join(","))}(l.status==="active"||l.status==="inactive")&&(pe.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(pe.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(pe.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(pe.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(pe.search=String(l.search).trim());const he=JSON.stringify(pe);de.current!==he&&(de.current=he,e(Fn(pe)))},[v,i,T,N,l.store,l.status,l.stock,l.minPrice,l.maxPrice,l.search,e,L]);const re=(oe,pe)=>{u(he=>{const we=he[pe]||[];let Ae;return we.some(De=>De.id===oe.id)?Ae=we.filter(De=>De.id!==oe.id):Ae=[...we,oe],{...he,[pe]:Ae}}),x(pe)};return z.useEffect(()=>{v&&(e(At(v)),e(Lr()),i&&i.trim()&&e(ws({categoryName:i.trim()})),n.state?.filters||(i&&i.trim()?e(Fn({categoryName:i.trim(),page:1,limit:10})):e(Fn({page:1,limit:10}))),e(tn({page:1})))},[e,v,i,n.state?.filters]),z.useEffect(()=>{if(!v||M<=0)return;(Array.isArray(j)?j.length:0)<M&&e(tn({page:1,limit:M}))},[v,M,j?.length,e,j]),c.jsxs(c.Fragment,{children:[c.jsx(qa,{filters:l,onFilterChange:le,styles:a.topBar,stores:se,tenantStatus:O,hasProducts:K,priceRange:G,showBackButton:!0,backTo:"/"}),c.jsxs(I,{sx:a.contentWrapper??{marginTop:"72px",position:"relative",zIndex:0},children:[C||!v?c.jsx(I,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):i?V?c.jsxs(I,{sx:a.root,children:[c.jsx(Wm,{productState:A,categoryName:i,categoryProductCount:$.length,activeCatalogsCount:B,onManageClick:()=>t("/catalogs/manage-shared")}),c.jsx(lA,{data:$,styles:a,selectedProducts:p[i]||[],onSelectProduct:re,categoryName:i,showLimitedColumns:J,pagination:{currentPage:T,limit:N,totalCount:F,totalPages:W,hasNextPage:_},onPageChange:ne,onLimitChange:U})]}):c.jsx(zi,{handleStartSyncing:ae,loading:!1,categoryName:i,hideSubtitleAndAction:!0}):c.jsx(zi,{handleStartSyncing:ae,loading:!1}),c.jsx(Vm,{onPromoPrint:()=>g(!0),onCreateCatalog:()=>m(!0),onOsaRequest:()=>w(!0),selectedProducts:p[i]||[],selectedCategory:h}),c.jsx(bA,{open:y,onClose:()=>g(!1),selectedProducts:p[i]||[]},y?"open":"closed"),c.jsx(vA,{open:f,onClose:()=>m(!1),stores:se,selectedProducts:p[i]||[],onCreateSuccess:oe=>{u(pe=>({...pe,[i]:[]})),m(!1),oe&&t("/",{state:{catalogCreated:!0,catalogSlug:oe}})}}),c.jsx(xA,{open:b,onClose:()=>w(!1),stores:se,selectedProducts:p[i]||[],onSuccess:()=>u(oe=>({...oe,[i]:[]}))})]})]})};function CA({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsxs(qy,{children:[c.jsx(Hn,{path:"/",element:c.jsx(oN,{})}),c.jsx(Hn,{path:"/home",element:c.jsx(GI,{})}),c.jsx(Hn,{path:"/products",element:c.jsx(YI,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),c.jsx(Hn,{path:"/product-setting",element:c.jsx(TN,{})}),c.jsx(Hn,{path:"/products/settings/ftp-sync",element:c.jsx(HN,{})}),c.jsx(Hn,{path:"/catalogs/manage-shared",element:c.jsx(iA,{})}),c.jsx(Hn,{path:"/category",element:c.jsx(wA,{})})]})}function EA({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsx(CA,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const TA=()=>c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:c.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>c.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:c.jsx(b1,{apiUrl:e,authToken:t,children:c.jsx(Lb,{store:of,children:c.jsx(Ub.PersistGate,{loading:c.jsx(TA,{}),persistor:m1,children:c.jsx(ab,{basename:n,children:c.jsx(EA,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
1582
+ `},mA=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=i>0?i:1,l=[];e.forEach(h=>{for(let x=0;x<a;x++)l.push(h)});const d={A4:hA,A7:gA},u=(d[n]||d.A4)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},yA=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},bA=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=Cn(),i=z.useMemo(()=>yA(),[]),[s,a]=z.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,d]=z.useState("design1"),[p,u]=z.useState(""),[h,x]=z.useState(1),[y,g]=z.useState(!1),f=w=>a(S=>({...S,[w]:!S[w]})),m=()=>{if(!n||n.length===0){alert("No products selected. Please select products first.");return}if(!p){g(!0);return}g(!1);const w=h>0?h:1;mA({selectedProducts:n,selectedDesign:l,sheetSize:p,itemsToShow:s,copyPerItem:w}),t()},b=r.promoPrintModal;return c.jsxs(wi,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[c.jsx(Ci,{children:c.jsxs(N,{sx:b.header,children:[c.jsx(R,{variant:"h6",fontWeight:600,children:"Promo Print"}),c.jsx(it,{onClick:t,size:"small",children:c.jsx($d,{size:20})})]})}),c.jsxs(Aa,{sx:{...b.content,overflowY:"visible",maxHeight:"none"},children:[c.jsxs(N,{sx:b.section,children:[c.jsx(R,{sx:b.sectionTitle,children:"Items to show"}),c.jsxs(N,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[c.jsx(wn,{control:c.jsx(Pt,{checked:s.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:b.checkboxLabel}),c.jsx(wn,{control:c.jsx(Pt,{checked:s.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:b.checkboxLabel}),c.jsx(wn,{control:c.jsx(Pt,{checked:s.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:b.checkboxLabel}),c.jsx(wn,{control:c.jsx(Pt,{checked:s.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:b.checkboxLabel})]})]}),c.jsxs(N,{sx:b.section,children:[c.jsx(R,{sx:b.sectionTitle,children:"Promo Design"}),c.jsxs(N,{sx:b.designContainer,children:[c.jsxs(N,{onClick:()=>d("design1"),sx:{...b.designCard.base,...l==="design1"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(R,{sx:{...b.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),c.jsx(N,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(N,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(R,{component:"span",sx:{...b.design1.rupeeSymbol},children:"₹"}),c.jsx(R,{component:"span",sx:{...b.design1.bigPrice},children:"1387"})]})}),c.jsxs(N,{sx:{...b.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(R,{sx:{...b.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",c.jsx(R,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),c.jsxs(R,{sx:{...b.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",c.jsx(R,{component:"span",sx:b.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),c.jsx(R,{sx:{...b.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),c.jsxs(N,{sx:b.design1.dateRow,children:[c.jsxs(R,{sx:b.design1.validFromText,children:["VALID TO: ",i.validTo]}),c.jsxs(R,{sx:b.design1.validToText,children:["PPD: ",i.ppd]})]})]}),c.jsxs(N,{onClick:()=>d("design2"),sx:{...b.designCard.base,...l==="design2"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(N,{sx:b.design2.mainOfferBlock,children:[c.jsx(R,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),c.jsx(R,{sx:{...b.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),c.jsxs(R,{sx:{...b.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(R,{component:"span",sx:b.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),c.jsx(R,{sx:{...b.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),c.jsxs(N,{sx:b.design2.dateRow,children:[c.jsxs(R,{sx:b.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),c.jsxs(R,{sx:b.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),c.jsxs(N,{onClick:()=>d("design3"),sx:{...b.designCard.base,...l==="design3"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(R,{sx:{...b.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(N,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(N,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(R,{component:"span",sx:{...b.design3.rupeeSymbol},children:"₹"}),c.jsx(R,{component:"span",sx:{...b.design3.bigPrice},children:"29"})]})}),c.jsx(R,{sx:{...b.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),c.jsxs(N,{sx:b.design3.dateRow,children:[c.jsxs(R,{sx:b.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),c.jsxs(R,{sx:b.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),c.jsxs(N,{onClick:()=>d("design4"),sx:{...b.designCard.base,...l==="design4"?b.designCard.selected:b.designCard.unselected},children:[c.jsx(R,{sx:{...b.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(N,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(N,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(R,{component:"span",sx:{...b.design4.rupeeSymbol},children:"₹"}),c.jsx(R,{component:"span",sx:{...b.design4.priceWhole},children:"899"}),c.jsx(R,{component:"span",sx:{...b.design4.priceDecimal},children:".70"})]})}),c.jsxs(N,{sx:{...b.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(R,{sx:{...b.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",c.jsx(R,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),c.jsxs(R,{sx:{...b.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(R,{component:"span",sx:b.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),c.jsx(R,{sx:{...b.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),c.jsxs(N,{sx:b.design4.dateRow,children:[c.jsxs(R,{sx:b.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),c.jsxs(R,{sx:b.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),c.jsxs(N,{onClick:()=>d("design5"),sx:{...b.designCard.base,...l==="design5"?b.designCard.selected:b.designCard.unselected},children:[c.jsxs(N,{sx:b.design5.topSection,children:[c.jsxs(N,{sx:b.design5.leftColumn,children:[c.jsxs(N,{sx:b.design5.rewardsLogo,children:[c.jsxs(N,{sx:b.design5.logoLine1,children:[c.jsx(R,{sx:b.design5.logoMy,children:"My"}),c.jsx(R,{sx:b.design5.logoSpencer,children:"spencers"})]}),c.jsxs(R,{sx:b.design5.logoRewards,children:["Rewa",c.jsx(R,{component:"span",sx:b.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),c.jsxs(R,{sx:{...b.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(R,{sx:{...b.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(R,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"99"]})]}),c.jsx(N,{sx:b.design5.verticalDivider}),c.jsxs(N,{sx:b.design5.rightColumn,children:[c.jsxs(R,{sx:{...b.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",c.jsx("br",{}),"MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(R,{sx:{...b.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(R,{component:"span",sx:b.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),c.jsxs(N,{sx:b.design5.middleSection,children:[c.jsx(R,{sx:{...b.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),c.jsxs(R,{sx:{...b.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",c.jsx(R,{component:"span",sx:b.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),c.jsx(N,{sx:b.design5.horizontalDivider}),c.jsx(N,{sx:b.design5.bottomSection,children:c.jsx(R,{sx:b.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),c.jsxs(N,{children:[c.jsx(N,{children:c.jsx(R,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"})}),c.jsxs(N,{sx:b.sheetSizeGroup,children:[["A4","A7"].map(w=>c.jsx(N,{onClick:()=>{u(w),g(!1)},bgcolor:"#F5F5F5",borderRadius:2,sx:{...b.sheetSizeBtn,...p===w?b.sheetSizeBtnSelected:{}},children:c.jsx(R,{variant:"body2",textAlign:"center",pt:1,children:w})},w)),c.jsxs(N,{sx:b.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,mt:1.5},children:[c.jsx(R,{variant:"caption",color:"text.secondary",sx:{mr:1},children:"Enter Copy per item:"}),c.jsx(Di,{type:"number",value:h,onChange:w=>{const S=parseInt(w.target.value,10);!isNaN(S)&&S>0?x(S):w.target.value===""&&x(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:"42px",width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px"}},size:"small"})]})]})]})]}),c.jsxs(sd,{sx:{...b.actions||{px:2,pb:1},flexDirection:"column",alignItems:"stretch"},children:[y&&c.jsx(R,{variant:"body2",sx:{color:"red",textAlign:"flex-start",mb:1},children:"Please Select a Sheet Size"}),c.jsx(Ke,{type:"button",onClick:m,variant:"contained",sx:b.printButton,children:"Print"})]})]})};function Rd(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function vA({onClose:e,selectedProducts:t=[],open:n,stores:r=[],onCreateSuccess:i}){const s=$t(),{createdById:a,createdByName:l,createCatalogLoading:d,createCatalogError:p}=Le(k=>k.dashboard),u=Array.isArray(t)?t.length:0,[h,x]=z.useState("Christmas Super Sale 2025"),[y]=z.useState(""),[g,f]=z.useState(["all"]),[m,b]=z.useState(!1),w=z.useMemo(()=>Rd(h),[h]),S=z.useMemo(()=>w?`/${w}`:"",[w]);z.useEffect(()=>{n&&s(i1())},[n,s]);const v=z.useMemo(()=>r.filter(k=>k.id!=="all"),[r]),C=g.includes("all")||g.length===0,P=z.useMemo(()=>C?v.map(k=>k.storeCode).filter(Boolean):g.filter(k=>k!=="all").map(k=>v.find(L=>L.id===k)?.storeCode).filter(Boolean),[C,g,v]),O=k=>{f(L=>{const D=L.filter(I=>I!=="all");if(D.includes(k)){const I=D.filter(F=>F!==k);return I.length===0?["all"]:I}const T=[...D,k];return T.length===v.length?["all"]:T})},A=()=>{const k=h?.trim();if(!k)return;const L=(t||[]).map((D,T)=>({productId:D.catalogProductId||D.productId||D.id,sorting:T+1})).filter(D=>D.productId);s(Cs({name:k,slug:w||Rd(k),description:y?.trim()||"",storeCode:P,createdById:a,createdByName:l||"Admin",products:L})).unwrap().then(()=>{const D=w||Rd(k);typeof i=="function"&&i(D),e()}).catch(()=>{})};return c.jsxs(wi,{open:n,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(Ci,{children:c.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(R,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",u," Items"]}),c.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(zd,{})})]})}),c.jsxs(Aa,{sx:{pt:1},children:[c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),c.jsx("input",{type:"text",value:h,onChange:k=>x(k.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),c.jsxs("div",{style:{position:"relative",marginBottom:16},children:[c.jsx("input",{type:"text",readOnly:!0,value:S,style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),S&&c.jsx(zm,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(N,{sx:{position:"relative",mb:3},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>b(k=>!k),children:[c.jsx(N,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),c.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),c.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:C?"All Stores":`${g.length} store(s) selected`}),c.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${v.length} stores`}),c.jsx(Wd,{sx:{color:"#888",ml:"auto"}})]}),m&&c.jsxs(N,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[c.jsxs(N,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{f(["all"]),b(!1)},children:[c.jsx(Pt,{size:"small",checked:C,sx:{p:.5,mr:1}}),"All Stores"]}),v.map(k=>{const L=g.includes(k.id);return c.jsxs(N,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:L?700:400,color:L?"#222":"#444",background:L?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>O(k.id),children:[c.jsx(Pt,{size:"small",checked:L,sx:{p:.5,mr:1}}),k.name]},k.id)})]})]}),p&&c.jsx(R,{color:"error",fontSize:14,sx:{mb:2},children:p}),c.jsx(N,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(Ke,{variant:"contained",color:"primary",disabled:d||!h?.trim()||u===0,onClick:A,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:d?"Creating...":"Create"})})]})]})}function xA({onClose:e,open:t,stores:n=[],selectedProducts:r=[],onSuccess:i}){const s=$t(),{createdById:a,createdByName:l,createOsaRequestLoading:d,createOsaRequestError:p}=Le(v=>v.dashboard),[u,h]=z.useState(["all"]),[x,y]=z.useState(!1),g=z.useMemo(()=>n.filter(v=>v.id!=="all"&&v.storeCode!=="all"),[n]),f=u.includes("all")||u.length===0,m=z.useMemo(()=>f?g.map(v=>v.storeCode).filter(Boolean):u.filter(v=>v!=="all").map(v=>g.find(C=>C.id===v)?.storeCode).filter(Boolean),[f,u,g]),b=z.useMemo(()=>(r||[]).map(v=>({productId:v.catalogProductId||v.productId||v.id})).filter(v=>v.productId),[r]);z.useEffect(()=>{t&&s(s1())},[t,s]);const w=v=>{h(C=>{const P=C.filter(A=>A!=="all");if(P.includes(v)){const A=P.filter(k=>k!==v);return A.length===0?["all"]:A}const O=[...P,v];return O.length===g.length?["all"]:O})},S=()=>{m.length===0||b.length===0||s(Ts({storeCodes:m,createdBy:a??null,createdByName:l||"",products:b})).unwrap().then(()=>{typeof i=="function"&&i(),e()}).catch(()=>{})};return c.jsxs(wi,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(Ci,{children:c.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(R,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),c.jsx(it,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(zd,{})})]})}),c.jsx(R,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(N,{sx:{position:"relative",mb:3},children:[c.jsxs(N,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>y(v=>!v),children:[c.jsx(N,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),c.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),c.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:f?"All Stores":`${u.length} store(s) selected`}),c.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${g.length} stores`}),c.jsx(Wd,{sx:{color:"#888",ml:"auto"}})]}),x&&c.jsxs(N,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[c.jsxs(N,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:f?700:400,color:f?"#222":"#444",background:f?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{h(["all"]),y(!1)},children:[c.jsx(Pt,{size:"small",checked:f,sx:{p:.5,mr:1}}),"All Stores"]}),g.map(v=>{const C=u.includes(v.id);return c.jsxs(N,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>w(v.id),children:[c.jsx(Pt,{size:"small",checked:C,sx:{p:.5,mr:1}}),v.name]},v.id)})]})]}),p&&c.jsx(R,{color:"error",fontSize:14,sx:{mb:2},children:p}),c.jsx(N,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(Ke,{variant:"contained",color:"primary",disabled:!m.length||!b.length||d,onClick:S,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:d?"Sending...":"Send Request"})})]})}const SA={category:"all",status:"all",search:"",store:[]},wA=()=>{const e=$t(),t=bt(),n=yt(),[r]=hb(),i=r.get("categoryName"),a=Cn().categoryDetail,[l,d]=z.useState(()=>({...SA,...n.state?.filters||{}})),[p,u]=z.useState([]),[h,x]=z.useState(null),[y,g]=z.useState(!1),[f,m]=z.useState(!1),[b,w]=z.useState(!1),{integrationData:S,companyId:v,loading:C}=Le(oe=>oe.dashboard),P=z.useRef(!1);z.useEffect(()=>{!v&&!P.current&&(P.current=!0,e(zr()))},[e,v]);const O=z.useMemo(()=>S&&typeof S=="object"&&Object.keys(S).length>0?{matched:!0,error:"",apiResponse:S,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[S]),A=Le(oe=>oe.dashboard),{products:k=[],stores:L=[],pagination:D={}}=A||{},{currentPage:T=1,limit:I=10,totalCount:F=0,totalPages:W=1,hasNextPage:_=!1}=D,{sharedCatalogues:j=[],sharedCataloguesTotal:M=0}=Le(oe=>oe.productSettings??{}),B=z.useMemo(()=>Array.isArray(j)?j.filter(oe=>oe.status===!0).length:0,[j]),$=z.useMemo(()=>{if(!i||!Array.isArray(k))return[];const oe=i.trim().toLowerCase();return k.filter(pe=>{const he=(pe.categoryName||pe.category||"").toString().trim().toLowerCase();return he&&he===oe}).map(pe=>({...pe,catalogProductId:pe.productId||pe.id,id:pe.id||pe.sku||pe.productName}))},[k,i]),V=$.length>0,G=z.useMemo(()=>{if(!$||$.length===0)return;const oe=$.map(pe=>Number(pe.price??pe.sellingPrice??pe.mrp)).filter(pe=>Number.isFinite(pe)&&pe>=0);if(oe.length!==0)return{min:Math.min(...oe),max:Math.max(...oe)}},[$]),K=Array.isArray(k)&&k.length>0,Z=Array.isArray(l.store)?l.store:[],J=!(Z.length===1&&Z[0]!=="all"),ae=oe=>{oe.preventDefault(),t("/settings",{state:{tenantIntegrationData:O.apiResponse}})},se=L.length>0?L:[{id:"all",name:"All Stores",storeCode:"all"}],le=oe=>{d(oe)},q=z.useCallback((oe={})=>{const pe=Array.isArray(l.store)?l.store:[],he={page:T,limit:I,...oe};if(i&&i.trim()&&(he.categoryName=i.trim()),pe.length>0&&!pe.includes("all")){const we=pe.map(Ae=>L.find(Me=>Me.id===Ae)?.storeCode).filter(Boolean);we.length>0&&(he.storeCode=we.join(","))}return(l.status==="active"||l.status==="inactive")&&(he.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(he.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(he.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(he.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(he.search=String(l.search).trim()),he},[i,T,I,l.store,l.status,l.stock,l.minPrice,l.maxPrice,l.search,L]),ne=oe=>{e(_n(q({page:oe})))},U=oe=>{e(_n(q({page:1,limit:oe})))},de=z.useRef(null);z.useEffect(()=>{if(!v)return;const oe=Array.isArray(l.store)?l.store:[],pe={page:T,limit:I};if(i&&i.trim()&&(pe.categoryName=i.trim()),oe.length>0&&!oe.includes("all")){const we=oe.map(Ae=>L.find(Me=>Me.id===Ae)?.storeCode).filter(Boolean);we.length>0&&(pe.storeCode=we.join(","))}(l.status==="active"||l.status==="inactive")&&(pe.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(pe.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(pe.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(pe.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(pe.search=String(l.search).trim());const he=JSON.stringify(pe);de.current!==he&&(de.current=he,e(_n(pe)))},[v,i,T,I,l.store,l.status,l.stock,l.minPrice,l.maxPrice,l.search,e,L]);const re=(oe,pe)=>{u(he=>{const we=he[pe]||[];let Ae;return we.some(De=>De.id===oe.id)?Ae=we.filter(De=>De.id!==oe.id):Ae=[...we,oe],{...he,[pe]:Ae}}),x(pe)};return z.useEffect(()=>{v&&(e(At(v)),e(Lr()),i&&i.trim()&&e(ws({categoryName:i.trim()})),n.state?.filters||(i&&i.trim()?e(_n({categoryName:i.trim(),page:1,limit:10})):e(_n({page:1,limit:10}))),e(tn({page:1})))},[e,v,i,n.state?.filters]),z.useEffect(()=>{if(!v||M<=0)return;(Array.isArray(j)?j.length:0)<M&&e(tn({page:1,limit:M}))},[v,M,j?.length,e,j]),c.jsxs(c.Fragment,{children:[c.jsx(qa,{filters:l,onFilterChange:le,styles:a.topBar,stores:se,tenantStatus:O,hasProducts:K,priceRange:G,showBackButton:!0,backTo:"/"}),c.jsxs(N,{sx:a.contentWrapper??{marginTop:"72px",position:"relative",zIndex:0},children:[C||!v?c.jsx(N,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):i?V?c.jsxs(N,{sx:a.root,children:[c.jsx(Wm,{productState:A,categoryName:i,categoryProductCount:$.length,activeCatalogsCount:B,onManageClick:()=>t("/catalogs/manage-shared")}),c.jsx(lA,{data:$,styles:a,selectedProducts:p[i]||[],onSelectProduct:re,categoryName:i,showLimitedColumns:J,pagination:{currentPage:T,limit:I,totalCount:F,totalPages:W,hasNextPage:_},onPageChange:ne,onLimitChange:U})]}):c.jsx(zi,{handleStartSyncing:ae,loading:!1,categoryName:i,hideSubtitleAndAction:!0}):c.jsx(zi,{handleStartSyncing:ae,loading:!1}),c.jsx(Vm,{onPromoPrint:()=>g(!0),onCreateCatalog:()=>m(!0),onOsaRequest:()=>w(!0),selectedProducts:p[i]||[],selectedCategory:h}),c.jsx(bA,{open:y,onClose:()=>g(!1),selectedProducts:p[i]||[]},y?"open":"closed"),c.jsx(vA,{open:f,onClose:()=>m(!1),stores:se,selectedProducts:p[i]||[],onCreateSuccess:oe=>{u(pe=>({...pe,[i]:[]})),m(!1),oe&&t("/",{state:{catalogCreated:!0,catalogSlug:oe}})}}),c.jsx(xA,{open:b,onClose:()=>w(!1),stores:se,selectedProducts:p[i]||[],onSuccess:()=>u(oe=>({...oe,[i]:[]}))})]})]})};function CA({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsxs(qy,{children:[c.jsx(qn,{path:"/",element:c.jsx(oI,{})}),c.jsx(qn,{path:"/home",element:c.jsx(GN,{})}),c.jsx(qn,{path:"/products",element:c.jsx(YN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),c.jsx(qn,{path:"/product-setting",element:c.jsx(TI,{})}),c.jsx(qn,{path:"/products/settings/ftp-sync",element:c.jsx(HI,{})}),c.jsx(qn,{path:"/catalogs/manage-shared",element:c.jsx(iA,{})}),c.jsx(qn,{path:"/category",element:c.jsx(wA,{})})]})}function EA({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsx(CA,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const TA=()=>c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:c.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>c.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:c.jsx(b1,{apiUrl:e,authToken:t,children:c.jsx(Lb,{store:of,children:c.jsx(Ub.PersistGate,{loading:c.jsx(TA,{}),persistor:m1,children:c.jsx(ab,{basename:n,children:c.jsx(EA,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
1583
1583
  //# sourceMappingURL=product-app.umd.js.map